Re: [ns] How to access mac layer in c++ of ns2

2008-10-18 Thread Daniel Dekst
Hi, I have never done anything with TCP layer, so I'm not sure. But a general rule I summarized is that 1) If the two layers you want to cross-access are adjacent, you can use uptarget_/downtarget_ 2) If they are not, it is a bit of difficult to make the pointer clear. My

Re: [ns] How to access mac layer in c++ of ns2

2008-10-18 Thread Teerawat Issariyakul
Hi Basim, The connection from a node to a TCP agent is fairly subtle. Basically, a Node has an instvar dmux_ which is a classifier. It install a TcpAgent and TcpSink in the slot of the classifier dmux_. This occurs when you invoke commands like $ns attach-agent $n0 $udp0 You may find the

[ns] TCP max congestion window and ssthreh's values

2008-10-18 Thread Mayur
Dear ns colleagues, How to set max congestion window in tcp? I ns-default.tcl sets it to 0 (Zero). How it could be if following concept is correct? maxcwnd (Maximum Congestion Window) indicates the maximum number that the CWND can achieve. ie. After tcp enters in the Congestion

Re: [ns] Doubt Clarified.... TCP max congestion window and ssthreh's values

2008-10-18 Thread Mayur
Mayur wrote: Dear ns colleagues, How to set max congestion window in tcp? I ns-default.tcl sets it to 0 (Zero). How it could be if following concept is correct? maxcwnd (Maximum Congestion Window) indicates the maximum number that the CWND can achieve. ie. After tcp enters in the

[ns] A possible BUG in ns2, in capture() function in mac/mac-802_11.cc

2008-10-18 Thread Mayur
Dear NS experts, There seems to be a BUG in ns2 (till latest version ns2.33) : _*Abstract: *_ capture() function should treat errored_pkts and normal_pkts differently. Viz., the NAV should be set to only EIFS for errored packets and for normal packets to { EIFS + txtime(pkt) }. _*More

[ns] Sorry Wrong File Sent A possible BUG in ns2, in capture() function in mac/mac-802_11.cc

2008-10-18 Thread Mayur
Dear all, [Sorry, I attached wrong file, Pl find the modified_mac-802_11.cc attached herewith. Kindly discard the earlier sent mac-802_11.cc file.] Mayur wrote: Dear NS experts, There seems to be a BUG in ns2 (till

Re: [ns] Please help me to solve my issue in ns2

2008-10-18 Thread Daniel Dekst
Hi, I don't think you want to classify packets in mac layer. Instead, you want your packets to be submitted to aodv. Thus, in aodv.cc, you need to identify your packets in AODV::recv(Packet *p). In fact, as you know, all packets first arrive at such a recv function in any layer. So if