[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Reg timestamps!!
On Mon, 18 Jun 2001, Archana Krishna wrote:
> 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????
You mean the ts_ field, right? I think it should be ok.
-chen xuan
>
> Can anyone please answer my question.
> Thanks in advance.
> Archanaa
>
>
--
Xuan Chen
USC/ISI