Professional Documents
Culture Documents
ODP500049 OSPFv3
Protocol Principle
z OSPF_version_3 Overview
z RFC2328--OSPF Version 2
z RFC2460--IPv6 Specification
Chapter 3 LSA
z Use the local address of the link as the next hop of the route, except
the Virtual-Link.
z The Options field in the LSA header is moved to the following LSA:
> Router-LSA、Network-LSA、Inter-Area-Router-LSA and Link-
LSA。
z The LS Type field of the LSA header is extended to 16 bits.
z The address in the LSA is expressed in the mode of [prefix, prefix
length].
z All addressing semantics are deleted.
z The interface information can be released through multiple Router-
LSAs.
z LSA——Link-LSA and Intra-Area-Prefix-LSA are introduced.
z Type-3 LSA is renamed Inter-Area-Prefix-LSA, and Type-4 LSA is
renamed Inter-Area-Router-LSA.
Chapter 3 LSA
z The OSPFv3 protocol number is still 89, which is identified in the IPv6
Next Header.
IPv6
IPv6 OSPF
OSPF Packet
Packet
Next
Next Header
Header 89
89
z The TYPE field in the packet header is used to identify five packet
types.
z It sends protocol packets through the multicast address, while the
IPv6 Hop Limit is 1, and Virtual-Link sends update packets through
the unicast.
> AllSPfRouters:FF02::5
> AllDRouters:FF02::6
DC R N MC E V6
Chapter 3 LSA
Link State ID
z OSPFv2
Advertising Router
> 20 Bytes LS Sequence Number
LS CheckSum Length
LS Age LS Type
Link State ID
z OSPFv3 Advertising Router
LS CheckSum Length
U
U S2
S2 S1
S1 LSA
LSA Function
Function Code
Code
Network-LSA 2 0x2002
Inter-Area-Prefix-LSA 3 0x2003
Inter-Area-Router-LSA 4 0x2004
AS-External-LSA 5 0x4005
Type-7-LSA 7 0x2007
Link-LSA 8 0x0008
Intra-Area-Prefix-LSA 9 0x2009
P
P MC
MC LA
LA NU
NU
Flag Options
z LS Type:0x2001;Flooding
scope: area 1 Byte 3 Bytes
Router-LSAs.
00 W
W E
E V
V B
B Options
Options
zW
>When it is 1, it indicates that this router is a multicast wild-card
receiver.
zE
>When it is 1, it indicates that this router is an ASBR.
zV
>When it is 1, it indicates that this router is an endpoint of one
virtual link across the local area.
zB
>When it is 1, it indicates that this router is an ABR.
LS Age: 95
LS Type: Network-LSA
Link State ID: 24.0.2.2 Å DR Interface ID 2.2.2.2
Originating Router: 2.2.2.2 Å DR Router ID
4.4.4.4 1.1.1.1
LS Seq Number: 0x80000006 RTB
Checksum: 0xCB18
Length: 36 RTD RTA
3.3.3.3
Options: 0x000013 (-|R|-|-|E|V6)
Attached Router: 2.2.2.2 Å Router ID of RTB
Area 0
Attached Router: 1.1.1.1 Å Router ID of RTA RTC
Attached Router: 3.3.3.3 Å Router ID of RTC
0 Metric
Prefix address
128 Bit
32 bits
Inter-Area-Router-LSA
0 Options
1 Byte 3 Bytes
z The value of the LS type is
0 Metric
0x2004. Flooding scope: area.
1 Byte 3 Bytes
Destination Router ID
z InIPv4, the Inter-Area-Router- 4 Bytes
LSA is called Type 4
Summary-LSA.
32 bits
AS-External-LSA
Metric
Flag
z The value of the LS type 3 Bytes
is 0x4005. Flooding scope: Prefix Prefix
Referenced LS Type
AS Length Options
2 Bytes
1 Byte 1 Byte
AS-External-LSA
Static Route:
3001:1:1::/ 48
LS Age: 1027
2.2.2.2
LS Type: AS-External-LSA
Import
Link State ID: 0.0.0.1 4.4.4.4 1.1.1.1
RTB
Originating Router: 4.4.4.4
LS Seq Number: 0x80000004 RTD RTA
Checksum: 0xD0C7 3.3.3.3
Length: 36
Area 0
Metric Type: 2 (Larger than any link state path) RTC
Area 1
Metric: 1
Prefix: 3001:1:1::/48 Å Import static route
Prefix Options: 0 (-|-|-|-)
Options
Link-LSA Rtr Pri
3 Bytes
Intra-Area-Prefix-LSA
> In OSPFv2, the subnet attached to the router and the Stub network
appears in the Router LSA. And the subnet attached to the Transit
network appears in the Network-LSA. In OSPFv3, the Router-LSA and
Network-LSA do not contain the address information any more, so the
Intra-Area-Prefix-LSA is imported.
z Intra-Area-Prefix-LSA contains the intra-area IPv6 Prefix information.
Address Prefix
128 Bits
……
Chapter 3 LSA
4.2 LSDB
4.5 Virtual-Link
z Sameness:
> The election algorithm is invariable, and is
consistent with the OSPFv2 algorithm.
z Difference:
> The interface address is not used as the identifier
any more, but the Router ID is used instead.
4.2 LSDB
4.5 Virtual-Link
LSDB
z LSDB Classification:
> Link LSDB
− Storing the LSA with link local flooding scope.
> Area LSDB
− Storing the LSA with area flooding scope.
> AS LSDB
− Storing the LSA with AS flooding scope.
4.2 LSDB
4.5 Virtual-Link
z Receiving LSA
> LSA flooring scope
> Settings of U bit in the LS type
> New specifications of the Stub area
z Sending LSA
> LSA flooding scope and legal interface
> Whether the LSA has recognized LS type
> Settings of the U bit in the LS type
4.2 LSDB
4.5 Virtual-Link
Routing Calculation
4.2 LSDB
4.5 Virtual-Link
Virtual-Link