LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FSR protocol (https://www.linuxquestions.org/questions/linux-newbie-8/fsr-protocol-4175610147/)

dsyprb 07-18-2017 09:35 PM

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

AwesomeMachine 07-19-2017 03:23 AM

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?

TB0ne 07-19-2017 07:35 AM

Quote:

Originally Posted by dsyprb (Post 5736913)
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.

knudfl 07-19-2017 07:49 AM

@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

-

knudfl 07-19-2017 01:56 PM

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

dsyprb 07-25-2017 06:37 AM

Quote:

Originally Posted by knudfl (Post 5737080)
@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.

knudfl 07-25-2017 08:03 AM

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

-

dsyprb 08-03-2017 05:43 AM

Quote:

Originally Posted by knudfl (Post 5739602)
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?

knudfl 08-03-2017 11:34 AM

1 Attachment(s)
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
...


All times are GMT -5. The time now is 11:40 AM.