LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   how to installing LTE module patch in NS2.33 (https://www.linuxquestions.org/questions/ubuntu-63/how-to-installing-lte-module-patch-in-ns2-33-a-857930/)

knudfl 12-12-2014 08:12 AM

← #150 .

https://eprints.usq.edu.au/18936/1/Alenazi_2010.pdf
→ OK, that's the default LTE, I think.

Mas Pras 12-12-2014 08:55 AM

what can used for traffic video on the LTE network sir, for my project
?

knudfl 12-12-2014 11:10 AM

← #152 .
Quote:

what can used for traffic video on the LTE network
May be a "file.tcl" that you write ?

Repeat : I have no knowledge about LTE + Video + Voip, sorry.

-

Mas Pras 12-12-2014 11:24 AM

ok sir, i'll try for that,
sir, what ubuntu versi which you use for install ns2, i want install ns2 in ubuntu which same with you use,
i'm sorry my english is very bad, i hope you understand what i mean :)


thank's sir,

knudfl 12-12-2014 11:44 AM

← #154 .

ns2 + LTE, i.e. {ns-2.33, ns-2.34, ns-2.35} + lte :
Any 32bits (i686) Ubuntu version can be used, I think.

Mas Pras 12-14-2014 12:16 PM

sir how to install ns2.33 in ubuntu 14.04, i search in group nothing for install ns2.33 for ubuntu 14.04 32bit i686

help me

knudfl 12-14-2014 01:54 PM

← #156 .

Please read post #140. ( Again.)
b)
c)
d)
e) $ cd ns-2.33/
f) $ cp ns ns-lte && sudo cp ns-lte /usr/local/bin/
.... And you can do $ ns-lte eyana.tcl

-

Mas Pras 12-14-2014 02:07 PM

why sir?
i try again in post #11


project@project:~/ns-allinone-2.33/ns-2.33/lte-model-read-only$ ./test
Deleting the old log files ...
rm: cannot remove ‘*.log’: No such file or directory
rm: cannot remove ‘*.txt’: No such file or directory
rm: cannot remove ‘out.*’: No such file or directory
Done
start testing, please wait ...
./test: line 8: ns: command not found
Done
The testing results(throughput, delay, jitter) are:
---------------------------------------------------

awk: cannot open out.tr (No such file or directory)

awk: cannot open out.tr (No such file or directory)

awk: cannot open out.tr (No such file or directory)

check the out.txt out.tr out.nam for detailed information.
project@project:~/ns-allinone-2.33/ns-2.33/lte-model-read-only$ ^C
project@project:~/ns-allinone-2.33/ns-2.33/lte-model-read-only$

knudfl 12-14-2014 08:05 PM

ns-allinone-2.33, Ubuntu 14.04 - i686
 
← #158, and post #31 here ...
http://www.linuxquestions.org/questi...022/page3.html
Quote:

undefined reference to `__stack_chk_fail_local'
Yes, that's strange. Worked OK `April 2014ī with no otcl patch.
* And fails now with the old patch.

You can use the new patch for otcl-1.13, "otcl_ns234_gcc-4.4.patch"
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... Then no issues here.

-

Mas Pras 12-15-2014 12:04 PM

and sir, how to install otcl_ns234_gcc-4.4.patch to ns2.33??

knudfl 12-15-2014 05:12 PM

← #160 .

Like the other otcl patch ( see the edited post #140 )

a) $ tar xvf ns-allinone-2.33.tar.gz
b) $ cd ns-allinone-2.33/
c) $ tar xvf lte-ns233-patching-2.tar.gz
c1) $ patch -p0 < otcl_ns234_gcc-4.4.patch

Mas Pras 12-16-2014 02:21 AM

sir result for patch patch -p0 < otcl_ns234_gcc-4.4.patch
step by step :

a) $ tar xvf ns-allinone-2.33.tar.gz

ns-2.33/lte-model-read-only/packet.cc
ns-2.33/lte-model-read-only/queue.h
ns-2.33/Makefile.in
ns-2.33/queue/
ns-2.33/queue/red.h
ns-2.33/queue/drop-tail.cc
ns-2.33/queue/red.cc
ns-2.33/queue/drop-tail.h
ns-2.33/queue/queue.h
......

b) $ cd ns-allinone-2.33/
c) $ tar xvf lte-ns233-patching-2.tar.gz
c1) $ patch -p0 < otcl_ns234_gcc-4.4.patch

and the result like this, what happen sir
file otcl_ns234_gcc-4.4.patch i'm copy to folder ns-allinone 2.33,
where the file should be placed????

project@project:~/ns-allinone-2.33$ patch -p0 < otcl_ns234_gcc-4.4.patch
bash: otcl_ns234_gcc-4.4.patch: No such file or directory

project@project:~/ns-allinone-2.33$ patch -p0 < otcl_ns234_gcc-4.4.patch
patching file otcl-1.13/Makefile.in

project@project:~/ns-allinone-2.33$ patch -p0 < otcl_ns234_gcc-4.4.patch
patching file otcl-1.13/Makefile.in
Reversed (or previously applied) patch detected! Assume -R? [n]

knudfl 12-16-2014 05:13 AM

← #162 .

Everything seems OK. And the the patch has been applied.

You can now do $ export CC=gcc-4.4 CXX=g++-4.4 && ./install

Mas Pras 12-16-2014 05:24 AM

Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.18: /home/project/ns-allinone-2.33/{bin,include,lib}
tk8.4.18: /home/project/ns-allinone-2.33/{bin,include,lib}
otcl: /home/project/ns-allinone-2.33/otcl-1.13
tclcl: /home/project/ns-allinone-2.33/tclcl-1.19
ns: /home/project/ns-allinone-2.33/ns-2.33/ns
gt-itm: /home/project/ns-allinone-2.33/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns

----------------------------------------------------------------------------------

Please put /home/project/ns-allinone-2.33/bin:/home/project/ns-allinone-2.33/tcl8.4.18/unix:/home/project/ns-allinone-2.33/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/project/ns-allinone-2.33/otcl-1.13, /home/project/ns-allinone-2.33/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/project/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.33; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.

project@project:~/ns-allinone-2.33$


sir what mean that important notice???

knudfl 12-16-2014 05:57 AM

← #164 .

The "important notice" is to be read only,
when you have no write permissions to /usr/.

I.e. when you can do ...
f) $ sudo cp ns-lte /usr/local/bin/
.. then all the text "Add *PATH text to .bashrc" must be ignored.

Remark : The executable 'ns' or 'ns-<any-naming>'
is hard coded to know the location of itīs libraries.
So adding a *PATH to .bashrc really makes no sense at all.

-


All times are GMT -5. The time now is 04:46 AM.