Unicast Routing in Ipv6: Babu Ram Dawadi
Unicast Routing in Ipv6: Babu Ram Dawadi
Source (S)
D
`
S D S D
Destination (D)
Routing
Interior Exterior
Route Source
– Entity to provide route information eg: Ripng, OSPF etc..
RIPng Message Format
UDP based protocol using udp port number 521
20 Bytes/RTE
2B Route Tag
1B Prefix Length
1B Metric(1-16)
RTE..
Route Tag
– It may be used to carry additional information about a route
learned from another routing protocol eg: BGP
– The number of RTEs within single updates depends on the
MTU of the medium between two neighboring routers
– No of RTEs=[INT(MTU-IPv6 Hdr len-UDP Hdr len -RIPng Hdr len) / RTE-Size]
Timers
– RIPng uses different timers to control updates of the routing
information
– Update timer
• By default, every 30 seconds, RIPng process wakesup on each
interface to send an unsolicited routing response to the neighboring
routers
Timer
Timeout Timer
– Each time a route entry is updated and the timeout timer
is reset to zero
– If the route entry reaches 180 secs (default), without
another update, it is considered to have expired, metric
set to 16 and garbage collection process starts
AS 1 Router 1 AS 2
Router 2
a) Intra-domain b) Inter-domain
Fig. 3. Interior Routing Protocol
OSPF Header
IPv6 Header OSPF Header OSPF Message
NH: 89
40Byte 16 Byte
Version 1B RouterID 4B
AreaID 4B
Packet
Type 1B Checksum 2B
Packet
Length 2B Instance ID 1B
Unused 1B
OSPF Process
Link State routing
– Each node within the autonomous system has the
information about the entire topology.
– Each node in the domain build up the routing table
using Dijkstra’s algorithm.
Based on the LSDB, router creates a Shortest Path First (SPF) tree
– Using Dijkstra’s a Algorithm
A routing table can be derived from the SPF tree which contains
the best route to each router.
Types of OSPF Packets
OSPF Packets
Loading The router has the initial information of each route, Link State Request
State they may request for more complete information. Link State Update
Link State Acknowledgement
(Type 3,4,5)
Full All
Routers are fully adjacent. (Type 1,2,3,4,5)
OSPF- Forming Adjacencies (cont)
Hello Packets from router neighbour X
Processing of
Authentication
AreaID
(Accepted)
Hello packet
YES
YES
YES NO
Neighbour X
RouterDead Discard Neighbour X sees
NO NO changes to the
Interval Match? packet me as neighbour?
INIT State
YES
Neighbour X
E- and N- Discard changes to the 2-
NO
bit match packet way state
YES
YES
Incoming Transit
interface of type?
Is nieghbour X or Neighbour X
NO
am I DR/BDR stays 2 ways
Point to Point
Fig. 5. Processing a Hello Packet
YES
(Reference: IPv6 Essential Pg.169)
Forming Adjacency with Router X
OSPF- Forming Adjacencies (cont) The first OSPF neighbor is
Down state. It means that no
information (hellos) has been
received from this neighbor.
But it still can send Hello Router 2 has received a
message to its neighbours hello packet from its
Router1 has seen the Router neighbor, butreceived
the
Point to Point (No DR,BDR) Router2 also has
2’s hello packet which had
Forming an adjacency Transit Link (DR,BDR, or DROther)
the Router 1’s helloID
receiving router's was
packet
included its own Router ID not included in the hello
which had also included its
within the received hello
– Phases packet's neighbor field
Router 1(R1) packet
Router 2 (R2)own Router ID within the
received hello packet's
– Packet type involved Hello (Neighbour = 0)
Init neighbor field
Hello (Neighbour = R1)
2-Way
Hello (Neighbour = R2)
At this state, a router decides whether 2-Way
DD (Seq = x, Init, More, Master)
to become adjacent with this neighbor. Ex-Start Ex-Start
DD (Seq = y, Init, More, Master)
The decision on adjacencies is always DD (Seq = y, More, Slave)
depend on the link media. (Types of Exchange Exchange
network) DD (Seq = y+1, More, Master)
because only 2 neighbour routers. DD (Seq = y+n-1, More, Master) no more to send
Frame Relay
Point to Point
PPP, HDLC Non Broadcast Multiple Access (NBMA)
X.25, Frame Relay
Fig. 7. Types of Network
OSPF- Forming Adjacencies (cont)
When DR and BDR are elected, we can say that the adjacencies
was established.
M bit is set to 1
Indicate that there are more DBD packets to follow
MS bit is set to 1
Indicate that this router (172.16.51.3) declares itself to be Master
OSPF – Database Description (DBD) Packet
I bit is set to 1
Indicate that this is First DBD packet send by this router 202.249.25.234
This packet contain no data.
M bit is set to 1
Indicate that there are more DBD packets to follow
MS bit is set to 1
Indicate that this router (202.249.25.234) declares itself to be Master
Empty
OSPF – Database Description (DBD) Packet
I bit is set to 0
Indicate that this is NOT First DBD packet send by this router 172.16.51.3.
It contain database description of router 172.16.51.3
M bit is set to 0
Indicate that there are no more DBD packets to send
All database descriptions have been sent
MS bit is set to 0
Indicate that this router (172.16.51.3) declares itself to be Slave
OSPF – Database Description (DBD) Packet
I bit is set to 0
Indicate that this is NOT First DBD packet send by this router 202.249.25.234
It contain database description of router 202.249.25.234
M bit is set to 1
Indicate that there are more DBD packets to send
The database descriptions will still be sent
MS bit is set to 1
Indicate that this router (202.249.25.234) is still a Master
OSPF – Database Description (DBD) Packet
MS bit is set to 0
Indicate that this router (172.16.51.3) is still a Slave
Empty
OSPF – Database Description (DBD) Packet
I bit is set to 0
Indicate that this is NOT First DBD packet send by this router 202.249.25.234
It contain database description of router 202.249.25.234
M bit is set to 0
Indicate that there are no more DBD packets to send
All database descriptions have been sent
MS bit is set to 1
Indicate that this router (202.249.25.234) is still a Master
OSPF – Database Description (DBD) Packet
I bit is set 0
Indicate that this is NOT First DBD packet send by this router 172.16.51.3.
M bit is set 0
Indicate that there are no more DBD packets to send
All database descriptions have been sent
MS bit is set 0
Indicate that this router (172.16.51.3) is still a Slave
Empty
OSPF – Link State Request Packet
ospf6d process