LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-14-2009, 10:21 AM   #1
linux_007
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 0
Modified the NS2


Hello....
I want to modify on the contention window (CW) and the AIFS period in the source code of ns2 .i will be thankful if any one tell me under what file in the source code of the ns2 program the (contention window) and the (AIFS) exist.
 
Old 03-15-2009, 01:18 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,132

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by linux_007 View Post
Hello....
I want to modify on the contention window (CW) and the AIFS period in the source code of ns2 .i will be thankful if any one tell me under what file in the source code of the ns2 program the (contention window) and the (AIFS) exist.
You're going to have to look through the source and find that out. I doubt people here are going to pull the source code down, and pull through all the files, so we can tell you where to look.
 
Old 03-16-2009, 11:06 AM   #3
linux_007
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 0
TB0ne thanks for replying ,honestly iam ganna be very grateful if any one tells me under what file in the source code they are exist ..

Best Regards
 
Old 03-17-2009, 09:26 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,132

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by linux_007 View Post
TB0ne thanks for replying ,honestly iam ganna be very grateful if any one tells me under what file in the source code they are exist ..

Best Regards
Like I said...YOU are going to have to open the files, and figure it out yourself.

I doubt anyone else is going to volunteer to open each and every file up, look through them, so they can tell you which file YOU want to modify....
 
Old 03-17-2009, 02:52 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
ns-2.33 ... In fact it is rather easy to find :

cd <directory-with-ns-2.33>
grep -i aifs ns-2.33/*/*

grep -i contention ns-2.33/*
grep -i contention ns-2.33/*/*

Lots of results > > I think, you will find,
what you are looking for.
......

Last edited by knudfl; 03-17-2009 at 03:01 PM.
 
Old 03-20-2009, 01:36 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,519

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
OK .. I found time to sort the text result :
grep -i aifs ns-2.33/*/* : AIFS is mentioned in ns-2.33/mac/mac-802_11Ext.h

grep -i contention ns-2.33/* : ns-2.33/CHANGES.html

grep -i contention ns-2.33/*/* : ( ns-2.33/common/parentnode.h ),
( ns-2.33/doc/lan.tex ), ( ns-2.33/doc/mobility.tex ),
ns-2.33/mac/channel.cc, ns-2.33/mac/channel.h, ns-2.33/mac/mac-802_11Ext.h,
ns-2.33/mac/mac-802_11.h, ( ns-2.33/mac/mac-csma.cc ), ns-2.33/mac/mac-csma.h,
( ns-2.33/mac/mac.h ), ns-2.33/mac/smac.cc, ns-2.33/mac/smac.h,
(ns-2.33/mac/wired-phy.cc ), ( ns-2.33/mac/wired-phy.h ),
( ns-2.33/satellite/satlink.cc ), (s-2.33/satellite/satlink.h ).
.....
 
  


Reply


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
Problem with ns2 ysk Linux - Newbie 3 09-23-2008 01:44 PM
NS2 help to_veeresh Linux - Newbie 5 09-22-2008 05:17 AM
NS2 installation ds_priyaa Fedora 2 05-28-2008 02:23 AM
ns2 md_imranullah LQ Suggestions & Feedback 2 01-25-2008 02:01 PM
Ns2 ConfusedMonkey Linux - Software 3 10-05-2005 11:32 AM


All times are GMT -5. The time now is 05:02 PM.

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