Skip to main content

Appendix A. GGP Message Formats

Note that the GGP protocol is currently undergoing extensive changes to introduce the Exterior Gateway Protocol facility; this is the vehicle needed to permit gateways in other systems to exchange routing information with the gateways described in this document.

Each GGP message consists of an Internet header followed by one of the messages explained below. The values (in decimal) in the Internet header used in a GGP message are as follows.

Version                  4.

IHL Internet header length in 32-bit words.

Type of Service 0.

Total Length Length of Internet header and data in
octets.

ID, Flags,
Fragment Offset 0.

Time to Live Time to live in seconds. This field is
decremented at least once by each
machine that processes the datagram.

Protocol Gateway Protocol = 3.

Header Checksum The 16 bit one's complement of the one's
complement sum of all 16-bit words in
the header. For computing the checksum,
the checksum field should be zero.

Source Address The address of the gateway's interface
from which the message is sent.

Destination Address The address of the gateway to which the
message is sent.

ROUTING UPDATE​

 0                   1
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!Gateway Type   !  unused (0)   !                 ; 2 bytes
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!     Sequence Number           !                 ; 2 bytes
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!  need-update  !  n-distances  !                 ; 2 bytes
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!  distance 1   !   n1-dist     !                 ; 2 bytes
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!   net11       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ; 1, 2 or 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ;   bytes
!   net12       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ; 1, 2 or 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ;   bytes
                                .
                                .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!   net1n1      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  ; n1 nets at
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  ;   dist 1
                                .                      ...
                                .                  ; ndist groups
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                  ;    of nets
!  distance n   !   nn-dist     !                  ; 2 bytes
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!   netn1       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  ; 1, 2 or 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  ;   bytes
!   netn2       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  ; 1, 2 or 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  ;   bytes
                           .
                           .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!   netnnn      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  ; nn nets at
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  ;  dist n

Gateway Type             12 (decimal)

Sequence Number          The  16-bit  sequence  number  used   to
                         identify routing updates.

need-update              An 8-bit field.  This byte is set  to  1
                         if the source gateway requests a routing
                         update from the destination gateway, and
                         set to 0 if not.

n-distances              An   8-bit   field.    The   number   of
                         distance-groups reported in this update.
                         Each  distance-group   consists   of   a
                         distance  value  and  a  number of nets,
                         followed by the actual net numbers which
                         are reachable at that distance.  Not all
                         distances need be reported.

distance 1               hop count (or  other  distance  measure)
                         which applies to this distance-group.

n1-dist                  number of nets  which  are  reported  in
                         this distance-group.

net11                    1, 2, or 3 bytes for the  first  net  at
                         distance "distance 1".

net12                    second net

...

net1n1                   etc.

ACKNOWLEDGMENT or NEGATIVE ACKNOWLEDGMENT​

 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Gateway Type | Unused | Sequence number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Gateway Type Acknowledgments are type 2. Negative
acknowledgments are type 10.

Sequence Number The 16-bit sequence number that the
gateway is acknowledging or negatively
acknowledging.

GGP ECHO and ECHO REPLY​

 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Gateway Type | Unused |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Gateway Type 8 for echo message; 0 for echo reply.

Source Address In an echo message, this is the address
of the gateway on the same network as
the neighbor to which it is sending the
echo message. In an echo reply message,
the source and destination addresses are
simply reversed, and the remainder is
returned unchanged.

NETWORK INTERFACE STATUS​

 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
! Gateway Type ! unused !
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Gateway Type 9

Source Address
Destination Address The address of the gateway's network
interface. The gateway can send Net
Interface Status messages to itself to
determine if it is able to send and
receive traffic on its network
interface.