Wireshark mailing list archives

Re: LLDP encoding


From: Anders Broman <anders.broman () ericsson com>
Date: Tue, 13 Jun 2017 08:46:16 +0000



From: Wireshark-users [mailto:wireshark-users-bounces () wireshark org] On Behalf Of sothy shan
Sent: den 13 juni 2017 10:03
To: Community support list for Wireshark <wireshark-users () wireshark org>
Subject: Re: [Wireshark-users] LLDP encoding



On Tue, Jun 13, 2017 at 8:41 AM, Jaap Keuter <jaap.keuter () xs4all nl<mailto:jaap.keuter () xs4all nl>> wrote:
On 13-06-17 08:28, sothy shan wrote:
Hi,
I am just checking LLDP in mininet with OVS using wireshark.
My question some data are encoding differently. I wish to know why it is?
For example, chaissisId type is 1. But it is shown as 02 in your image.

https://wiki.wireshark.org/LinkLayerDiscoveryProtocol?action=AttachFile&do=view&target=LLDP.png

Same thing I observed in my testing also. do you have any specific encodign
technique for LLDP data.

Thanks for your explanation.

Best regards
Sothy


Hi,

Be aware that the TLV type field is a subfield of this 16 bit field. it's only
the seven most significant bits that constitute the subfield in question.
Therefore the value of the subfield is '1', while the representation of the 16
bit field it comes from shows '0x0207'

Thanks,
Jaap

Thanks. I got it. One question is regarding portID. POrtID subtype is 7. It means locally assigned port id. In my case 
local port id is 1. it is encoded as  31. why? thanks again
Sothy

Sound like the ASCII character 0x31 = “1”

Regards
Anders

___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users () wireshark org<mailto:wireshark-users () wireshark org>>
Archives:    https://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-users
             mailto:wireshark-users-request () wireshark org<mailto:wireshark-users-request () wireshark 
org>?subject=unsubscribe

___________________________________________________________________________
Sent via:    Wireshark-users mailing list <wireshark-users () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-users
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-users
             mailto:wireshark-users-request () wireshark org?subject=unsubscribe

Current thread: