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 11-27-2013, 01:26 AM   #16
leki
LQ Newbie
 
Registered: Nov 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
random.tcl


Code:
#
# nodes: 10, pause: 0.00, max speed: 1.00, max x: 500.00, max y: 500.00
#
$node_(0) set X_ 27.630672847661
$node_(0) set Y_ 439.061501488274
$node_(0) set Z_ 0.000000000000
$node_(1) set X_ 161.805234187164
$node_(1) set Y_ 164.594890721081
$node_(1) set Z_ 0.000000000000
$node_(2) set X_ 407.077351159437
$node_(2) set Y_ 165.394979971963
$node_(2) set Z_ 0.000000000000
$node_(3) set X_ 366.000928480223
$node_(3) set Y_ 225.541975096038
$node_(3) set Z_ 0.000000000000
$node_(4) set X_ 217.062732355913
$node_(4) set Y_ 237.237885441976
$node_(4) set Z_ 0.000000000000
$node_(5) set X_ 418.661406631948
$node_(5) set Y_ 5.503186989730
$node_(5) set Z_ 0.000000000000
$node_(6) set X_ 429.244561535974
$node_(6) set Y_ 406.489607889633
                                                              1,1           Top
 
Old 11-28-2013, 05:31 AM   #17
leki
LQ Newbie
 
Registered: Nov 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
random.tcl.....thank you sir

