Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I must install only fedora 16 (64 bits ) on VirtualBox, I tried with fedora 16 (32 bits) but it refuse to open this OS !!
I try also with ubuntu 10.04, I install ns-nist , it works but I don't know if I can integrate EURANE with nist or no
I think that's easy to install ns-2.30 !!
I installed fedora 16 (32 bits) successfully
and I dowload ns-allinone-2.30
I have many problems:
*I have tk-8.4.13 not tk-8.4.11!!??
*compat-gcc-34-c or compat-gcc-3.4-c
* wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch : I don't understand what i must write,the link is not clear ??!!
*ns-eurane-111.diff.gz : I use ns-allinone-2.30 so I think that i must use ns-2.30_eurane-1.12.diff.gz ,it's logical ?? it's my opinion of course
frankly, I am very tired of trying( with ubuntu,nist,ns) every time I have not had good results
I hope that you can help me
thank you a lot
wget<space> and then do a right click on the link in post #4,
and select "Copy Link Location".
You can also click the link, and move the downloaded file to tk-8.4.13/.
( The "link" in post #7 is a typo, not a complete link.)
Quote:
ns-eurane-111.diff.gz ?
May be an older file ? You are right ...
Now it is : zcat ns-2.30_eurane-1.12.diff.gz | patch -p1
I installed ns-2.30 with eurane patch successfully
I tried this example.
Code:
global ns
set nb_mn 1
set node_odd [expr $nb_mn % 2]
set packet_size 1000 ;# packet size in bytes at CBR applications
set output_dir umts
set bw [expr 1024*1024] ;# 48KB/s=384Kb/s
#set gap_size [expr ($packet_size*8.0*$nb_mn)/$bw]
set gap_size [expr ($packet_size*8.0)/$bw]
puts "gap_size $gap_size"
#remove-all-packet-headers
#add-packet-header MPEG4 MAC_HS RLC LL Mac RTP TCP UDP IP Common Flags
set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf
set f [open out.tr w]
$ns trace-all $f
proc finish {} {
global ns nf nb_mn
global f
$ns flush-trace
close $nf
exec nam out.nam &
close $f
#exec ./datarate out.tr datarate.res [expr $nb_mn+4] [expr $nb_mn+5]
puts " Simulation ended."
exit 0
}
$ns set debug_ 1
$ns set hsdschEnabled_ 1addr
$ns set hsdsch_rlc_set_ 0
$ns set hsdsch_rlc_nif_ 0
# set up for hierarchical routing
# (needed for routing over a basestation)
set num_wired_nodes 4
set num_mobile_nodes $nb_mn
set num_bs_nodes 2
$ns node-config -addressType hierarchical
AddrParams set domain_num_ 5 ;# domain number
AddrParams set cluster_num_ {1 1 1 1 1} ;# cluster number for each domain
AddrParams set nodes_num_ {4 1 1 1 1} ;# number of nodes for each cluster
$ns node-config -UmtsNodeType rnc
# Node address is 0.
set rnc [$ns create-Umtsnode 0.0.0]
puts "rnc $rnc"
$ns node-config -UmtsNodeType bs \
-downlinkBW 384kbs \
-downlinkTTI 10ms \
-uplinkBW 384kbs \
-uplinkTTI 10ms \
-hs_downlinkTTI 2ms \
-hs_downlinkBW 384kbs \
# Node address is 1.
set bs [$ns create-Umtsnode 0.0.1]
puts "bs $bs"
$ns setup-Iub $bs $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000
$ns node-config -UmtsNodeType ue \
-baseStation $bs \
-radioNetworkController $rnc
# Node address for ue1 and ue2 is 2 and 3, respectively.
for {set i 0} {$i $nb_mn} {incr i} {
set ue($i) [$ns create-Umtsnode 0.0.[expr 2+$i]]
puts "ue($i) created $ue($i)"
}
if { $node_odd == 1 } {
set dummy_node [$ns create-Umtsnode 0.0.[expr 2+$nb_mn]]
puts "Creating dummy node $dummy_node"
}
# Node address for sgsn0 and ggsn0 is 4 and 5, respectively.
set sgsn0 [$ns node 1.0.0]
puts "sgsn0 $sgsn0"
set ggsn0 [$ns node 2.0.0]
puts "ggsn0 $ggsn0"
# Node address for node1 and node2 is 6 and 7, respectively.
set node1 [$ns node 3.0.0]
puts "node1 $node1"
set node2 [$ns node 4.0.0]
puts "node2 $node2"
$ns duplex-link $rnc $sgsn0 622Mbit 0.4ms DropTail 1000
$ns duplex-link $sgsn0 $ggsn0 622MBit 10ms DropTail 1000
$ns duplex-link $ggsn0 $node1 10MBit 15ms DropTail 1000
$ns duplex-link $node1 $node2 10MBit 35ms DropTail 1000
$rnc add-gateway $sgsn0
for {set i 0} {$i 1} {incr i} {
#create source traffic 3: from ethernet interface to router0
#Create a TCP agent and attach it to multi-interface node
set tcp_(0) [new Agent/TCP/FullTcp]
$ns attach-agent $ue(0) $tcp_(0) ;# the interface is used for sending
set app_(0) [new Application/TcpApp $tcp_(0)]
puts "App0 id=$app_(0)"
#create an sink into the MN1
# Create the Null agent to sink traffic
set tcp_(1) [new Agent/TCP/FullTcp]
$ns attach-agent $node2 $tcp_(1)
set app_(1) [new Application/TcpApp $tcp_(1)]
puts "App1 id=$app_(1)"
$ns connect $tcp_(0) $tcp_(1)
$tcp_(0) listen
puts "udp stream made from udp($i) and sink($i)"
}
$ns node-config -llType UMTS/RLC/AM \
-downlinkBW 384kbs \
-uplinkBW 384kbs \
-downlinkTTI 20ms \
-uplinkTTI 20ms \
-hs_downlinkTTI 2ms \
-hs_downlinkBW 384kbs
$ns create-hsdsch $ue(0) $tcp_(0)
for {set i 1} {$i 1} {incr i} {
$ns attach-hsdsch $ue($i) $udp($i)
}
$bs setErrorTrace 0 "/home/soufia/Bureau/documentation/idealtrace"
$bs setErrorTrace 1 "/home/soufia/Bureau/documentation/idealtrace"
$bs loadSnrBlerMatrix "/home/soufia/Bureau/documentation/SNRBLERMatrix"
$bs trace-outlink $f 2
$ue(0) trace-inlink $f 2
$ue(0) trace-outlink $f 3
# we cannot start the connect right away. Give time to routing algorithm to run
$ns at 0.5 "$app_(1) connect $app_(0)"
# install a procedure to print out the received data
Application/TcpApp instproc recv {data} {
global ns
$ns trace-annotate "$self received data \"$data\""
puts "$self received data \"$data\""
}
# send a message via TcpApp
# The string will be interpreted by the receiver as Tcl code.
for { set i 1 } { $i 5 } { incr i} {
$ns at [expr $i + 0.5] "$app_(1) send 100 {$app_(0) recv {my mesage $i}}"
}
#for {set i 0} {$i 1} {incr i} {
# $ns at 10 "$cbr($i) start"
# $ns at 11.0 "$cbr($i) stop"
#}
$ns at 11.401 "finish"
puts " Simulation is running ... please wait ..."
$ns run
I have this error
Code:
[mouna@localhost ~]$ ns umts.tcl
gap_size 0.00762939453125
wrong # args: should be "_o3 self class proc"
(Simulator create-Umtsnode line 1)
invoked from within
"$ns create-Umtsnode 0.0.0"
invoked from within
"set rnc [$ns create-Umtsnode 0.0.0]"
(file "umts.tcl" line 54)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.