[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Several Questions



Hi, ns-users,

I have some questions before developing a TDMA scheduler.
1. I derive TDMA scheduler from Queue class, overwrite the deque() to fullfill
my scheduling scheme. is it a feasible idea? 

2. How to get up/down link frame finish time. I know that a timer can expire
and call timeout() to do something. But how to do if I want to stop deque()
when up/down link frame is over. My solution is to get linkrate and compare the
bytes has been deque with linkrate*(up/down link length). But how to get a
simplexlink's linkrate in C++(like $link set rate_ )?

3. Can one timer match multiple scheduler object? For example, I have
upscheduler and downscheduler class. Should I define two timer for them?

Thanks a lot.