LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-24-2014, 07:10 PM   #1
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Rep: Reputation: Disabled
LTE Patch for NS-2


Hi guys
I want to run LTE simulations, NS-3 supports it. but for me I'm more familiar with NS-2.
so I read about patch which can solve the issue, so please can anyone answer my questions...
1- this patch is only for ns-2.33 ? (mine is 2.32)
2- can u please tell me how to install this patch (in details)
3- this patch works with both (32 bit & 64 bit)Ubuntu?
4- which version of Ubuntu is better to run LTE model?
5- Any body tried this patch on CentOS?
any help will be very appreciated.
thx a lot.

Last edited by Redsfan86; 03-25-2014 at 03:43 AM.
 
Old 03-24-2014, 07:47 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Welcome to LQ.

(3) Generally : All ns2 is for a 32bits OS.
However, most versions ns-2.26 .. ns-2.35 will work with a 64bits OS.
But always with an inferior validate result.
Some of the extra added protocols (patches) will work with 64bits →
→ → Not LTE . Conclusion : Use a 32bits OS.
(1+3) LTE has so far only been tested with ns-2.33 .
** Some editing must be done to port LTE to a later version.
About ns-2.32 :
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do not add any *PATH text to .bashrc :
Never required !
(4) Any 32bits Ubuntu version will work with LTE.
(5) No doubt that LTE will also work with the 32bits CentOS 6.5 .

(2) Please see post #11 here, for a LTE build example ..
http://www.linuxquestions.org/questi...5-a-933953/#11
* For CentOS the export command is : $ export CC=gcc34 CXX=g++34

LTE info at LQ http://www.linuxquestions.org/questions/tags/lte/

-
 
Old 03-24-2014, 08:43 PM   #3
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
Thank you for ur warm welcome
and thanks a lot for ur quick response ....
Are DCCP and SCTP for LTE Model supported for this patch ?
again thx a lot
 
Old 03-25-2014, 03:37 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
# 3 : LTE + DCCP.

Ref. my posting at https://groups.google.com/forum/?fro...rs/8hU-kax6bJA :
Available is a newly created LTE + DCCP "patch package",
lte+dccp-ns233-patching-1.tar.bz2, 532kB:
https://drive.google.com/file/d/0B7S...it?usp=sharing
Using : $ cd ns-allinone-2.33/ && tar xvf lte+dccp-ns233-patching-1.tar.bz2

Works OK with the LTE examples : lte-examples-0213.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
Example $ ns-lte+dccp eyana.tcl

... And also works with the DCCP eamples : dccp-examples-2014.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
Example : $ ns-lte+dccp wrls-aodv-sayeh.tcl

DCCP info http://www.linuxquestions.org/questions/tags/dccp/
----------------------------

SCTP :
Is already present in ns2, example ns-2.33/sctp/{sctp.cc sctp.README}, etc.:
$ grep -Rin sctp ns-2.33/

-
 
Old 03-26-2014, 12:03 AM   #5
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
thanks
I will apply ur steps,hopefully everything will go right
thank u very much
 
Old 03-31-2014, 01:39 AM   #6
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
something went wrong with me....
I coppied these commands:
**************
--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200
@@ -635,17 +635,15 @@
*
*---------------------------------------------------------------------------
*/
-#define VirtualEvent (LASTEvent)
-#define ActivateNotify (LASTEvent + 1)
-#define DeactivateNotify (LASTEvent + 2)
-#define MouseWheelEvent (LASTEvent + 3)
-#define TK_LASTEVENT (LASTEvent + 4)
+#define VirtualEvent (MappingNotify + 1)
+#define ActivateNotify (MappingNotify + 2)
+#define DeactivateNotify (MappingNotify + 3)
+#define MouseWheelEvent (MappingNotify + 4)
+#define TK_LASTEVENT (MappingNotify + 5)

