OSPF
| : |
Open Shortest Path First |
|---|---|
| ( OSI): | |
| : | |
| : |
1988 . |
| /ID: |
89/IP |
| : |
|
| : | |
| (): | |
| (): |
GNU Zebra, Quagga, Cisco IOS |
OSPF (. Open Shortest Path First) , (link-state technology) (Dijkstras algorithm).
OSPF IETF 1988 . RFC 2328. OSPF (Interior Gateway Protocol IGP). OSPF .
OSPF :
- - ;
- (VLSM);
- (. . );
|
|
[] OSPF
- (interface) . OSPF (link) .
- (link-state advertisement, LSA) , .
- (link state) ; LSA.
- (metric) «» ;
- (autonomous system) .
- (area) , .
- (neighbours) , .
- (adjacency) .
- Hello- (hello protocol) .
- (neighbours database) .
- (link state database, LSDB) . (topological database), .
- (router ID, RID) 32- , .
[]
- hello- , OSPF. , , , , hello-.
- . , hello-, , hello-. OSPF . , , .
- , .
- , , .
- OSPF-, .
- , « » , . .
- .
[] , OSPF
- (Ethernet, Token Ring)
- - (T1, E1, )
- (NBMA) (Frame relay)
[] (DR) (BDR)
. , LSA. , , n, n(n-1)/2 . n-1 LSA , LSA , n² LSA.
LSA (DR) (BDR).
(designated router, DR) LSA . DR. DR , , DR , .
DR , DR. , DR, . BDR.
(backup designated router, BDR). DR, BDR. DR BDR . DR, BDR DR . BDR, .
, DR BDR , DR (BDR) . DR (BDR) , .
[]
- HelloInterval hello- . - , , 10 . 30 .
- RouterDeadInterval «». HelloInterval. , RouterDeadInterval 4 hello-, 40 .
- Wait Timer DR . RouterDeadInterval.
- RxmtInterval (, Database Description Link State Request ). Retransmit interval. 5 .
[]
(internal router) , . .
(area border router, ABR) . . .
(backbone router) . , . , .
(AS boundary router, ASBR) . , .
[] (LSA)
Type 1 LSA Router LSA . LSA . LSA (cost) . .
Type 2 LSA Network LSA . DR . LSA , DR. .
Type 3 LSA Network Summary LSA . . . .
Network Summary LSA . LSA . .
Type 4 LSA ASBR Summary LSA . . ASBR Summary LSA Network Summary LSA , , .
Type 5 LSA AS External LSA . . OSPF (default route) OSPF.
Type 6 LSA Multicast OSPF LSA LSA, OSPF (Not implemented by CISCO).
Type 7 LSA AS External LSA for NSSA NSSA . NSSA . type 7 LSA type 5 LSA.
Type 8 LSA Link LSA link-local () (link). . (link).
[]
, .
:
(area ID). IP-. IP- IP-.
:
[] (backbone area)
( 0.0.0.0) OSPF. , . . , ; .
[] (standard area)
, . , .
[] (stub area)
, . , . ASBR. ABR ASBR.
[] Totally stubby area
Totally stubby area . , .
[] Not-so-stubby area (NSSA)
NSSA LSA LSA type 7. NSSA ASBR.
[] OSPF-
OSPF- IP-. « » IP- OSPF 89.
0 1 2 3
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| version | type | packet length |
+---------------+---------------+-------------------------------+
| router ID |
+---------------------------------------------------------------+
| area ID |
+-------------------------------+-------------------------------+
| checksum | authentication type |
+-------------------------------+-------------------------------+
| authentication |
+---------------------------------------------------------------+
| authentication |
+---------------------------------------------------------------+
- version OSPF. OSPF IPv4 2.
- type OSPF-. RFC 2328 5 .
- packet length , .
- router ID 32- ,
.
[] Hello-
Hello- (Type 1) OSPF-.
0 1 2 3
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| version | type | packet length |
+---------------+---------------+-------------------------------+
| router ID |
+---------------------------------------------------------------+
| area ID |
+-------------------------------+-------------------------------+
| checksum | authentication type |
+-------------------------------+-------------------------------+
| authentication |
+---------------------------------------------------------------+
| authentication |
+---------------------------------------------------------------+
| network mask |
+-------------------------------+---------------+---------------+
| hello interval | options |router priority|
+-------------------------------+---------------+---------------+
| router dead interval |
+---------------------------------------------------------------+
| designated router |
+---------------------------------------------------------------+
| backup designated router |
+---------------------------------------------------------------+
| neighbor ID |
+---------------------------------------------------------------+
| neighbor ID |
+---------------------------------------------------------------+
| ... |
hello-.
- network mask , hello-.
- hello interval hello- . LAN 10 .
- options 8- . .
- router priority 8- , DR (. Designated router) BDR (. Backup designated router).
- router dead interval , .
- designated router (DR) IP- DR.
- backup designated router (BDR) IP- BDR.
- neighbor ID . , hello- , router dead interval.
[] OSPF
[] OSPF 1
[] OSPF 2
[] OSPF 3
[]
, , IP- , . , .[1]
, .
[]
[]
[]
- . II OSPF. Cisco = OSPF Network Design Solutions. 2- . .: «», 2004. . 816. ISBN 1-58705-032-3
| ?: |
| . , . |
| TCP/IP OSI ( TCP UDP) | |
|---|---|