Beruflich Dokumente
Kultur Dokumente
Network Layer Addresses (IP, VP/VC etc.) Packet fragmentation , Aggregation/ Integration and concatenation
OPM
central routing
collect info from all nodes
Routing algorithm
It is part of the network layer software responsible for deciding through which output line an incoming packet should be transmitted.
OPM
Routing algorithms
Adaptive (Dynamic):- Change their routing decisions to reflect changes in the network traffic and topology Non-adaptive (Static):- Do not change their routing decisions on measurements or estimates of the current traffic and network topology.
OPM
OPM
OPM
OPM
OPM
OPM
10
Dijkstras Algorithm
1. [Initialization] T= {s}; where T and s are set of traveled nodes and source node L(n) = w(s, n) for n is not equal to s; where L stores link cost from node s to n 2. [Get Next Node] Choosing the next node which is having minimum link cost Find x which is not a element of T such that L(x) =min L(j); for j is not a element of T; where x (next node) would be the least cost node from s. 3. [Update Least-cost paths] L(n)= min[L(n), L(x) + w(x, n)]; for all n not element of T
OPM
11
Bellman-Ford Algorithm
This algorithm finds the shortest paths from a given source node subject to the constraints that the paths contains at most one link Then find the shortest paths with a constraints of paths of at most two links, and so on.
OPM
12
OPM
13
Bellman-Ford Algorithm
1. [initialization] L0(n)= infinity, all values of n except s (source node) Lh(s) = 0, for all h (hops) 2. [Update] For each successive h>=0: Lh+1(n) = min [Lh(j) + w(j, n)]; Where j represent all the nodes one hop less distant than n from s. Where h = hop count s= source node n = node (Router) in the network Lh(n)= link cost of node n which is at h hop distance from s j = node one hop less distance then node n w(j, n)= link cost from node j to n
OPM 14
Comparison
In Bellman-Ford algorithm, the calculation for node n involves knowledge of the link cost of all neighboring nodes plus the total link cost to each neighboring nodes from a particular node /Source Node
In Dijkstra algorithm, each node must have complete topological information about the network
OPM
15
Flooding
Static algorithm Every incoming packet is sent out on every out going line except the one it arrived on. It is used to find No. of hops between source and destination Consumes too much bandwidth To reduce duplicate packets in the network Packet Sequence No. can be used to discard the duplicate packets arrived at a node. Selective flooding reduces bandwidth wastage by allowing flooding in the direction/ path which leads to destination device.
OPM 16
Each router maintains a routing table indexed by, and containing one entry for each router in the subnet.
The entry contains link cost/hop count and out going path It is good for the network having uniform data rate links but not for non-uniform data rate links.
It encounters Infinite count problem (good news spreads quickly and bad news spreads slowly)
OPM 17
OPM
18
OPM
19
Hierarchical routing
As network grows in size, routing tables grow, which results in more memory consumption, CPU processing and bandwidth are needed to send status report. Routers are divided into Regions Each router contains information about its region only For big network, two or more level hierarchy may be possible as Regions=> Clusters=> Zones=> Groups and so on
OPM
20
Broadcast Routing
Hosts send message to all other nodes This method is wasteful of bandwidth Consumes too much bandwidth
OPM
21
Multicast routing
Sending a message to a group in network is called multicasting, and its routing algorithm is called multicast routing Multicasting requires group management
Either host must inform their routers about changes in group membership, or router must query their host periodically
OPM
22
Type of Hosts
OPM
24
OPM
26
OPM
28