Add delay between layers in omnet++

60 views Asked by At

How to add randomized processing delay before passing the packets to upper / lower layers?

Directly in the ini file. Is there any easy way without editing the c++ code?

I tried processingDelayLayer at the sender and receiver. But no impact.

################

*.client.processingDelayLayer.egress.delay = 12s
*.client.processingDelayLayer.ingress.delay = 0s

 
*.server.processingDelayLayer.ingress.delay = 10s
*.server.processingDelayLayer.egress.delay = 0s
1

There are 1 answers

1
Rudi On

That is a very bad idea. A randomized delay would change the ordering of the packets passed between the layers. That is definitely something that does not happen in real life systems. A fixed, non-random delay may or may not be ok.

INET supports modeling processing delay in Switches where it models the processing time requires to do the work to decide where to forward the packet. But still, the delay must be constant.