LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2017, 05:40 AM   #1
designermp
Member
 
Registered: Apr 2017
Posts: 43

Rep: Reputation: Disabled
NS 2.35+ handoff between wifi and wimax


Hello everyone!
I'm new in NS2, I installed ns2.35. when run code simulate handoff between wifi and wimax, I got some error:
Wrong Number of Arguments! No arguments in this topology
ns wifi_wimax.tcl seed gd_threshold shutdown

expected integer but got "(1)"
while executing
"exit (1)"
invoked from within
"if {$argc != 3} {
puts ""
puts "Wrong Number of Arguments! No arguments in this topology"
puts "ns wifi_wimax.tcl seed gd_threshold shutdown"
puts..."
(file "wifi_wimax.tcl" line 29)

Are there any missing tools? if right! please guide me!
thanks in advanced!
 
Old 04-20-2017, 07:23 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,088

Rep: Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809
Quote:
Originally Posted by designermp View Post
Hello everyone!
I'm new in NS2, I installed ns2.35. when run code simulate handoff between wifi and wimax, I got some error:
Wrong Number of Arguments! No arguments in this topology
ns wifi_wimax.tcl seed gd_threshold shutdown

expected integer but got "(1)"
while executing
"exit (1)"
invoked from within
"if {$argc != 3} {
puts ""
puts "Wrong Number of Arguments! No arguments in this topology"
puts "ns wifi_wimax.tcl seed gd_threshold shutdown"
puts..."
(file "wifi_wimax.tcl" line 29)

Are there any missing tools? if right! please guide me!thanks in advanced!
You need to read the documentation that came with the scripts/code you downloaded. It's plainly telling you that you have the wrong number of arguments...that is, it's needing 3 (and tells you that), and you're not GIVING it 3.

Give the script the correct arguments and it will run.
 
Old 04-20-2017, 08:16 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,039

Rep: Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455
@designermp : Some information is missing :

1. The patch / the changes added to ns-2.35 . There are multiple wimax versions.
2. The OS you are using. Name, version, architecture, please.
.. This command will reply i686 or x86_64 : $ uname -m

The command for wifi_wimax.tcl is e.g. $ ns wifi_wimax.tcl 1 2 4


-
 
Old 04-20-2017, 12:23 PM   #4
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
@TBOne
Thank you! but i can't understand how i "giving 3" as you tell me!can you tell me more detail? please
 
Old 04-20-2017, 12:31 PM   #5
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
@knudfl
my OS version:ubuntu 12.4.5, X86-64. Ns2.35 version. when i command: $ ns wifi_wimax.tcl 1 2 4 Notification:
invalid command name "Agent/ND"
while executing
"Agent/ND set debug_ 1"
(file "wifi_wimax.tcl" line 40)
i follow some thread of you and i install MIH criteria tool + patch wimax ns2.35
Attached Files
File Type: txt wifi_wimax.txt (12.6 KB, 20 views)
 
Old 04-20-2017, 12:59 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,088

Rep: Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809Reputation: 4809
Quote:
Originally Posted by designermp View Post
@TBOne
Thank you! but i can't understand how i "giving 3" as you tell me!can you tell me more detail? please
Not sure how much more clear it needs to be. The script is asking for 3 arguments...so give it 3. knudfl gave you an example in post #3...did you not read/understand it?
 
Old 04-20-2017, 01:51 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,039

Rep: Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455
Re #5.
Quote:
... install MIH criteria tool + patch wimax ns2.35
Do you mean this https://sourceforge.net/projects/mihnistns229/
i.e. NS-MIH-MULTI-CRITERIA.tar.bz2 for ns-2.29 ? No chance with ns-2.35 .

But you can install the identical functioning ns-2.29-nist-mob-022707.tgz + pmip6-for-ns-2.29-nist.patch to ns-2.29.3
http://www.linuxquestions.org/questi...-4175539795/#2
And then you can run all NIST examples, and also the examples in NS-MIH-MULTI-CRITERIA.

Currently the only supported OS for NIST is CentOS 6.9 - i386
http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso
>> CentOS-6.9-i386-LiveDVD.iso

