Skip to main content

Appendix C - Gateway Monitoring (Host Traffic Matrix and Routing)

C.5 Message Type 4: Gateway Host Traffic Matrix​

Description

The Host Traffic Matrix (HTM) message contains information about the traffic that flows through the gateway. Each entry consists of the number of datagrams sent and received for a particular source/destination pair.

A Gateway HTM message has the following format:

  0                   1         1         2                   3 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 Version Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Overflow counter |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Collection Time in Min |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Number of HTM entries |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Protocol | (unused) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Counter for SRC -> DST datagrams |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Counter for DST -> SRC datagrams |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
.
.
.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| Additional HTM Reports |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

HMP FIELDS

System Type

Gateway = 4

Message Type

Gateway HTM Message = 4

Port Number

Unused

Control Flag

Unused

Password or Returned Sequence Number

Unused

Sequence Number

A 16 bit number incremented each time a trap message is sent so that the HM can order the received trap messages and detect missed messages.

GATEWAY HTM FIELDS

Gateway Version Number

The software version number of this gateway.

Overflow counter

The number of HTM entries lost because the HTM buffer was full.

Collection Time in Min

The time period in minutes in which the HTM data is being collected.

Number of HTM entries

The number of HTM reports included in this message.

HTM ENTRIES

The remainder of the HTM message consists of the actual HTM entries. Each entry consists of the following fields:

  • IP Source Address: The source Internet address of the datagrams being counted.

  • IP Destination Address: The destination Internet address of the datagrams being counted.

  • IP Protocol: The protocol number of the datagrams.

  • Counter for SRC -> DST datagrams: The number of datagrams sent in the Source to Destination address direction.

  • Counter for DST -> SRC datagrams: The number of datagrams sent in the Destination to Source address direction.

C.6 Message Type 6: Gateway Routing​

Description

The Routing message contains information about routes the gateway has to the networks that make up the Internet. It includes information about its interfaces and its neighbor gateways.

A Gateway Routing message has the following format:

  0                   1         1         2                   3 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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |         Version Number        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   # of Ints.  |
 +-+-+-+-+-+-+-+-+
 | UP/DN Flags   |                       ;Bit flags for Up or Down
 +-+-+-+-+-+-+-+-+                       ; 0 = Dwn,  1 = Up
         .                               ; MSB is interface 1
         .                               ; (as many bytes as necessary)
         .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |    Interface 1 Address                                        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                 .
                 .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |    Interface n Address                                        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | # Neighbors   |
 +-+-+-+-+-+-+-+-+
 | UP/DN Flags   |                       ;Bit flags for Up or Down
 +-+-+-+-+-+-+-+-+                       ; 0 = Dwn,  1 = Up
         .                               ; MSB is neighbor 1
         .                               ; (as many bytes as necessary)
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |    Neighbor 1 Address                                         |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                 .
                 .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |    Neighbor n Address                                         |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                     (continued)

 Gateway Routing Message (cont'd.)

 +-+-+-+-+-+-+-+-+
 | # of Networks |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Network 1 #   |               |               |  ; 1, 2, or 3 bytes
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Distance    |
 +-+-+-+-+-+-+-+-+
 |   Neighbor #  |
 +-+-+-+-+-+-+-+-+
                 .
                 .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Network n #   |               |               |  ; 1, 2, or 3 bytes
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Distance    |
 +-+-+-+-+-+-+-+-+
 |   Neighbor #  |
 +-+-+-+-+-+-+-+-+

HMP FIELDS

System Type

Gateway = 4

Message Type

Gateway Trap Message = 6

Port Number

Unused

Control Flag

Unused

Password or Returned Sequence Number

Unused

Sequence Number

A 16 bit number incremented each time a trap message is sent so that the HM can order the received trap messages and detect missed messages.

GATEWAY ROUTING FIELDS

Gateway Version #

The software version number of the gateway sending the trap.

INTERFACE FIELDS

The first part of the routing message contains information about the gateway's interfaces. There is data for each interface. The fields are:

  • # of Interfaces: The number of interfaces that this gateway has.

  • UP/DN Flags: Bit flags to indicate if the Interface is up or down.

  • Interface Address: The Internet address of the Interface.

NEIGHBOR FIELDS

The next part of the routing message contains information about this gateway's neighbor gateways. The fields are:

  • # of Neighbors: The number of gateways that are neighbor gateways to this gateway.

  • UP/DN Flags: Bit flags to indicate if the neighbor is up or down.

  • Neighbor Address: The Internet address of the neighbor gateway.

NETWORK ROUTING FIELDS

The last part of the routing message contains information about this gateway's routes to other networks. This includes the distance to each network and which neighbor gateway is the route to the network. The fields are:

  • # of Networks: The number of networks that are reachable from this gateway.

  • Network #: The network number of this network. This is the network part of the Internet address and may be one, two, or three bytes in length depending on whether it is a Class A, B, or C address.

  • Distance: The distance in hops to this network. Zero hops means that the network is directly connected to this gateway. A negative number means that the network is currently unreachable.

  • Neighbor #: The neighbor gateway that is the next hop to reach this network. This is an index into the previous information on this gateway's neighbor gateways. This field is only valid if the Distance is greater than zero.