[ns] Address 761623648 outside range of address field length 2048

2012-08-08 Thread sujana1


http://old.nabble.com/file/p34269615/mytopo1.png 
http://old.nabble.com/file/p34269615/mine7.tcl mine7.tcl 


# 
#  w(0)==BS(0)--N0--N1--BS(1)==W(1)
#
# simulation of a wired-cum-wireless scenario 
# ==
# Define options
# ==
set opt(chan)   Channel/WirelessChannel;# channel type
set opt(prop)   Propagation/TwoRayGround   ;# radio-propagation
model
set opt(netif)  Phy/WirelessPhy;# network interface type
set opt(mac)Mac/802_11 ;# MAC type
set opt(ifq)Queue/DropTail/PriQueue;# interface queue type
set opt(ll) LL ;# link layer type
set opt(ant)Antenna/OmniAntenna;# antenna model
set opt(ifqlen) 50 ;# max packet in ifq
set opt(nn) 2  ;# number of
wirelessnodes
set opt(adhocRouting)   DSDV   ;# routing protocol
set opt(x)  1000   ;# x coordinate of
topology
set opt(y)  700;# y coordinate of
topology
set opt(stop)   250;# time to stop
simulation
set opt(ftp1-start) 10.0
set num_wired_nodes  2
set num_bs_nodes 2
#


# create simulator instance
set ns_   [new Simulator]

# set up for hierarchical routing
$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 4  ;# number of domains
lappend cluster_num 1 1 1 1   ;# number of clusters in each
domain
AddrParams set cluster_num_ $cluster_num
lappend no_of_nodes 1 2 2 1   ;# number of nodes in each domain
AddrParams set nodes_num_ $no_of_nodes;

set tracefd  [open wireless2-out.tr w]
set namtrace [open wireless2-out.nam w]
$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)

# Create topography object
set topo   [new Topography]

# define topology
$topo load_flatgrid $opt(x) $opt(y)

# create God
create-god [expr $opt(nn) + $num_bs_nodes]

#create wired nodes
set temp {0.0 3.0};# hierarchical addresses for wired domain
for {set i 0} {$i  $num_wired_nodes} {incr i} {
set W($i) [$ns_ node [lindex $temp $i]] 
}

# configure for base-station node
$ns_ node-config -adhocRouting $opt(adhocRouting) \
 -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -channelType $opt(chan) \
 -topoInstance $topo \
 -wiredRouting ON \
 -agentTrace ON \
 -routerTrace OFF \
 -macTrace OFF 

#create base-station node
set temp {1.0 1.1 }   ;# hier address to be used for wireless domain
set BS(0) [$ns_ node [lindex $temp 0]]
$BS(0) random-motion 0   ;# disable random motion
#provide some co-ord (fixed) to base station node
$BS(0) set X_ 100.0
$BS(0) set Y_ 100.0
$BS(0) set Z_ 0.0

set temp1 {2.0 2.1 }   ;
set BS(1) [$ns_ node [lindex $temp1 0]]
$BS(1) random-motion 0   ;# disable random motion
#provide some co-ord (fixed) to base station node
$BS(1) set X_ 700.0
$BS(1) set Y_ 100.0
$BS(1) set Z_ 0.0