#define MouseWheelMask (1L << 28)
-
#define ActivateMask (1L << 29)
#define VirtualEventMask (1L << 30)
-#define TK_LASTEVENT (LASTEvent + 4)


/*
*************
then i put it in new document called: tk-8.4-lastevent.patch
then I put this file in a new folder which I renamed it to:
tk8.4.18
*************
after this I apllied the patch and thats what I've got:
*************
~/ns-2/ns-2.33/allinone/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
|+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200
--------------------------
File to patch:
*************

so plz .... any help to avoid this error ?
thx a lot
 
Old 03-31-2014, 02:21 AM   #7
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
also I read that I have to install subversion and libapache2-svn....
as I understood, this step comes befor patching step...
but also I got this error when I run this command: apt-get install subversion
the error:
***********
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
***********
so any idea for this error & the previous one ?
thanks a lot
 
Old 03-31-2014, 02:37 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
# 6 .

"tk-8.4-lastevent.patch" is used when you want to build "nam".
No reason to do that. Install `nam' as a binary (package).

Which OS are you using ? ?
? What's the reply from this command : $ uname -m
? What is the name and version of your OS ?

-
 
Old 03-31-2014, 03:20 AM   #9
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
I use ubuntu 12.04 (32 bit)
NS-2.33
? What's the reply from this command : $ uname -m
I don't know which path i should run this command

Last edited by Redsfan86; 03-31-2014 at 03:23 AM.
 
Old 03-31-2014, 03:24 AM   #10
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
I tried this method to patch lte:
Steps to patch lte-model into NS2

1) Install subversion and libapache2-svn
apt-get install subversion
apt-get install libapache2-svn

2) Download the patch tk-8.4-lastevent.patch from the next link: http://code.google.com/p/gentoo-chin.../files/?r=1417

3) Put the patch into the directory: ns-allinone-2.33/tk8.4.18/

4) Follow the next instructions
cd ns-allinone-2.33/tk8.4.18/
patch -p0 < tk-8.4-lastevent.patch
cd ../
./install
cd ns-2.33/ && mv ns ns233 && make clean && mv Makefile Makefile.org
svn checkout http://lte-model.googlecode.com/svn/trunk/ lte-model-read-only
mkdir project
cd lte-model-read-only/
sh checkin
cd ../

./configure
make clean
make ()
make install
 
Old 03-31-2014, 03:41 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
# 10 : Mostly wrong.

If you want a result that works, use {new bullet proof build method}.
Read post #2 → → the link http://www.linuxquestions.org/questi...5-a-933953/#11


-
 
Old 03-31-2014, 03:45 AM   #12
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
ok tnaks a lot

Last edited by Redsfan86; 03-31-2014 at 03:55 AM.
 
Old 03-31-2014, 03:48 AM   #13
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
but Im really sorry to bother u again
but plz can u tell me the instruction (step by step)
the instruction there is not clear to me

Last edited by Redsfan86; 03-31-2014 at 03:51 AM.
 
Old 03-31-2014, 03:52 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
# 13 .

Please open a terminal, and type : uname -m
... And then show the reply in a new post.
 
Old 03-31-2014, 03:56 AM   #15
Redsfan86
Member
 
Registered: Mar 2014
Posts: 36

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

Please open a terminal, and type : uname -m
... And then show the reply in a new post.
I got "i686"
 
  


Reply

Tags
dccp_and_lte, lte, lte-ns235, lte_and_dccp


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
regarding LTE patch on ns2.35 swetha.goudar Linux - Networking 3 03-24-2014 05:11 AM
Simulating LTE using NS2 with LE patch sandeep10 Linux - Software 6 11-29-2013 02:27 PM
How to patch LTE-Module on NS-2.35 stojan Linux - Distributions 0 11-04-2013 10:45 PM
please help me,, how to patch LTE module in NS2.33... hadi wibowo General 0 05-14-2012 11:16 AM
patch LTE module for ns2 Emna Linux - Newbie 1 03-10-2011 02:59 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration