emirica / twamp-protocol

A Two-Way Active Measurement Protocol
GNU General Public License v2.0
68 stars 41 forks source link

PaddingLength should be in Network byte order #10

Open kokakrishna opened 8 years ago

kokakrishna commented 8 years ago

I am using this TWAMP tool for my working. I am using the Junos router as TWAMP server and reflector. This tool i am using as TWAMP client. As per RFC 6038 PaddingLength for Unauthenticated TWAMP-Test mode should be >= 27 octets and for Authenticated or Encrypted TWAMP-Test modes, PaddingLength should be >= 56 octets. At the same time, they should be in N/W byte order. Otherwise Juniper server rejects as invalid length. I fixed it and its working fine now. If someone wants, i can commit the new changes.

sumkincpp commented 8 years ago

Hi @kokakrishna, seems that I've faced with same issue with Cisco devices.

Can you commit your changes?

zoidberg55 commented 7 years ago

Hi @kokakrishna. Can you provide the fixes you made to get this working? I am running into the exact same issue when testing to Junos devices. I've been trying to adjust the code to make it work for me, but I can't figure it out and get it going right now. My TWAMP sessions are still being rejected.