[ns] Need for help (nam ns)

2006-06-15 Thread Htira Walid

Hello,

I used inet to generate internet topology. please, can i visualize this 
internet topology witn nam ? if it's ture, how can i do it ?

Thanks

-- 
___

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10



Re: [ns] Problem with emulation

2006-06-15 Thread Svilen Ivanov

Hello Paolo,

[EMAIL PROTECTED] wrote:

Hi list!

I'm having some problems using the emulation examples.
I try to use ns-2 as a forwarder: real host A send a ping to real host B, 
passing through the simulator, C. After adding the correct route to A and B to 
use C as a gateway, I use this script (because the one with ns-2 doesn't work 
at all)

# Inside the simulator
#
# node(5)
# / \
# / \
# node(2) node(1)


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

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

# Create the nodes
set n1 [$ns node]; #reading from real network
set n2 [$ns node]; #writing to the real network
set n5 [$ns node]; #nothing important


# Configure the entry node
set bpf1 [new Network/Pcap/Live]; # Create the bpf
set dev1 [$bpf1 open readonly eth0]; # Open the device
$bpf1 filter icmp and host 192.168.0.3;# put the filter
set tap1 [new Agent/Tap]; # Create the Tap Agent
$tap1 network $bpf1; # Connect bpf to Tap Agent
$ns attach-agent $n1 $tap1; # Attach Tap Agent to the node(1)

# Configure the exit node
set ipnet [new Network/IP]; # Create a Network agent
$ipnet open writeonly
set tap2 [new Agent/Tap]; # Create a Tap Agent
$tap2 network $ipnet; # Connect network agent to tap agent
$ns attach-agent $n2 $tap2; # Attach agent to the node.


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

#Just for debug
puts tap1: $tap1
puts tap2: $tap2


puts Node1: $n1
puts Node2: $n2
puts Node5: $n5

puts bpf1: $bpf1
puts ipnet: $ipnet


# Setup connections between the nodes
$ns simplex-link $n1 $n2 10Mb 5ms DropTail
$ns simplex-link $n5 $n2 10Mb 5ms DropTail


$ns at 10 finish

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

$ns run


If I run this script, the packets are forwarded, but the simulator begins to 
create a very big traffic of dup packet:
...
TapAgent(_o24): sent packet (sz: 60)
TapAgent(_o24): sent packet (sz: 60)
TapAgent(_o24): sent packet (sz: 60)
TapAgent(_o24): sent packet (sz: 60)
TapAgent(_o24): sent packet (sz: 60)
TapAgent(_o24): sent packet (sz: 60)
TapAgent(_o24): sent packet (sz: 60)
TapAgent(_o24): sent packet (sz: 60)
4.835407: Tap(_o21): recvpkt, cc:60
4.835407: Tap(_o21): recvpkt, writing to target: _o13
4.835578: Tap(_o21): recvpkt, cc:60
4.835578: Tap(_o21): recvpkt, writing to target: _o13
4.835698: Tap(_o21): recvpkt, cc:60
4.835698: Tap(_o21): recvpkt, writing to target: _o13
4.835807: Tap(_o21): recvpkt, cc:60
4.835807: Tap(_o21): recvpkt, writing to target: _o13
4.835976: Tap(_o21): recvpkt, cc:60
4.835976: Tap(_o21): recvpkt, writing to target: _o13
4.836086: Tap(_o21): recvpkt, cc:60
...

I really don't understand why.

Is it possible that your

Network/IP

object wites packets back to the eth0 interface? In this case you read a 
packet from eth0, pass it through ns-2, then write it back to eth0 with 
the $ipnet. But the

Network/Pcap/Live

object reads this packet again, and this results in a endless 
duplication cycle.

Another reason for duplication in the real network might be if you have 
forgotten to disable the routing on your ns-2 host.

 And if I use IPTap for the 2 tap I get:
  

