[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Reg timestamps!!
Hi,
I am trying to implement an admission control algorithm on ns.I am
using udp flows. I need to record the time when the packet
is generated by the source. This recorded time should be accessible at the
point the packet reaches the destination.Having a time stamp on each
packet solves the problem.
There is hdr_cmn :
struct hdr_cmn {
packet_t ptype_; // packet type (see above)
int size_; // simulated packet size
int uid_; // unique id
int error_; // error flag
double ts_; // timestamp: for q-delay measurement
int iface_; // receiving interface (label)
int direction_; // direction: 0=none, 1=up, -1=down
int ref_count_; // free the pkt until count to 0
Do you think I can use this for time stamping the udp packets I
generate????
Can anyone please answer my question.
Thanks in advance.
Archanaa