Tag Length Value (TLV) format

154 views
Skip to first unread message

Rex Stefan

unread,
Jul 1, 2016, 11:48:32 PM7/1/16
to ns-3-users
Dear NS-3 users,

Is there any script which implemented Tag Length Value (TLV) format to understand how it is implemented? 


Thanks,
Rex

Tommaso Pecorella

unread,
Jul 2, 2016, 7:14:50 PM7/2/16
to ns-3-users
Hi,

TLV stands for Type (Length Value), not Tag. TLVs are widely used in many option headers, but there's no generic TLC implementation as far as I know, also because it's kinda pointless.
Anyway, they're extremely easy to develop, so I don't really think you'd learn much from them. The basis is "read 1 byte, read another byte, read x more bytes according to what's in the 2nd byte", with some minor differences.


T.
Reply all
Reply to author
Forward
0 new messages