Please enable JavaScript.
Coggle requires JavaScript to display documents.
5-6. Network Layer (Routing algorithms (Adaptive algorithms (Link state…
5-6. Network Layer
Routing algorithms
-
Non-adaptive algorithms
-
Shortest path routing
Start with sink, set distance to other nodes to infinity
-
Pick the lowest distance node, add it to sink tree
-
Flooding
-
-
-
Advantages
-
-
-
Always chooses the shortest path as it chooses every possible path in parallel: used as a metric against other algorithms
-
Adaptive algorithms
-
Changes in network topology, traffic etc.
Distance vector routing
Each router maintains a table with the best known distance to each destination and which line to use to get there
-
-
-
Link state routing
-
-
-
Packet contains
Sequence: incremented for each new packet sent. Routers keep track of all (source router, sequence) pairs
-
-
-
-
-
-
-
Optimality principle: if router B is on the optimal path from router A to router C, then the optimal path for B to C also falls along the same route
-
-
Broadcast routing
-
Approaches
-
Multidestination routing
-
-
Router generates a new copy of the packet for each output line and includes in each packet only those dest. that are to use the line
-
Reverse path forwarding
When a broadcast packet arrives at a router, the router checks to see if the packet arrived on the line normally used for sending packets to the source of the broadcast
If so, there is a high probability that the route used to transmit the received packet is the best route
-
If packet arrived on a link other than the preferred one, discarded as a likely duplicate
-
Spanning tree
-
-
Each router knows which line is in the spanning tree -> copy packet onto all spanning tree lines except the one it arrived on
-
-
Multicast routing
-
-
First router to receive the packet prunes the spanning tree to eliminate all lines that do not lead to members of the group
Internetworking
Tunneling
Used when source and dest are on the same network type, but have different network type in between
-
-
Fragmentation
-
-
Types
Transparent
-
Route constrained, more work
-
-
-
Path MTU discovery
-
-
-
If routes and path maximum transmition unit (MTU) changes, have to go through process again
-
Joins multiple, different networks into a single larger network
-
-
Internet Protocol
-
Structure
IP addresses
-
-
-
-
-
-
-
-
-
Header checksum (verify header at receiver's end; payload info already in the header in the transport layer)
-
-
IP address aggregation
-
-
Techniques
Routing within datagram subnet #
-
-
Classful addressing
-
Carries size as part of address, but lacks flexibility
-
-
-