IPTapAgent(_o21): sendpkt called while in read-only mode!
0.770541: IPTapAgent(_o21): recvpkt, cc:1

  

If you mean

Network/Pcap/Live



this object can not write packets back to the real network. Under linux 
it can only read.

You might be interested in an extension to ns-2-emulation to read/write 
packets using linux raw sockets.
http://ivs.cs.uni-magdeburg.de/EuK/forschung/projekte/nse/index.shtml

Thank you very much for any idea/suggestion/tip.

Paolo Carpo

P.S. Sorry for the poor english


  

Best regards,
Svilen

-- 
+--+
| M.Sc. Svilen Ivanov  |
| Institute for Distributed Systems (IVS)  |
| Otto-von-Guericke University - Magdeburg |
| http://ivs.cs.uni-magdeburg.de/~svilen/  |
+--+



[ns] uable to add a new protocol ping given in ns-tutorial

2006-06-15 Thread lakshmi muddana

hello everyone,

  i downloaded ping.h  ping.cc given in the tutorial.
an error is encountered during compilation.
the error is : 
in the recv() function of ping.cc, it says,  
 off_ip_  is undefined.

Send instant messages to your online friends http://in.messenger.yahoo.com 
brbr Stay connected with your friends even when away from PC.  Link: 
http://in.mobile.yahoo.com/new/messenger/  



[ns] unable to add a new protocol ping given in ns-tutorial

2006-06-15 Thread lakshmi muddana

hello everyone,

  i downloaded ping.h  ping.cc given in the tutorial.
an error is encountered during compilation.
the error is : 
in the recv() function of ping.cc, it says,  
 off_ip_  is undefined.

Send instant messages to your online friends http://in.messenger.yahoo.com 
brbr Stay connected with your friends even when away from PC.  Link: 
http://in.mobile.yahoo.com/new/messenger/  



[ns] Implementing malicious behaviour in ad-hoc nodes

2006-06-15 Thread Paul Kiddie

Hi all,

I want to be able to inspect and alter packets generated from a particular ad 
hoc routing protocol, like AODV, and also be able to interact with the routing 
agent for a malicious library I'm thinking of implementing for the simulation 
of the effect of malicious activity on large ad-hoc networks. I'm just 
wondering if anyone can give me advice on the best way of going about this - 
I've designed a new 'Behaviour' class: each routing agent has a Behaviour 
object attached onto them but Im just wondering how I would go about 
implementing certain attacks, for example a RREQ flood attack. I could set a 
variable in the Behaviour object within the node itself, and get the AODV code 
to read whether a variable, like 'toFlood' in the Behaviour class is set to 
true or false to queue up RREQ's for each time slot, but Im not sure whether 
this is the most efficient way of doing things. Especially when you consider 
other attacks, for example altering routing packets as they go through a 
particular node, I'd really like to be able to alter them on the fly, by 
reading a packet, getting its type (i.e. RREQ) and altering it's contents! 
Certain attacks are easily implemented with the current Behaviour class, like 
dropping RREQs, we simply get the AODV routing agent to read the Behaviour 
'isDropping' variable, and if its true then we simply return out of the 'send' 
procedure without forwarding, but this means the code is dependant on the 
actual routing protocol in use and I would really like to make it as 
independent as possible!

Any help/feedback would be really appreciated!
Many Thanks


Paul Kiddie
1st Year PhD Electronic  Electrical Engineering
School of Electronic, Electrical  Computer Engineering, 
University Of Birmingham, 
Edgbaston, 
Birmingham, 
B15 2TT

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 15 June 2006 01:00
To: ns-users@ISI.EDU
Subject: Ns-users Digest, Vol 30, Issue 15

Send Ns-users mailing list submissions to
ns-users@isi.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.isi.edu/mailman/listinfo/ns-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific than Re: 
Contents of Ns-users digest...


