Re: [ns] Capturing Packets

2009-03-01 Thread scharan
Thanks again! But is there no way to dump the entire packet, instead of first the header and then the payload etc? Mubashir Rehmani wrote: > > > Hi Scharan > > You just need to modify the recv function of each protocol that you need > to > capture the packets for. > > You need to declare a

Re: [ns] Capturing Packets

2009-03-01 Thread Mubashir Rehmani
Hi Scharan You just need to modify the recv function of each protocol that you need to capture the packets for. You need to declare a header file #include ofstream DRN("abc.tr"); //your output file Then in the recv() function, you will just do this: struct hdr aodv reply * rp = HDR_AODV_REPLY

Re: [ns] Capturing Packets

2009-03-01 Thread scharan
Thanks! I have the following clarification: Do I have to reimplement recv() function for each protocol that I need to capture the packets for? Can u provide some examples or links to some examples on how this should be done? - scharan. Mubashir Rehmani wrote: > > > Hi Sri Charan, > > Yes

Re: [ns] Capturing Packets

2009-03-01 Thread Mubashir Rehmani
Hi Sri Charan, Yes it is possible. You need to work in the recv() packet function and dump the contents of all the packet in the trace file. Regards Mubashir Husain Rehmani ASAP/INRIA and LIP6, UPMC www-rp.lip6.fr/~rehmani http://www.irisa.fr/asap/Members/mreh

[ns] Classification decision and node id

2009-03-01 Thread Thanes Vela
Dear all The the following is the unanswered question in this forum. Please share your knowledge. Classifier works on the node entry point. Each packet which is received by the node is classified and accordingly it is either forwarded to the port demux or next link. My question is that: 1. Whe

Re: [ns] Capturing Packets

2009-03-01 Thread Sri Charan
Hi, I need to capture each packet arriving at each node in the network (in order to calculate a hash on the whole packet, not just its header). Another way to ask this is that I need to sniff the packet as it arrives at each node and save/dump it to a file. Is this possible in NS2? If yes, how?

[ns] Capturing Packets

2009-03-01 Thread Sri Charan
Hi, I need to capture each packet arriving at each node in the network (in order to calculate a hash on the *whole* packet, not just its header). Another way to ask this is that I need to sniff the packet as it arrives at each node and save/dump it to a file. Is this possible in NS2? If yes, how?

Re: [ns] carrier sense (neeraj gupta)

2009-03-01 Thread Jie Xu
> In my understanding, there is no nav table. Actually there is only one NAV > timer in NS implementation. > > the timer is updated by receiving packets withing its receiving range and > carrier sense range. In this way, the carrier sense makes sense. Jie Xu @ GUCAS, China > > > >> >> hi all >

[ns] how to access mac layer from upper layers

2009-03-01 Thread Firdaus Alias
Hi, I am developing a code in c++ that needs to access the power transmitted by an adjacent node from the routing layer. How do I access the value of return by : Propagation::getDist(double Pr, double Pt, double Gt, double Gr, double hr, double ht, double L, double lambda) from the routing laye

Re: [ns] Running c++ code in NS

2009-03-01 Thread Arturo Servin
You have to include your code (I am not sure but I think that you should do it in the same path were the rest of the ns code is) and to modify the make files in order to compile your code. Check the own ns makefiles as an example, they will give you a hint of what to include. -as

[ns] Running c++ code in NS

2009-03-01 Thread Abhijeet Mirikar
Dear all, I want to run my C++ code in NS. How it can be done? Please help. Regards, Abhijeet Mirikar

Re: [ns] carrier sense

2009-03-01 Thread Mayur Mansukhlal Vegad
NAV is not a table. For a particular node its NAV is a simple variable used to store a number which is the duration (in microseconds) for which it freezes its backoff downcounting, it it is ON. You can know this value by accessing the nav_ (a double type of variable of Mac802_11 class in mac/mac-8

Re: [ns] ns QoS implementation

2009-03-01 Thread Salvador Alcaraz
Dear Pop: In [NS-PATH]/ns-2.33/diffserv you can find some QoS implementations good luck /salva 2009/3/1 Pop Barbie > > > Dear ALL > Can any one help me where i can find implementation CODE for QoS BASED > for ns2.33? > Thanks > > > > >