1 introduction to network layer lesson 09 nets2150/2850 nets2150/ school of information technologies

33
1 Introduction to Network Layer Lesson 09 NETS2150/2850 http://www.ug.cs.usyd.edu.au/~nets2150/ School of Information Technologies

Upload: samson-flynt

Post on 01-Apr-2015

219 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

1

Introduction to Network Layer

Lesson 09NETS2150/2850

http://www.ug.cs.usyd.edu.au/~nets2150/

School of Information Technologies

Page 2: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

2

Lesson Outline Switching is an effective way of sharing network resources Circuit switching Packet Switching

Page 3: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

3

Position of network layer

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 4: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

4

Network Layer in an Internetwork

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Link 1

Link 2

Link 3

Page 5: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

5

Network layer functions

transport packet from sending to receiving hosts

network layer protocols in every host, router

three important functions: path determination: route

taken by packets from source to dest. Routing algorithms

forwarding: move packets from router’s input to appropriate router output

call setup: some network architectures require router call setup along path before data flows

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

application

transportnetworkdata linkphysical

application

transportnetworkdata linkphysical

Page 6: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

6

Switching in Wide Area Switched Networks

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 7: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

7

Switching Networks Long distance transmission is

typically done over a network of switched nodes not through dedicated mesh lines

Nodes not concerned with content of data

Data routed by being switched from node to node

Page 8: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

8

Switching Nodes Switching nodes may connect to

other nodes only, or to end systems and other nodes

Some redundant connections are desirable for reliability

Two different switching technologies: Circuit switching Packet switching

Page 9: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

9

An Example Network

Page 10: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

10

Circuit Switching Developed for voice traffic Provides dedicated communication path

between two stations Connected sequence of links Resources reserved for exclusive use Done at the physical layer Transparent connection Three phases in communication

Establish Transfer Disconnect

Page 11: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

11

Circuit Switching (2) Connection setup takes time Once connected, transfer is

transparent Developed for voice traffic (phone)

Page 12: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

12

Public Circuit Switched Network

Twisted-pair

(subscriber line)

Subscribers, subs. Line, exchanges, and trunks

Multiple voice frequency circuits

Page 13: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

13

Circuit Establishment

Local call

Long-distance call

Line c + one channel on the trunk to the ex

Page 14: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

14

Circuit switching Disadvantages Circuit switching designed for voice Resources dedicated to a particular call Much of the time a data connection is

idle, unused capacity is wasted Data rate is fixed

Both ends must operate at the same rate

Solution: Packet Switching

Page 15: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

15

Packet Switching Principles Developed for bursty data traffic Data transmitted in small packets

Typically 1000 octets Longer messages split into series of packets Each packet contains a portion of user data plus

some control info (header) Control info

Routing (addressing) info Packets are received, stored briefly (buffered)

and passed on to the next node Store and forward Not concerned with the content of the data

Page 16: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

16

The use of packets

Page 17: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

17

A packet’s trip from Src to Dest

Source

Destination

Page 18: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

18

Packet Switching…

Source and Dest.

layer 2 addresses

Source and Dest.

IP addresses

Routing table

Page 19: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

19

Advantages

Line efficiency Single node to node link can be shared by many

packets over time Packets queued and transmitted

Data rate conversion Each end system connects to the local node at

its own speed Nodes buffer data if required to equalize rates

Packets are accepted even when network is busy (as opposed to call dropping)

Delivery may slow down Priorities can be used

Based on the priority, some packets can experience less delay

Page 20: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

20

Packet Switching Technique End system breaks a long message

into packets Packets sent one at a time to the

network Packets handled in two modes:

Datagram used in today’s Internet Virtual circuit used in ATM, frame-

relay, X.25

Page 21: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

21

Datagram Mode: the Internet model

No call setup at network layer Each packet treated independently

No reference to packets handled before from the same message

no network-level concept of “connection” Packets can take any practical route Packets may arrive out of order Packets may go missing: Best-effort

service! Up to receiver to re-order packets and

recover from missing packets

Page 22: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

22

Datagram Mode Illustration

•Packets for same destination may not follow the same route•May arrive out of sequence•Exit node or the destination does the re-ordering

Exit node

Pkt re-ordered

Page 23: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

23

Virtual Circuit Mode Preplanned route established before any packets sent Call request and clear packets to establish and drop

circuit (handshake) Each packet contains a virtual circuit identifier instead

of destination address Every router on source-dest path maintains “state” for

each passing virtual circuit (VC) No routing decisions required for each packet transport-layer connection only involved two end

systems link, router resources (bandwidth, buffers) may be

allocated to VC to get circuit-like performance.

Non-dedicated path

Page 24: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

24

Virtual circuits: signaling protocols used to setup, maintain teardown VC used in ATM, frame-relay, X.25 not used in today’s Internet

application

transportnetworkdata linkphysical

application

transportnetworkdata linkphysical

1. Initiate call 2. incoming call

3. Accept call4. Call connected5. Data flow begins 6. Receive data

Page 25: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

25

VirtualCircuitDiagram

Page 26: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

26

Packet Size Packet size and transmission time Breaking a message into smaller

packets Transmission time drops Too many smaller packets is not good

either! Processing and queuing delays increase

when there are more packets to handle, for a single message

Page 27: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

27

Packet Size & Transmission time…

Total tx time: 43*3=129 octet-times

92 octet-times

77 octet-times 84 octet-times!

More and smaller packets meanmore of the headers, increasing theoctet-time

Page 28: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

28

Virtual Circuits vs Datagram Virtual circuits

Network can provide sequencing and error control Packets are forwarded more quickly

No routing decisions to make Less reliable

Loss of a node looses all circuits through that node Datagram

No call setup phase Better if few packets

More flexible Routing can be used to avoid congested parts of the

network

Page 29: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

29

Datagram or VC network: why?

Internet data exchange among

computers “elastic” service, no

strict timing req. “smart” end systems

(computers) can adapt, perform

control, error recovery simple inside network,

complexity at “edge” many link types

different characteristics uniform service difficult

ATM evolved from telephony human conversation:

strict timing, reliability requirements

need for guaranteed service

“dumb” end systems telephones complexity inside

network

Page 30: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

30

Circuit v Packet Switching Performance comparison involves:

Propagation delay Transmission time Node processing delay

Constant factorsVariable factor

Page 31: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

31

Event Timing Sequence

Node delay

Single block

Packetiseddata

Page 32: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

32

Network layer functions

transport packet from sending to receiving hosts

network layer protocols in every host, router

three important functions: path determination: route

taken by packets from source to dest. Routing algorithms

forwarding: move packets from router’s input to appropriate router output

call setup: some network architectures require router call setup along path before data flows

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

application

transportnetworkdata linkphysical

application

transportnetworkdata linkphysical

Page 33: 1 Introduction to Network Layer Lesson 09 NETS2150/2850 nets2150/ School of Information Technologies

33

Required Reading Circuit Switching Packet Switching

Virtual circuit Datagram

Read Stallings 10.1,10.2, and 10.6

Next: Routing