[ns] Monitoring several parameters

2013-02-18 Thread Frank Wetzels

All,

I have several traffic flows running through a network that is configured with 
QoS between 2 sources and 1 sink. I have several questions i hope you can help 
me with:
1. How can i monitor the tcp window size of a packet that arrives at a sink?
2. How can i monitor the ip-tos byte inside an ip packet at a sink?
3. Can i correlate the send and received packets in oder to determine what 
hapened underway in terms of tcp-window and tosbyte?

Your input is much appreciated.

Regars,
Frank



[ns] Looking at packet that flow through a node

2012-08-14 Thread Frank Wetzels

Dear Colleagues,

Ik have setup a topology consisting of 2 CEs and 2 PEs and 1 P router,
representing a provider's network with customer edge routers.
When packets flow between the CEs (with the core in between) I want the
PE routers to mark the ingresstraffic depending on the CIR and PIR. This
all works fine.
However, on the egress PE I want to have a look at the packets to see the
DSCP bits of the individual IP packets. There commands like
printPolicyTable and printStats. But that is not what I need.

Does anyone have an idea, how to look at packets that flow through a
node?


Regards,
Frank






[ns] Protocol development

2012-06-29 Thread Frank Wetzels

All,

I am in the process of the development a protocol. I read some of the 
documentation and suggestions.
Now, to ease my life a little bit, I decided to start with one of the 
suggestions: take an existing protocol and change it to my needs.
My question to you all is whether some of you have experience with doing this. 
If so, what existing protocol would be good to start with. Note that my 
protocol should run over UDP or TCP. It would be implemented as an agent.
Note that If the protocol runs in NS2, I need to tune some parameters in OTcl, 
meaning that variable binding is needed. Some parameters need to be sent within 
the protocol including some calculations.

Any suggestions?



Regards,
Frank




Frank Wetzels
frank.wetz...@cwi.nl
Cell: +31 6437 95508





[ns] Compiling NS2.35 on MACos 10.7.4

2012-05-31 Thread Frank Wetzels

All,

Did someone of you successfully compiled NS 2.35 on MACos 10.7.4? If yes, any 
hints?

Regards,
Frank



[ns] PCN in NS2?

2012-05-13 Thread Frank Wetzels

All,

I am looking for an implementation of Pre Congestion Notification (PCN) in NS2.
Is this available as some URL suggest it has been developed?

Thanks.


Regards,
Frank



Re: [ns] Broadcasting a UDP ns2.34 802.11Ext

2012-05-02 Thread Frank Wetzels

Hi,

I have no solution for you in NS2. However, I have a remark on your 
address/port choice.
I guess that by choosing -1, you fill the address field with 255.255.255.255 as 
IP address
in dotted decimal notation? The port number choice of 0 is a bit strange. 
Although you are using IP broadcast
you - strictly speaking - still need a legitimate port number. Indeed, you 
choose a particular protocol by choosing
the port address. As an example, DHCP uses IP broadcast initially based on 
UDP67 / UDP68.

Regards,
Frank

On May 1, 2012, at 5:36 AM, Paulo Robson S. F. wrote:

 
 Hi,
 
 I want to broadcast a packet using an udp agent. I found some solutions at
 this maillist but
 neither satisfactory.
 
 I just want to send broadcast packet from 1 node to another 2 nodes in his
 range. My idea was
 change the dst ip to -1 and dst port to 0 because i saw somewhere that is
 the way to broadcast.
 
 I'm using the 802.11Ext model of MAC, the new module of the NS 2.34
 
 Well, I made this way:
 
 set udp0 [new Agent/UDP]
 $ns attach-agent $node $udp0
 set cbr2 [new Application/Traffic/CBR]
 
 $cbr2 set packetSize_ 128
 $cbr2 set interval_ 0.015
 $cbr2 set random_ 1
 $cbr2 set maxpkts_ 1000
 
 $cbr2 attach-agent $udp0
 
#to broadcast i used this:
 $udp0 set dst_addr_ -1
 $udp0 set dst_port_ 0
 
 In the trace file seems to be right, but i dont know if only this change of
 address and port of destination
 is indeed a broadcast to all neighbors.
 
 First lines of trace file:
 s 0.5 _2_ AGT  --- 0 cbr 128 [0 0 0 0] --- [2:0 -1:0 32 0] [0]
 0 0
 r  0.5 _2_ RTR  --- 0 cbr 128 [0 0 0 0] --- [2:0 -1:0 32 0] [0]
 0 0
 s 0.5 _2_ RTR  --- 0 cbr 148 [0 0 0 0] --- [2:0 -1:0 32 0] [0]
 0 0
 s 0.500025000 _2_ MAC  --- 0 cbr 176 [0  2 0] --- [2:0 -1:0 32
 0] [0] 0 0
 r  0.500546664 _1_ MAC  --- 0 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [0] 1 0
 r  0.500546841 _0_ MAC  --- 0 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [0] 1 0
 r  0.500571664 _1_ RTR  --- 0 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [0] 1 0
 r  0.500571664 _1_ AGT  --- 0 cbr 148 [0  2 0] --- [2:0 -1:0 31
 0] [0] 1 0
 r  0.500571841 _0_ RTR  --- 0 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [0] 1 0
 r  0.500571841 _0_ AGT  --- 0 cbr 148 [0  2 0] --- [2:0 -1:0 31
 0] [0] 1 0
 s 0.507505094 _2_ AGT  --- 1 cbr 128 [0 0 0 0] --- [2:0 -1:0 32 0] [1]
 0 0
 r  0.507505094 _2_ RTR  --- 1 cbr 128 [0 0 0 0] --- [2:0 -1:0 32 0] [1]
 0 0
 s 0.507505094 _2_ RTR  --- 1 cbr 148 [0 0 0 0] --- [2:0 -1:0 32 0] [1]
 0 0
 s 0.507530094 _2_ MAC  --- 1 cbr 176 [0  2 0] --- [2:0 -1:0 32
 0] [1] 0 0
 r  0.508051758 _1_ MAC  --- 1 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [1] 1 0
 r  0.508051934 _0_ MAC  --- 1 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [1] 1 0
 r  0.508076758 _1_ RTR  --- 1 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [1] 1 0
 r  0.508076758 _1_ AGT  --- 1 cbr 148 [0  2 0] --- [2:0 -1:0 31
 0] [1] 1 0
 r  0.508076934 _0_ RTR  --- 1 cbr 148 [0  2 0] --- [2:0 -1:0 32
 0] [1] 1 0
 r  0.508076934 _0_ AGT  --- 1 cbr 148 [0  2 0] --- [2:0 -1:0 31
 0] [1] 1 0
 
 
 Thanks guys
 
 
 Att,
 
 -- 
 Paulo Robson SF
 Computação UFC
 Semestre VII




[ns] Simulating RED

2012-04-26 Thread Frank Wetzels

All,

I try to simulate the RED as a congestion avoidance algorithm on a network with 
queues.
Does anyone of you have an example on how to tune the RED parameters, like min 
and max thresholds and the exponential parameter.

Thanks in advance.


Regards,
Frank
CWI