Code:
#
# nodes: 10, pause: 0.00, max speed: 1.00, max x: 500.00, max y: 500.00
#
$node_(0) set X_ 27.630672847661
$node_(0) set Y_ 439.061501488274
$node_(0) set Z_ 0.000000000000
$node_(1) set X_ 161.805234187164
$node_(1) set Y_ 164.594890721081
$node_(1) set Z_ 0.000000000000
$node_(2) set X_ 407.077351159437
$node_(2) set Y_ 165.394979971963
$node_(2) set Z_ 0.000000000000
$node_(3) set X_ 366.000928480223
$node_(3) set Y_ 225.541975096038
$node_(3) set Z_ 0.000000000000
$node_(4) set X_ 217.062732355913
$node_(4) set Y_ 237.237885441976
$node_(4) set Z_ 0.000000000000
$node_(5) set X_ 418.661406631948
$node_(5) set Y_ 5.503186989730
$node_(5) set Z_ 0.000000000000
$node_(6) set X_ 429.244561535974
$node_(6) set Y_ 406.489607889633
$node_(6) set Z_ 0.000000000000
$node_(7) set X_ 221.814341176623
$node_(7) set Y_ 330.587562816733
$node_(7) set Z_ 0.000000000000
$node_(8) set X_ 271.897453711059
$node_(8) set Y_ 442.584120914689
$node_(8) set Z_ 0.000000000000
$node_(9) set X_ 290.832898927211
$node_(9) set Y_ 382.061624892246
$node_(9) set Z_ 0.000000000000
$ns_ at 0.000000000000 "$node_(0) setdest 119.192436172633 201.908800284618 0.273231322838"
$ns_ at 0.000000000000 "$node_(1) setdest 307.584634744004 24.450615766861 0.294280953754"
$ns_ at 0.000000000000 "$node_(2) setdest 220.630640953587 52.483394606166 0.938556170142"
$ns_ at 0.000000000000 "$node_(3) setdest 207.751586617047 466.343223233565 0.174800679870"
$ns_ at 0.000000000000 "$node_(4) setdest 333.856553524305 307.967139188471 0.814938225901"
$ns_ at 0.000000000000 "$node_(5) setdest 77.347544158876 254.811178776604 0.674535525568"
$ns_ at 0.000000000000 "$node_(6) setdest 123.058747173338 349.416170892903 0.467298604594"
$ns_ at 0.000000000000 "$node_(7) setdest 165.792396404971 411.060411832427 0.200569523433"
$ns_ at 0.000000000000 "$node_(8) setdest 471.295441973361 361.285263939606 0.157987997835"
$ns_ at 0.000000000000 "$node_(9) setdest 430.073651823988 245.078530971970 0.882023095959"
$god_ set-dist 0 1 2
$god_ set-dist 0 2 2
$god_ set-dist 0 3 2
$god_ set-dist 0 4 2
$god_ set-dist 0 5 3
$god_ set-dist 0 6 2
$god_ set-dist 0 7 1
$god_ set-dist 0 8 1
$god_ set-dist 0 9 2
$god_ set-dist 1 2 1
$god_ set-dist 1 3 1
$god_ set-dist 1 4 1
$god_ set-dist 1 5 2
$god_ set-dist 1 6 2
$god_ set-dist 1 7 1
$god_ set-dist 1 8 2
$god_ set-dist 1 9 2
$god_ set-dist 2 3 1
$god_ set-dist 2 4 1
$god_ set-dist 2 5 1
$god_ set-dist 2 6 1
$god_ set-dist 2 7 1
$god_ set-dist 2 8 2
$god_ set-dist 2 9 1
$god_ set-dist 3 4 1
$god_ set-dist 3 5 1
$god_ set-dist 3 6 1
$god_ set-dist 3 7 1
$god_ set-dist 3 8 1
$god_ set-dist 3 9 1
$god_ set-dist 4 5 2
$god_ set-dist 4 6 2
$god_ set-dist 4 7 1
$god_ set-dist 4 8 1
$god_ set-dist 4 9 1
$god_ set-dist 5 6 2
$god_ set-dist 5 7 2
$god_ set-dist 5 8 2
$god_ set-dist 5 9 2
$god_ set-dist 6 7 1
$god_ set-dist 6 8 1
$god_ set-dist 6 9 1
$god_ set-dist 7 8 1
$god_ set-dist 7 9 1
$god_ set-dist 8 9 1
$ns_ at 17.598131689601 "$god_ set-dist 4 6 1"
$ns_ at 18.188479567548 "$god_ set-dist 2 6 2"
$ns_ at 22.087435066268 "$god_ set-dist 1 9 1"
#
# Destination Unreachables: 0
#
# Route Changes: 3
#
# Link Changes: 3
#
# Node | Route Changes | Link Changes
#    0 |             0 |            0
#    1 |             1 |            1
#    2 |             1 |            1
#    3 |             0 |            0
#    4 |             1 |            1
#    5 |             0 |            0
#    6 |             2 |            2
#    7 |             0 |            0
#    8 |             0 |            0
#    9 |             1 |            1
#
#
# nodes: 10, max conn: 5, send rate: 0.0, seed: 1
#
#
# 1 connecting to 2 at time 2.5568388786897245
#
set tcp_(0) [$ns_ create-connection  TCP $node_(1) TCPSink $node_(2) 0]
$tcp_(0) set window_ 32
$tcp_(0) set packetSize_ 512
set ftp_(0) [$tcp_(0) attach-source FTP]
$ns_ at 2.5568388786897245 "$ftp_(0) start"
#
# 4 connecting to 5 at time 56.333118917575632
#
set tcp_(1) [$ns_ create-connection  TCP $node_(4) TCPSink $node_(5) 0]
$tcp_(1) set window_ 32
$tcp_(1) set packetSize_ 512
set ftp_(1) [$tcp_(1) attach-source FTP]
$ns_ at 56.333118917575632 "$ftp_(1) start"
#
# 4 connecting to 6 at time 146.96568928983328
#
set tcp_(2) [$ns_ create-connection  TCP $node_(4) TCPSink $node_(6) 0]
$tcp_(2) set window_ 32
$tcp_(2) set packetSize_ 512
set ftp_(2) [$tcp_(2) attach-source FTP]
$ns_ at 146.96568928983328 "$ftp_(2) start"
#
# 6 connecting to 7 at time 55.634230382570173
#
set tcp_(3) [$ns_ create-connection  TCP $node_(6) TCPSink $node_(7) 0]
$tcp_(3) set window_ 32
$tcp_(3) set packetSize_ 512
set ftp_(3) [$tcp_(3) attach-source FTP]
$ns_ at 55.634230382570173 "$ftp_(3) start"
#
# 7 connecting to 8 at time 29.546173154165118
#
set tcp_(4) [$ns_ create-connection  TCP $node_(7) TCPSink $node_(8) 0]
$tcp_(4) set window_ 32
$tcp_(4) set packetSize_ 512
set ftp_(4) [$tcp_(4) attach-source FTP]
$ns_ at 29.546173154165118 "$ftp_(4) start"
#
#Total sources/connections: 4/5
#
 
