LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2017, 09:35 PM   #1
dsyprb
LQ Newbie
 
Registered: Jul 2017
Posts: 3

Rep: Reputation: Disabled
FSR protocol


Would you help me to create FSR protocol in Manet with ns 2.35? i've been trying to create manually so many times but failed. Thank you
 
Old 07-19-2017, 03:23 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Hi dsyprb,

Welcome to LQ!

I'm not sure that will work in ns2. You might need ns3. Would you please explain more about what you've been doing to try and make it work?
 
Old 07-19-2017, 07:35 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,188

Rep: Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064
Quote:
Originally Posted by dsyprb View Post
Would you help me to create FSR protocol in Manet with ns 2.35? i've been trying to create manually so many times but failed. Thank you
Read the "Question Guidelines" link in my posting signature. We're happy to help...so since you've tried "so many times", post what you've written/done/tried, and also post your error(s)/message(s). Just saying "but failed" tells us nothing about your problems, and you don't tell us what version/distro of Linux you're using either.

We're happy to help, but we aren't going to write code for you, nor are we going to look things up for you and post links.
 
Old 07-19-2017, 07:49 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@dsyprb : The FSR protocol can be added with e.g. FSR_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

FSR simulation examples https://drive.google.com/file/d/0B7S...ew?usp=sharing

Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < FSR_ns235.patch
./install
cd ns-2.35/
cp ns ns-fsr
sudo cp ns-fsr /usr/local/bin/

Simulation: ns-fsr fsr-zigbee.tcl
            ns-fsr FSR-manet0-16.tcl : The trace file is log1.
https://drive.google.com/file/d/0B7S...ew?usp=sharing
Default manet examples https://drive.google.com/file/d/0B7S...ew?usp=sharing

-

Last edited by knudfl; 07-19-2017 at 08:17 AM.
 
1 members found this post helpful.
Old 07-19-2017, 01:56 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
All 21 manet simulation examples, six FSR examples are included ...
→ manet-examples-3.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
1 members found this post helpful.
Old 07-25-2017, 06:37 AM   #6
dsyprb
LQ Newbie
 
Registered: Jul 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@dsyprb : The FSR protocol can be added with e.g. FSR_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

FSR simulation examples https://drive.google.com/file/d/0B7S...ew?usp=sharing

Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < FSR_ns235.patch
./install
cd ns-2.35/
cp ns ns-fsr
sudo cp ns-fsr /usr/local/bin/

Simulation: ns-fsr fsr-zigbee.tcl
            ns-fsr FSR-manet0-16.tcl : The trace file is log1.
https://drive.google.com/file/d/0B7S...ew?usp=sharing
Default manet examples https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
I've tried the steps that you provide, but still not working. The result is :
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o4" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o4 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o4" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"
(file "FSR-manet0-16.tcl" line 162)

How do I fix it? Thank you, Sir.
 
Old 07-25-2017, 08:03 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #6.

FSR-manet0-16.tcl : The "scenario files" are missing, FSR-examples.tar.gz .

Please use FSR-examples-07.17.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
Old 08-03-2017, 05:43 AM   #8
dsyprb
LQ Newbie
 
Registered: Jul 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #6.

FSR-manet0-16.tcl : The "scenario files" are missing, FSR-examples.tar.gz .

Please use FSR-examples-07.17.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
The scenario files still not working and Im trying to re-patch ns2.35 but there's a file that's rejected.
Ex : FSR_ns235.patch.rej
What should I do?
 
Old 08-03-2017, 11:34 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #8.

Please delete ns-allinone-2.35/ or unpack a new one in a new folder:
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
patch -p0 < FSR_ns235.patch > fsr-patch.log.txt

... and please attach your fsr-patch.log.txt
...
Attached Files
File Type: txt patch.log.txt (900 Bytes, 46 views)
 
  


Reply

Tags
fsr, 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
LXer: TCP/IP Protocol: Network Time Protocol (NTP) LXer Syndicated Linux News 0 11-21-2013 12:00 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
FSR: how to configure routing or add route? ihatehotdogs Linux - Networking 3 05-01-2007 08:30 AM
Anyone using K8Neo FSR? silverbullet Linux - Hardware 0 09-16-2004 10:59 AM
Unsupported protocol 'Compression Control Protocol' (0x80fd) received RKris Linux - Software 0 08-21-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:51 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