Network Layer
Network Layer
2. Flooding: Each router sends the information to every other router on the
internetwork except its neighbors. This process is known as flooding. Every
router that receives the packet sends the copies to all the neighbors. Finally
each and every router receives a copy of the same information.
• In path vector routing, source can control the path and can prevent the
packet in passing through certain nodes.
Path-Vector Routing
• A path vector protocol is a computer network routing protocol which
maintains the path information that gets updated dynamically.
• Updates which have looped through the network and returned to the
same node are easily detected and discarded.
• Multihomed AS. A multihomed AS can have more than one connection to other ASs, but
it does not allow data traffic to pass through it. A good example of such an AS is some of
the customer ASs that may use the services of more than one provider network, but their
policy does not allow data to be passed through them.
• Transient AS. A transient AS is connected to more than one other AS and also allows the
traffic to pass through. The provider networks and the backbone are good examples of
transient ASs.
Routing Information Protocol (RIP)
• The Routing Information Protocol (RIP) is one of the most
widely used intradomain
• routing protocols based on the distance-vector routing algorithm
• Hop Count
Forwarding Tables
• The expiration timer governs the validity of a route. When a router receives update
information for a route, the expiration timer is set to 180 seconds for that particular
route. Every time a new update for the route is received, the timer is reset. If there is a
problem on an internet and no update is received within the allotted 180 seconds, the
route is considered expired and the hop count of the route is set to 16, which means the
destination is unreachable.
Open Shortest Path First (OSPF)
• Open Shortest Path First (OSPF) is also an intradomain routing protocol like RIP, but it is
based on the link-state routing protocol. It is an internal routing protocol
• It uses Dijkstra’s algorithm. Unlimited Hop count and it uses a metric of Hop count.
• In OSPF, like RIP, the cost of reaching a destination from the host is calculated from the source
router to the destination network.
• However, each link (network) can be assigned a weight based on the throughput, round-trip time,
reliability, and so on.
• Generally, OSPF divides an autonomous system into areas which is a collection of N/w, Hosts and
routers.
• Routers inside the area flood the area with the routing information.
• At the border of an area special routers called Area Broader router summarizes the info. about the
area and send it to another areas.
• All the area inside an “AS” must connected to the backbone -> Primary area.
• OSPF operations: Neighbors are discovered by means of sending the Hello Packet and share the
info.
Cost as Metric
Forwarding tables in OSPF
Areas in an autonomous system
Five different LSPs
OSPF Messages
• OSPF is a very complex protocol; it uses five different types of messages.
• The hello message (type 1) is used by a router to introduce itself to the neighbors
and announce all neighbors that it
• already knows.
• The database description message (type 2) is normally sent in response to the
hello message to allow a newly joined router to acquire the full LSDB.
• The linkstate request message (type 3) is sent by a router that needs information
about a specific LS.
• The link-state update message (type 4) is the main OSPF message used for
building the LSDB.
• This message, in fact, has five different versions (router link, network link,
summary link to network, summary link to AS border router, and external link).
• The link-state acknowledgment message (type 5) is used to create reliability in
OSPF. Each router that receives a link-state update message needs to
acknowledge it.
OSPF Implementation
and Message Format
Border Gateway Protocol Version 4 (BGP4)
ORIGIN (type 1). This is a well-known mandatory attribute, which defines the source
of the routing information. This attribute can be defined by one of the three values: 1, 2,
and 3. Value 1 means that the information about the path has been taken from an
intradomain protocol (RIP or OSPF). Value 2 means that the information comes from
BGP. Value 3 means that it comes from an unknown source.
• AS-PATH (type 2). This is a well-known mandatory attribute, which defines the list of autonomous
systems through which the destination can be reached.
• NEXT-HOP (type 3). This is a well-known mandatory attribute, which defines the next router to
which the data packet should be forwarded.
• MULT-EXIT-DISC (type 4). The multiple-exit discriminator is an optional intransitive attribute,
which discriminates among multiple exit paths to a destination. The value of this attribute is
normally defined by the metric in the corresponding intradomain protocol (an attribute value of
4-byte unsigned integer).
• LOCAL-PREF (type 5). The local preference attribute is a well-known discretionary attribute. It is
normally set by the administrator, based on the organization policy.
• AGGREGATOR (type 7). This is an optional transitive attribute, which emphasizes hat the
destination prefix is an aggregate. The attribute value gives the number of the last AS that did the
aggregation followed by the IP address of the router that did so.
Multicasting • Unicasting ( for information only)
Routing-MOSPF
Multicasting Multicasting ( for information only)
Routing-MOSPF
• Multicasting versus multiple unicasting ( for
Multicasting information only)
Routing-MOSPF
Multicasting Routing-MOSPF
• Multicast Open Shortest Path First (MOSPF) is the extension of the Open
Shortest Path First (OSPF) protocol, which is used in unicast routing. It also
uses the source based tree approach to multicasting. If the internet is running a
unicast link-state routing algorithm, the idea can be extended to provide a
multicast link-state routing algorithm.