Hi everyone,
I'm currently simulating a channel in omnet, where the datarate channel changes every slot.
Sometimes this change happens when the channel is busy, i.e. a packet is in progress. In this case, the packet that is being sent will arrive at the time calculated before the datarate change.
However, I want it to behave more fluid model-like. E.g. assume we send a packet of 10bit at t=0 on a channel of 5bps, and we change the datarate at t=1 to 10bps, then at t=1 we have 5 bit left to transmit at a rate of 10bps, resulting in a finish time of 1.5s (rather than 2s, in the channel's normal behaviour).
In plain omnet I've been able to accomplish this fluid model using some custom elements and fiddling with the internals.
However, I now want to redo these simulations with the TCP protocol, while keeping the ability to change a busy channel's datarate and have the fluid model's behaviour.
Using the plain omnet approach, I cannot get it working.
Can this be achieved in INET? Or is it possible to implement in a reasonable way? I just noticed that INET 4 is on its way, does it have better support for this?
Thank you very much!
Jeremy