Packet Exported in V5 Format

Header of a NetStream Packet Exported in V5 Format

Figure 1 shows the format of the header of a NetStream packet exported in V5 format. This header corresponds to the Header field in Figure 1. Table 1 describes the fields in the header.
Figure 1 Header of a NetStream packet exported in V5 format

Table 1 Description of fields in the header of the NetStream packet exported in V5 format

Field

Description

version

Version number of the format in which NetStream packets are exported. Value 0x05 indicates the V5 format.

count

Number of stream records in the existing NetStream packet. The value ranges from 1 to 30.

system up time

Period (in milliseconds) from the time the system is booted to the time a NetStream packet was generated.

unix_secs

Integer number of seconds elapsed from 00:00:00, January 1st, 1970 to the time a NetStream packet was generated.

unix_nsecs

Integer number of nanoseconds equal to the time the packet was generated minus unix_secs.

flow sequence

Sequence number of an exported stream record:

In the first NetStream packet, the value is 0, and the count of streams in the NetStream packet is c1 (count = c1).

In the second NetStream packet, the value is c1, and the count of streams in the NetStream packet is c2 (count = c2).

In the third NetStream packet, the value is c2 + c1.

...

In the n - 1 NetStream packet, the value is fs(n - 1), and the count of streams in the NetStream packet is c(n - 1).

In the Nth NetStream packet, the value is fs(n - 1) + c(n - 1).

You can check whether a NetStream packet is dropped based on the flow sequence value.

When the stream sequence number overflows, NetStream packets transmission continues.

engine type

Type of the flow switching engine. The value is the device type.

engine id

Slot number of the switching engine. The value is the slot number of the NetStream board.

reserved

Reserved field, which is all 0s.

Information Carried in the NetStream Packet Exported in V5 Format

Information carried in an NetStream packet exported in V5 format is marked dark as shown in Figure 2.

Figure 2 V5 format information

UDP packets of version 5 carrying NetStream outbound statistics and inbound statistics are generated independently.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >