Sie sind auf Seite 1von 34

OSPFv3 Principle

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved


OSPF ( Open Shortest Path First )
Version 2 standard RFC1247 was first
released in 1991. After many times
revised, in 1998, RFC2328 finally set
the current standard. RFC2740 set the
standard for OSPFv3 which modified
many aspects of OSPFv2 to adapt to
IPv6 network environment.

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 2


After finishing this course, you will be able to:
 Understand similarities and differences
between OSPFv3 and OSPFv2
 Grasp OSPFv3 Configuration and
Implementation

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 3


Chapter 1 OSPFv2 vs OSPFv3

Chapter 2 OSPFv3 Configuration


and Implementation

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 4


OSPFv3 over Link

 OSPFv2 runs over sub-net

 OSPFv3 runs over link

RTA RTA
10.1.1.1/24 5f00:1111::1/32

RTB RTB
10.1.1.2/24 5f00:2222::1/32
RTC RTC
10.1.1.3/24 5f00:3333::1/32

Running over sub-net Running over link

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 5


OSPFv3 Remove Addressing Semantics

 OSPFv2 is closely pertinent to IP protocol

 OSPFv3 is independent of network protocols

 OSPFv3’s Router ID, Area ID and LSA’s Link State ID remain at the

IPv4 size of 32-bit, but they can no longer be assigned as IPv6

addresses.

 OSPFv3 uses link-local address as the next-hop of route except

Virtual-Links.

 Independent of IP protocol so as to support various protocols

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6


OSPFv3 Support Multiple Instances per Link

RTA RTA RTB


RTB

RTC OSPF OSPF


100 300
RTD
OSPF OSPF
200 400

Supported by using authentication Not supported in OSPFv2,


field in OSPFv2, supported by using multiple
supported by using multiple instances in OSPFv3
instances in OSPFv3

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7


OSPFv3 Packet Encapsulation

IPv6
OSPF Packet
Next Header (89)

OSPF Packet
OSPF Packet Types
Header

Version
Type Packet length
#
Router ID
Version # Type Packet length
Area ID
Router ID
Checksum AuType
Area ID
Authentication
Authentication Checksum Instance ID 0

OSPFv2 Packet Header 24Bytes OSPFv3 Packet Header 16Bytes

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 8


Packet Types
 Hello

 Neighbor discovery, election of DR and BDR, maintenance


of neighbor relationships
 DD (Database Description)

 Describe Link State Database


 LSR (Link State Request)

 Request for LSAs from neighbors


 LSU (Link State Update)

 Update LSA
 LSAck (Link State Acknowledgment)

 Acknowledge the received LSU

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 9


OSPFv3 LSA and Flooding Scope

OSPFv2 OSPFv3
Router-LSA Router-LSA
Network-LSA Network-LSA
Network Summary-LSA Inter-Area-Prefix-LSA
ASBR-Summary-LSA Inter-Area-Router-LSA
AS-external-LSA AS-External-LSA
Type-7-LSA Type-7-LSA
Link-LSA
Intra-Area-Prefix-LSA

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 10


Chapter 1 OSPFv2 vs OSPFv3

Chapter 2 OSPFv3 Configuration


and Implementation

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 11


Configuring OSPFv3

Area 0 2.2.2.2
4.4.4.4
RTD 1.1.1.1

RTB
ASBR 3.3.3.3
IS-IS RTA

3001:1:1::/48 ABR RTC

5.5.5.5 RTE Area 1

RTF RTG

6.6.6.6 7.7.7.7

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 12


Configuring OSPFv3--RTD

[RTD]ipv6
[RTD]ospfv3
[RTD-ospfv3-1]router-id 4.4.4.4
[RTD-ospfv3-1]import-route isis 1
[RTD]interface serial 0
[RTD-Serial0]ipv6 address auto link-local
[RTD-Serial0]ospfv3 1 area 0
[RTD]interface serial 1
[RTD-Serial1]ipv6 address auto link-local
[RTD-Serial1]ospfv3 1 area 0
[RTD]interface loopback 0
[RTD-LoopBack0]ipv6 address 3000:4:4::4 128
[RTD-LoopBack0]ospfv3 1 area 0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13


