Transcript
Page 1: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

CIS 725

Network Layer

Page 2: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Network Layer

• This layer provides communication between any two nodes

• Uniform addressing scheme independent of the network technology

Network layer

Data Link layer

Page 3: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Problems to be addressed

• Routing• Congestion control

Page 4: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Routing

• Processing nodes• Switches/routers• Communication links

Page 5: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Datagram routing

• Each packet is routed independently • Unordered• Unreliable

Page 6: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Virtual Circuit routing

• Set up a path for each connection• All messages are sent over this path• Ordered• Reliable

Page 7: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Routing Table

• Routing table contains the next hop information

• At each node i,

for each destination j,

what is the next hop

Page 8: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Bellman-Ford Algorithm

• Distance table:• Routing table

Distance Vector Algorithms

distance from i to j via k

Page 9: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

• Protocol at node i:

On receiving routing table from k

update column k of the distance table as follows

For each destination j,

if k reports its distance to j as d then

update Dj,k = d + weight(i,k)

Routing table

Page 10: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

• Recompute the routing table as follows:

For each destination k,

update next hop to j, where

Dj,k = min(Dx,k: for all x)

Page 11: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

• Periodically or whenever the routing table changes, send routing table to all neighbors

Page 12: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Bellman-Ford Algorithm

b c

bcde

a b ea c d

acde

abde

bcde

acde

abde

2

2

1 1

24

e

d

c

b

a

2

42

21

41

2

b 2c 4

a 2

c 1

d 2

a 4b 1

e 2

Page 13: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Bellman-Ford Algorithm

b c

bcde

a b ea c d

acde

abde

bcde

acde

abde

2

2

1 1

24

e

d

c

b

a

2

42

21

41

2

b 2b 3

a 2

c 1

d 2

b 3

b 1

e 2

34

b 4

56

3

3

b 3

Page 14: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Bellman-Ford Algorithm

• Distance vector algorithm– Best path criteria

• Latency• Jitter• bandwidth

Page 15: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Counting to infinitya

b c

1

1

100

aa

b

b

13

31a a

a100 2 2

cc a a 1

1b b

a aa

100 4 4

cc

aa

b

b

13

3101 a b 3

1b b

aa

b

b

15

3101 a b 5

1b b

101

Page 16: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

a ed fb c 11 111

5

2012345

< a,b,c,d,e,f>

dest next dist path

Page 17: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

a ed fb c 11 111

5

12345

dest next dist Next to last hop

b b 1 a

d b 3 cc b 2 b

f b 5 e

e b 4 d

ed c b

Page 18: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Link State Routing

• Each node maintains the state of every link• State of the link may contain several types

of information

Page 19: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Learning local information

• Exchange hello packets periodically• Measure the cost of adjacent links

Page 20: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Distributed link state information

• Link state packet:

* source id

* cost of incident edges

* sequence numbers

Page 21: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Building Link State Packets

(a) A subnet. (b) The link state packets for this subnet.

Page 22: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Distribution Algorithm

• Controlled flooding

- hop count

- sequence numbers

- age

Page 23: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

• Receive LSP from nbr j

- compare sequence numbers

- update topology table

- propagate LSP to all nbrs except j

Page 24: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Hierarchical Routing

• Divide area into regions• Maintain accurate information about nodes

in the same region

Page 25: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Hierarchical Routing

Hierarchical routing.

Page 26: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Source-routing

• Message contains the entire path• Routing table lookup is avoided at each

node

Page 27: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Broadcasting/Multicasting

• To send a message to all nodes:

- make a separate message to each destination

- route each message independently

Page 28: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Multi-destination routing

• Include all destination address in message• Each node decides which links to forward

so that it reaches all destinations

Page 29: CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network

Multicast trees

• Create a spanning tree• Prune the spanning tree: Steiner tree


Recommended