LAMPIRAN 1 SCRIPT PROGRAM SINGLE SERVER
LAMPIRAN 1
SCRIPT PROGRAM SINGLE SERVER
set ns [new Simulator] $ns color 0 blue $ns color 1 red $ns color 2 green $ns color 3 yellow $ns color 4 brown $ns color 5 purple $ns color 6 black $ns color 7 grey $ns color 8 maroon set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] set n6 [$ns node] set n7 [$ns node] set n8 [$ns node] set n9 [$ns node] set n10 [$ns node] set n11 [$ns node] set n12 [$ns node] set n13 [$ns node] set n14 [$ns node] set n15 [$ns node] set n16 [$ns node] set n17 [$ns node] set n18 [$ns node] set n19 [$ns node] set n20 [$ns node] set n21 [$ns node] set n22 [$ns node] set f [open out.tr w] $ns trace-all $f set nf [open out.nam w] $ns namtrace-all $nf $ns duplex-link $n0 $n3 5Mb 2ms DropTail $ns duplex-link $n1 $n3 5Mb 2ms DropTail $ns duplex-link $n2 $n3 5Mb 2ms DropTail $ns duplex-link $n10 $n3 1.5Mb 10ms DropTail
$ns duplex-link $n9 $n10 1.5Mb 10ms DropTail $ns duplex-link $n10 $n16 1.5Mb 10ms DropTail $ns duplex-link $n10 $n11 1.5Mb 10ms DropTail $ns duplex-link $n10 $n17 1.5Mb 10ms DropTail $ns duplex-link $n3 $n4 1.5Mb 10ms DropTail $ns duplex-link $n4 $n5 1.5Mb 10ms DropTail $ns duplex-link $n4 $n11 1.5Mb 10ms DropTail $ns duplex-link $n5 $n6 1.5Mb 10ms DropTail $ns duplex-link $n6 $n7 1.5Mb 10ms DropTail $ns duplex-link $n6 $n8 1.5Mb 10ms DropTail $ns duplex-link $n11 $n12 1.5Mb 10ms DropTail $ns duplex-link $n12 $n13 1.5Mb 10ms DropTail $ns duplex-link $n12 $n14 1.5Mb 10ms DropTail $ns duplex-link $n12 $n15 1.5Mb 10ms DropTail $ns duplex-link $n11 $n18 1.5Mb 10ms DropTail $ns duplex-link $n18 $n19 1.5Mb 10ms DropTail $ns duplex-link $n18 $n20 1.5Mb 10ms DropTail $ns duplex-link $n5 $n21 1.5Mb 10ms DropTail $ns duplex-link $n5 $n22 1.5Mb 10ms DropTail $ns duplex-link-op $n0 $n3 orient right-up $ns duplex-link-op $n1 $n3 orient right-down $ns duplex-link-op $n2 $n3 orient down $ns duplex-link-op $n10 $n3 orient up $ns duplex-link-op $n9 $n10 orient right-up $ns duplex-link-op $n10 $n11 orient right $ns duplex-link-op $n10 $n16 orient down $ns duplex-link-op $n10 $n17 orient right-down $ns duplex-link-op $n3 $n4 orient right $ns duplex-link-op $n4 $n5 orient right-up $ns duplex-link-op $n4 $n11 orient down $ns duplex-link-op $n5 $n6 orient right $ns duplex-link-op $n6 $n7 orient right-up $ns duplex-link-op $n6 $n8 orient right $ns duplex-link-op $n11 $n12 orient right $ns duplex-link-op $n12 $n13 orient right-up $ns duplex-link-op $n12 $n14 orient right $ns duplex-link-op $n12 $n15 orient right-down $ns duplex-link-op $n11 $n18 orient right-down $ns duplex-link-op $n18 $n19 orient left-down $ns duplex-link-op $n18 $n20 orient right-down $ns duplex-link-op $n5 $n21 orient right-up $ns duplex-link-op $n5 $n22 orient left-up $ns duplex-link-op $n2 $n3 queuePos 0.5 set udp0 [new Agent/UDP] $ns attach-agent $n0 $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 attach-agent $udp0 set udp1 [new Agent/UDP] $ns attach-agent $n3 $udp1 $udp1 set class_ 1 set cbr1 [new Application/Traffic/CBR] $cbr1 attach-agent $udp1 set udp2 [new Agent/UDP] $ns attach-agent $n9 $udp2 $udp2 set class_ 2 set cbr2 [new Application/Traffic/CBR] $cbr2 attach-agent $udp2 set udp3 [new Agent/UDP] $ns attach-agent $n16 $udp3 $udp3 set class_ 3 set cbr3 [new Application/Traffic/CBR] $cbr3 attach-agent $udp3 set udp4 [new Agent/UDP] $ns attach-agent $n19 $udp4 $udp4 set class_ 4 set cbr4 [new Application/Traffic/CBR] $cbr4 attach-agent $udp4 set udp5 [new Agent/UDP] $ns attach-agent $n7 $udp5 $udp5 set class_ 5 set cbr5 [new Application/Traffic/CBR] $cbr5 attach-agent $udp5 set udp6 [new Agent/UDP] $ns attach-agent $n14 $udp6 $udp6 set class_ 6 set cbr6 [new Application/Traffic/CBR] $cbr6 attach-agent $udp6 set udp7 [new Agent/UDP] $ns attach-agent $n13 $udp7 $udp7 set class_ 7 set cbr7 [new Application/Traffic/CBR] $cbr7 attach-agent $udp7 set udp8 [new Agent/UDP] $ns attach-agent $n1 $udp8 $udp8 set class_ 8
set cbr8 [new Application/Traffic/CBR] $cbr8 attach-agent $udp8 set null0 [new Agent/Null] $ns attach-agent $n14 $null0 set null1 [new Agent/Null] $ns attach-agent $n13 $null1 set null2 [new Agent/Null] $ns attach-agent $n8 $null2 set null3 [new Agent/Null] $ns attach-agent $n20 $null3 set null4 [new Agent/Null] $ns attach-agent $n14 $null4 set null5 [new Agent/Null] $ns attach-agent $n20 $null5 set null6 [new Agent/Null] $ns attach-agent $n21 $null6 set null7 [new Agent/Null] $ns attach-agent $n22 $null7 set null8 [new Agent/Null] $ns attach-agent $n17 $null8 $ns connect $udp0 $null0 $ns connect $udp1 $null1 $ns connect $udp2 $null2 $ns connect $udp3 $null3 $ns connect $udp4 $null4 $ns connect $udp5 $null5 $ns connect $udp6 $null6 $ns connect $udp7 $null7 $ns connect $udp8 $null8 # creation trace traffic set max_fragmented_size 1024 #add udp header(8 bytes) and IP header (20bytes) set packetSize 1052 set original_file_name trafik set trace_file_name video1.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set pre_time 0 while {[eof $original_file_id] == 0} { gets $original_file_id current_line scan $current_line "%d%s%d%d%f" no_ frametype_ length_ tmp1_ tmp2_ set time [expr int(($tmp2_ - $pre_time)*1000000.0)] if { $frametype_ == "I" } { set type_v 1 set prio_p 0 } if { $frametype_ == "P" } { set type_v 2 set prio_p 0 } if { $frametype_ == "B" } { set type_v 3 set prio_p 0 } if { $frametype_ == "H" } { set type_v 1 set prio_p 0 } puts $trace_file_id "$time $length_ $type_v $prio_p $max_fragmented_size" set pre_time $tmp2_ } close $original_file_id close $trace_file_id set end_sim_time $tmp2_ puts "$end_sim_time" set trace_file [new Tracefile] $trace_file filename $trace_file_name #Attach video to server #create source traffic #Create a UDP agent and attach it to node n0 set udp_0 [new Agent/myUDP] $udp_0 set_filename udpSend0 $udp_0 set packetSize_ 1052 $ns attach-agent $n2 $udp_0 ;#Server 2 set udp_1 [new Agent/myUDP] $udp_1 set_filename udpSend1 $udp_1 set packetSize_ 1052 $ns attach-agent $n2 $udp_1 ;#Server 2 set udp_7 [new Agent/myUDP] $udp_7 set_filename udpSend7 $udp_7 set packetSize_ 1052 $ns attach-agent $n2 $udp_7 ;#Server 2 set udp_8 [new Agent/myUDP] $udp_8 set_filename udpSend8 $udp_8 set packetSize_ 1052 $ns attach-agent $n2 $udp_8 ;#Server 2 set udp_9 [new Agent/myUDP] $udp_9 set_filename udpSend9 $udp_9 set packetSize_ 1052 $ns attach-agent $n2 $udp_9 ;#Server 2 set udp_14 [new Agent/myUDP] $udp_14 set_filename udpSend14 $udp_14 set packetSize_ 1052 $ns attach-agent $n2 $udp_14 ;#Server 2 set udp_15 [new Agent/myUDP] $udp_15 set_filename udpSend15 $udp_15 set packetSize_ 1052 $ns attach-agent $n2 $udp_15 ;#Server 2 set udp_16 [new Agent/myUDP] $udp_16 set_filename udpSend16 $udp_16 set packetSize_ 1052 $ns attach-agent $n2 $udp_16 ;#Server 2 set udp_19 [new Agent/myUDP] $udp_19 set_filename udpSend19 $udp_19 set packetSize_ 1052 $ns attach-agent $n2 $udp_19 ;#Server 2 set udp_21 [new Agent/myUDP] $udp_21 set_filename udpSend21 $udp_21 set packetSize_ 1052 $ns attach-agent $n2 $udp_21 ;#Server 2 # Attach video traffic source set video0 [new Application/Traffic/myEvalvid] $video0 attach-tracefile $trace_file $video0 attach-agent $udp_0 set video1 [new Application/Traffic/myEvalvid] $video1 attach-tracefile $trace_file $video1 attach-agent $udp_1 set video2 [new Application/Traffic/myEvalvid] $video2 attach-tracefile $trace_file $video2 attach-agent $udp_7 set video3 [new Application/Traffic/myEvalvid] $video3 attach-tracefile $trace_file $video3 attach-agent $udp_8 set video4 [new Application/Traffic/myEvalvid] $video4 attach-tracefile $trace_file $video4 attach-agent $udp_9 set video5 [new Application/Traffic/myEvalvid] $video5 attach-tracefile $trace_file $video5 attach-agent $udp_14 set video6 [new Application/Traffic/myEvalvid] $video6 attach-tracefile $trace_file $video6 attach-agent $udp_15 set video7 [new Application/Traffic/myEvalvid] $video7 attach-tracefile $trace_file $video7 attach-agent $udp_16 set video8 [new Application/Traffic/myEvalvid] $video8 attach-tracefile $trace_file $video8 attach-agent $udp_19 set video9 [new Application/Traffic/myEvalvid] $video9 attach-tracefile $trace_file $video9 attach-agent $udp_21 # Create the Null agent to sink traffic set null_0 [new Agent/myEvalvid_Sink] $null_0 set_filename udpRec0 $ns attach-agent $n0 $null_0 set null_1 [new Agent/myEvalvid_Sink] $null_1 set_filename udpRec1 $ns attach-agent $n1 $null_1 set null_7 [new Agent/myEvalvid_Sink] $null_7 set_filename udpRec7 $ns attach-agent $n7 $null_7 set null_8 [new Agent/myEvalvid_Sink] $null_8 set_filename udpRec8 $ns attach-agent $n8 $null_8 set null_9 [new Agent/myEvalvid_Sink] $null_9 set_filename udpRec9 $ns attach-agent $n9 $null_9 set null_14 [new Agent/myEvalvid_Sink] $null_14 set_filename udpRec14 $ns attach-agent $n14 $null_14 set null_15 [new Agent/myEvalvid_Sink] $null_15 set_filename udpRec15 $ns attach-agent $n15 $null_15 set null_16 [new Agent/myEvalvid_Sink] $null_16 set_filename udpRec16 $ns attach-agent $n16 $null_16 set null_19 [new Agent/myEvalvid_Sink] $null_19 set_filename udpRec19 $ns attach-agent $n19 $null_19 set null_21 [new Agent/myEvalvid_Sink] $null_21 set_filename udpRec21 $ns attach-agent $n21 $null_21 # Attach the 2 agents $ns connect $udp_0 $null_0 $ns connect $udp_1 $null_1 $ns connect $udp_7 $null_7 $ns connect $udp_8 $null_8 $ns connect $udp_9 $null_9 $ns connect $udp_14 $null_14 $ns connect $udp_15 $null_15 $ns connect $udp_16 $null_16 $ns connect $udp_19 $null_19 $ns connect $udp_21 $null_21 $ns at 1.0 "$cbr0 start" $ns at 6.1 "$cbr1 start" $ns at 1.3 "$cbr2 start" $ns at 2.6 "$cbr3 start" $ns at 1.8 "$cbr4 start" $ns at 3.0 "$cbr5 start" $ns at 2.1 "$cbr6 start" $ns at 5.2 "$cbr7 start" $ns at 7.3 "$cbr8 start" $ns at 4.0 "$cbr5 stop" $ns at 5.1 "$cbr6 stop" $ns at 5.8 "$cbr7 stop"#Evaluated traffics $ns at 2.0 "$video0 start" $ns at 2.5 "$video1 start" $ns at 3.0 "$video2 start" $ns at 3.5 "$video3 start" $ns at 4.0 "$video4 start" $ns at 4.5 "$video5 start" $ns at 5.0 "$video6 start" $ns at 5.5 "$video7 start" $ns at 6.0 "$video8 start" $ns at 6.5 "$video9 start" set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns attach-agent $n0 $tcp $ns attach-agent $n3 $sink $ns connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 1.2 "$ftp start" $ns at 1.35 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" puts [$cbr0 set packetSize_] puts [$cbr0 set interval_] $ns at 500.0 "finish" proc finish {} { global ns f nf
$ns flush-trace close $f close $nf puts "running nam..." exec nam out.nam & exit 0
} $ns run
LAMPIRAN 2
SCRIPT PROGRAM CDN TANPA GEO DNS
set ns [new Simulator] $ns color 0 pink $ns color 1 red $ns color 2 green $ns color 3 yellow $ns color 4 brown $ns color 5 purple $ns color 6 black $ns color 7 grey $ns color 8 maroon set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] set n6 [$ns node] set n7 [$ns node] set n8 [$ns node] set n9 [$ns node] set n10 [$ns node] set n11 [$ns node] set n12 [$ns node] set n13 [$ns node] set n14 [$ns node] set n15 [$ns node] set n16 [$ns node] set n17 [$ns node] set n18 [$ns node] set n19 [$ns node] set n20 [$ns node] set n21 [$ns node] set n22 [$ns node] set f [open out.tr w] $ns trace-all $f set nf [open out.nam w] $ns namtrace-all $nf $ns duplex-link $n0 $n3 5Mb 2ms DropTail $ns duplex-link $n1 $n3 5Mb 2ms DropTail $ns duplex-link $n2 $n3 5Mb 2ms DropTail $ns duplex-link $n10 $n3 1.5Mb 10ms DropTail $ns duplex-link $n9 $n10 1.5Mb 10ms DropTail $ns duplex-link $n10 $n16 1.5Mb 10ms DropTail $ns duplex-link $n10 $n11 1.5Mb 10ms DropTail
$ns duplex-link $n10 $n17 1.5Mb 10ms DropTail $ns duplex-link $n3 $n4 1.5Mb 10ms DropTail $ns duplex-link $n4 $n5 1.5Mb 10ms DropTail $ns duplex-link $n4 $n11 1.5Mb 10ms DropTail $ns duplex-link $n5 $n6 1.5Mb 10ms DropTail $ns duplex-link $n6 $n7 1.5Mb 10ms DropTail $ns duplex-link $n11 $n12 1.5Mb 10ms DropTail $ns duplex-link $n12 $n13 1.5Mb 10ms DropTail $ns duplex-link $n12 $n14 1.5Mb 10ms DropTail $ns duplex-link $n12 $n15 1.5Mb 10ms DropTail $ns duplex-link $n11 $n18 1.5Mb 10ms DropTail $ns duplex-link $n18 $n19 1.5Mb 10ms DropTail $ns duplex-link $n18 $n20 1.5Mb 10ms DropTail $ns duplex-link $n5 $n21 1.5Mb 10ms DropTail $ns duplex-link $n5 $n22 1.5Mb 10ms DropTail $ns duplex-link-op $n0 $n3 orient right-up $ns duplex-link-op $n1 $n3 orient right-down $ns duplex-link-op $n2 $n3 orient down $ns duplex-link-op $n10 $n3 orient up $ns duplex-link-op $n9 $n10 orient right-up $ns duplex-link-op $n10 $n11 orient right $ns duplex-link-op $n10 $n16 orient down $ns duplex-link-op $n10 $n17 orient right-down $ns duplex-link-op $n3 $n4 orient right $ns duplex-link-op $n4 $n5 orient right-up $ns duplex-link-op $n4 $n11 orient down $ns duplex-link-op $n5 $n6 orient right $ns duplex-link-op $n6 $n7 orient right-up $ns duplex-link-op $n6 $n8 orient right $ns duplex-link-op $n11 $n12 orient right $ns duplex-link-op $n12 $n13 orient right-up $ns duplex-link-op $n12 $n14 orient right $ns duplex-link-op $n12 $n15 orient right-down $ns duplex-link-op $n11 $n18 orient right-down $ns duplex-link-op $n18 $n19 orient left-down $ns duplex-link-op $n18 $n20 orient right-down $ns duplex-link-op $n5 $n21 orient right-up $ns duplex-link-op $n5 $n22 orient left-up $ns duplex-link-op $n2 $n3 queuePos 0.5 set udp0 [new Agent/UDP] $ns attach-agent $n0 $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 attach-agent $udp0 set udp1 [new Agent/UDP] $ns attach-agent $n3 $udp1 $udp1 set class_ 1 set cbr1 [new Application/Traffic/CBR] $cbr1 attach-agent $udp1 set udp2 [new Agent/UDP] $ns attach-agent $n9 $udp2 $udp2 set class_ 2 set cbr2 [new Application/Traffic/CBR] $cbr2 attach-agent $udp2 $ns attach-agent $n16 $udp3 $udp3 set class_ 3 set cbr3 [new Application/Traffic/CBR] $cbr3 attach-agent $udp3 set udp4 [new Agent/UDP] $ns attach-agent $n19 $udp4 $udp4 set class_ 4 set cbr4 [new Application/Traffic/CBR] $cbr4 attach-agent $udp4 set udp5 [new Agent/UDP] $ns attach-agent $n7 $udp5 $udp5 set class_ 5 set cbr5 [new Application/Traffic/CBR] $cbr5 attach-agent $udp5 set udp6 [new Agent/UDP] $ns attach-agent $n14 $udp6 $udp6 set class_ 6 set cbr6 [new Application/Traffic/CBR] $cbr6 attach-agent $udp6 set udp7 [new Agent/UDP] $ns attach-agent $n13 $udp7 $udp7 set class_ 7 set cbr7 [new Application/Traffic/CBR] $cbr7 attach-agent $udp7 set udp8 [new Agent/UDP] $ns attach-agent $n1 $udp8 $udp8 set class_ 8 set cbr8 [new Application/Traffic/CBR] $cbr8 attach-agent $udp8 set null0 [new Agent/Null] $ns attach-agent $n14 $null0 set null1 [new Agent/Null] $ns attach-agent $n13 $null1 set null2 [new Agent/Null] $ns attach-agent $n8 $null2 set null3 [new Agent/Null] $ns attach-agent $n20 $null3
set null4 [new Agent/Null] $ns attach-agent $n14 $null4 set null5 [new Agent/Null] $ns attach-agent $n20 $null5 $ns attach-agent $n21 $null6 set null7 [new Agent/Null] $ns attach-agent $n22 $null7 set null8 [new Agent/Null] $ns attach-agent $n17 $null8 $ns connect $udp0 $null0 $ns connect $udp1 $null1 $ns connect $udp2 $null2 $ns connect $udp3 $null3 $ns connect $udp4 $null4 $ns connect $udp5 $null5 $ns connect $udp6 $null6 $ns connect $udp7 $null7 $ns connect $udp8 $null8 # creation trace traffic set max_fragmented_size 1024 #add udp header(8 bytes) and IP header (20bytes) set packetSize 1052 set original_file_name st_a01 set trace_file_name video1.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set pre_time 0 while {[eof $original_file_id] == 0} { gets $original_file_id current_line scan $current_line "%d%s%d%d%f" no_ frametype_ length_ tmp1_ tmp2_ set time [expr int(($tmp2_ - $pre_time)*1000000.0)] if { $frametype_ == "I" } { set type_v 1 set prio_p 0 } if { $frametype_ == "P" } { set type_v 2 set prio_p 0 } if { $frametype_ == "B" } { set type_v 3 set prio_p 0 } if { $frametype_ == "H" } { set type_v 1 set prio_p 0} puts $trace_file_id "$time $length_ $type_v $prio_p $max_fragmented_size" set pre_time $tmp2_ } close $original_file_id set end_sim_time $tmp2_ puts "$end_sim_time" set trace_file [new Tracefile] $trace_file filename $trace_file_name #Attach video to server #create source traffic #Create a UDP agent and attach it to node n0 set udp_15 [new Agent/myUDP] $udp_15 set_filename udpSend15 $udp_15 set packetSize_ 1052 $ns attach-agent $n2 $udp_15 ;#Server 2 set udp_0 [new Agent/myUDP] $udp_0 set_filename udpSend0 $udp_0 set packetSize_ 1052 $ns attach-agent $n2 $udp_0 ;#Server 2 set udp_14 [new Agent/myUDP] $udp_14 set_filename udpSend14 $udp_14 set packetSize_ 1052 $ns attach-agent $n2 $udp_14 ;#Server 2 set udp_21 [new Agent/myUDP] $udp_21 set_filename udpSend21 $udp_21 set packetSize_ 1052 $ns attach-agent $n2 $udp_21 ;#Server 2 set udp_19 [new Agent/myUDP] $udp_19 set_filename udpSend19 $udp_19 set packetSize_ 1052w $ns attach-agent $n20 $udp_19 ;#Server 20 set udp_8 [new Agent/myUDP] $udp_8 set_filename udpSend8 $udp_8 set packetSize_ 1052 $ns attach-agent $n20 $udp_8 ;#Server 20 set udp_1 [new Agent/myUDP] $udp_1 set_filename udpSend1 $udp_1 set packetSize_ 1052 $ns attach-agent $n20 $udp_1 ;#Server 20 set udp_7 [new Agent/myUDP] $udp_7 set_filename udpSend7
$udp_7 set packetSize_ 1052 $ns attach-agent $n22 $udp_7 ;#Server 22 set udp_9 [new Agent/myUDP] $udp_9 set_filename udpSend9 $udp_9 set packetSize_ 1052 set udp_16 [new Agent/myUDP] $udp_16 set_filename udpSend16 $udp_16 set packetSize_ 1052 $ns attach-agent $n22 $udp_16 ;#Server 22 # Attach video traffic source set video0 [new Application/Traffic/myEvalvid] $video0 attach-tracefile $trace_file $video0 attach-agent $udp_0 set video1 [new Application/Traffic/myEvalvid] $video1 attach-tracefile $trace_file $video1 attach-agent $udp_1 set video2 [new Application/Traffic/myEvalvid] $video2 attach-tracefile $trace_file $video2 attach-agent $udp_7 set video3 [new Application/Traffic/myEvalvid] $video3 attach-tracefile $trace_file $video3 attach-agent $udp_8 set video4 [new Application/Traffic/myEvalvid] $video4 attach-tracefile $trace_file $video4 attach-agent $udp_9 set video5 [new Application/Traffic/myEvalvid] $video5 attach-tracefile $trace_file $video5 attach-agent $udp_14 set video6 [new Application/Traffic/myEvalvid] $video6 attach-tracefile $trace_file $video6 attach-agent $udp_15 set video7 [new Application/Traffic/myEvalvid] $video7 attach-tracefile $trace_file $video7 attach-agent $udp_16 set video8 [new Application/Traffic/myEvalvid] $video8 attach-tracefile $trace_file $video8 attach-agent $udp_19 set video9 [new Application/Traffic/myEvalvid] $video9 attach-tracefile $trace_file $video9 attach-agent $udp_21
# Create the Null agent to sink traffic set null_0 [new Agent/myEvalvid_Sink] $null_0 set_filename udpRec0 $ns attach-agent $n0 $null_0 set null_1 [new Agent/myEvalvid_Sink] $ns attach-agent $n1 $null_1 set null_7 [new Agent/myEvalvid_Sink] $null_7 set_filename udpRec7 $ns attach-agent $n7 $null_7 set null_8 [new Agent/myEvalvid_Sink] $null_8 set_filename udpRec8 $ns attach-agent $n8 $null_8 set null_9 [new Agent/myEvalvid_Sink] $null_9 set_filename udpRec9 $ns attach-agent $n9 $null_9 set null_14 [new Agent/myEvalvid_Sink] $null_14 set_filename udpRec14 $ns attach-agent $n14 $null_14 set null_15 [new Agent/myEvalvid_Sink] $null_15 set_filename udpRec15 $ns attach-agent $n19 $null_15 set null_16 [new Agent/myEvalvid_Sink] $null_16 set_filename udpRec16 $ns attach-agent $n19 $null_16 set null_19 [new Agent/myEvalvid_Sink] $null_19 set_filename udpRec19 $ns attach-agent $n19 $null_19 set null_21 [new Agent/myEvalvid_Sink] $null_21 set_filename udpRec21 $ns attach-agent $n21 $null_21 # Attach the 2 agents $ns connect $udp_0 $null_0 $ns connect $udp_1 $null_1 $ns connect $udp_7 $null_9 $ns connect $udp_8 $null_16 $ns connect $udp_9 $null_14 $ns connect $udp_14 $null_15 $ns connect $udp_15 $null_16 $ns connect $udp_16 $null_7 $ns connect $udp_19 $null_8 $ns connect $udp_21 $null_21
$ns at 1.0 "$cbr0 start" $ns at 6.1 "$cbr1 start" $ns at 1.3 "$cbr2 start" $ns at 2.6 "$cbr3 start" $ns at 1.8 "$cbr4 start" $ns at 3.0 "$cbr5 start" $ns at 5.2 "$cbr7 start" $ns at 7.3 "$cbr8 start" $ns at 4.0 "$cbr5 stop" $ns at 5.1 "$cbr6 stop" $ns at 5.8 "$cbr7 stop" #Evaluated traffics $ns at 2.0 "$video0 start" $ns at 2.5 "$video1 start" $ns at 3.0 "$video2 start" $ns at 3.4 "$video3 start" $ns at 3.8 "$video4 start" $ns at 4.0 "$video5 start" $ns at 4.5 "$video6 start" $ns at 5.0 "$video7 start" $ns at 5.5 "$video8 start" $ns at 6.0 "$video9 start" set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns attach-agent $n0 $tcp $ns attach-agent $n3 $sink $ns connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 1.2 "$ftp start" $ns at 1.35 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" puts [$cbr0 set packetSize_] puts [$cbr0 set interval_] $ns at 500.0 "finish" proc finish {} { global ns f nf $ns flush-trace close $f close $nf puts "running nam..." exec nam out.nam & exit 0
} $ns run
LAMPIRAN 3 SCRIPT PROGRAM GEO DNS
set ns [new Simulator] $ns color 0 pink $ns color 1 red $ns color 2 green $ns color 3 yellow $ns color 4 brown $ns color 5 purple $ns color 6 black $ns color 7 grey $ns color 8 maroon set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] set n4 [$ns node] set n5 [$ns node] set n6 [$ns node] set n7 [$ns node] set n8 [$ns node] set n9 [$ns node] set n10 [$ns node] set n11 [$ns node] set n12 [$ns node] set n13 [$ns node] set n14 [$ns node] set n15 [$ns node] set n16 [$ns node] set n17 [$ns node] set n18 [$ns node] set n19 [$ns node] set n20 [$ns node] set n21 [$ns node] set n22 [$ns node] set f [open out.tr w] $ns trace-all $f set nf [open out.nam w] $ns namtrace-all $nf $ns duplex-link $n0 $n3 5Mb 2ms DropTail $ns duplex-link $n1 $n3 5Mb 2ms DropTail $ns duplex-link $n2 $n3 5Mb 2ms DropTail $ns duplex-link $n10 $n3 1.5Mb 10ms DropTail $ns duplex-link $n9 $n10 1.5Mb 10ms DropTail $ns duplex-link $n10 $n16 1.5Mb 10ms DropTail $ns duplex-link $n10 $n11 1.5Mb 10ms DropTail $ns duplex-link $n10 $n17 1.5Mb 10ms DropTail
$ns duplex-link $n3 $n4 1.5Mb 10ms DropTail $ns duplex-link $n4 $n5 1.5Mb 10ms DropTail $ns duplex-link $n4 $n11 1.5Mb 10ms DropTail $ns duplex-link $n5 $n6 1.5Mb 10ms DropTail $ns duplex-link $n6 $n7 1.5Mb 10ms DropTail $ns duplex-link $n6 $n8 1.5Mb 10ms DropTail $ns duplex-link $n12 $n13 1.5Mb 10ms DropTail $ns duplex-link $n12 $n14 1.5Mb 10ms DropTail $ns duplex-link $n12 $n15 1.5Mb 10ms DropTail $ns duplex-link $n11 $n18 1.5Mb 10ms DropTail $ns duplex-link $n18 $n19 1.5Mb 10ms DropTail $ns duplex-link $n18 $n20 1.5Mb 10ms DropTail $ns duplex-link $n5 $n21 1.5Mb 10ms DropTail $ns duplex-link $n5 $n22 1.5Mb 10ms DropTail $ns duplex-link-op $n0 $n3 orient right-up $ns duplex-link-op $n1 $n3 orient right-down $ns duplex-link-op $n2 $n3 orient down $ns duplex-link-op $n10 $n3 orient up $ns duplex-link-op $n9 $n10 orient right-up $ns duplex-link-op $n10 $n11 orient right $ns duplex-link-op $n10 $n16 orient down $ns duplex-link-op $n10 $n17 orient right-down $ns duplex-link-op $n3 $n4 orient right $ns duplex-link-op $n4 $n5 orient right-up $ns duplex-link-op $n4 $n11 orient down $ns duplex-link-op $n5 $n6 orient right $ns duplex-link-op $n6 $n7 orient right-up $ns duplex-link-op $n6 $n8 orient right $ns duplex-link-op $n11 $n12 orient right $ns duplex-link-op $n12 $n13 orient right-up $ns duplex-link-op $n12 $n14 orient right $ns duplex-link-op $n12 $n15 orient right-down $ns duplex-link-op $n11 $n18 orient right-down $ns duplex-link-op $n18 $n19 orient left-down $ns duplex-link-op $n18 $n20 orient right-down $ns duplex-link-op $n5 $n21 orient right-up $ns duplex-link-op $n5 $n22 orient left-up $ns duplex-link-op $n2 $n3 queuePos 0.5 set udp0 [new Agent/UDP] $ns attach-agent $n0 $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 attach-agent $udp0 set udp1 [new Agent/UDP] $ns attach-agent $n3 $udp1 $udp1 set class_ 1 set cbr1 [new Application/Traffic/CBR] $cbr1 attach-agent $udp1 set udp2 [new Agent/UDP] $ns attach-agent $n9 $udp2 $udp2 set class_ 2 set cbr2 [new Application/Traffic/CBR] $cbr2 attach-agent $udp2 $ns attach-agent $n16 $udp3 $udp3 set class_ 3 set cbr3 [new Application/Traffic/CBR] $cbr3 attach-agent $udp3 set udp4 [new Agent/UDP] $ns attach-agent $n19 $udp4 $udp4 set class_ 4 set cbr4 [new Application/Traffic/CBR] $cbr4 attach-agent $udp4 set udp5 [new Agent/UDP] $ns attach-agent $n7 $udp5 $udp5 set class_ 5 set cbr5 [new Application/Traffic/CBR] $cbr5 attach-agent $udp5 set udp6 [new Agent/UDP] $ns attach-agent $n14 $udp6 $udp6 set class_ 6 set cbr6 [new Application/Traffic/CBR] $cbr6 attach-agent $udp6 set udp7 [new Agent/UDP] $ns attach-agent $n13 $udp7 $udp7 set class_ 7 set cbr7 [new Application/Traffic/CBR] $cbr7 attach-agent $udp7 set udp8 [new Agent/UDP] $ns attach-agent $n1 $udp8 $udp8 set class_ 8 set cbr8 [new Application/Traffic/CBR] $cbr8 attach-agent $udp8 set null0 [new Agent/Null] $ns attach-agent $n14 $null0 set null1 [new Agent/Null] $ns attach-agent $n13 $null1 set null2 [new Agent/Null] $ns attach-agent $n8 $null2 set null3 [new Agent/Null] $ns attach-agent $n20 $null3
set null4 [new Agent/Null] $ns attach-agent $n14 $null4 set null5 [new Agent/Null] $ns attach-agent $n20 $null5 $ns attach-agent $n21 $null6 set null7 [new Agent/Null] $ns attach-agent $n22 $null7 set null8 [new Agent/Null] $ns attach-agent $n17 $null8 $ns connect $udp0 $null0 $ns connect $udp1 $null1 $ns connect $udp2 $null2 $ns connect $udp3 $null3 $ns connect $udp4 $null4 $ns connect $udp5 $null5 $ns connect $udp6 $null6 $ns connect $udp7 $null7 $ns connect $udp8 $null8 # creation trace traffic set max_fragmented_size 1024 #add udp header(8 bytes) and IP header (20bytes) set packetSize 1052 set original_file_name trafik set trace_file_name video1.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set pre_time 0 while {[eof $original_file_id] == 0} { gets $original_file_id current_line scan $current_line "%d%s%d%d%f" no_ frametype_ length_ tmp1_ tmp2_ set time [expr int(($tmp2_ - $pre_time)*1000000.0)] if { $frametype_ == "I" } { set type_v 1 set prio_p 0 } if { $frametype_ == "P" } { set type_v 2 set prio_p 0 } if { $frametype_ == "B" } { set type_v 3 set prio_p 0 } if { $frametype_ == "H" } { set type_v 1 set prio_p 0} puts $trace_file_id "$time $length_ $type_v $prio_p $max_fragmented_size" set pre_time $tmp2_ } close $original_file_id close $trace_file_id puts "$end_sim_time" set trace_file [new Tracefile] $trace_file filename $trace_file_name #Attach video to server #create source traffic #Create a UDP agent and attach it to node n0 set udp_0 [new Agent/myUDP] $udp_0 set_filename udpSend0 $udp_0 set packetSize_ 1052 $ns attach-agent $n2 $udp_0 ;#Server 2 set udp_1 [new Agent/myUDP] $udp_1 set_filename udpSend1 $udp_1 set packetSize_ 1052 $ns attach-agent $n2 $udp_1 ;#Server 2 set udp_7 [new Agent/myUDP] $udp_7 set_filename udpSend7 $udp_7 set packetSize_ 1052 $ns attach-agent $n2 $udp_7 ;#Server 2 set udp_8 [new Agent/myUDP] $udp_8 set_filename udpSend8 $udp_8 set packetSize_ 1052 $ns attach-agent $n2 $udp_8 ;#Server 2 set udp_9 [new Agent/myUDP] $udp_9 set_filename udpSend9 $udp_9 set packetSize_ 1052 $ns attach-agent $n20 $udp_9 ;#Server 20 set udp_14 [new Agent/myUDP] $udp_14 set_filename udpSend14 $udp_14 set packetSize_ 1052 $ns attach-agent $n20 $udp_14 ;#Server 20 set udp_15 [new Agent/myUDP] $udp_15 set_filename udpSend15 $udp_15 set packetSize_ 1052 $ns attach-agent $n20 $udp_15 ;#Server 20 set udp_16 [new Agent/myUDP] $udp_16 set_filename udpSend16 $udp_16 set packetSize_ 1052
$ns attach-agent $n22 $udp_16 ;#Server 22 set udp_19 [new Agent/myUDP] $udp_19 set_filename udpSend19 $udp_19 set packetSize_ 1052 $ns attach-agent $n22 $udp_19 ;#Server 22 set udp_21 [new Agent/myUDP] $udp_21 set_filename udpSend21 $udp_21 set packetSize_ 1052 $ns attach-agent $n22 $udp_21 ;#Server 22 # Attach video traffic source set video0 [new Application/Traffic/myEvalvid] $video0 attach-tracefile $trace_file $video0 attach-agent $udp_0 set video1 [new Application/Traffic/myEvalvid] $video1 attach-tracefile $trace_file $video1 attach-agent $udp_1 set video2 [new Application/Traffic/myEvalvid] $video2 attach-tracefile $trace_file $video2 attach-agent $udp_7 set video3 [new Application/Traffic/myEvalvid] $video3 attach-tracefile $trace_file $video3 attach-agent $udp_8 set video4 [new Application/Traffic/myEvalvid] $video4 attach-tracefile $trace_file $video4 attach-agent $udp_9 set video5 [new Application/Traffic/myEvalvid] $video5 attach-tracefile $trace_file $video5 attach-agent $udp_14 set video6 [new Application/Traffic/myEvalvid] $video6 attach-tracefile $trace_file $video6 attach-agent $udp_15 set video7 [new Application/Traffic/myEvalvid] $video7 attach-tracefile $trace_file $video7 attach-agent $udp_16 set video8 [new Application/Traffic/myEvalvid] $video8 attach-tracefile $trace_file $video8 attach-agent $udp_19 set video9 [new Application/Traffic/myEvalvid] $video9 attach-tracefile $trace_file $video9 attach-agent $udp_21
# Create the Null agent to sink traffic set null_0 [new Agent/myEvalvid_Sink] $null_0 set_filename udpRec0 $ns attach-agent $n0 $null_0 set null_1 [new Agent/myEvalvid_Sink] $ns attach-agent $n1 $null_1 set null_7 [new Agent/myEvalvid_Sink] $null_7 set_filename udpRec7 $ns attach-agent $n7 $null_7 set null_8 [new Agent/myEvalvid_Sink] $null_8 set_filename udpRec8 $ns attach-agent $n8 $null_8 set null_9 [new Agent/myEvalvid_Sink] $null_9 set_filename udpRec9 $ns attach-agent $n9 $null_9 set null_14 [new Agent/myEvalvid_Sink] $null_14 set_filename udpRec14 $ns attach-agent $n14 $null_14 set null_15 [new Agent/myEvalvid_Sink] $null_15 set_filename udpRec15 $ns attach-agent $n15 $null_15 set null_16 [new Agent/myEvalvid_Sink] $null_16 set_filename udpRec16 $ns attach-agent $n16 $null_16 set null_19 [new Agent/myEvalvid_Sink] $null_19 set_filename udpRec19 $ns attach-agent $n19 $null_19 set null_21 [new Agent/myEvalvid_Sink] $null_21 set_filename udpRec21 $ns attach-agent $n21 $null_21 # Attach the 2 agents $ns connect $udp_0 $null_0 $ns connect $udp_1 $null_1 $ns connect $udp_7 $null_9 $ns connect $udp_8 $null_16 $ns connect $udp_9 $null_14 $ns connect $udp_14 $null_15 $ns connect $udp_15 $null_19 $ns connect $udp_16 $null_7 $ns connect $udp_19 $null_8 $ns connect $udp_21 $null_21
$ns at 1.0 "$cbr0 start" $ns at 6.1 "$cbr1 start" $ns at 1.3 "$cbr2 start" $ns at 2.6 "$cbr3 start" $ns at 1.8 "$cbr4 start" $ns at 3.0 "$cbr5 start" $ns at 5.2 "$cbr7 start" $ns at 7.3 "$cbr8 start" $ns at 4.0 "$cbr5 stop" $ns at 5.1 "$cbr6 stop" $ns at 5.8 "$cbr7 stop" #Evaluated traffics $ns at 2.0 "$video0 start" $ns at 2.5 "$video1 start" $ns at 3.0 "$video2 start" $ns at 3.4 "$video3 start" $ns at 3.8 "$video4 start" $ns at 4.0 "$video5 start" $ns at 4.5 "$video6 start" $ns at 5.0 "$video7 start" $ns at 5.5 "$video8 start" $ns at 6.0 "$video9 start" set tcp [new Agent/TCP] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns attach-agent $n0 $tcp $ns attach-agent $n3 $sink $ns connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 1.2 "$ftp start" $ns at 1.35 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink" puts [$cbr0 set packetSize_] puts [$cbr0 set interval_] $ns at 500.0 "finish" proc finish {} { global ns f nf $ns flush-trace close $f close $nf puts "running nam..." exec nam out.nam & exit 0
} $ns run
Universitas Sumatera Utara
LAMPIRAN 4 RATA-RATA DELAY PADA SETIAP CLIENT (SERVER 2) Perc. Client 0 Client 1 Client 7 Client 8 Client 9 Client 14 Client 15 Client 16 Client 19 Client 21 Rata-Rata
1 0.011137 0.011855 0.152850 0.157418 0.057722 0.161986 0.171207 0.055089 0.165372 0.154686 0.109932 2 0.011187 0.011962 0.162829 0.164551 0.058498 0.163817 0.172464 0.055321 0.166470 0.155899 0.112300 3 0.011187 0.011962 0.161682 0.163259 0.058530 0.164481 0.172201 0.055334 0.166004 0.156130 0.112077 4 0.011187 0.011962 0.164214 0.163201 0.058560 0.165007 0.173629 0.055349 0.167499 0.157797 0.112840 5 0.011187 0.011962 0.162416 0.162339 0.058584 0.164586 0.171149 0.055366 0.166641 0.155470 0.111970 6 0.011186 0.011962 0.163881 0.163017 0.058603 0.164226 0.171743 0.055388 0.166871 0.155886 0.112276 7 0.011186 0.011962 0.162173 0.161855 0.058601 0.163777 0.171142 0.055390 0.166274 0.155002 0.111736 8 0.011186 0.011962 0.163186 0.162640 0.058598 0.165585 0.172271 0.055384 0.166855 0.156882 0.112455 9 0.011186 0.011962 0.161592 0.165273 0.058596 0.164261 0.172922 0.055384 0.166684 0.155822 0.112368 10 0.011186 0.011962 0.163928 0.162724 0.058591 0.166124 0.172496 0.055382 0.166409 0.157529 0.112633
11 0.011186 0.011962 0.162446 0.163096 0.058582 0.164740 0.172791 0.055375 0.167181 0.155176 0.112254 12 0.011187 0.011962 0.163641 0.164256 0.058591 0.165478 0.172323 0.055376 0.168090 0.157863 0.112877 13 0.011187 0.011962 0.159911 0.161206 0.058558 0.164128 0.170995 0.055354 0.165341 0.156086 0.111473 14 0.011187 0.011962 0.161835 0.162359 0.058540 0.164343 0.171706 0.055343 0.166592 0.155962 0.111983 15 0.011187 0.011962 0.162935 0.164260 0.058545 0.164406 0.172776 0.055350 0.166465 0.157853 0.112574 16 0.011187 0.011962 0.163297 0.164103 0.058535 0.164925 0.172926 0.055338 0.167637 0.156759 0.112667 17 0.011187 0.011962 0.163904 0.165205 0.058532 0.166722 0.173070 0.055333 0.167945 0.157288 0.113115 18 0.011187 0.011962 0.162186 0.161521 0.058535 0.164564 0.171453 0.055331 0.167559 0.155269 0.111957 19 0.011187 0.011962 0.161566 0.161510 0.058513 0.162827 0.171009 0.055319 0.166194 0.155165 0.111525 20 0.011187 0.011987 0.162811 0.163004 0.059135 0.163566 0.170564 0.055901 0.168105 0.157908 0.112417
Jumlah Delay 0.112171 Universitas Sumatera Utara
LAMPIRAN 5 RATA-RATA DELAY PADA SETIAP CLIENT (SERVER 20) Perc. Client 0 Client 1 Client 7 Client 8 Client 9 Client 14 Client 15 Client 16 Client 19 Client 21 Rata-Rata
1 0.372819 0.388355 0.428730 0.426821 0.296529 0.456209 0.469192 - 0.257087 0.433956 0.392189 2 0.404063 0.413613 0.444332 0.453470 0.416571 0.465892 0.473841 0.434661 0.256469 0.432863 0.419577 3 0.404521 0.413882 0.444995 0.454310 0.421741 0.465918 0.473500 0.423765 0.256714 0.433360 0.419271 4 0.404155 0.413880 0.444652 0.453822 0.416625 0.466179 0.474107 0.415845 0.256588 0.433046 0.417890 5 0.404274 0.413766 0.444956 0.453613 0.416345 0.466572 0.473678 - 0.256754 0.432496 0.418051 6 0.402908 0.412992 0.443617 0.453136 0.416242 0.466427 0.474843 - 0.256787 0.432451 0.417711 7 0.404329 0.413906 0.444811 0.454767 0.416302 0.464369 0.473562 - 0.256832 0.432515 0.417933 8 0.403435 0.412703 0.443763 0.453361 0.416544 0.464575 0.473701 0.437274 0.256358 0.432190 0.419390 9 0.403524 0.413089 0.444155 0.452774 0.416569 0.464759 0.472918 0.423174 0.256591 0.431162 0.417871 10 0.404268 0.413918 0.445278 0.453576 0.416485 0.467630 0.474856 - 0.256826 0.432698 0.418393
11 0.404485 0.414006 0.445243 0.454138 0.416158 0.466663 0.474711 0.424887 0.257124 0.433384 0.419080 12 0.403693 0.413222 0.444778 0.453379 0.415794 0.465721 0.474914 - 0.256779 0.431028 0.417701 13 0.404192 0.413852 0.444297 0.453754 0.415831 0.465046 0.473660 0.415849 0.256857 0.431906 0.417524 14 0.403810 0.413782 0.444668 0.453325 0.415381 0.466488 0.475058 0.429879 0.256523 0.432673 0.419159 15 0.404073 0.414028 0.445208 0.453965 0.415136 0.466403 0.475069 - 0.256823 0.432559 0.418141 16 0.404113 0.413819 0.444296 0.453251 0.414987 0.464793 0.473624 - 0.256860 0.431900 0.417516 17 0.403570 0.413453 0.444015 0.452669 0.414546 0.466133 0.474791 0.429117 0.256526 0.432604 0.418742 18 0.404314 0.413529 0.445081 0.453966 0.415183 0.462765 0.472891 - 0.256826 0.432654 0.417468 19 0.404812 0.414626 0.444970 0.453847 0.415298 0.464854 0.474587 - 0.256863 0.432828 0.418076 20 0.403916 0.413873 0.444957 0.454276 0.413460 0.468043 0.476724 - 0.257435 0.432767 0.418383
Jumlah Delay 0.417003 Universitas Sumatera Utara
LAMPIRAN 6 RATA-RATA DELAY PADA SETIAP CLIENT (SERVER 22) Perc. Client 0 Client 1 Client 7 Client 8 Client 9 Client 14 Client 15 Cliet 16 Client 19 Client 21 Rata-Rata
1 0.247115 0.259486 0.262217 0.265054 0.231152 0.375117 0.389363 - 0.325750 0.263739 0.290999 2 0.269646 0.276073 0.273601 0.283267 0.306787 0.387180 0.398774 - 0.323788 0.262943 0.309118 3 0.269965 0.275975 0.273901 0.283418 0.310650 0.387588 0.399060 - 0.324467 0.262649 0.309741 4 0.269660 0.275792 0.273667 0.283396 0.308945 0.387826 0.399114 0.311490 0.324914 0.263483 0.309829 5 0.270052 0.276042 0.274124 0.283857 0.308877 0.390146 0.402006 0.314647 0.327386 0.262790 0.310993 6 0.269968 0.276250 0.273742 0.283796 0.307321 0.386047 0.399277 - 0.323280 0.263546 0.309247 7 0.270052 0.276121 0.273909 0.283808 0.305733 0.387543 0.400032 - 0.324581 0.262869 0.309405 8 0.269486 0.275852 0.273604 0.283483 0.307132 0.387377 0.398644 - 0.323746 0.262387 0.309079 9 0.269874 0.275874 0.273882 0.283229 - 0.388942 0.399793 0.318498 0.325890 0.261891 0.310875 10 0.270033 0.276106 0.273859 0.283644 0.307619 0.386012 0.397348 0.315082 0.323138 0.263020 0.309586
11 0.270310 0.276309 0.274242 0.284320 0.309244 0.387596 0.398990 - 0.324388 0.262658 0.309784 12 0.270034 0.276083 0.273960 0.283690 0.307389 0.388512 0.400236 0.319982 0.326151 0.262268 0.310830 13 0.270015 0.276292 0.273664 0.283771 0.307244 0.386218 0.399046 0.305976 0.323312 0.263199 0.308874 14 0.269706 0.276147 0.273653 0.283382 0.306773 0.387106 0.398335 0.318013 0.323675 0.262934 0.309972 15 0.270030 0.276128 0.274033 0.283766 0.306810 0.386193 0.398158 0.319985 0.323685 0.262504 0.310129 16 0.270018 0.276295 0.273677 0.283776 0.307487 0.386406 0.399154 0.312320 0.323204 0.263202 0.309554 17 0.269709 0.276150 0.273642 0.283336 0.306811 0.386669 0.398599 - 0.323520 0.262936 0.309041 18 0.270033 0.276131 0.274052 0.283784 0.306948 0.386336 0.397861 0.319988 0.323567 0.262507 0.310121 19 0.270020 0.276297 0.273659 0.283706 0.307327 0.386585 0.399657 - 0.323519 0.263204 0.309330 20 0.269712 0.276282 0.273945 0.283720 0.297376 0.385664 0.396871 - 0.323442 0.263068 0.307787
Jumlah Delay 0.308715 Universitas Sumatera Utara
LAMPIRAN 7 RATA-RATA DELAY PADA SERVER 2, SERVER 20 & SERVER 22 PERCOBAAN SERVER 2 SERVER 20 SERVER 22 RATA-RATA
1 0.109932 0.392189 0.290999 0.264373 2 0.112300 0.419577 0.309118 0.280332 3 0.112077 0.419271 0.309741 0.280363 4 0.112840 0.417890 0.309829 0.280186 5 0.111970 0.418051 0.310993 0.280338 6 0.112276 0.417711 0.309247 0.279745 7 0.111736 0.417933 0.309405 0.279691 8 0.112455 0.419390 0.309079 0.280308 9 0.112368 0.417871 0.310875 0.280371 10 0.112633 0.418393 0.309586 0.280204
11 0.112254 0.419080 0.309784 0.280373 12 0.112877 0.417701 0.310830 0.280469 13 0.111473 0.417524 0.308874 0.279290 14 0.111983 0.419159 0.309972 0.280371 15 0.112574 0.418141 0.310129 0.280281 16 0.112667 0.417516 0.309554 0.279912 17 0.113115 0.418742 0.309041 0.280300 18 0.111957 0.417468 0.310121 0.279848 19 0.111525 0.418076 0.309330 0.279644 20 0.112417 0.418383 0.307787 0.279529
JUMLAH DELAY 0.279296 Universitas Sumatera Utara
LAMPIRAN 8 RATA-RATA PACKET LOSS PADA SETIAP CLIENT (SERVER 2) Perc.. Client 0 Client 1 Client 7 Client 8 Client 9 Client 14 Client 15 Client 16 Client 19 Client 21 Rata-Rata
1 0% 0% 54.82% 55.03% 0% 51.88% 67.41% 0% 47.41% 63.45% 34.00% 2 0% 0% 61.22% 58.88% 0% 55.03% 66.50% 0% 48.22% 60.91% 35.08% 3 0% 0% 63.35% 58.38% 0% 50.05% 67.21% 0% 50.56% 62.84% 35.24% 4 0% 0% 58.78% 59.19% 0% 53.30% 67.21% 0% 51.37% 60.41% 35.03% 5 0% 0% 54.82% 58.98% 0% 52.79% 68.63% 0% 47.31% 65.08% 34.76% 6 0% 0% 61.12% 59.09% 0% 53.30% 66.09% 0% 48.83% 63.05% 35.15% 7 0% 0% 62.44% 59.59% 0% 53.60% 66.90% 0% 48.53% 63.45% 35.45% 8 0% 0% 63.96% 58.88% 0% 50.86% 64.67% 0% 46.50% 64.26% 34.91% 9 0% 0% 64.06% 56.95% 0% 51.17% 66.40% 0% 47.51% 63.25% 34.93% 10 0% 0% 62.44% 58.68% 0% 52.59% 64.97% 0% 50.76% 61.22% 35.07%
11 0% 0% 62.34% 57.56% 0% 54.11% 66.19% 0% 49.54% 61.22% 35.10% 12 0% 0% 60.00% 58.78% 0% 52.69% 70.25% 0% 47.92% 59.90% 34.95% 13 0% 0% 61.32% 61.02% 0% 53.10% 67.51% 0% 47.92% 63.55% 35.44% 14 0% 0% 61.42% 60.91% 0% 52.89% 65.79% 0% 46.90% 63.65% 35.16% 15 0% 0% 62.94% 60.41% 0% 51.57% 66.50% 0% 48.53% 61.32% 35.13% 16 0% 0% 59.09% 58.98% 0% 53.91% 68.53% 0% 48.12% 63.96% 35.26% 17 0% 0% 58.07% 59.39% 0% 50.46% 67.21% 0% 49.24% 64.26% 34.86% 18 0% 0% 61.02% 56.75% 0% 54.01% 69.75% 0% 49.75% 63.25% 35.45% 19 0% 0% 59.19% 60.51% 0% 53.91% 70.36% 0% 48.32% 63.05% 35.53% 20 0% 2.03% 64.16% 61.62% 8.22% 57.26% 71.57% 14.11% 57.16% 70.66% 40.68%
Jumlah Packet Loss 35.36% Universitas Sumatera Utara
LAMPIRAN 9 RATA-RATA PACKET LOSS PADA SETIAP CLIENT (SERVER 20) Perc. Client 0 Client 1 Client 7 Client 8 Client 9 Client 14 Client 15 Client 16 Client 19 Client 21 Rata-Rata
1 14.92% 24.97% 22.44% 68.22% 95.33% 47.41% 65.89% 100% 12.69% 91.57% 54.35% 2 16.24% 28.43% 22.54% 69.54% 97.97% 48.73% 69.95% 100% 12.39% 91.47% 55.73% 3 18.27% 27.61% 22.03% 69.04% 98.27% 50.66% 68.12% 100% 12.49% 91.27% 55.78% 4 17.87% 26.29% 22.54% 69.64% 98.48% 50.56% 69.04% 100% 11.98% 92.28% 55.87% 5 17.26% 26.70% 22.34% 71.57% 98.38% 51.17% 65.89% 100% 12.59% 91.98% 55.79% 6 17.46% 25.28% 23.55% 70.46% 98.17% 48.93% 70.66% 100% 12.28% 90.86% 55.77% 7 16.95% 24.67% 22.74% 70.36% 98.48% 51.27% 67.61% 100% 12.28% 91.47% 55.58% 8 17.66% 27.82% 20.91% 70.46% 97.97% 48.53% 68.73% 100% 12.59% 92.08% 55.68% 9 17.36% 24.97% 23.45% 70.66% 98.38% 51.88% 68.02% 100% 11.88% 91.57% 55.82% 10 17.77% 27.72% 22.03% 70.46% 98.68% 51.27% 68.02% 100% 11.98% 90.56% 55.85%
11 17.46% 27.21% 21.42% 69.64% 98.38% 49.04% 68.12% 100% 12.69% 91.88% 55.58% 12 16.75% 26.50% 24.47% 69.85% 98.17% 51.78% 68.12% 100% 12.49% 91.57% 55.97% 13 16.95% 26.70% 23.05% 69.64% 98.38% 49.44% 69.64% 100% 12.28% 90.56% 55.66% 14 18.48% 25.99% 23.25% 68.73% 97.97% 48.43% 69.95% 100% 12.39% 91.07% 55.62% 15 18.98% 26.90% 22.44% 70.76% 98.38% 49.95% 68.12% 100% 12.49% 90.36% 55.84% 16 16.55% 26.19% 22.13% 70.56% 98.27% 48.63% 70.56% 100% 12.28% 90.76% 55.59% 17 18.98% 26.90% 22.54% 68.53% 98.27% 48.73% 69.95% 100% 12.39% 90.86% 55.72% 18 17.26% 24.97% 22.23% 70.66% 98.27% 52.39% 68.63% 100% 12.49% 90.76% 55.77% 19 18.98% 28.02% 22.84% 70.15% 98.48% 49.04% 70.25% 100% 12.28% 91.07% 56.11% 20 18.78% 30.15% 25.08% 71.07% 98.48% 51.98% 73.50% 100% 25.38% 92.79% 58.72%
Jumlah Packet Loss 55.84% Universitas Sumatera Utara
LAMPIRAN 10 RATA-RATA PACKET LOSS PADA SETIAP CLIENT (SERVER 22) Perc. Client 0 Client 1 Client 7 Client 8 Client 9 Client 14 Client 15 Client 16 Client 19 Client 21 Rata-Rata
1 8.53% 10.96% 11.57% 61.93% 5.99% 35.33% 61.52% 100.00% 12.79% 89.64% 39.83% 2 10.56% 12.89% 12.99% 64.06% 5.99% 36.24% 66.29% 100.00% 12.39% 89.04% 41.05% 3 10.56% 12.28% 12.49% 64.47% 1.83% 38.58% 63.96% 100.00% 12.69% 89.64% 40.65% 4 10.15% 12.39% 12.79% 65.08% 1.73% 38.58% 65.28% 100.00% 12.18% 89.34% 40.75% 5 10.46% 12.28% 12.49% 65.48% 2.13% 39.19% 64.16% 100.00% 12.59% 89.54% 40.83% 6 10.15% 12.89% 13.30% 64.16% 2.03% 38.07% 66.50% 100.00% 12.59% 88.73% 40.84% 7 10.36% 12.59% 12.99% 65.18% 2.03% 37.87% 65.08% 100.00% 12.49% 89.44% 40.80% 8 10.66% 12.49% 12.79% 64.97% 2.44% 36.04% 65.48% 100.00% 12.69% 89.44% 40.70% 9 10.25% 12.39% 12.49% 65.58% - 39.29% 64.57% 100.00% 11.98% 89.14% 45.08% 10 10.46% 12.49% 12.69% 64.16% 3.76% 38.78% 65.99% 100.00% 11.98% 88.93% 40.92%
11 10.56% 12.59% 12.79% 64.26% 1.93% 38.48% 64.77% 100.00% 12.99% 89.54% 40.79% 12 10.36% 12.49% 12.59% 64.67% 2.13% 39.70% 64.97% 100.00% 12.49% 89.24% 40.86% 13 10.25% 12.99% 13.10% 63.65% 2.03% 37.56% 66.90% 100.00% 12.49% 88.53% 40.75% 14 10.56% 12.99% 12.99% 63.96% 2.34% 36.85% 66.70% 100.00% 12.39% 89.04% 40.78% 15 10.46% 12.28% 12.59% 65.08% 2.13% 39.39% 64.87% 100.00% 12.49% 88.53% 40.78% 16 10.25% 12.99% 13.10% 63.65% 1.93% 37.16% 66.70% 100.00% 12.49% 88.53% 40.68% 17 10.56% 12.99% 12.99% 63.96% 2.34% 37.06% 66.60% 100.00% 12.49% 89.04% 40.80% 18 10.46% 12.28% 12.59% 65.08% 2.03% 39.59% 65.08% 100.00% 12.49% 88.53% 40.81% 19 10.25% 12.99% 13.10% 63.65% 2.03% 36.85% 66.80% 100.00% 12.28% 88.53% 40.65% 20 10.56% 15.03% 16.85% 66.80% 55.03% 41.93% 70.46% 100.00% 25.38% 90.66% 49.27%
Jumlah Packet Loss 41.38% Universitas Sumatera Utara
LAMPIRAN 11 RATA-RATA PACKET LOSS PADA SERVER 2, SERVER 20 & SERVER 22 PERCOBAAN SERVER 2 SERVER 20 SERVER 22 RATA-RATA
1 34.00% 54.35% 39.83% 42.72% 2 35.08% 55.73% 41.05% 43.95% 3 35.24% 55.78% 40.65% 43.89% 4 35.03% 55.87% 40.75% 43.88% 5 34.76% 55.79% 40.83% 43.79% 6 35.15% 55.77% 40.84% 43.92% 7 35.45% 55.58% 40.80% 43.95% 8 34.91% 55.68% 40.70% 43.76% 9 34.93% 55.82% 45.08% 45.28% 10 35.07% 55.85% 40.92% 43.95%
11 35.10% 55.58% 40.79% 43.82% 12 34.95% 55.97% 40.86% 43.93% 13 35.44% 55.66% 40.75% 43.95% 14 35.16% 55.62% 40.78% 43.85% 15 35.13% 55.84% 40.78% 43.92% 16 35.26% 55.59% 40.68% 43.84% 17 34.86% 55.72% 40.80% 43.79% 18 35.45% 55.77% 40.81% 44.01% 19 35.53% 56.11% 40.65% 44.10% 20 40.68% 58.72% 49.27% 49.56%
JUMLAH PACKET LOSS 44.19% Universitas Sumatera Utara
LAMPIRAN 12 RATA-RATA THROUGHPUT PADA SETIAP CLIENT (SERVER 2) Perc. Client 0 Client 1 Client 7 Client 8 Client 9 Client 14 Client 15 Client 16 Client 19 Client 21 Rata-Rata
1 279.675 279.675 131.142 132.102 279.675 143.051 96.033 279.675 154.024 106.973 188.203 2 279.675 279.675 114.440 123.972 279.675 134.836 98.814 279.675 150.303 115.916 185.698 3 279.675 279.675 111.434 125.609 279.675 147.871 96.513 279.675 146.210 110.969 185.731 4 279.675 279.675 122.782 121.902 279.675 138.966 98.528 279.675 144.097 118.185 186.316 5 279.675 279.675 113.752 121.834 279.675 140.629 91.889 279.675 157.170 103.680 184.766 6 279.675 279.675 117.712 120.424 279.675 137.584 100.525 279.675 149.825 108.833 185.361 7 279.675 279.675 110.811 116.949 279.675 138.835 97.132 279.675 151.201 104.900 183.853 8 279.675 279.675 109.045 121.131 279.675 145.902 103.587 279.675 158.930 106.551 186.385 9 279.675 279.675 107.448 130.762 279.675 144.662 99.494 279.675 144.243 109.386 185.470 10 279.675 279.675 113.148 123.943 279.675 140.750 103.200 279.675 145.657 114.049 185.945
11 279.675 279.675 111.875 125.057 279.675 134.250 100.532 279.675 150.618 115.083 185.612 12 279.675 279.675 118.800 124.669 279.675 141.596 86.655 279.675 154.572 118.920 186.391 13 279.675 279.675 116.064 114.777 279.675 140.210 94.316 279.675 153.842 107.473 184.538 14 279.675 279.675 113.882 115.480 279.675 140.672 101.525 279.675 155.680 107.063 185.300 15 279.675 279.675 112.576 117.922 279.675 145.471 100.691 279.675 150.423 114.779 186.056 16 279.675 279.675 122.782 121.718 279.675 138.763 92.669 279.675 152.973 107.823 185.543 17 279.675 279.675 124.068 119.784 279.675 150.331 97.742 279.675 149.707 107.416 186.775 18 279.675 279.675 115.819 129.916 279.675 136.724 89.454 279.675 148.230 109.744 184.859 19 279.675 279.675 121.931 116.757 279.675 134.587 90.684 279.675 152.025 107.358 184.204 20 279.675 274.552 106.908 114.218 257.770 125.813 83.719 240.366 125.421 89.252 169.769
Jumlah Throughput 184.839 Universitas Sumatera Utara