MoonGen icon indicating copy to clipboard operation
MoonGen copied to clipboard

Measuring latency with custom headers

Open harshgondaliya opened this issue 5 years ago • 0 comments

I am trying to adapt l2-load-latency.lua to measure latency for packets that have the following structure:

Eth / Custom Header 1 (2 bytes) / Custom Header 2 (10 bytes) / Custom Header 3 (10 bytes) / Custom Header 4 (4 bytes) / Custom Header 5 (4 bytes)

I have followed the directions given in newProtocolTemplate.lua. I have modified getEthernetPacket() and getPtpPacket() function in packet.lua so that the createStack() has the appropriate parameters.

After making all these changes I get nan ns readings on running l2-load-latency.lua. Also when I see packets at the receiving end, they do not have the custom headers that I have created.

Are there any more code changes that I need to make? Also, does MoonGen support this? Measuring latency for packets with custom headers?

harshgondaliya avatar Aug 20 '20 06:08 harshgondaliya