Today's Topics:

   1.  EURANE - handover ? (Anoop Ramamurthy)
   2. Re: help (lakshmi muddana)
   3. Re: persons well-versed in ns-2 (lakshmi muddana)
   4. simple-wireless.tcl is not running on ns2.28 (Srirupa  Dasgupta)
   5. simple-wireless.tcl is not running on ns2.28 (Srirupa  Dasgupta)
   6. what's scaling factor in inet (Htira Walid)
   7.  termination of transmission (erhan gülhan)
   8.  termination of transmission (erhan gülhan)
   9. jitter in a new MANET routing protocol (Alexandra Cioroianu)
  10. Re: jitter in a new MANET routing protocol (Francisco J. Ros)
  11. Re: simple-wireless.tcl is not running on ns2.28
  (Pedro Vale Estrela)
  12. Problem with emulation ([EMAIL PROTECTED])
  13. Re: Clearing a queue at a node in ns-2 (Pedro Vale Estrela)


--

Message: 1
Date: Wed, 14 Jun 2006 08:59:41 +0530
From: Anoop Ramamurthy [EMAIL PROTECTED]
Subject: [ns]  EURANE - handover ?
To: ns-users@ISI.EDU
Message-ID:
[EMAIL PROTECTED]

Content-Type: text/plain; charset=US-ASCII

Hi ppl ,

Its mentioned that eurane doesnt support handover functionality. 
I still want to know if there are some ways to simulate handover scenario in 
umts ? 

__

--

Message: 2
Date: Wed, 14 Jun 2006 07:51:12 +0100 (BST)
From: lakshmi muddana [EMAIL PROTECTED]
Subject: Re: [ns] help
To: ns-users@ISI.EDU
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

dear all,

  somebody kindly help me to add the new protocol PING given in the tutorial.
  problem faced is : 
after creating ping.h  ping.cc and nessary changes
   when given make  at prompt, it says no destinations.



Send instant messages to your online friends http://in.messenger.yahoo.com 
brbr Stay connected with your friends even when away from PC.  Link: 
http://in.mobile.yahoo.com/new/messenger/  



--

Message: 3
Date: Wed, 14 Jun 2006 08:06:18 +0100 (BST)
From: lakshmi muddana [EMAIL PROTECTED]
Subject: Re: [ns] persons well-versed in ns-2
To: ns-users@ISI.EDU
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

dear all,

   i would like to know the persons well-versed in
ns-2 in Andhra Pradesh.

Send instant messages to your online friends http://in.messenger.yahoo.com 
brbr Stay connected with your friends even when away from PC.  Link: 

[ns] how to complete the Makefile for a new protocol?

2006-06-15 Thread Alexandra Cioroianu

Hello ns users!
 I'm working on the implementation of a new routing protocol and i want to 
modify the code for the DSDV protocol. I have made some changes and now i want 
to edit the Makefile by adding the object files inside the OBJ_CC variable. The 
problem is i can't find the OBJ_CC variable i have ns-2.29 on Mandriva. 
 How can i go on wih my work? Please tell me how to edit the Makefile. Any help 
will be apreciated. Thank you in advance!
 Regards, Alexandra
 


Alexandra Cioroianu

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [ns] simple-wireless.tcl is not running on ns2.28

2006-06-15 Thread Dimitris Antonellis

* couldn't read file ../mobility/scene/cbr-3-test
no such file or directory

Probably, you changed the path of the script ns simple-wireless.tcl so as to
run it. Thus, it cant find the path for the mobility script /cbr-3-test
You have to open the script ns simple-wireless.tcl and change the
correspondig paths so as to represent the new relative path of the
/cbr-3-test.


Dimitris Antonellis