The Wimax for NIST isn't working, AFAIK. EDIT. See post #15.
EDIT. The issues concerns a pre patch for ns-2.31 .


Wimax : Suggest wimax-awg → wimax-awg26_ns235.patch.gz .
I.e. you can have as many ns-allinone-2.x as you want, installed at the same time.
But do never add any *PATH text to .bashrc . Not required.

Wimax build http://www.linuxquestions.org/questi...-4175523810/#6


-

Last edited by knudfl; 04-22-2017 at 08:43 PM.
 
1 members found this post helpful.
Old 04-20-2017, 10:47 PM   #8
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
thanks knudfl for guiding me!
this mean:
I have to install a new OS CentOS 6.9 - i386 as your link: http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso
then install the identical functioning ns-2.29-nist-mob-022707.tgz + pmip6-for-ns-2.29-nist.patch to ns-2.29.3, Am I right?
what verison ns2 should i install? is ns2.29.3 right?

Last edited by designermp; 04-21-2017 at 12:44 AM.
 
Old 04-21-2017, 08:09 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,039

Rep: Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455
Re #8.

Yes. One choice only. CentOS 6.9 - i386.

If you insist in building the application yourself, it is ns-allinone-2.29.3.tar.gz .

This will do :
Install the package "nist-pmip6-ns_229-ubuntu12_i386", and no other ns2 is required.
The few files needed to run $ ns ($ ns229-nist-pmip6-el6) are included :
/usr/local/lib/nistmob/ns-allinone-2.29/{ lib/*/*, bin/tcsh8* }.

The examples are required : nist-examples-Oct2015.tar.gz
( Can be unpacked and can be run in any location in /home/[user name]/ ).

Link to the CentOS 6 package nist-pmip6_ns229-2-1.i386.rpm
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

Last edited by knudfl; 04-21-2017 at 02:17 PM.
 
1 members found this post helpful.
Old 04-21-2017, 09:44 AM   #10
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
so thanks knudfl for helping me! i carry out rightnow!
 
Old 04-21-2017, 02:20 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,039

Rep: Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455
Re #9.

Please see the edited post #9 : Must be ns-allinone-2.29.3.tar.gz : Typo edited.
 
Old 04-22-2017, 12:27 AM   #12
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
yes! but this link https://drive.google.com/file/d/0B7S...ew?usp=sharing i can't access: limited right to access! can you give me another link?
 
Old 04-22-2017, 03:56 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,039

Rep: Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455
Re #12. https://drive.google.com/file/d/0B7S...ew?usp=sharing

nist-pmip6_ns229-2-1.i386.rpm : I changed the access to "Public on the Web".

HOWTO install nist-pmip6_ns229-2-1.i386.rpm :

cd Downloads/
su [enter root password]
yum install ./nist-pmip6_ns229-2-1.i386.rpm


-
 
Old 04-22-2017, 06:54 AM   #14
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
thank you for helping me!

Last edited by designermp; 04-22-2017 at 07:30 AM.
 
Old 04-22-2017, 08:40 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,039

Rep: Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455Reputation: 3455
Post #7 correction.

The Wimax for NIST isn't working, AFAIK.

The "nist wimax" for ns-2.29 is working OK.

The issues I remembered was with a later ns-2.31 patch.
( wimax-pre041707-ns231 ).

-
 
  


Reply

Tags
mih-multi-criteria, nist-mob, ns2, wimax-802.16j


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
Vertical handover between wimax and wifi code najat Linux - Newbie 3 01-14-2016 07:26 AM
Vertical handover between wimax and wifi code IdaliaZimmerman Linux - Newbie 1 12-10-2015 08:31 AM
How can i create a topology that composed of WIFI-WIMAX and UMTS Master_Stu Linux - Networking 7 04-02-2015 02:49 PM
install wimax wifi lte ns2-allinone-2.35 abdennour Linux - General 1 03-24-2015 02:46 PM
WiFi Handoff Paris Heng Linux - Wireless Networking 0 02-22-2008 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration