[ns] Network Emulator

2013-01-31 Thread Bipul Kumar

Hellow , i am looking for help regading this problem


root@bipul-Linux:~/Desktop# nse Emulation1.tcl
warning: no class variable Scheduler/RealTime::adjust_new_width_interval_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Scheduler/RealTime::min_bin_width_

TapAgent(_o40): linked sock 6 as READABLE
TCPTapAgent(_o43): sent packet (sz: 40)
TCPTapAgent(_o43): sent packet (sz: 40)
TCPTapAgent(_o43): sent packet (sz: 40)
###
Out put packet data below
root@bipul-Linux:~/Desktop# cat out.tr
+ 1.000118 2 1 tcp 40 --- 0 2.0 1.0 0 0
- 1.000118 2 1 tcp 40 --- 0 2.0 1.0 0 0
r 1.001166 2 1 tcp 40 --- 0 2.0 1.0 0 0
+ 4.000225 2 1 tcp 40 --- 0 2.0 1.0 0 1
- 4.000225 2 1 tcp 40 --- 0 2.0 1.0 0 1
r 4.001263 2 1 tcp 40 --- 0 2.0 1.0 0 1
+ 10.000309 2 1 tcp 40 --- 0 2.0 1.0 0 2
- 10.000309 2 1 tcp 40 --- 0 2.0 1.0 0 2
r 10.001342 2 1 tcp 40 --- 0 2.0 1.0 0 2

##
My .tcl script for network emulation between two computer is

set ns [new Simulator]
$ns use-scheduler RealTime

set f [open out.tr w]
$ns trace-all $f

set entry_node [$ns node]
set exit_node [$ns node]
set tcp_node [$ns node]

$ns simplex-link $entry_node $tcp_node 10Mb 1ms DropTail
$ns simplex-link $tcp_node $exit_node 10M 1ms DropTail

# Configure the entry node
set tap1 [new Agent/TCPTap];   # Create the TCPTap Agent
set bpf [new Network/Pcap/Live];   # Create the bpf
set dev [$bpf open readonly eth0]
$bpf filter src 113.19.128.119 and src port 5000 and dst 113.19.128.22 and
dst port 80
$tap1 network $bpf;# Connect bpf to TCPTap Agent
$ns attach-agent $entry_node $tap1;# Attach TCPTap Agent to the node

# Configure the exit node
set tap2 [new Agent/TCPTap];   # Create a TCPTap Agent
set ipnet [new Network/IP];# Create a Network agent
$ipnet open writeonly
$tap2 network $ipnet;  # Connect network agent to tap agent
$tap2 advertised-window 512
$tap2 extipaddr 113.19.128.119
$tap2 extport 80
$ns attach-agent $exit_node $tap2;# Attach agent to the node.

# Configure the TCP agent
set tcp [new Agent/TCP/FullTcp]
$ns attach-agent $tcp_node $tcp

# Connect the agents.
$ns simplex-connect $tap1 $tcp
$ns simplex-connect $tcp $tap2


$ns at 01.0 $tcp advance 1
$ns at 20.0 finish

proc finish {} {
global ns f nf
$ns flush-trace
close $f
exit 0
}

$ns run


PLease help me in knowing what's wrong as i am unable to see NAM on my
scree and i getting this error in my terminal

Thank you


[ns] Network Emulation help Urgent Help !

2013-01-30 Thread Bipul Kumar

Hellow Folks

It's really urgent i need a help, i don't know what's wrong i am getting
this error while runing .tcl script for nse.

root@bipul-Linux:/home/bipul/Desktop# nse Emulation1.tcl
warning: no class variable Scheduler/RealTime::adjust_new_width_interval_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Scheduler/RealTime::min_bin_width_

TapAgent(_o40): linked sock 6 as READABLE
TCPTapAgent(_o43): sent packet (sz: 40)
TCPTapAgent(_o43): sent packet (sz: 40)
TCPTapAgent(_o43): sent packet (sz: 40)


bipul@bipul-Linux:~/Desktop$ cat out.tr
+ 0.010148 2 1 tcp 40 --- 0 2.0 1.0 0 0
- 0.010148 2 1 tcp 40 --- 0 2.0 1.0 0 0
r 0.011184 2 1 tcp 40 --- 0 2.0 1.0 0 0
+ 3.010266 2 1 tcp 40 --- 0 2.0 1.0 0 1
- 3.010266 2 1 tcp 40 --- 0 2.0 1.0 0 1
r 3.011308 2 1 tcp 40 --- 0 2.0 1.0 0 1
+ 9.010389 2 1 tcp 40 --- 0 2.0 1.0 0 2
- 9.010389 2 1 tcp 40 --- 0 2.0 1.0 0 2
r 9.011431 2 1 tcp 40 --- 0 2.0 1.0 0 2