Configuring OSPFv3--RTE

[RTE]ipv6
[RTE]ospfv3
[RTE-ospfv3-1]router-id 5.5.5.5
[RTE]interface serial 0
[RTE-Serial0]ipv6 address auto link-local
[RTE-Serial0]ospfv3 1 area 0
[RTE]interface ethernet 0
[RTE-Ethernet]ipv6 address auto link-local
[RTE-Ethernet]ospfv3 1 area 1
[RTE]interface loopback 0
[RTE-LoopBack0]ipv6 address 3000:5:5::5 128
[RTE-LoopBack0]ospfv3 1 area 1

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 14


OSPFv3 LSA Format

LSA Header LSA Types

LS Age LS Type LS Age Options LS Type

Link State ID Link State ID

Advertising Router Advertising Router

LS Sequence Number LS Sequence Number

LS CheckSum Length LS CheckSum Length

OSPFv3 LSA Header 20Bytes OSPFv2 LSA Header 20Bytes

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 15


OSPFv3 LSA Type
Flooding
Advertising Router Link-State ID
Scope

Router-LSA Any router Area Router’s Router ID

Network-LSA DR Area DR’s Router ID

Inter-Area-Prefix-LSA ABR Area Any ID

Inter-Area-Router-LSA ABR Area Any ID

AS-External-LSA ASBR AS Any ID

Router’s interface ID
Link-LSA Any router Link local
on the link

Intra-Area-Prefix-LSA Any router Area Any ID

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 16


OSPFv3 LSDB
[RTE]display ospfv3 lsdb
OSPFv3 Router with ID (5.5.5.5) (Process 1)
Link-LSA (Interface Ethernet0/0/0)
Link State ID Origin Router Age Seq# CkSum Prefix
0.0.2.2 5.5.5.5 1411 0x80000023 0x253a 0
0.0.2.2 6.6.6.6 1217 0x80000023 0x8bc9 0
0.0.2.2 7.7.7.7 1232 0x80000023 0x1540 0

Link-LSA (Interface Serial0/0/0)


Link State ID Origin Router Age Seq# CkSum Prefix
0.0.2.134 4.4.4.4 1296 0x80000023 0xfede 0
0.0.2.134 5.5.5.5 1276 0x80000023 0xcc0e 0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 17


OSPFv3 LSDB(Cont.)
Router-LSA (Area 0.0.0.0)
Link State ID Origin Router Age Seq# CkSum Link
0.0.0.0 1.1.1.1 0662 0x80000029 0xb3d6 2
0.0.0.0 2.2.2.2 1211 0x80000027 0x518b 1
0.0.0.0 3.3.3.3 1160 0x80000025 0x37a3 1
0.0.0.0 4.4.4.4 1487 0x80000028 0xdb7e 2
0.0.0.0 5.5.5.5 1246 0x80000025 0x0b9b 1
Network-LSA (Area 0.0.0.0)
Link State ID Origin Router Age Seq# CkSum
0.0.2.2 3.3.3.3 1160 0x80000024 0x8a4f
Intra-Area-Prefix-LSA (Area 0.0.0.0)
Link State ID Origin Router Age Seq# CkSum Prefix Reference
0.0.0.1 1.1.1.1 0656 0x80000048 0x9937 3 Router-LSA
0.0.0.1 3.3.3.3 0381 0x80000025 0x2d80 3 Network-LSA
0.0.0.1 4.4.4.4 1487 0x80000001 0xf02e 1 Router-LSA

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 18


