hi
thanks for reply.
i use test_udp script and mannul to write program for umts euran. it runs fine.
but there is no communication between ue1 and base station. even i put the sink
at ue1. but the trace file show only communication between base-station, fixed
node and rnc. but no message send to ue1. program i use is
global ns
# Remove all Packet headers and add only those that are required.
# This significantly reduces the memory requirements of large simulations
remove-all-packet-headers
add-packet-header MPEG4 MAC_HS RLC LL Mac RTP TCP IP Common Flags
set ns [new Simulator]
set f [open out.tr w]
$ns trace-all $f
ChannelSwitcher set noSwitching_ true
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf f
$ns flush-trace
#Close the trace file
close $nf
close $f
#Execute nam onthe trace file
exec nam out.nam &
puts "Simulation ended!"
exit 0
}
Mac/Hsdpa set max_mac_hs_buffer_level_ 1000
$ns node-config -UmtsNodeType rnc
# Node address is 0.
set rnc [$ns create-Umtsnode]
$ns node-config -UmtsNodeType bs \
-downlinkBW 32kbs \
-downlinkTTI 10ms \
-uplinkBW 32kbs \
-uplinkTTI 10ms \
-hs_downlinkTTI 2ms \
-hs_downlinkBW 64kbs \
# Node address is 1.
set bs [$ns create-Umtsnode]
# Interface between RNC and 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.
set ue1 [$ns create-Umtsnode]
set ue2 [$ns create-Umtsnode]
# Node address for node1 is 4
set node1 [$ns node]
# Connections between fixed network nodes
$ns duplex-link $rnc $node1 10Mbit 35ms DropTail 1000
$rnc add-gateway $node1
ChannelSwitcher set noSwitching_ true
#Setup a UDP connection
set udp [new Agent/UDP]
$udp set fid_ 0
$ns attach-agent $node1 $udp
#Setup a CBR over UDP connection
set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp
$cbr set type_ CBR
$cbr set packet_size_ 1000
$cbr set rate_ 4.2mb
$cbr set random_ false
set null [new Agent/Null]
#$null set fid_ 0
$ns attach-agent $ue1 $null
$ns connect $udp $null
$ns node-config -llType UMTS/RLC/AM \
-downlinkBW 64kbs \
-uplinkBW 64kbs \
-downlinkTTI 20ms \
-uplinkTTI 20ms \
-hs_downlinkTTI 2ms \
-hs_downlinkBW 64kbs
# Creat a DCH instead
set dch0 [$ns create-dch $ue1 $null]
# Tracing for all DCH traffic in downtarget
$rnc trace-inlink-tcp $f 0
$bs trace-outlink $f 2
# UE1 Tracing
$ue1 trace-inlink $f 2
$ue1 trace-inlink-tcp $f 2
###################################################################
$ns at 1.0 "$cbr start"
$ns at 5.0 "$cbr stop"
$ns at 6.0 "finish"
puts " Simulation is running ... please wait ..."
$ns run
and part of trace file look like
+ 1 4 0 cbr 1000 ------- 0 4.0 2.0 0 0
- 1 4 0 cbr 1000 ------- 0 4.0 2.0 0 0
+ 1.001905 4 0 cbr 1000 ------- 0 4.0 2.0 1 1
- 1.001905 4 0 cbr 1000 ------- 0 4.0 2.0 1 1
+ 1.00381 4 0 cbr 1000 ------- 0 4.0 2.0 2 2
- 1.00381 4 0 cbr 1000 ------- 0 4.0 2.0 2 2
+ 1.005714 4 0 cbr 1000 ------- 0 4.0 2.0 3 3
- 1.005714 4 0 cbr 1000 ------- 0 4.0 2.0 3 3
+ 1.007619 4 0 cbr 1000 ------- 0 4.0 2.0 4 4
- 1.007619 4 0 cbr 1000 ------- 0 4.0 2.0 4 4
+ 1.009524 4 0 cbr 1000 ------- 0 4.0 2.0 5 5
- 1.009524 4 0 cbr 1000 ------- 0 4.0 2.0 5 5
+ 1.011429 4 0 cbr 1000 ------- 0 4.0 2.0 6 6
- 1.011429 4 0 cbr 1000 ------- 0 4.0 2.0 6 6
+ 1.013333 4 0 cbr 1000 ------- 0 4.0 2.0 7 7
- 1.013333 4 0 cbr 1000 ------- 0 4.0 2.0 7 7
+ 1.015238 4 0 cbr 1000 ------- 0 4.0 2.0 8 8
- 1.015238 4 0 cbr 1000 ------- 0 4.0 2.0 8 8
+ 1.017143 4 0 cbr 1000 ------- 0 4.0 2.0 9 9
- 1.017143 4 0 cbr 1000 ------- 0 4.0 2.0 9 9
+ 1.019048 4 0 cbr 1000 ------- 0 4.0 2.0 10 10
- 1.019048 4 0 cbr 1000 ------- 0 4.0 2.0 10 10
+ 1.020952 4 0 cbr 1000 ------- 0 4.0 2.0 11 11
- 1.020952 4 0 cbr 1000 ------- 0 4.0 2.0 11 11
+ 1.022857 4 0 cbr 1000 ------- 0 4.0 2.0 12 12
- 1.022857 4 0 cbr 1000 ------- 0 4.0 2.0 12 12
+ 1.024762 4 0 cbr 1000 ------- 0 4.0 2.0 13 13
- 1.024762 4 0 cbr 1000 ------- 0 4.0 2.0 13 13
+ 1.026667 4 0 cbr 1000 ------- 0 4.0 2.0 14 14
- 1.026667 4 0 cbr 1000 ------- 0 4.0 2.0 14 14
+ 1.028571 4 0 cbr 1000 ------- 0 4.0 2.0 15 15
- 1.028571 4 0 cbr 1000 ------- 0 4.0 2.0 15 15
+ 1.030476 4 0 cbr 1000 ------- 0 4.0 2.0 16 16
- 1.030476 4 0 cbr 1000 ------- 0 4.0 2.0 16 16
+ 1.032381 4 0 cbr 1000 ------- 0 4.0 2.0 17 17
- 1.032381 4 0 cbr 1000 ------- 0 4.0 2.0 17 17
+ 1.034286 4 0 cbr 1000 ------- 0 4.0 2.0 18 18
- 1.034286 4 0 cbr 1000 ------- 0 4.0 2.0 18 18
r 1.0358 4 0 cbr 1000 ------- 0 4.0 2.0 0 0
+ 1.03619 4 0 cbr 1000 ------- 0 4.0 2.0 19 19
- 1.03619 4 0 cbr 1000 ------- 0 4.0 2.0 19 19
r 1.037705 4 0 cbr 1000 ------- 0 4.0 2.0 1 1
+ 1.038095 4 0 cbr 1000 ------- 0 4.0 2.0 20 20
- 1.038095 4 0 cbr 1000 ------- 0 4.0 2.0 20 20
+ 1.039 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 0
- 1.039 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 0
+ 1.039011 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 1
- 1.039011 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 1
+ 1.039011 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 2
- 1.039012 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 2
+ 1.039013 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 3
- 1.039013 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 3
r 1.03961 4 0 cbr 1000 ------- 0 4.0 2.0 2 2
+ 1.04 4 0 cbr 1000 ------- 0 4.0 2.0 21 21
- 1.04 4 0 cbr 1000 ------- 0 4.0 2.0 21 21
r 1.041514 4 0 cbr 1000 ------- 0 4.0 2.0 3 3
+ 1.041905 4 0 cbr 1000 ------- 0 4.0 2.0 22 22
- 1.041905 4 0 cbr 1000 ------- 0 4.0 2.0 22 22
r 1.043419 4 0 cbr 1000 ------- 0 4.0 2.0 4 4
+ 1.04381 4 0 cbr 1000 ------- 0 4.0 2.0 23 23
- 1.04381 4 0 cbr 1000 ------- 0 4.0 2.0 23 23
r 1.045324 4 0 cbr 1000 ------- 0 4.0 2.0 5 5
+ 1.045714 4 0 cbr 1000 ------- 0 4.0 2.0 24 24
- 1.045714 4 0 cbr 1000 ------- 0 4.0 2.0 24 24
r 1.047229 4 0 cbr 1000 ------- 0 4.0 2.0 6 6
+ 1.047619 4 0 cbr 1000 ------- 0 4.0 2.0 25 25
- 1.047619 4 0 cbr 1000 ------- 0 4.0 2.0 25 25
r 1.049133 4 0 cbr 1000 ------- 0 4.0 2.0 7 7
+ 1.049524 4 0 cbr 1000 ------- 0 4.0 2.0 26 26
- 1.049524 4 0 cbr 1000 ------- 0 4.0 2.0 26 26
r 1.051038 4 0 cbr 1000 ------- 0 4.0 2.0 8 8
+ 1.051429 4 0 cbr 1000 ------- 0 4.0 2.0 27 27
- 1.051429 4 0 cbr 1000 ------- 0 4.0 2.0 27 27
r 1.052943 4 0 cbr 1000 ------- 0 4.0 2.0 9 9
+ 1.053333 4 0 cbr 1000 ------- 0 4.0 2.0 28 28
- 1.053333 4 0 cbr 1000 ------- 0 4.0 2.0 28 28
r 1.054001 0 1 AM_Data 40 -------- 0 4.0 2.0 0 0 0
+ 1.054001 1 2 AM_Data 40 -------- 0 4.0 2.0 0 0 0
please help me in getting respose from ue1. how to get communication from
ue1,ue2(address 2,3)
thanks in advance
harpreet singh