hwOntType
1.3.6.1.4.1.2011.6.3.23.1.3
ONT type.
data structure: ONT IP + ONT type
-------------------------------------------------------------------
| ONT NUM | ONT IP | ONT type | | ONT IP | ONT type |
| (2B) | (4B) | (16B) | ...... | (4B) | (16B) |
-------------------------------------------------------------------
Because of the restrictions on the SNMP packet, the packet of up to 8 KB can be transmitted.
When the size of the packet to be reported exceeds 8 KB, the packet must be compressed.
The compress format of the packet is shown in the following figure.
-----------------------------------------------------------------------
| DATA-LENGTH | FLAG | TLV-NUM | TYPE | LEN | CRC | |
------------------------------------------------------------ |
| |
| |
| |
-----------------------------------------------------------------------
In the compressed packet:
DATA-LENGTH occupies four bytes to store the whole length of the file, including the header structure.
FLAG occupies two bytes to store the flag, which indicates the format of the file contents.
In this compressed packet, the flag indicates that the format of the file contents is compressed.
0xFEFE indicates compress and 0 indicates non-compress.
TLV-NUM indicates the number of TLVs that the file carries. In this compressed packet, TLV-NUM is 1,
indicating the CRC value of the compressed content. The following continuous bytes TYPE, LEN, and CRC
are data in the TLV format. Each of TYPE, LEN, and CRC occupies two bytes. In this compressed packet,
TYPE, LEN, and CRC record the CRC value of the compressed content. TYPE indicates the CRC type.
LEN indicates the number of bytes that the CRC occupies and the actual value is 2.
CRC stores the CRC value of the compressed content.
The actual returned content is compressed in the .zip format and stored in the final field of compressed
content.