LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-29-2009, 12:38 AM   #16
Nanda27
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0

Hi.. I want to transfer the file between two computers, while sending the file i need to trace for congestion node by using system ip adress. if its possible or not? is it possible means tell me how to do that.

Thanks and Regards

Nanda
 
Old 05-29-2009, 08:07 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Ns2 simulates certain things, but I doubt
it can be used for the transfer directly,
may be by calling another utility ?

Suggest : start a new thread, asking for
file transferring in general.
( I know too little about the subject to
give any advise.)
.....
.....
And just another nice ns2 site, I found
http://nile.wpi.edu/NS/simple_ns.html
.....

Last edited by knudfl; 05-29-2009 at 08:39 AM.
 
Old 06-04-2009, 03:39 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Please have a look at this
http://www.isi.edu/nsnam/archive/ns-.../msg03804.html
'congestion_parameter.tcl' is attached.
I edited line 139, was a comment only.
Running the file with 'ns' will generate 'nam.out'
to be run with 'nam' ... and click the play button.
.....
.....
Post # 16, quote
Quote:
.. I want to transfer the file between two computers, while sending the file I need to trace for congestion node by using system IP adress.
Suggest : Ask Google, using parts of the text.
I used the keyword .. trace for congestion node ..
..... and found the above link.
.....
.....
If you want to ask about file transfer, you will
have to rephrase the text. Ask for it generally,
and do not start with mentioning ns2 or any of the
ns2 specific words.
.....
Attached Files
File Type: txt congestion_parameter.tcl.txt (2.9 KB, 14 views)

Last edited by knudfl; 06-04-2009 at 03:49 PM.
 
Old 06-06-2009, 01:04 AM   #19
Nanda27
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Hi i hav attached my screen design. in this form when i click browse button it will show open file dialog box after that i was selected one file. by clicking the send button i need to find out the priority of file transformation ie: High or low priority in the option button. i want to transfer the file Varsha.doc to another system in the mean while i want to show the file transfering informaiton in Nam. Is this possible or not? plz tell me


Thanks and Regards..!

Nanda
Attached Images
File Type: gif Img2.GIF (8.3 KB, 5 views)

Last edited by Nanda27; 06-06-2009 at 01:12 AM.
 
Old 11-07-2009, 03:02 AM   #20
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
When i execute attached file as "ns example1.tcl" following errors i get ...


neeraj@ubuntu:~/mypractice$ ns example2.tcl
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o18: no target for slot -1
_o18 type: Classifier/Hash/Dest
content dump:
classifier _o18
0 offset
0 shift
2147483647 mask
1 slots
slot 2: _o112 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------


please help me out.
Attached Files
File Type: txt example2.txt (2.3 KB, 23 views)
 
Old 11-07-2009, 05:23 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
@ neeraj.dwivedi # 20.

Why do you think, there are errors in the ns reply ? ?
Quote:
please help me out.
I can see, you almost have the solution = " out. "

Suggest : move your example1.tcl to a new empty folder,
so you can see, what happens :
' cd new-folder/ '
' ns example1.tcl '
...which creates a new file : 'nam.out' .

Please then do the command ' nam nam.out ',
.. and the nam GUI will open. Hit the play button,
.. wait for the traffic to show up ..

And discover, that everything is OK. .. ..
.....

Last edited by knudfl; 11-07-2009 at 07:03 PM.
 
Old 11-08-2009, 12:54 AM   #22
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
thank you very much ...

when i perform according u , u were very true .
now i am able to see the nam . but this is not performing as my expectations.
during ns example2.tcl i got following response :-


--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o18: no target for slot -1
_o18 type: Classifier/Hash/Dest
content dump:
classifier _o18
0 offset
0 shift
2147483647 mask
1 slots
slot 2: _o112 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------


is this gives any hint about my problem.

my problem is ...

in this script i have created 5 nodes, n0,n1,n2 provide traffic to n3 , and sink n4 gets traffic from n3. (as my expectations)

but in this nam , nam shows traffic only from node n0 & n1 to n3, and n4 works as sink. but n2 is not start traffic. why ?
 
Old 11-08-2009, 01:25 AM   #23
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
yeaaahhhaaaaa


i got the error .. error in script code.

thank you a ton brother.
 
Old 11-08-2009, 01:53 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
*
Can you attach the new script ..
.. Or replace the one in post # 20 ??

Please ..
 
Old 11-09-2009, 02:33 AM   #25
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
now it is perfect having no error.

but i have a new problem ..
please explain queuing theory as coded below ..

#Monitor the queue for the link between node 2 and node 3

$ns duplex-link-op $n2 $n3 queuePos 0.5


Actually i m not able to understand this line of code of TCL.please explain it.
 
Old 11-09-2009, 02:33 AM   #26
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
now it is perfect having no error.

but i have a new problem ..
please explain queuing theory as coded below ..

#Monitor the queue for the link between node 2 and node 3

$ns duplex-link-op $n2 $n3 queuePos 0.5


Actually i m not able to understand this line of code of TCL.please explain it.
 
Old 11-09-2009, 02:43 AM   #27
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
new script is attached with this ,now it is perfect having no error.

but i have a new problem ..
please explain queuing theory as coded below ..

#Monitor the queue for the link between node 2 and node 3

$ns duplex-link-op $n2 $n3 queuePos 0.5


Actually i m not able to understand this line of code of TCL.please explain it.
Attached Files
File Type: txt example2.txt (2.3 KB, 33 views)
 
Old 11-09-2009, 07:12 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
Sorry, in fact I don't use ns2 very much.
So, for an explanation, please
Google .. $ns duplex-link-op $n2 $n3 queuePos 0.5 ..
http://www.google.com/search?hl=da&s...ng&lr=&aq=&oq=

.. and get 1,200 hits . Then you might find an explanation
quicker than I can. I would have to read through all that
text too.
.....
 
Old 05-23-2012, 11:57 AM   #29
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
Hi,
I am trying to simulate WiMAX on ns-2.28. I have installed ns-2.28 on Ubuntu 11.04. Downloaded WimAX module from the website "http://www.lrc.ic.unicamp.br/wimax_ns2/". I followed the below steps as mentioned in the website:
1. Download the software ns-allinone-2.28 package
2. Download the latest ns-2 WiMAX module source code.
3. Unzip the ns-2 WiMAX module source code file.
4. Put the files from "mac" directory into ns-allinone-2.28\ns-2.28\mac.
5. Put the files which are in common and tcl respectively into ns-allinone-2.28\ns-2.28\common and ns-allinone-2.28\ns-2.28\tcl.
6. Modify the Makefile.in as follows
- After the sentence mac/mac-802_3.o add:
- mac/mac-802_16-base.o mac/mac-802_16-ss.o mac/mac-802_16-bs.o \
- mac/mac-802_16-FSM.o mac/mac-802_16-timers.o \
7. Go to the ns-allinone-2.28/ns-2.28 directory and execute "./configure", "make clean" and "make".

The Makefile.in is recompiled and .o files for the newly added WiMAX files are also generated. But when I am trying to run the example.tcl, I get an error saying:
xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ ns example.tcl
invalid command name "Mac/802_16BS"
while executing
"Mac/802_16BS set window_ 0.05"

(file "example.tcl" line 36)

I got to know that there is some problem after re-compilation but I am unable to find out what it is and what should be corrected so that the script runs. Kindly help me out with this.

Thanks.
 
Old 05-23-2012, 04:45 PM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
# 29.

That's right, wimax 1.02 / ns-2.28 doesn't work with the two tcl examples.
Wimax version 2.03 for ns-2.31 : OK.
ns example.tcl generates an example.tr 5MB.
ns example2.tcl : example2.tr 2.8 MB.

The binary ns from the 32bits Ubuntu 11.04 : ns231-wimax203-i686.tar.gz
> https://docs.google.com/open?id=0B7S...Wl2bmxDTTZ0ejg

.
 
  


Reply

Tags
nam, wimax


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
ns2- network simulator problem vivekr Linux - Networking 5 02-16-2011 12:25 PM
HP UX simulator Rahul Kolan Linux - Software 3 08-08-2008 01:48 AM
Simulator Vampyre_2099 Linux - Games 1 02-27-2008 09:07 AM
joystick problem with gl-117 flight simulator vaisarger Linux - Games 1 07-06-2006 04:12 AM
Problem with insatlling a Simulator-undefined symbol flock invinciblemk Linux - Software 0 03-23-2004 10:06 AM


All times are GMT -5. The time now is 01:13 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