OSPFv3 LSDB(Cont.)
Router-LSA (Area 0.0.0.1)
Link State ID Origin Router Age Seq# CkSum Link
0.0.0.0 5.5.5.5 1226 0x80000028 0x9c2a 1
0.0.0.0 6.6.6.6 1207 0x80000025 0x8145 1
0.0.0.0 7.7.7.7 1173 0x80000026 0x6160 1
Network-LSA (Area 0.0.0.1)
Link State ID Origin Router Age Seq# CkSum
0.0.2.2 5.5.5.5 1226 0x80000024 0xd8c8
Inter-Area-Prefix-LSA (Area 0.0.0.1)
Link State ID Origin Router Age Seq# CkSum
0.0.0.2 5.5.5.5 1186 0x80000023 0x1556
0.0.0.3 5.5.5.5 0798 0x80000023 0x7cbd
0.0.0.4 5.5.5.5 0778 0x80000023 0x90a6
0.0.0.5 5.5.5.5 0633 0x80000023 0x46b4
0.0.0.6 5.5.5.5 0512 0x80000023 0x0b5a

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 19


OSPFv3 LSDB(Cont.)

0.0.0.7 5.5.5.5 0409 0x80000023 0x1f43


0.0.0.8 5.5.5.5 1481 0x80000001 0x1224
Inter-Area-Router-LSA (Area 0.0.0.1)
Link State ID Origin Router Age Seq# CkSum
0.0.0.1 5.5.5.5 1241 0x80000023 0x338c
AS-External-LSA
Link State ID Origin Router Age Seq# CkSum
0.0.0.1 4.4.4.4 1301 0x80000023 0xde42 E2

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 20


Full Adajcency

[RTE]display ospfv3 peer


OSPFv3 Process (1)
OSPFv3 Area (0.0.0.0)
Neighbor ID Pri State Dead Time Interface Instance ID
4.4.4.4 1 Full/ - 00:00:34 S0/0/0 0
OSPFv3 Area (0.0.0.1)
Neighbor ID Pri State Dead Time Interface Instance ID
6.6.6.6 1 Full/DROther 00:00:31 Eth0/0/0 0
7.7.7.7 1 Full/Backup 00:00:35 Eth0/0/0 0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 21


Router-LSA
[RTA]display ospfv3 lsdb router originate-router 1.1.1.1
OSPFv3 Router with ID (1.1.1.1) (Process 1)
Router-LSA (Area 0.0.0.0)
LS Age: 639
LS Type: Router-LSA 2.2.2.2
Link State ID: 0.0.0.0
Originating Router: 1.1.1.1 4.4.4.4 1.1.1.1
LS Seq Number: 0x80000028 RTB
Retransmit Count: 0
3.3.3.3
Checksum: 0xB5D5 RTD RTA
Length: 56
Flags: 0x00 (-|-|-|-)
Options: 0x000013 (-|R|-|-|E|V6)
Area 0 RTC
Link connected to: another Router (point-to-point)
Metric: 1562
Neighbor’s Interface ID
Interface ID: 0x386
Neighbor Interface ID: 0x386
Neighbor Router ID: 4.4.4.4 Neighbor’s Router ID
Link connected to: a Transit Network
Metric: 1 DR Interface ID
Interface ID: 0x202
Neighbor Interface ID: 0x202 DR Router ID
Neighbor Router ID: 3.3.3.3

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 22


Network-LSA
[RTA]display ospfv3 lsdb network
OSPFv3 Router with ID (1.1.1.1) (Process 1)
Network-LSA (Area 0.0.0.0)
LS Age: 1344
LS Type: Network-LSA DR Interface ID
Link State ID: 0.0.2.2
Originating Router: 3.3.3.3
DR Router ID
LS Seq Number: 0x80000023
Retransmit Count: 0
Checksum: 0x8C4E
Length: 36 RTC Router ID
Options: 0x000013 (-|R|-|-|E|V6)
Attached Router: 3.3.3.3 2.2.2.2
Attached Router: 1.1.1.1
Attached Router: 2.2.2.2 4.4.4.4 1.1.1.1
RTB
RTB Router ID 3.3.3.3
RTD RTA
RTA Router ID
Area 0 RTC

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 23


Link-LSA
[RTA]display ospfv3 lsdb link originator 1.1.1.1
OSPFv3 Router with ID (1.1.1.1) (Process 1)
Link-LSA (Interface Serial0/0/2)
LS Age: 66
LS Type: Link-LSA
Link State ID: 0.0.3.134
Originating Router: 1.1.1.1
LS Seq Number: 0x80000025
Retransmit Count: 0
Checksum: 0xBD41 S0/0/2 3001:1:1::1/48
3001:2:2::1/48
Length: 68
Priority: 1 2.2.2.2
Options: 0x000013 (-|R|-|-|E|V6)
4.4.4.4 1.1.1.1
Link-Local Address: FE80::201:1A03:3
RTB
Number of Prefixes: 2
3.3.3.3
Prefix: 3001:1:1::/48 RTD RTA
Prefix Options: 0 (-|-|-|-)
Prefix: 3001:2:2::/48 Area 0 RTC
Prefix Options: 0 (-|-|-|-)

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 24


Intra-Area-Prefix-LSA (Router)

[RTA]display ospfv3 lsdb intra-prefix originate-router 1.1.1.1


OSPFv3 Router with ID (1.1.1.1) (Process 1)
Intra-Area-Prefix-LSA (Area 0.0.0.0)
LS Age: 422
LS Type: Intra-Area-Prefix-LSA
Link State ID: 0.0.0.1 S0/0/2 3001:1:1::1/48
3001:2:2::1/48
Originating Router: 1.1.1.1 LoopBack10 3001:3:3::1/128
LS Seq Number: 0x80000042
2.2.2.2
Retransmit Count: 0
4.4.4.4 1.1.1.1
Checksum: 0xA531
RTB
Length: 76 3.3.3.3
RTD RTA
Number of Prefixes: 3

Area 0 RTC

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 25


Intra-Area-Prefix-LSA (Router) (Cont.)
Referenced LS Type: 0x2001 Referencing Router LSA
Referenced Link State ID: 0.0.0.0
Router LSA的LS ID
Referenced Originating Router: 1.1.1.1
Prefix: 3001:1:1::/48 Router ID

Prefix Options: 0 (-|-|-|-) PPP link IPv6 prefix


Metric: 1562
S0/0/2 3001:1:1::1/48
3001:2:2::1/48
Prefix: 3001:2:2::/48 LoopBack10 3001:3:3::1/128

Prefix Options: 0 (-|-|-|-)


2.2.2.2
Metric: 1562
4.4.4.4 1.1.1.1
Directly connected RTB
Prefix: 3001:3:3::1/128 router’s prefix 3.3.3.3
RTD RTA
Prefix Options: 2 (-|-|LA|-)
Metric: 0 Area 0 RTC

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 26


Intra-Area-Prefix-LSA (Transit)

[RTA]display ospfv3 lsdb intra-prefix originate-router 3.3.3.3


OSPFv3 Router with ID (1.1.1.1) (Process 1)
Intra-Area-Prefix-LSA (Area 0.0.0.0)
Ethernet 0/0/0:
LS Age: 118
2000:2:2::2/48
LS Type: Intra-Area-Prefix-LSA
Link State ID: 0.0.0.1 Area 0 2.2.2.2
Originating Router: 3.3.3.3
4.4.4.4 1.1.1.1
LS Seq Number: 0x80000023 RTB
Retransmit Count: 0 3.3.3.3
RTD RTA
Checksum: 0x317E
Length: 68 RTC
Number of Prefixes: 3
Ethernet 0/0/0: Ethernet 0/0/0:
2000:1:1::1/48 2000:3:3::3/48

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 27


