2016-06-28 24 views
0

Ich bin neu in Network Simulator (NS2). Ich möchte Location Aided Routing Protocol über ns2.34 oder 2.35 simulieren. Ich habe ns-allinone-2.35 installiert und LAR-DREAM Patch-Datei für ns2.35.Wie LAR-Patch in NS2 zu implementieren?

WIE INSTALLIEREN SIE PATCH?

versuchte ich #patch -p1 < LAR-DREAM.patch

aber es sagt, keine solche Datei oder ein Verzeichnis. Platzierte Patch-Datei im Ordner ns-allinone-2.35.

Antworten Sie!

+0

Die Bedingung für $ 'Patch p0 <[Patchname] .patch' ist eine Kopie des Patches innerhalb von ns-allinone-2.35 /. ... Hinweis: Das Standard-Buildverzeichnis von ns2 ist wie/home/[name]/ns2/und alle Befehle müssen als nicht privilegierter Benutzer ausgeführt werden. Kein Root oder Sudo, bitte. Außer für # 'cp ns [name]/usr/local/bin /' –

Antwort

0

ns-2.35 + LAR und DREAM:

tar xvf ns-allinone-2.35_gcc482.tar.gz 

https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing

cd ns-allinone-2.35/ 
patch -p0 < LAR-dream__ns235.patch 

https://drive.google.com/file/d/0B7S255p3kFXNdVlhckRMMTcxalk/view?usp=sharing

./install 
cd ns-2.35/ 
cp ns ns235-lar 
sudo cp ns235-lar /usr/local/bin/ 

Simulation: ns235-lar box-Helen.tcl usw. Beispiele von ‚lar + Traum examples- 0714.tar.gz 'https://drive.google.com/file/d/0B7S255p3kFXNbG9DOW1tZXk1d1E/view?usp=sharing