Hello All,
I tried to use the configuration example for using Network/Pcap Objects,
but ran into an error.
http://www.cubinlab.ee.unimelb.edu.au/~jrid/Docs/Manuel-NS2/node484.html
Anyone knows this error and how to solve it? it says that the simulator
doesn't recognize the command.
*Here is the code example:*
set me [exec hostname]
*set pf1 [new Network/Pcap/Live]* ----> this is the line that throws
the error
$pf1 set promisc_ true
set intf [$pf1 open readonly]
puts "pf1 configured on interface $intf"
set filt "(ip src host foobar) and (not ether broadcast)"
set nbytes [$pf1 filter $filt]
puts "filter compiled to $nbytes bytes"
puts "drops: [$pf1 pdrops], pkts: [$pf1 pkts]"
*Here is the error:*
invalid command name "Network/Pcap/Live"
while executing
"Network/Pcap/Live create _o3 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Network/Pcap/Live"
invoked from within
"set pf1 [new Network/Pcap/Live]"
(file "rt1.tcl" line 2)
> On Tue, Oct 2, 2012 at 10:22 AM, חגית מריומה <[email protected]>wrote:
>
>>
>>
>>
>>
>> תחילת ההודעה שהועברה:
>>
>> *מאת:* saleem khan <[email protected]>
>> *תאריך:* 28 בספטמבר 2012 11:07:27 GMT+02:00
>> *אל:* חגית מריומה <[email protected]>
>> *נושא:* *בעניין: [ns] Text input files with ns2*
>> *השב לכתובת:* saleem khan <[email protected]>
>>
>> You can do it by using command cbr gen means cbr traffic generation which
>> writes its results to a text file then load this text file in TCL file.
>> search for CBR GEN command
>>
>>
>> *Muhammad Saleem Khan*
>> *Ph.D(CS) , COMSATS Institute of Information Technology, Islamabad.*
>> *Cell No# 0346-9754454*
>>
>> ------------------------------
>> *From:* חגית מריומה <[email protected]>
>> *To:* Dejene B. <[email protected]>
>> *Cc:* "[email protected]" <[email protected]>
>> *Sent:* Friday, September 28, 2012 2:12 AM
>> *Subject:* [ns] Text input files with ns2
>>
>>
>>
>> Anyone can help how to load text input files into ns2 instead of using
>> tcp/udp source through ns2?
>> If so, any text format? Or a simple example?
>>
>> Thanks!
>>
>>
>> ב-27 בספט 2012, בשעה 06:40, "Dejene B." <[email protected]> כתב/ה:
>>
>> >
>> > hi all,
>> >
>> > what is maximum Tcp paload size (application demand) in ns-2. I am
>> > observing a strange behavior when I set to 1MB and larger. The packets
>> > don't reach the intended destination. However, some documentations say
>> it
>> > can be infinite.
>> >
>> > thanks,
>> >
>> > --
>> > *Dejene Boru*
>> > *.............................................
>> > *
>> > Graduate Student-Telecom Eng
>> > University of Trento
>> > Via Brennero 150
>> > Trento, Italy
>> > [email protected]
>> > [email protected]
>> > 0039-388-998-1919
>> >
>> > *
>> > *
>>
>>
>>
>