[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New Lan and Old Lan
----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 15
Hi:
I`ve tried to use lanlink but I am not really happy
with the results. I have tried both the lanlink from the
latest ns release with is 2.1b3, and the latest daily snapshot,
which is 2.1b4, but there is not any improvement. Please refer to the
attachment for the output of both releases.
With the ns release 2.1b3, it runs until stop time, but
for the other release, it stops before stop time. I have
been adviced by Yuri not to source vlan.tcl because for the time being,
it is not stable yet. So, I just source the ns-lan.tcl.
Thank you.
harlisya
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: old-lan-interface-result
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 104
+ 0 0 1 tcp 40 ------- 0 0.0 3.0 0 0
- 0 0 3 tcp 40 ------- 0 0.0 3.0 0 0 *concentrate on row 2,
r 0.010169 0 1 tcp 40 ------- 0 0.0 3.0 0 0 *column 3 and 4, why
+ 0.010169 1 2 tcp 40 ------- 0 0.0 3.0 0 0 * 0 3, not 0 1????
- 0.010169 1 2 tcp 40 ------- 0 0.0 3.0 0 0
r 0.290201 1 2 tcp 40 ------- 0 0.0 3.0 0 0
+ 0.290201 2 3 tcp 40 ------- 0 0.0 3.0 0 0
- 0.290201 2 3 tcp 40 ------- 0 0.0 3.0 0 0
r 0.300317 2 3 tcp 40 ------- 0 0.0 3.0 0 0
+ 0.300317 3 2 ack 40 ------- 0 3.0 0.0 0 1
- 0.300317 3 0 ack 40 ------- 0 3.0 0.0 0 1* the same happen to
r 0.310433 3 2 ack 40 ------- 0 3.0 0.0 0 1* here, why 3 0, not 3 2???
+ 0.310433 2 1 ack 40 ------- 0 3.0 0.0 0 1
- 0.310433 2 1 ack 40 ------- 0 3.0 0.0 0 1
r 0.601544 2 1 ack 40 ------- 0 3.0 0.0 0 1
+ 0.601544 1 0 ack 40 ------- 0 3.0 0.0 0 1
- 0.601544 1 0 ack 40 ------- 0 3.0 0.0 0 1
r 0.61166 1 0 ack 40 ------- 0 3.0 0.0 0 1
+ 0.61166 0 1 tcp 530 ------- 0 0.0 3.0 1 2
- 0.61166 0 3 tcp 530 ------- 0 0.0 3.0 1 2
+ 0.602084 0 1 tcp 530 ------- 0 0.0 3.0 2 3
- 0.612204 0 3 tcp 530 ------- 0 0.0 3.0 2 3
r 0.622168 0 1 tcp 530 ------- 0 0.0 3.0 1 2
+ 0.622168 1 2 tcp 530 ------- 0 0.0 3.0 1 2
- 0.622168 1 2 tcp 530 ------- 0 0.0 3.0 1 2
r 0.622712 0 1 tcp 530 ------- 0 0.0 3.0 2 3
+ 0.622712 1 2 tcp 530 ------- 0 0.0 3.0 2 3
- 0.622712 1 2 tcp 530 ------- 0 0.0 3.0 2 3
r 0.902592 1 2 tcp 530 ------- 0 0.0 3.0 1 2
+ 0.902592 2 3 tcp 530 ------- 0 0.0 3.0 1 2
- 0.902592 2 3 tcp 530 ------- 0 0.0 3.0 1 2
r 0.903136 1 2 tcp 530 ------- 0 0.0 3.0 2 3
+ 0.903136 2 3 tcp 530 ------- 0 0.0 3.0 2 3
- 0.903136 2 3 tcp 530 ------- 0 0.0 3.0 2 3
r 0.9131 2 3 tcp 530 ------- 0 0.0 3.0 1 2
+ 0.9131 3 2 ack 40 ------- 0 3.0 0.0 1 4
- 0.9131 3 0 ack 40 ------- 0 3.0 0.0 1 4
r 0.913644 2 3 tcp 530 ------- 0 0.0 3.0 2 3
+ 0.913644 3 2 ack 40 ------- 0 3.0 0.0 2 5
- 0.913644 3 0 ack 40 ------- 0 3.0 0.0 2 5
r 0.923216 3 2 ack 40 ------- 0 3.0 0.0 1 4
+ 0.923216 2 1 ack 40 ------- 0 3.0 0.0 1 4
- 0.923216 2 1 ack 40 ------- 0 3.0 0.0 1 4
r 0.92376 3 2 ack 40 ------- 0 3.0 0.0 2 5
+ 0.92376 2 1 ack 40 ------- 0 3.0 0.0 2 5
- 0.934327 2 1 ack 40 ------- 0 3.0 0.0 2 5
r 1.21433 2 1 ack 40 ------- 0 3.0 0.0 1 4
+ 1.21433 1 0 ack 40 ------- 0 3.0 0.0 1 4
- 1.21433 1 0 ack 40 ------- 0 3.0 0.0 1 4
r 1.22444 1 0 ack 40 ------- 0 3.0 0.0 1 4
+ 1.22444 0 1 tcp 530 ------- 0 0.0 3.0 3 6
- 1.22444 0 3 tcp 530 ------- 0 0.0 3.0 3 6
+ 1.21487 0 1 tcp 530 ------- 0 0.0 3.0 4 7
- 1.22499 0 3 tcp 530 ------- 0 0.0 3.0 4 7
r 1.22544 2 1 ack 40 ------- 0 3.0 0.0 2 5
+ 1.22544 1 0 ack 40 ------- 0 3.0 0.0 2 5
- 1.22544 1 0 ack 40 ------- 0 3.0 0.0 2 5
r 1.23495 0 1 tcp 530 ------- 0 0.0 3.0 3 6
+ 1.23495 1 2 tcp 530 ------- 0 0.0 3.0 3 6
- 1.23495 1 2 tcp 530 ------- 0 0.0 3.0 3 6
r 1.2355 0 1 tcp 530 ------- 0 0.0 3.0 4 7
+ 1.2355 1 2 tcp 530 ------- 0 0.0 3.0 4 7
:
:
:
:
- 29.3425 1 0 ack 40 ------- 0 3.0 0.0 321 645
r 29.7245 2 3 tcp 530 ------- 0 0.0 3.0 323 644
+ 29.7245 3 2 ack 40 ------- 0 3.0 0.0 323 651
- 29.7245 3 0 ack 40 ------- 0 3.0 0.0 323 651
r 29.7346 3 2 ack 40 ------- 0 3.0 0.0 323 651
+ 29.7346 2 1 ack 40 ------- 0 3.0 0.0 323 651
- 29.7346 2 1 ack 40 ------- 0 3.0 0.0 323 651
+ 29.4453 0 1 tcp 530 ------- 0 0.0 3.0 327 650
- 29.4453 0 3 tcp 530 ------- 0 0.0 3.0 327 650
r 29.7458 1 2 tcp 530 ------- 0 0.0 3.0 326 649
+ 29.6842 2 3 tcp 530 ------- 0 0.0 3.0 324 646
- 29.6842 2 3 tcp 530 ------- 0 0.0 3.0 324 646
r 29.4657 1 0 ack 40 ------- 0 3.0 0.0 321 645
r 29.4662 0 1 tcp 530 ------- 0 0.0 3.0 327 650
+ 29.4662 1 2 tcp 530 ------- 0 0.0 3.0 327 650
- 29.4662 1 2 tcp 530 ------- 0 0.0 3.0 327 650
+ 29.4358 0 1 tcp 530 ------- 0 0.0 3.0 328 652
- 29.4358 0 3 tcp 530 ------- 0 0.0 3.0 328 652
r 29.7351 2 3 tcp 530 ------- 0 0.0 3.0 324 646
+ 29.7351 3 2 ack 40 ------- 0 3.0 0.0 324 653
- 29.7351 3 0 ack 40 ------- 0 3.0 0.0 324 653
r 29.7452 3 2 ack 40 ------- 0 3.0 0.0 324 653
+ 29.7452 2 1 ack 40 ------- 0 3.0 0.0 324 653
- 29.7452 2 1 ack 40 ------- 0 3.0 0.0 324 653
r 29.7466 1 2 tcp 530 ------- 0 0.0 3.0 327 650
+ 29.6747 2 3 tcp 530 ------- 0 0.0 3.0 325 647
- 29.6747 2 3 tcp 530 ------- 0 0.0 3.0 325 647
r 29.4667 0 1 tcp 530 ------- 0 0.0 3.0 328 652
+ 29.4667 1 2 tcp 530 ------- 0 0.0 3.0 328 652
- 29.4667 1 2 tcp 530 ------- 0 0.0 3.0 328 652
+ 29.6651 2 3 tcp 530 ------- 0 0.0 3.0 326 649
- 29.6651 2 3 tcp 530 ------- 0 0.0 3.0 326 649
r 29.7457 2 3 tcp 530 ------- 0 0.0 3.0 325 647
+ 29.7457 3 2 ack 40 ------- 0 3.0 0.0 325 654
- 29.7457 3 0 ack 40 ------- 0 3.0 0.0 325 654
r 29.7471 1 2 tcp 530 ------- 0 0.0 3.0 328 652
r 29.7558 3 2 ack 40 ------- 0 3.0 0.0 325 654
+ 29.7558 2 1 ack 40 ------- 0 3.0 0.0 325 654
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: new-lan-interface-result
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 21
+ 0 0 1 tcp 40 ------- 0 0.0 3.0 0 0
- 0 0 3 tcp 40 ------- 0 0.0 3.0 0 0 * Still the same problem
r 0.010169 0 1 tcp 40 ------- 0 0.0 3.0 0 0 *as before(concentrate
+ 0.010169 1 2 tcp 40 ------- 0 0.0 3.0 0 0 *on row 2, column 3 and 4),
- 0.010169 1 2 tcp 40 ------- 0 0.0 3.0 0 0*why 0 3, not 0 1?????)
r 0.290201 1 2 tcp 40 ------- 0 0.0 3.0 0 0
+ 0.290201 2 3 tcp 40 ------- 0 0.0 3.0 0 0
- 0.290201 2 3 tcp 40 ------- 0 0.0 3.0 0 0
r 0.300317 2 3 tcp 40 ------- 0 0.0 3.0 0 0
+ 0.300317 3 2 ack 40 ------- 0 3.0 0.0 0 1
- 0.300317 3 0 ack 40 ------- 0 3.0 0.0 0 1*the same happen to here,
r 0.310433 3 2 ack 40 ------- 0 3.0 0.0 0 1* why 3 0, not 3 2???
+ 0.310433 2 1 ack 40 ------- 0 3.0 0.0 0 1
- 0.310433 2 1 ack 40 ------- 0 3.0 0.0 0 1
r 0.601544 2 1 ack 40 ------- 0 3.0 0.0 0 1
+ 0.601544 1 0 ack 40 ------- 0 3.0 0.0 0 1
- 0.601544 1 0 ack 40 ------- 0 3.0 0.0 0 1
r 0.61166 1 0 ack 40 ------- 0 3.0 0.0 0 1 * Why the simulation stops at
* 0.61166,
* while in my script, I have set the
* simulation time to 30.0????
----------
X-Sun-Data-Type: default
X-Sun-Data-Name: lan-asm.tcl
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 75
source /ns-2/tcl/lan/ns-ll.tcl
source /ns-2/tcl/lan/ns-lan.tcl
source /ns-2/tcl/lan/ns-mac.tcl
source /ns-2/tcl/lib/ns-default.tcl
#
# set up simulation
#
set ns [new Simulator]
set n0 [$ns node]
set r1 [$ns node]
set r2 [$ns node]
set n1 [$ns node]
set f [open out.tr w]
$ns trace-all $f
set packetSize 1500
set tcpTick 0.1
set ssthresh 123
set ackSize 40
set upwin 0
set nonfifo 0
$ns make-lan "$n0 $r1" 10Mb 10ms LL Queue/DropTail Mac/Csma/Cd Channel
$ns simplex-link $r1 $r2 10Mb 280ms DropTail
$ns simplex-link $r2 $r1 28.8Kb 280ms DropTail
[$ns link $r1 $r2] set queue-limit 511
[$ns link $r2 $r1] set queue-limit 511
$ns make-lan "$r2 $n1" 10Mb 10ms LL Queue/DropTail Mac/Csma/Cd Channel
#
# Sending data
#
set tcp [new Agent/TCP]
$tcp set packetSize_ 1500
$tcp set tcpTick_ 0.1
$tcp set maxcwnd_ 123
$tcp set ssthresh_ 123
$tcp set window_ 50
$tcp set slow_start_restart_ true
#$tcp set syn_ true
set sink [new Agent/TCPSink]
$sink set ackSize_ 40
$sink set tcpTick_ 0.1
$sink set window_ 100
$ns attach-agent $n0 $tcp
$ns attach-agent $n1 $sink
set connection [$ns connect $tcp $sink]
Source/FTP instproc start { } {
set maxpkts_ 1000
$self instvar agent_ maxpkts
$agent_ advance $maxpkts_
}
set ftp [new Source/FTP]
$ftp set agent_ $tcp
$ns at 0.0 "$ftp start"
$ns at 30.0 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n1 $sink"
$ns run