Below is my code. for nse

set ns [new Simulator]
$ns use-scheduler RealTime

set f [open out.tr w]
$ns trace-all $f

set entry_node [$ns node]
set exit_node [$ns node]
set tcp_node [$ns node]

$ns simplex-link $entry_node $tcp_node 10Mb 1ms DropTail
$ns simplex-link $tcp_node $exit_node 10M 1ms DropTail

# Configure the entry node
set tap1 [new Agent/TCPTap];   # Create the TCPTap Agent
set bpf [new Network/Pcap/Live];   # Create the bpf
set dev [$bpf open readonly eth0]
$bpf filter src 113.19.128.48 and src port 80 and dst 113.19.128.60 and
dst port 16384
$tap1 network $bpf;# Connect bpf to TCPTap Agent
$ns attach-agent $entry_node $tap1;# Attach TCPTap Agent to the node

# Configure the exit node
set tap2 [new Agent/TCPTap];   # Create a TCPTap Agent
set ipnet [new Network/IP];# Create a Network agent
$ipnet open writeonly
$tap2 network $ipnet;  # Connect network agent to tap agent
$tap2 advertised-window 512
$tap2 extipaddr 113.19.128.48
$tap2 extport 80
$ns attach-agent $exit_node $tap2;# Attach agent to the node.

# Configure the TCP agent
set tcp [new Agent/TCP/FullTcp]
$ns attach-agent $tcp_node $tcp

# Connect the agents.
$ns simplex-connect $tap1 $tcp
$ns simplex-connect $tcp $tap2


$ns at 0.01 $tcp advance 1
$ns at 20.0 finish

proc finish {} {
global ns f nf
$ns flush-trace
close $f
exit 0
}

$ns run


I hope i will get the answer soon

Thank you.


[ns] nse scheduler issue

2013-01-29 Thread Bipul Kumar

Hellow folks

I am getting this error when i am trying to run nse

root@bipul-Linux:/home/bipul/Desktop# nse script.tcl
warning: no class variable Scheduler/RealTime::adjust_new_width_interval_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Scheduler/RealTime::min_bin_width_

TapAgent(_o40): linked sock 7 as READABLE
TCPTapAgent(_o43): sent packet (sz: 40)
TCPTapAgent(_o43): sent packet (sz: 40)
TCPTapAgent(_o43): sent packet (sz: 40)

please help me i will be very thankful to you.


[ns] nse issue

2013-01-22 Thread Bipul Kumar

Hellow ns user

I am trying to compile nse from ns-allinone package but  i am getting this
error

inone-2.35/otcl-1.14 -lotcl -L/home/bipul/ns-allinone-2.35/lib -ltk8.5
-L/home/bipul/ns-allinone-2.35/lib -ltcl8.5 -lXext -lX11 -lnsl -ldl -lm
-lm
emulate/net-pcap.o: In function `PcapNetwork::close()':
net-pcap.cc:(.text+0xa0): undefined reference to `pcap_close'
emulate/net-pcap.o: In function `PcapNetwork::filter(char const*)':
net-pcap.cc:(.text+0xf4): undefined reference to `pcap_compile'
net-pcap.cc:(.text+0x145): undefined reference to `pcap_setfilter'
emulate/net-pcap.o: In function `PcapNetwork::stat_pkts()':
net-pcap.cc:(.text+0x1ac): undefined reference to `pcap_stats'
emulate/net-pcap.o: In function `PcapNetwork::stat_pdrops()':
net-pcap.cc:(.text+0x1ea): undefined reference to `pcap_stats'
emulate/net-pcap.o: In function `PcapNetwork::recv(unsigned char*, int,
sockaddr, double)':
net-pcap.cc:(.text+0x386): undefined reference to `pcap_dispatch'
net-pcap.cc:(.text+0x39e): undefined reference to `pcap_strerror'
emulate/net-pcap.o: In function `PcapNetwork::recv(void (*)(void*, Packet*,
timeval const), void*)':
net-pcap.cc:(.text+0x5b2): undefined reference to `pcap_dispatch'
emulate/net-pcap.o: In function `PcapLiveNetwork::open(int, char const*)':
net-pcap.cc:(.text+0x892): undefined reference to `pcap_open_live'
net-pcap.cc:(.text+0x904): undefined reference to `pcap_datalink'
net-pcap.cc:(.text+0x920): undefined reference to `pcap_fileno'
net-pcap.cc:(.text+0xaab): undefined reference to `pcap_lookupnet'
emulate/net-pcap.o: In function `PcapLiveNetwork::autodevname()':
net-pcap.cc:(.text+0xb79): undefined reference to `pcap_lookupdev'
emulate/net-pcap.o: In function `PcapFileNetwork::open(int, char const*)':
net-pcap.cc:(.text+0x10f1): undefined reference to `pcap_open_offline'
net-pcap.cc:(.text+0x1161): undefined reference to `pcap_file'
collect2: ld returned 1 exit status
make: *** [nse] Error 1
bipul@bipul-Linux:~/ns-allinone-2.35/ns-2.35$


