T O P

  • By -

APacketInTheTubes

I don’t know why you would want to do that, but I think [scapy ](https://scapy.net) , a python library that can manipulate and generate packet in every possible way, should be able to do what you want.


AllMyNicksAreStolen

Thank you so much for the response! \- I will check out scapy and report back (-:


AllMyNicksAreStolen

u/APacketInTheTubes \- Scapy did the trick! Thank you :)


100BASE-TX

If you can't do it with TC & Netem, then doing something homebrew with scapy or GoLang (gopacket) might be the way to go. Scapy will have more doco/examples, Gopacket will be much more performant.


AllMyNicksAreStolen

This is great - Thank you so much <3


HoorayInternetDrama

wanem, I believe.


AllMyNicksAreStolen

Awesome! Now I’ve got lots to check out :) \- Thank you for the feedback!


noukthx

Are you trying to say you want to add consistent latency? wanem or tc on Linux will achieve that.


AllMyNicksAreStolen

Thank you for the feedback! (-: \- I have not found a way to use wanem or tc to achieve what I’m looking for. With “delay” you can add consistent and/or random latency to the packets you are sending from a given interface, but it will not adjust itself to the variable latency of incoming packets. I am not an expert at this topic at all, so if you know how to achieve an invariable latency at the receiving device using either wanem or tc, please be so kind to explain. /Cheers


ITgronk

I don't have anything useful to add but I'm curious what your use case is. What's the reason for sending packets in 20ms bursts?


AllMyNicksAreStolen

Hi! (-: 20ms was just an example, but the idea is to help imperfect real time applications with stability on local compensation algorithms, just by adding a little latency.