NS-2的离散时间模拟机制

原文地址:http://nile.wpi.edu/NS/

==========================

 

This section talks about the discrete event schedulers of NS. As described in the Overview section, the main users of an event scheduler are network components that simulate packet-handling delay or that need timers. Figure 5 shows each network object using an event scheduler. Note that a network object that issues an event is the one who handles the event later at scheduled time. Also note that the data path between network objects is different from the event path. Actually, packets are handed from one network object to another using send(Packet* p) {target_->recv(p)}; method of the sender and recv(Packet*, Handler* h = 0) method of the receiver.

NS-2的离散时间模拟机制_第1张图片

你可能感兴趣的:(object,NetWork,each,Components)