LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

Tags
ns2



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration