How to view port traffic on MA5616

Hello, everyone!

Today, I would like to share with you how to view port traffic on MA5616.

 

On existing ONUs, only port packet statistics can be queried, but port traffic cannot be directly queried. The port traffic can be obtained indirectly by counting the number of frames received or sent by the port in a period of time. The method is as follows.

  1. To query the port frame statistics at two time points, use the following commands.Note: Before this, use the config command to enter global configuration mode.

    GPON upstream port: Use the interface gponnni command to enter the GPONNNI mode, and then use the display gpon-port statistics command.

    EPON upstream port: Use the interface eponnni command to enter the EPONNNI mode, and then use the display epon-port statistics command.

    Other ports: use the display interface [ interface-type [ interface-number ] ] command.

  2. The number of frames counted at the second time point is subtracted from the number of frames counted at the first time point to obtain the number of frames received or sent by the port from the first time point to the second time point.
  3. Traffic = number of frames * number of frame byteshuawei(config)#interface gponnni

    { frameid/slotid/portid<S><Length 5-15> }:0/0/0

    Command:

    interface gponnni 0/0/0

    huawei(config-if-gponnni-0/0/0)#display gpon-port statistic

    ————————————————————————–

    Received frames                                  : 786687061

    Received bytes                                   : 1189470836232

    Received unicast frames                          : 348580716

    Received multicast frames                        : 50292364

    Received broadcast frames                        : 387823981

    huawei(config-if-gponnni-0/0/0)#display gpon-port statistic

    ————————————————————————–

    Received frames                                  : 786601327

    Received bytes                                   : 1169676173249

    Received unicast frames                          : 347891758

    Received multicast frames                        : 49475853

    Received broadcast frames                        : 369233716

For example, the frame statistics were queried twice within 30s, 786687061-786601327=85734 frames.

Since the frame bytes in the current network are not fixed, and each frame is calculated as 1189470836232/786687061=1512 and 1169676173249/786601327=14871512 and 1487 ≈ 1500 

bytes, it can be calculated that the traffic of this port within 30s is about 85734*1500*8=1028808000bit, that is, 981Mbit, that is, 122.6Mbyte.

 

It is recommended to improve the intuitiveness of the results calculated directly by the system, it mean strongly recommended display directly in intuitive units like xxM bit/s!