Score:0

netem how to do delay for 2-3seconds of all packets for 50-300ms once in 3-10 minutes

pk flag

I'm using netem to do traffic delays. For my testing it is required to perform slightly odd delays. I need introduce a delay 50-300ms to all packets TCP/UDP for 2-3 seconds once in 3-10 minutes. I.e. once delay has happened next delay should happen in 3-10 minutes.

Can I do that just using netem without using additional scripts?

If not, what's the closest achievable?

Score:0
it flag

You can pick random values in bash, and map them onto your desired range, using $RANDOM. You can run the command "for a while" with timeout. Read man bash timeout.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.