Old 11-29-2013, 11:53 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 17 and others.

$ ns(-crcn) leki-test-crcn.tcl
.... is OK here :
Code:
num_nodes is set 10
INITIALIZE THE LIST xListHead
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
-
Attached Thumbnails
Click image for larger version

Name:	leki-nam.jpg
Views:	10
Size:	24.2 KB
ID:	14096  
Attached Files
File Type: txt leki-test-crcn.tcl.txt (2.5 KB, 12 views)
File Type: txt random.tcl.txt (5.0 KB, 12 views)
 
1 members found this post helpful.
Old 01-13-2014, 12:01 AM   #19
leki
LQ Newbie
 
Registered: Nov 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Sir, can you give me any information like what are the implementations in CRN...what can we do in CRN for spectrum sensing???
 
Old 01-13-2014, 11:33 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 19 .
Quote:
... what can we do in CRN for spectrum sensing ?
Don't know.
Have you studied all the examples in crcn-examples-032013.tar.bz2 ?
And read all crcn http://www.linuxquestions.org/questions/tags/crcn/ ?

Some hints : Google .. crcn spectrum sensing ..
https://www.google.com/webhp?hl=all#...ectrum+sensing → →
http://www.youtube.com/watch?v=7jlrJ4uE8G4
http://www.youtube.com/watch?v=oFon8h68RtM
etc. etc. etc.

-
 
1 members found this post helpful.
Old 01-14-2014, 08:23 AM   #21
leki
LQ Newbie
 
Registered: Nov 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
CRCN

Thanks for your help Sir.Sir,I want to ask you what are the functionalities of a CRCN module? what are the extra functions that CRCN can do than ns2?? Can you help me Sir??
 
Old 01-14-2014, 09:08 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 21 .

Well, the keywords for Google are e.g. : ns2 crcn ,
https://www.google.com/webhp?hl=all#hl=en&q=ns2+crcn
,, the first hit is :
http://faculty.uml.edu/Tricia_Chigan..._Simulator.htm
,, and there are another 1,800 hits.

Google .. crcn-modified-mac ..
https://www.google.com/webhp?hl=all#...n-modified-mac

Google .. crcn spectrum sensing .. , see post #20.

-
 
1 members found this post helpful.
Old 01-27-2014, 05:19 AM   #23
leki
LQ Newbie
 
Registered: Nov 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Crcn energy module

Sir can you help me in assigning different transmission powers for different nodes??
 
Old 11-26-2015, 02:32 PM   #24
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Hi, please did you find solution for your problem? i have the same.
i use fedora 12, i installed crcn patch in ns2.31.
i want to use the GUI of CRCN.
i installed this jdk: jdk-6u45-linux-i586-rpm
when i confirm topology setting i have this problem in the terminal:
Quote:
jTabbedPane1_stateChanged(ChangeEvent e) called.
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:99)
at nsui.CFrame.TopoOK_actionPerformed(CFrame.java:2260)
at nsui.CFrame.access$16(CFrame.java:2113)
at nsui.CFrame$23.actionPerformed(CFrame.java:1077)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Thank you in advance.

Last edited by marwa88; 11-26-2015 at 06:05 PM.
 
  


Reply



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.31 and CRCN patch buptmuye Linux - Wireless Networking 27 01-06-2016 06:27 PM
ns-2 CRCN patch. Testing examples problem cosdag Linux - Software 6 12-09-2015 09:07 PM
[SOLVED] The problem of running the tcl script file in the NS2.31+crcn environment syxcod Linux - Software 16 11-24-2015 04:12 PM
how to solve crcn problem in ns2? lavendar89 Linux - Software 1 09-25-2013 04:57 PM
problem in displaying throughput in crcn patch in ns2 humairaafzal73 Linux - Software 0 02-07-2012 04:37 AM

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

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