Ticket #29 (new enhancement)
RouteMessage delivering with latency time
| Reported by: | jordi | Owned by: | nobody |
|---|---|---|---|
| Priority: | major | Milestone: | indiscussion |
| Component: | planetsim | Version: | PlanetSim 3 |
| Keywords: | RouteMessage latency | Cc: |
Description
NOTE: This approach adds a number of hops of delay to deliver every RouteMessage?. This ticket suggests two solutions to it.
'Suggestion of Pitt Zhang:
I want to think about latency of the network. they are two ways to achieve this:
First let class message has a fly_time attribute to denote the latency,At each simulate step, the messages in the Queue incoming set every fly_time-1 ,and the dispatcher handle the messages whose fly_time == 0
The second way is just keep a global Queue in network, every message be sent first cache in the queue, and at every simulate step, Queue set every fly_time-1, and move the messages whose fly_time == 0 to the certain Incoming Queue .
