LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2005, 09:35 AM   #1
hari_mj23
LQ Newbie
 
Registered: Mar 2005
Posts: 8

Rep: Reputation: 0
error while assigning mobile nodes in ns-2


hi
i totally new to linux and network simulator so i have absolutely no clue as to what this error means. when i try to initialize a few mobile nodes in network simulator 2 i get a few errors with the node-config statement

this is my program code :

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

the error i get is :

num_nodes is set 10
can't read "val(ll)": no such element in array
while executing
"$ns_ node-config -llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) ..."
(file "wireless.tcl" line 19)

any kind of suggestions r welcome as i am totally stumped. thanking you

hari
 
Old 06-03-2009, 02:48 PM   #2
kexplore
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Same Problem

Hey, I was looking for help with the same problem and I came across your thread.

Did you solved your problem? I will be glad if you can please provide me the solution you got with your problem !!!!
 
Old 02-16-2021, 05:08 AM   #3
selmanhizal
LQ Newbie
 
Registered: Jul 2018
Location: Türkiye
Posts: 2

Rep: Reputation: Disabled
Wink Running Wireless Simulations in ns

Hi,

You will define your options in your TCL file as follows.

# ======================================================================
# Define options
# ======================================================================
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(ant) Antenna/OmniAntenna ;# Antenna type
set val(ll) LL ;# Link layer type
set val(ifq) Queue/DropTail/PriQueue ;# Interface queue type
set val(ifqlen) 50 ;# max packet in ifq
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(rp) DSDV ;# ad-hoc routing protocol
set val(nn) 2 ;# number of mobilenodes

Also you will find detailed example from https://www.isi.edu/nsnam/ns/tutorial/nsscript5.html website.

Have a nice simulations...
 
1 members found this post helpful.
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Charlotte Church's mobile phone Oops! Topless photo jumps through mobile phones in UK furfurdemon666 General 3 05-03-2005 08:03 AM
assigning raw devices: error when going to init3 GlennsPref Mandriva 1 11-25-2004 09:03 PM
Disk Less Nodes kirtimaan_bkn Linux - Networking 2 09-01-2004 08:47 PM
error in assigning the iterator to refrence varaible ashwinipahuja Programming 1 06-18-2004 05:55 AM
Diskless Nodes nikhiljosh Linux - Networking 1 04-06-2003 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration