Ticket #29 (new enhancement)

Opened 1 year ago

Last modified 1 year ago

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 .

Attachments

NodeImpl.java (21.8 kB) - added by jordi 1 year ago.

Change History

Changed 1 year ago by jordi

Changed 1 year ago by pitt-zhang

The attached file is for Ticket #28 The Ticket #29, I think it need more discussion. Max started the multi-thread branch, I think maybe we should take more care of the design of the data structure. synchronization maybe a little difficult in multi-thread.

Note: See TracTickets for help on using tickets.