BCSE308L - Module 5 - Updated
BCSE308L - Module 5 - Updated
Solution
This time all masks are applied, one by one, to the
destination address, but no matching network address is
found. When it reaches the end of the table, the module
gives the next-hop address 180.70.65.200 and interface
number m2 to ARP. This is probably an outgoing package
that needs to be sent, via the default router, to someplace
else in the Internet.
UNICAST ROUTING PROTOCOLS
Request
Sent by a router that has just come up or has some
time-out entries
Can ask specific entries or all entries
Figure 13-7
Request Messages
Requests and Response (Cont.)
Response: solicited or unsolicited
A solicited response: sent only in answer to a
request
Contain information about the destination specified in
the corresponding request
An unsolicited response: sent periodically
Every 30s
Contains information about the entire routing table
Also called update packet
Timers in RIP
RIP uses three timers
Periodic timer
Expiration timer
RIP Timers
Periodic Timer
Periodic timer
Control the advertising of regular update message
In link state routing, four sets of actions are required to ensure that
each node has the routing table showing the least-cost node to every
other node.
1. Creation of the states of the links by each node, called the link
state packet (LSP).
2. Dissemination of LSPs to every other router, called flooding, in
an efficient and reliable way.
3. Formation of a shortest path tree for each node.
4. Calculation of a routing table based on the shortest path tree.
Creation of Link State Packet (LSP)
• Each node can send some greeting messages to all its immediate
neighbors to collect two pieces of information for each
neighboring node:
• the identity of the node and the cost of the link.
• The combination of these two pieces of information is called the
LS packet (LSP)
• LSPs are generated on two occasions:
1. When there is a change in the topology of the domain
2. On a periodic basis.
Flooding of Link State Packet (LSP)
• After a node has prepared an LSP, it must be disseminated to all
other nodes, not only to its neighbors.
• The process is called flooding and based on the following:
• 1. The creating node sends a copy of the LSP out of each
interface.
• 2. A node that receives an LSP compares it with the copy it may
already have. If the newly arrived LSP is older than the one it has
(found by checking the sequence number), it discards the LSP. If
it is newer, the node does the following:
• a. It discards the old LSP and keeps the new one.
• b. It sends a copy of it out of each interface except the one from
which the packet arrived. This guarantees that flooding stops
somewhere in the domain (where a node has only one interface)
Formation of Shortest Path Tree: Dijkstra Algorithm