[ns] Network Emulation

2013-01-20 Thread Bipul Kumar

Hellow please respond me about this error messages when i am trying to do
network emulation

bipul@bipul-Linux:~/Desktop$ ns MyFirstEmulation.tcl
warning: no class variable Scheduler/RealTime::adjust_new_width_interval_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Scheduler/RealTime::min_bin_width_

invalid command name Agent/TCPTap
while executing
Agent/TCPTap create _o40 
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 Agent/TCPTap
invoked from within
set tap1 [new Agent/TCPTap]
(file MyFirstEmulation.tcl line 40)
bipul@bipul-Linux:~/Desktop$


[ns] Network Emulation

2013-01-17 Thread Bipul Kumar

I want to use a Network Emulation in ns2 can you please tell me some basic
guid lines, through which i can start approching towards real time
emulation :)




THank you


Re: [ns] Finding ack's in AODV

2013-01-05 Thread Bipul Kumar

Hellow NS-2 user

I am looking for help regading

How can i stimulate client server computers Live with ns-2

Thank you


[ns] NS-2 simulation

2013-01-05 Thread Bipul Kumar

Hellow NS-2 user

I am looking for help regading

How can i stimulate client server computers Live with ns-2

Thank you


Re: [ns] Error!! str2addr:Address outside range of address field length 1024

2012-08-30 Thread Bipul Kumar

Hellow
i want's to know which area shud i focus on Tcl Programming to simulate
TCP/IP protocol in ns2

On Wed, Aug 29, 2012 at 6:04 PM, KittyF13 kiran.1...@gmail.com wrote:



 Hello,
 Sorry to bud in, even I am stuck with the same problem. Please if you
 get any solution let me know. I am really in a hurry because of deadline
 for
 my MSc project submission. Please oblige.

  str2addr:Address -1 outside range of address field length 1024 

 thank you

 Regards,
 Kiran.


 Omowonuola saka wrote:
 
 
 
 
  Hello Everyone,
 
 
  I am an ns2 newbee and I am trying to create a wireless cum wired
 scenario
  to
  test a service discovery protocol (SLP). I have done it just like the
  examplethat comes in the tcl/ex folder in ns2 but i keep geting the error
  below.
  I will appreciate any help i can get as i am running behind schedule in
 my
  dissertation.
 
 
  The error is :
 
  num_nodes is set 8
  warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
  INITIALIZE THE LIST xListHead
  Error!!
  str2addr:Address 144425951 outside range of address field length 1024
 
  I have looked at heirachical addressing in the ns manual but i dont see
  anything
  i  am doing wrong. I will very mych appreciate any help. Thanks in
 advance
 
 
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Error%21%21-str2addr%3AAddress-outside-range-of-address-field-length-1024-tp30459605p34348249.html
 Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] ns-2.34 validation tests fail (64bit-processor)

2012-08-29 Thread Bipul Kumar

Respected Sir

My self vipul kumar and i am  LINUX user
I  got you email ID fromYoutube video, as there in video i have seen you
expertes in NS. so kindly help me in simulating TCP/IP
i will be very thank full to you


You'r truely

vipul kumar :)
www.vipullinux.wordpress.com
On Wed, Aug 29, 2012 at 7:20 PM, behnaz.bostanip...@unil.ch wrote:



  I'm not able to reproduce that error, so I would like to
  see some  examples of the diffed output.  Would you mind
  collecting all of the  *.test output files for the tests
  that failed and send them to me in a  tarball, such as:
 
  cd tcl/tests
  find . -name *.test -type f | xargs tar cvfj
  ns-2-diffs.tbz2
 
  and send me the ns-2-diffs.tbz2 file?
 
  Thanks,
  Tom


 Here you are, I exactly execuuted your command, but not sure
 if it has all the outputs that we want (i.e., for tests:
 test-all-tcpLinux, test-all-tcpHighspeed, test-all-red
 and test-all-cbq.

 So please let me know if you need other outputs,
 Thanks,
 Behnaz