

./ns cmu/scripts/run.tcl -rp cmu/dsr/dsr.tcl -sc ntr1 -cp ntr1-conn


josh's DSR impl on rochefort in 

/usr2/projects/adhoc/freebsd/sys/adhoc

---------------------------------------------------------------------------



There's the potential for great confusion based on the (stupid) way
that NS defines addresses.  The basic NS nsaddr_t holds an IP address
in the top 24 bits and a port number in the low 8 bits.  We have
attempted to write the CMU Monarch code such that anywhere a nsaddr_t
is declared for holding IP addresses, the bits follow the 24/8
pattern.  Fields of type nsaddr_t's that hold different types of
addresses are paired with a type field that states the type of
the addr in the nsaddr_t the nsaddr_t.  When the type is AF_INET, the
nsaddr_t is in 24/8 format.  Otherwise, the nsaddr_t is in the format
appropriate for that address type.

===========================================================================
Trace output formats
---------------------------------------------------------------------------
For ARP packets:
[rs] time <MAC> src ARP size ------- SHA/SPA <req/rep> THA/TPA seq th->uid

SHA = source host address (MAC)
SPA = souce protocol address (IP)
THA/TPA = target addresses

---------------------------------------------------------------------------
For DSR packets:

[rs] time <MAC> src DSR size -- S->D rlen [Rreq?] [Rrep? len dst] 
    [RE? #errors <1st bad link>]

S = IP src
D = IP dst

rlen = len of source route
Rreq? = a route request?

Rrep? = carries a route reply?
if so:
   len = len of route reply
   dst = of route in route reply (if dst != D, reply is from cache)

RE? = carries a route error?
if so:
   # errors = # of link errors indicated by pkt
   <1st bad link> = first bad link that caused this pkt to be made


---------------------------------
for totals

 - change to report tput as bytes sent at least for DSR rtreq packets
 - print both for all

 - record where all connections started go from where to where
 - write to trace from tcl when  starting connection
 - handle new line type /^G/


------------------------------------
For paper
 - we use only max sz packets (can we say anything about small size?
DSR might behave differently if piggybacking happening)  mention that
SYNs are full size in NS (so no piggyback there)

 - the bytes sent measure includes MAC header, so protocols sending
more small pkts are punished (like DSR)

