[ns] [DSR] Route cache timeout

Salvo Danilo Giuffrida giuffsalvo at gmail.com
Sat Feb 28 08:53:40 PST 2009


Hello, in the RFC for DSR
(http://tools.ietf.org/html/rfc4728#section-9), it is stated that
entries in node's route cache should expire adter 300 seconds, if they
are not used. I looked into the source code of the NS2 implementation,
and there doesn't seem to be this check. Is it so?
Also, in 'hdr_sr.h', inside the
struct sr_addr {
        int addr_type;		/* same as hdr_cmn in packet.h */
	nsaddr_t addr;

	/*
	 * Metrics that I want to collect at each node
	 */
	double	Pt_;
};
There's that field "Pt_", which seems to be never used. I was thinking
of using it to record, for each node in a source route, its last know
energy level (which would be updated by itself, and then propagated to
following nodes in the route). But, if this should be implemented in
"real" DSR, would this require space to be taken, in  the Options
field, from the space allocated for IP addresses (maximum 16
addresses)?
Thanks a lot



More information about the Ns-users mailing list