跳到主要内容

附录 C - 网关监控(吞吐量)

C.4 消息类型 3:网关吞吐量​

说明

网关收集有关网关自身、其接口及其相邻网关的吞吐量统计。它按固定间隔收集这些数据,并保存下来,等待监控主机通过轮询消息来取走。如果在下一个间隔结束前仍未被取走,这些数据就会丢失,因为新的一份将被放入保存区。

网关吞吐量消息的格式如下:

  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    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |     Collection Time in Min    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |      Number of Interfaces     |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |       Number of Neighbors     |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Number of Host Unreachable   |       ; # of packets dropped because
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       ;   Host was Unreachable
 |  Number of Net Unreachable    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+       ;   Net was Unreachable

 ; Interface Counters

 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Interface Address                                            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Packets Dropped on Input    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |     Count of IP Errors        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Count of Datagrams for Us   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Datagrams to be Forwarded   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Count of Datagrams Looped   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                         (continued)

 Gateway Throughput Message (cont'd.)

 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Count of Bytes Input                                         |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Count of Datagrams From Us   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Count that were Forwarded     |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Count of Local Net Dropped   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Count of Queue full Dropped  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Count of Bytes Output                                        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                 .
                 .
                 .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 |          Counters For Additional Interfaces                   |
 |                                                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

 ; Neighbor counters

 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Neighbor Address                                             |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Count of Routing Updates TO   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |Count of Routing Updates FROM  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                          (continued)

 Gateway Throughput Message (cont'd.)

 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Pkts from US sent to/via Neig |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Pkts forwarded to/via Neighb |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Datagrams Local Net Dropped  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Datagrams Queue full Dropped  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Count of Bytes send to Neighbor                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                 .
                 .
                 .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 |        Counters for Additional Neighbor Gateways              |
 |                                                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

HMP 字段

系统类型(System Type)

Gateway = 4

消息类型(Message Type)

网关吞吐量消息 = 3

端口号(Port Number)

未使用

控制标志(Control Flag)

未使用

口令或返回的序列号(Password or Returned Sequence Number)

未使用

序列号(Sequence Number)

一个 16 位数,每发送一条陷阱消息加一,使 HM 能够对收到的陷阱消息排序并检测漏收的消息。

网关吞吐量字段

网关版本号(Gateway Version Number)

发送该陷阱的网关的软件版本号。

收集时间(分钟)(Collection Time in Min.)

收集吞吐量数据所用的时间段,以分钟为单位。

接口数(Number of Interfaces)

本网关拥有的接口数量。

相邻网关数(Number of Neighbors)

本网关拥有的相邻网关数量。

主机不可达数(Number of Host Unreachable)

因主机不可达而被丢弃的分组数量。

网络不可达数(Number of Net Unreachable)

因网络不可达而被丢弃的分组数量。

接口计数器

吞吐量消息的下一部分包含网关各接口的计数器。每个接口有以下字段:

  • 接口地址(Interface Address):该接口的互联网地址。

  • 输入时丢弃的分组数(Packets Dropped on Input):由于缓冲区不足而在该接口输入时被丢弃的分组数量。

  • IP 错误计数(Count of IP Errors):收到的 IP 首部有误的分组数量。

  • 发往本机的数据报计数(Count of Datagrams for Us):收到的、目的地为本网关的数据报数量。

  • 待转发的数据报(Datagrams to be Forwarded):不是发给本网关、应从另一接口发出的数据报数量。

  • 环回的数据报计数(Count of Datagrams Looped):从该接口收到又从该接口发出的数据报数量。

  • 输入字节计数(Count of Bytes Input):该接口收到的字节数。

  • 本机发出的数据报计数(Count of Datagrams From Us):由本网关发起的数据报数量。

  • 已转发计数(Count that were Forwarded):被转发给另一网关的数据报数量。

  • 本地网络丢弃计数(Count of Local Net Dropped):因本地网络流量控制限制而被丢弃的分组数量。

  • 队列满丢弃计数(Count of Queue full Dropped):因输出队列已满而被丢弃的分组数量。

  • 输出字节计数(Count of Bytes Output):该接口发出的字节数。

相邻网关计数器

吞吐量消息的最后一部分是每个相邻网关的计数。字段如下:

  • 相邻网关地址(Neighbor Address):该相邻网关的互联网地址。

  • 发往的路由更新计数(Count of Routing Updates TO):发送给该相邻网关的路由更新数量。

  • 来自的路由更新计数(Count of Routing Updates FROM):从该相邻网关收到的路由更新数量。

  • 本机发出并送往/经由该相邻网关的分组(Pkts from US sent to/via Neig):本网关发出的、送往或经由该相邻网关的分组数量。

  • 转发送往/经由该相邻网关的分组(Pkts forwarded to/via Neighb):转发的、送往或经由该相邻网关的分组数量。

  • 本地网络丢弃的数据报(Datagrams Local Net Dropped):因本地网络流量控制限制而丢弃的、发往该相邻网关的数据报数量。

  • 队列满丢弃的数据报(Datagrams Queue full Dropped):因输出队列已满而丢弃的、发往该相邻网关的数据报数量。

  • 发往相邻网关的字节计数(Count of Bytes send to Neighbor):发送给该相邻网关的字节数。