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

Re: MAC tracing in CMU





Juana,
      This is how the trace for wired-cum-wireless looks like at my end:

r 160.057492529 _2_ MAC  --- 3 DSR 44 [a2 0 3 800] ------- [1677
7984:255 16777216:255 255 16777216] 3 [0 2] [1 2 3 16777216->167
77984] [0 0 0 0->0]
s 160.057502529 _2_ MAC  --- 0 MAC 38 [0 3 0 0] 
f 160.057517529 _2_ RTR  --- 0 tcp 1492 [0 0 0 0] ------- [65536
:0 16777984:0 31 16777728] [0 0] 0 0
r 160.057655310 _5_ MAC  --- 0 MAC 38 [0 3 0 0] 
s 160.057784529 _2_ MAC  --- 0 MAC 44 [196e 3 0 0] 
r 160.057961310 _5_ MAC  --- 0 MAC 44 [196e 3 0 0] 
s 160.057971310 _5_ MAC  --- 0 MAC 38 [18cc 0 0 0] 
r 160.058124092 _2_ MAC  --- 0 MAC 38 [18cc 0 0 0] 
s 160.058174092 _2_ MAC  --- 0 tcp 1544 [a2 3 0 800] ------- [65
536:0 16777984:0 31 16777728] [0 0] 0 0
r 160.064350873 _5_ MAC  --- 0 tcp 1492 [a2 3 0 800] ------- [65
536:0 16777984:0 31 16777728] [0 0] 1 0
s 160.064360873 _5_ MAC  --- 0 MAC 38 [0 0 0 0] 
r 160.064375873 _5_ RTR  --- 0 tcp 1492 [a2 3 0 800] ------- [65
536:0 16777984:0 31 16777728] [0 0] 1 0

as you can see, the tcp pkt is sent from 2 to 5
(RTR(2)->MAC(2)->MAC(5)->RTR(5), along with other mac control and
routing message pkts.
see cmu/monarch's home page (http://www.monarch.cs.cmu.edu/cmu-ns.html)
for their added doc on tracing. they have a nice schematic that explains
how trace objects are placed/work in the wireless simulations.

--Padma.


On Thu, 13 May 1999, Juana Elias Nakfour wrote:

> Padma,
> 	I fixed it and it worked. But I just have one more question. All
> the tracing is for message type packets, how can I trace tcp type packets.
> I did read the documentation but it is really not clear.. thanks !!
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Juana Nakfour                          | URL: www.cse.msu.edu/~nakfourj             
> Graduate Assistant                     | Address: 201 N. Pennsylvania 
> Computer Science and Engineering Dept. |          Lansing, MI 48912. 
> Michigan State University	       | Phone: (517) 487 9031	
>                          "F1 all the way.............."
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> On Thu, 13 May 1999, Padmaparna Haldar wrote:
> 
> > 
> > I'm sorry..
> > 
> > replace line
> >          $mac sendtarget
> > with
> >          $mac down-target
> > 
> > and line $mac sendtarget
> > 
> > with     $mac up-target
> > 
> > 
> > On Thu, 13 May 1999, Padmaparna Haldar wrote:
> > 
> > > 
> > > Juana,
> > > This is a typo.
> > > Try replacing sendtarget with down-target and recvtarget with up-target.
> > > i.e, in ~ns/tcl/lib/ns-mobilenode.tcl's lines 271/272 & 278/279
> > > replace line
> > > 	$mac sendtarget
> > > with
> > > 	$mac up-target
> > > and do the same with downtarget.
> > > 
> > > --Padma.
> > > 
> > > 
> > > On Thu, 13 May 1999, Juana Elias Nakfour wrote:
> > > 
> > > > Hi everyone !!
> > > > 	When running the example wired-cum-wireless-sim.tcl with 
> > > > set MacTrace  ON
> > > > I get the following errors:
> > > > 
> > > > (_o32 cmd line 1)
> > > > invoked from within
> > > > "_o32 cmd sendtarget"
> > > > invoked from within
> > > > "catch "$self cmd $args ret"
> > > > (proceudre _o32 line 2)
> > > > invoked from within
> > > > $mac sendtarget
> > > > procedure _o26 line 59
> > > > Node/MobileNode add-interface line 59......................
> > > > 
> > > > I read the documentation about the mobility support in ns but still didn't
> > > > understand how to trace tcp packets in the CMU mobile nodes. None of the
> > > > examples given in ns do that. 
> > > > thanks in advance !!!!!!
> > > > 
> > > > 
> > > > 
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > Juana Nakfour                          | URL: www.cse.msu.edu/~nakfourj             
> > > > Graduate Assistant                     | Address: 201 N. Pennsylvania 
> > > > Computer Science and Engineering Dept. |          Lansing, MI 48912. 
> > > > Michigan State University	       | Phone: (517) 487 9031	
> > > >                          "F1 all the way.............."
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > 
> > > 
> > > ------------------------------------------------
> > > Be true to your work, your word, and your friend.
> > > --Thoreau
> > > 
> > > Padmaparna Haldar
> > > ISI/USC.
> > > 310.822.1511 #352
> > > 
> > 
> > ------------------------------------------------
> > Be true to your work, your word, and your friend.
> > --Thoreau
> > 
> > Padmaparna Haldar
> > ISI/USC.
> > 310.822.1511 #352
> > 
> 

PLEASE USE MY NEW EMAIL ID: [email protected]
------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau

Padmaparna Haldar