# create mobilenodes in the same domain as BS(0)  
#configure for mobilenodes
$ns_ node-config -wiredRouting OFF
set node_(0) [ $ns_ node [lindex $temp 1]
$node_(0) base-station [AddrParams addr2id \[$BS(0) node-addr]]
$node_(0) random-motion 0 

set node_(1) [ $ns_ node [lindex $temp1 1]
$node_(1) base-station [AddrParams addr2id \[$BS(1) node-addr]]
$node_(1) random-motion 0

#create links between wired and BS nodes
$ns_ duplex-link $W(0) $BS(0) 5Mb 2ms DropTail
$ns_ duplex-link $W(1) $BS(1) 5Mb 2ms DropTail
$ns_ duplex-link-op $W(0) $BS(0) orient right
$ns_ duplex-link-op $W(1) $BS(1) orient right

# setup TCP connections
set tcp1 [new Agent/TCP]
$tcp1 set class_ 2
set sink1 [new Agent/TCPSink]
$ns_ attach-agent $w(0) $tcp1
$ns_ attach-agent $W(1) $sink1
$ns_ connect $tcp1 $sink1
set ftp1 [new Application/FTP]
$ftp1 attach-agent $tcp1
$ns_ at $opt(ftp1-start) $ftp1 start

# Define initial node position in nam
$ns_ initial_node_pos $node_(0) 10
$ns_ initial_node_pos $node_(1) 10

$ns_ at $opt(stop).0002 puts \NS EXITING...\ ; $ns_ halt
$ns_ at $opt(stop).0001 stop

proc stop {} {
global ns_ tracefd namtrace
$ns_ flush-trace
close $tracefd
close $namtrace
exec nam wireless2-out.nam 
exit 0
}

puts Starting Simulation...
$ns_ run

i cant find any mistake where i'm exceeding the number of nodes
created.please help.
-- 
View this message in context: 

Re: [ns] wired cum wireless multi hop network in ns2

2012-08-08 Thread mhuy_1708


yes. of course. ns-2 can work that.y can search on google
-- 
View this message in context: 
http://old.nabble.com/wired-cum-wireless-multi-hop-network-in-ns2-tp34264599p34270953.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] wired cum wireless multi hop network in ns2

2012-08-08 Thread Mojtaba Asgari

Yes, you can. You can find useful information in the article Implementing a 
New Manet Unicast Routing Protocol in NS2 by Francisco J. Ros and 
Pedro M. Ruiz, and also in NS2 Document.



 


 From: Agepati Sujana suj...@ece.iisc.ernet.in
To: ns-users@ISI.EDU 
Sent: Tuesday, August 7, 2012 2:23 PM
Subject: [ns] wired cum wireless multi hop network in ns2
 


n0==b0--m0--m1--m2--m3--m4--b1==n1

here == means wired connection
        --  means wireles connection

There is TCP source at n0  TCP sink at n1. m0 to m4 is adhoc multi hop
network. is it possible to simulate above model in ns2??
I'm new to ns2.i have to simulate the above attached model.
when i read the tutorials,i feel that once base station is used,all
wireless nodes must be attached to it.
            but i require adhoc multi hop between wireless nodes so that
data sent from wired node n0 reaches n1.
        Is it possible to simulate this in ns2??
please help me.i have spent weeks on this.still didnt get any idea how to
do this...
-sujana.
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Re: [ns] segmentation problem

2012-08-08 Thread Saravanan Kandasamy

Dear Sunil Kumar,

Segmentation Fault is a very common problem faced by NS2 users. It has
to do with memory such as trying to access an address that cannot
physically be addressed, thus an exception has been called. It can
happen either in C++ side or at TCL side. The below looks like
happening from C++ side to me.

Thought the problem is very common, unfortunately the cause of the
Segmentation Fault are very wide. It takes more than providing couple
of preceding error lines to solve it.

The right way to handle a Segmentation Fault is by debugging the code.
To start with, if your simulation scenario involves 50 nodes, see if
you could replicate the problem in the smallest possible number of
nodes to simplify your debugging process. For C++ debugging you can
use GDB or even putting simple printf lines around  node 0 received
`UPD` from non-neighbor 5 lines to see if the change of variables,
memory allocation and function calls are done per your need.

It will take some time to understand how GDB codes work for first time
user and a certain amount of troubleshooting effort., once you get
used to it, it will be easy.  After finding where the abnormality
occur, work your way up the code to know what caused the abnormality
and rectify the problem.

Its very rare another person could able to help you to solve
Segmentation Fault without looking at all the codes.

Good Luck.

rgds
Saravanan Kandasamy

On Wed, Aug 8, 2012 at 5:08 AM, sunil kumar scientist@gmail.com wrote:

 hello every one
 I am working with ns-2.35 in windows environment. For ODMRP protocol if
 number of nodes increased above 10 then simulation running successfully for
 99% of simulation time and aborted with the message segmentation
 fault(core dumped)... what happend? can any one tell the solution for
 this...? thanks in advance



Re: [ns] installing ns2.34 on ubuntu 11.10 64 bit error while installing

2012-08-08 Thread Ajenkya


Thank you for your help . i'll surely do the necessary . 
Thank you Again .

Ajinkya K

svanan77 wrote:
 
 
 Hi,
 
 There are several writeup which would be of help to you.
 
 Refer:
 [1]
 http://erl1.wordpress.com/2011/05/12/installing-ns-2-34-on-ubuntu-11-04/
 [2]
 http://www.pradeepkumar.org/2011/07/installing-network-simulator-2-ns2-34-in-ubuntu-11-04.html
 
 Good Luck.
 
 rgds
 Saravanan K
 
 On Sat, Jul 14, 2012 at 6:51 PM, Ajinkya kadam ajenkya.ka...@gmail.com
 wrote:

 i am currently using ubuntu 11.10 64-bit , and while installing ns2.34 i
 am
 getting a compiling error in tools/ranvar.cc line  213 and 561
 what should i do to remove it ???
 
 
 


-
Ajinkya K
:rules:
-- 
View this message in context: 
http://old.nabble.com/installing-ns2.34-on-ubuntu-11.10-64-bit-error-while-installing-tp34161656p34273372.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Last Week CFP: ICCVE 2012 - December 12-16, 2012 | China National Convention Center, Beijing, China

2012-08-08 Thread Jaime Lloret Mauri


*
2012 International Conference on Connected Vehicles  Expo (ICCVE 2012)
*

December 12-16, 2012  |  China National Convention Center, Beijing, China

Smarter, Safer, Faster, Cheaper, Cleaner

Technically Sponsored by:
ACM (Association for Computing Machinery)
IEEE Communications Society
IEEE Computer Society
IEEE Consumer Electronics Society
IEEE Industrial Electronics Society
IEEE Intelligent Transportation Systems Society
IEEE Vehicular Technology Society
IEEE Standards Association
IFAC (International Federation of Automatic Control)
TRB (Transportation Research Board)

Conference website: www.iccve.org
_


Connected Vehicles is an emerging technical field which crosses multiple 
disciplines and industries including automotive, travel  transportation, 
information technology, communications, consumer electronics, industrial 
electronics, media  entertainment, energy  utilities, insurance, etc. By 
connecting vehicles with various devices, services and participants, we are 
able to make our mobility more enjoyable and sustainable.

ICCVE 2012 is the first-ever Connected Vehicles conference that gathers all the 
relevant communities together. During the 5-day conference, more than 2,000 
experts, practitioners and policy makers from all around the world will present 
the latest innovations and advances on connected vehicles, share the experience 
and insights, forecast the trends and opportunities, and discuss the policy, 
economics and social implications. We are proudly and excitedly inviting you to 
participate in and enjoy this world-class festival.

The conference program will feature paper sessions and workshops, industry 
summits and forums, demos, exhibits, tutorials, tours, and an applications 
contest. Topics of interest include, but are not limited to:
1. Wireless Communications and Vehicular Networking;
2. Mobile Internet, Mobility Internet and Internet of Things;
3. Cooperative Driving, Intelligent and Autonomous Vehicles;
4. Automotive Electronics and Automatic Control;
5. Transportation and Connected Vehicles;
6. Electric Vehicle and Transportation Electrification;
7. Geographic, Spatial and Social Information Systems;
8. Manufacturing and Product Safety Engineering in Connected Vehicles;
9. Practices, Recommendations and Standards in Connected Vehicles;
10. Policy, Economics and Social Implications of Connected Vehicles.

-
Important Dates
Paper Submission Deadline:   Aug 15, 2012 (EXTENDED)
Notification of Acceptance:   Sep 6, 2012
Final Manuscript Due: Oct 5, 2012
Conference Dates: Dec 12-16, 2012
-

Full Papers:
Prospective authors are invited to submit full papers (IEEE standard format, 
double column, 10-point font, 6 pages maximum with 2 additional pages allowed 
but at an extra charge) for presentation at the conference and publication in 
the Proceedings.

Short Papers:
Authors are also invited to submit short papers (IEEE standard format, double 
column, 10-point font, 2 pages) to showcase results recently obtained in 
industry or academia. Accepted short papers will be presented at the conference 
and published in the Proceedings.

The IEEE templates in Microsoft Word and LaTeX format can be found at:
http://www.ieee.org/conferences_events/conferences/publishing/templates.html

Paper submission at:
http://edas.info/N12795

All submissions should be written in English, must be electronically submitted 
in PDF format, and will be peer-reviewed. Please contact the Technical Program 
Committee (t...@iccve.org) if you have any questions.

Accepted and presented papers will be published in the ICCVE 2012 Conference 
Proceedings and submitted to IEEE Xplore by IEEE Conference Publishing Services 
(CPS). All CPS conference publications are submitted for indexing through 
INSPEC, EI's Engineering Information Index, Compendex, (Elsevier 
http://www.ei.org/), and ISI Thomson's Scientific and Technical Proceedings, 
ISTP/ISI Proceedings, and Current Contents on Diskette (ISI Thomson 
http://www.isinet.com/).

To be published in the ICCVE 2012 Conference Proceedings and submitted to IEEE 
Xplore, an author of an accepted paper is required to register for the 
conference at the full (member or non-member) rate and the paper must be 
presented at the conference. Non-refundable registration fees must be paid 
prior to uploading the final IEEE formatted, publication-ready version of the 
paper. For authors with multiple accepted papers, one full registration is 
valid for up to 3 papers. 

For more information, visit www.iccve.org



Topics of interest include, but are not limited to:

---
1. Wireless Communications and Vehicular Networking

[ns] change aodv

2012-08-08 Thread Maryam Heidari

Hi everybody
I want to change the aodv code that each node send packet direct to destination 
without any
middle node if the difference between the power that consumes for direct send 
and the power
 that consumes for sends packet to next node in the aodv  protocol  is less 
than the constant value,
else follow the aodv

best regards
Heidari