Anhang A: EGP-Nachrichtenformate
Die Formate der verschiedenen EGP-Nachrichten sind in diesem Abschnitt beschrieben. Alle EGP-Nachrichten enthalten einen zehn Oktette langen Header aus sechs Feldern, dem je nach Nachrichtentyp weitere Felder folgen können. Das Format des Headers ist unten zusammen mit einer Beschreibung seiner Felder dargestellt.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| EGP Version # | Type | Code | Status |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Autonomous System # |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence # |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
EGP Version # assigned number identifying the EGP version
(currently 2)
Type identifies the message type
Code identifies the message code (subtype)
Status contains message-dependent status information
Checksum The EGP checksum is the 16-bit one's complement
of the one's complement sum of the EGP message
starting with the EGP version number field. When
computing the checksum the checksum field itself
should be zero.
Autonomous System # assigned number identifying the particular
autonomous system
Sequence # send state variable (commands) or receive state
variable (responses and indications)
Es folgt eine Beschreibung jedes Nachrichtenformats. Beachten Sie, dass die obige Beschreibung für alle Formate gilt und nicht wiederholt wird.
A.1. Nachrichten zur Nachbar-Akquisition
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| EGP Version # | Type | Code | Status |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Autonomous System # |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence # | Hello Interval |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Poll Interval |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Hinweis: Die Felder Hello Interval und Poll Interval sind nur in Request- und Confirm-Nachrichten vorhanden.
Type 3
Code 0 Request command
1 Confirm response
2 Refuse response
3 Cease command
4 Cease-ack response
Status (see below) 0 unspecified
1 active mode
2 passive mode
3 insufficient resources
4 administratively prohibited
5 going down
6 parameter problem
7 protocol violation
Hello Interval minimum Hello command polling interval (seconds)
Poll Interval minumum Poll command polling interval (seconds)
Es folgt eine Zusammenfassung der vergebenen Status-Codes zusammen mit einer Liste von Szenarien, in denen sie verwendet werden könnten.
Code Status Scenarios
-------------------------------------------------------------------
0 unspecified when nothing else fits
1 active mode Request/Confirm only
2 passive mode Request/Confirm only
3 insufficient resources 1. out of table space
2. out of system resources
4 administratively 1. unknown Autonomous System
prohibited 2. use another gateway
5 going down 1. operator initiated Stop
2. abort timeout
6 parameter problem 1. nonsense polling parameters
2. unable to assume compatible mode
7 protocol violation 1. Invalid command or response
received in this state
A.2. Nachrichten zur Nachbar-Erreichbarkeit
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| EGP Version # | Type | Code | Status |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Autonomous System # |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence # |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type 5
Code 0 Hello command
1 I-H-U response
Status 0 indeterminate
1 Up state
2 Down state
A.3. Poll-Befehl
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| EGP Version # | Type | Code | Status |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Autonomous System # |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence # | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Source Network |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Type 2
Code 0
Status 0 indeterminate
1 Up state
2 Down state
IP Source Network IP network number of the network about which
reachability information is being requested
(coded as 1, 2 or 3 octets, left justified with
trailing zeros)