Got it

Monitoring gpon traffic OLT with SNMP

Created: Nov 20, 2020 21:40:18Latest reply: Nov 20, 2020 22:31:54 1003 4 1 0 0
  HiCoins as reward: 2 (problem unresolved)

Hello, team!


I have an MA5608T and I'm trying to monitor the traffic in GPON ports using SNMP.


I'm using the OID ifInOctets and the SNMP walk return this:


1.3.6.1.2.1.2.2.1.10.3221242112 = "4294967295" [ASN_COUNTER]


How can I convert this result into MB/s? I supposed that this result is bits per second, but my traffic is different this result converted, 


Thank you!


Featured Answers

Recommended answer

Herediano
Created Nov 20, 2020 22:31:54

Hello, friend!


To determine link utilization you would have to take two measurements (the increase in received packets). By dividing that by the time difference delta_time you get the average number of packets/sec in the measured time interval. Multiply that by 8 to convert octets into bits. If you divide that result by the ifSpeed (which is in bits/sec) you get a fraction representing the interface utilisation. Finally multiplying it by 100 would give you a percentage.


So if ifInOctet1 and ifInOctet2 are two consecutive measurements time_delta apart in time, the calculation would be: 


Utilization = ((ifInOctet2 - ifInOctet1) * 8 / delta_time) / ifSpeed * 100

ifInOctet2 = 4294967295

ifInOctet1 = 3294967295

delta_time = 300s

ifSpeed = 1 Gb = 1073741824 b

Utilization = 2.48Gbps 


Hope it helps!

View more
  • x
  • convention:

grotondo
grotondo Created Nov 23, 2020 14:13:04 (0) (0)
I'd like monitor like a Switch, that I've a unique OID to each interface. The OLT have this?  
Chenxintao
Chenxintao Reply grotondo  Created Dec 20, 2021 09:28:34 (0) (0)
Hi, my friend!
Yes. However, the device OID needs to be obtained through special commands. Due to sensitive device information, I cannot perform operations for you online. You are advised to contact local Huawei engineers to obtain related solutions.
Thank you.  
All Answers
Hello

Thanks for contacting the Huawei Community,

We are checking your question and will provide an answer to you shortly..
View more
  • x
  • convention:

Hello, friend!


To determine link utilization you would have to take two measurements (the increase in received packets). By dividing that by the time difference delta_time you get the average number of packets/sec in the measured time interval. Multiply that by 8 to convert octets into bits. If you divide that result by the ifSpeed (which is in bits/sec) you get a fraction representing the interface utilisation. Finally multiplying it by 100 would give you a percentage.


So if ifInOctet1 and ifInOctet2 are two consecutive measurements time_delta apart in time, the calculation would be: 


Utilization = ((ifInOctet2 - ifInOctet1) * 8 / delta_time) / ifSpeed * 100

ifInOctet2 = 4294967295

ifInOctet1 = 3294967295

delta_time = 300s

ifSpeed = 1 Gb = 1073741824 b

Utilization = 2.48Gbps 


Hope it helps!

View more
  • x
  • convention:

grotondo
grotondo Created Nov 23, 2020 14:13:04 (0) (0)
I'd like monitor like a Switch, that I've a unique OID to each interface. The OLT have this?  
Chenxintao
Chenxintao Reply grotondo  Created Dec 20, 2021 09:28:34 (0) (0)
Hi, my friend!
Yes. However, the device OID needs to be obtained through special commands. Due to sensitive device information, I cannot perform operations for you online. You are advised to contact local Huawei engineers to obtain related solutions.
Thank you.  

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.