Message: 4
 Date: 14 Jun 2006 07:15:38 -
 From: Srirupa  Dasgupta [EMAIL PROTECTED]
 Subject: [ns] simple-wireless.tcl is not running on ns2.28
 To: ns-users@ISI.EDU
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;   charset=iso-8859-1




 Dear friend,
 please help me to run wireless scripts on ns2 .
 i am typing the following command:
 ns simple-wireless.tcl
 the error messafe that i am getting is as follows:
 num_nodes is set 3
 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
 INITIALIZE THE LIST xListHead
 Loading connection pattern...
 couldn't read file ../mobility/scene/cbr-3-test: no such file or
 directory
 while executing
 source.orig ../mobility/scene/cbr-3-test
 (uplevel body line 1)
 invoked from within
 uplevel source.orig [list $fileName]
 invoked from within
 if [$instance_ is_http_url $fileName] {
 set buffer [$instance_ read_url $fileName]
 uplevel eval $buffer
 } else {
 uplevel source.orig [list $fileName]
 ...
 (procedure source line 8)
 invoked from within
 source $val(cp)
 (file wireless1.tcl line 121)
 what is this?
 please help




[ns] R: Problem with emulation

2006-06-15 Thread [EMAIL PROTECTED]

Dear Svilen,

You are totally right! Using just one interface, without filtering mac 
addresses, the simulator enters in a loop. Now it goes well!
Thx a lot for the link, my next step will be integrate some UML with ns-2!

Have a nice day,
Paolo Carpo




[ns] GEA Problems / Tutorial?

2006-06-15 Thread Jeff Schwentner

I am having some difficulty building and using GEA with Red Hat Enterprise
Linux.  This is what I have done thus far (please let me know if there is a
bad step in here):

 

1)   I downloaded ns-2.28, the 2.28-4 patch, and libgea1.1 from
http://bode.cs.uni-magdeburg.de/~aherms/debian/dists/sid/ns2/source/

2)   I applied the patch

3)   I copied the contents of the libgea1.1 package on top of the gea
directory in ns-2.28

4)   I ran automake -ac in the gea directory, and then copied libtool
into the gea directory. (Note: Step 5 wouldn't succeed without this step). 

5)   I then built the contents of gea using ./configure, make, make
install

6)   I tried to build the contents of ns-2.28 (parent directory) with
./configure, make.

7)   I get the following error when I performed make:  make: *** No rule
to make target `gea/gea.cc', needed by `gea/gea.o'. 


Can anyone see what I'm doing wrong?  Also, I would greatly appreciate any
documentation that would help a new user learn  use gea.  Perhaps a
tutorial?

 

Thanks in advance!

 

Jeff
 

 



[ns] help with TraceGraph

2006-06-15 Thread Armelle Gnassou


Hi all!

I have some problem with Tracegraph, I have simulated a wired-cum-wireless 
scenario, and i tried to use Tracegraph but i had the following error:
Maximal number of lines 1000 has been processed!
Error cannot read the file!
Undefined function or variable 'pliktemp'

Somebody has already met this error?, please help with this!

Thanks a lot for helpful information

Best regards,

Armelle

_
Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! 
http://desktop.msn.fr/



Re: [ns] uable to add a new protocol ping given in ns-tutorial

2006-06-15 Thread Sanjay Raghani

Hi,
Which version of NS are you using. The ping protocol is also inbuilt in
NS and the code for the same exists at ns-2.2*/apps/ping.h and
ns-2.2*/apps/ping.cc. So are u recompiling the ns with new ping after doing
some changes?

neways try using the syntax
hdr_ip* hdrip = HDR_IP(pkt);

Also if it still doesnt work, post the entire error message that you obtain
while recompiling the NS

Regards
Sanjay Raghani
Mtech II CSE
IIT - Roorkee


[ns] TCP/FullTcp/Newreno Vs. TCP/Newreno

2006-06-15 Thread Siddharth Ramesh

Hi all,
I was using FullTcp/Newreno agent and found that it behaved differently from
the normal TCP/Newreno in terms of congestion control. I am really not sure
about what is causing the difference. This difference is especially obvious
when the number of flows sharing a bottleneck link becomes high - the
FullTcp flows were performing much better in terms of the throughputs
achieved.

Anybody has any clue as to why this is happening?
Thanks,
Sid