Intra-Area-Prefix-LSA (Transit) ( Cont.)
Referenced LS Type: 0x2002 Referencing Network LSA
Referenced Link State ID: 0.0.2.2
DR的Interface ID
Referenced Originating Router: 3.3.3.3

DR Router ID Ethernet 0/0/0:


Prefix: 2000:1:1::/48 2000:2:2::2/48

Prefix Options: 0 (-|-|-|-)


Area 0 2.2.2.2
Metric: 0
Link LSA’s IPv6
Prefix: 2000:2:2::/48 prefix 4.4.4.4 1.1.1.1
RTB
Prefix Options: 0 (-|-|-|-)
3.3.3.3
Metric: 0 RTD RTA

Prefix: 2000:3:3::/48
RTC
Prefix Options: 0 (-|-|-|-)
Metric: 0 Ethernet 0/0/0:
Ethernet 0/0/0:
2000:1:1::1/48
2000:3:3::3/48

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 28


Inter-Area-Prefix-LSA
[RTE]display ospfv3 lsdb inter-prefix originate-router 5.5.5.5
OSPFv3 Router with ID (5.5.5.5) (Process 1)
Inter-Area-Prefix-LSA (Area 0.0.0.1)
LS Age: 101
LoopBack10 3000:4:4::4/128
LS Type: Inter-Area-Prefix-LSA
Link State ID: 0.0.0.8
4.4.4.4
Originating Router: 5.5.5.5 Area 0
RTD
LS Seq Number: 0x80000001
Retransmit Count: 0
Checksum: 0x1224
RTE 5.5.5.5 Area 1
Length: 44
Metric: 1562 RTF RTG
Prefix: 3000:4:4::4/128
6.6.6.6 7.7.7.7
Prefix Options: 0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 29


Inter-Area-Router-LSA
[RTG]display ospfv3 lsdb inter-router
OSPFv3 Router with ID (7.7.7.7) (Process 1)
Inter-Area-Router-LSA (Area 0.0.0.1)
LS Age: 355
[RTD-ospfv3-1]import-route isis 1
LS Type: Inter-Area-Router-LSA
Link State ID: 0.0.0.1
Area 0
Import 3001:1::/48
Originating Router: 5.5.5.5
RTD 4.4.4.4
LS Seq Number: 0x80000023
Retransmit Count: 0
Checksum: 0x338C
RTE 5.5.5.5 Area 1
Length: 32
Options: 0x000013 (-|R|-|-|E|V6) RTF RTG
Metric: 1562 ASBR Router ID
Destination Router ID: 4.4.4.4 6.6.6.6 7.7.7.7

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 30


AS-External-LSA
[RTG]display ospfv3 lsdb external
OSPFv3 Router with ID (7.7.7.7) (Process 1)
AS-External-LSA
[RTD-ospfv3-1]import-route isis 1
LS Age: 490
LS Type: AS-External-LSA
Link State ID: 0.0.0.1 Area 0
Import ISIS external route
Originating Router: 4.4.4.4
3001:1::/48
LS Seq Number: 0x80000023 RTD 4.4.4.4
Retransmit Count: 0
Checksum: 0xDE42
Length: 44
RTE 5.5.5.5 Area 1
Metric Type: 2 (Larger than any link state path)
Metric: 1 RTF RTG
Prefix: 3001:1::/48
External route
Prefix Options: 0 (-|-|-|-) Prefix 6.6.6.6 7.7.7.7

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 31


Route Calculation

 SPF Calculation, topology generation and route calculation are


separated:
 Step1: calculate Router-LSA, Network-LSA to produce
topology
 Step2: calculate Intra-Area-Prefix-LSA to produce routes

 Intra-Area route calculation, Inter-Area route calculation, As


external route calculation and route recalculation proceed
along the same lines as those of OSPFv2.

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 32


Summary

 How to authenticate in OSPFv3?

 Which LSAs are responsible for


advertising prefix information?

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 33


Thank You
www.huawei.com

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved

Das könnte Ihnen auch gefallen