Re: [ns] Drop packet!!!!!

2011-03-17 Thread Teerawat@UBC

Hi Mohammed,

That's correct. Only the object whose class derives from class Connector can 
call the function drop(p). However, there are a lot of class like this, e.g., 
queues, agents.

Best Regards,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat
On Mar 9, 2011, at 8:17 AM, Mohammed Alenezi wrote:

 
 Hi,
 I've been reading the below blog :
 http://t-issariyakul.blogspot.com/search/label/NS2?updated-max=2010-03-08T02%3A02%3A00-07%3A00max-results=20
 
 I found this sentence Note that drop(p) is a function of class Connector,
 and therefore must be invoked from within the scope of class Connector.
 
 Does this mean I can't call the drop from outside connector. In other words,
 If I want to call drop I have to create object from connector class then
 call drop???
 
 
 Please help me on this issue?
 
 -- 
 Regards,
 Mohd.
 




[ns] Drop packet!!!!!

2011-03-08 Thread Mohammed Alenezi

Hi,
I've been reading the below blog :
http://t-issariyakul.blogspot.com/search/label/NS2?updated-max=2010-03-08T02%3A02%3A00-07%3A00max-results=20

I found this sentence Note that drop(p) is a function of class Connector,
and therefore must be invoked from within the scope of class Connector.

Does this mean I can't call the drop from outside connector. In other words,
If I want to call drop I have to create object from connector class then
call drop???


Please help me on this issue?

-- 
Regards,
Mohd.


[ns] drop packet during transmission

2010-05-20 Thread Wei Zhang


Hello everybody,

Could anybody tell me: 

which cases a packet drops during it was transmitted in network except having 
not the route from source to destination? I tested OLSR, it has no drop if 
having the route from source to destination. How to set up parameter in tcl 
script to cause drop of packet? Please help me.

set opt(chan)   Channel/WirelessChannel  ;
set opt(prop)   Propagation/TwoRayGround ;
set opt(netif)  Phy/WirelessPhy  ;
set opt(mac)    Mac/802_11   ; 
set opt(ifq)    Queue/DropTail/PriQueue  ; 
set opt(ll) LL   ; 
set opt(ant)    Antenna/OmniAntenna  ; 
set opt(ifqlen) 50   ; 
set opt(adhocRouting)   OLSR ;
 
set opt(cp)    ; 
set opt(sc)    ; 
set opt(x)  700  ;
set opt(y)  700  ;
set opt(stop)   100   ; 
 
set opt(cbr-start)  30.0
 
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.74269e-10 ;
Phy/WirelessPhy set RXThresh_ 1.08918e-9 ;
Phy/WirelessPhy set bandwidth_ 512kb 
Phy/WirelessPhy set Pt_ 0.2818 ; 
Phy/WirelessPhy set freq_ 2.4e+9
Phy/WirelessPhy set L_ 1.0


Thanks in advance.
Wei