Analisis Kinerja Content Delivery Network Menggunakan Teknik Geo Domain Name System

(1)

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


(2)

$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


(3)

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


(4)

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


(5)

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


(6)

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


(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


(8)

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"


(9)

#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


(10)

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


(11)

$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


(12)

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


(13)

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 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


(14)

}

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_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


(15)

$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

$ns attach-agent $n22 $udp_9 ;#Server 22 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


(16)

# 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 $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


(17)

$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.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


(18)

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


(19)

$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


(20)

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


(21)

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


(22)

}

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 $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


(23)

$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


(24)

# 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_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


(25)

$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.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


(26)

(27)

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


(28)

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


(29)

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


(30)

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


(31)

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%


(32)

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%


(33)

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%


(34)

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%


(35)

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


(36)

LAMPIRAN 13

RATA-RATA THROUGHPUT 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 239.660 211.415 220.128 97.464 13.841 157.450 107.551 - 240.885 27.000 131.539 2 235.573 201.045 219.641 94.123 6.383 154.080 94.491 - 241.349 26.777 127.346 3 231.402 203.039 222.276 95.549 5.567 149.727 101.040 - 240.927 27.700 127.723 4 232.751 206.503 220.490 95.828 4.868 149.943 97.860 - .990 24.290 127.452 5 234.914 205.131 219.405 88.644 5.230 146.950 107.778 - 240.634 25.013 127.370 6 233.484 209.135 217.910 92.109 6.000 153.123 92.833 - 241.682 28.504 127.478 7 235.616 210.264 217.383 92.533 4.716 145.960 99.821 - 241.774 26.233 127.430 8 231.879 202.294 222.494 91.039 6.383 154.104 98.415 - 240.903 24.759 127.227 9 234.246 210.748 217.092 91.134 5.049 144.690 100.585 - 242.323 26.388 127.226 10 231.175 203.143 221.919 92.021 4.180 149.985 101.303 - 242.546 29.664 127.594 11 231.421 203.828 224.129 93.833 5.180 151.797 100.983 - 240.877 25.100 127.715 12 235.902 206.168 214.690 92.432 5.847 146.401 101.139 - 240.968 25.936 126.948 13 234.856 206.642 218.863 94.424 5.153 152.322 94.750 - 241.952 29.964 127.893 14 230.130 206.296 218.648 95.704 6.486 154.005 94.465 - 241.349 28.174 127.526 15 230.164 205.684 219.427 90.126 5.180 152.029 101.258 - 240.879 29.934 127.468 16 234.841 207.605 220.004 90.974 5.383 155.615 91.788 - 241.952 28.236 127.640 17 228.965 206.002 219.149 96.793 5.563 153.260 94.434 - 241.349 29.093 127.461 18 232.817 209.574 221.234 90.436 5.536 144.536 99.490 - 240.879 28.401 127.290 19 231.013 204.041 219.752 92.651 4.847 154.549 93.986 - 241.952 27.982 127.077 20 229.933 198.185 211.683 88.901 4.766 142.190 82.988 - 205.509 22.465 118.662

Jumlah Throughput 127.203


(37)

LAMPIRAN 14

RATA-RATA THROUGHPUT 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 253.024 245.983 245.104 115.807 17.081 189.447 120.425 - 240.763 32.350 162.220 2 246.608 240.390 240.637 109.205 7.383 185.701 105.930 - 241.349 33.837 156.782 3 246.608 241.747 241.038 107.558 5.797 181.373 113.833 - 240.260 32.437 156.739 4 247.941 241.189 240.306 107.845 5.535 179.564 109.112 0.667 241.521 32.896 140.657 5 247.266 241.825 241.856 105.809 6.896 177.451 112.969 0.333 240.634 32.748 140.779 6 247.941 240.583 239.929 110.556 6.432 181.501 104.661 - 240.803 34.987 156.377 7 247.274 241.095 240.543 107.242 6.383 182.570 110.302 - 241.453 32.355 156.580 8 246.274 241.044 240.497 106.801 7.716 187.029 108.558 - 240.781 32.435 156.793 9 247.608 241.415 241.223 105.537 - 179.735 111.950 0.333 242.124 33.161 155.898 10 246.941 241.383 240.732 109.412 11.896 180.178 107.755 0.667 242.546 33.960 141.547 11 246.608 241.385 241.120 109.304 6.180 180.917 111.076 - 240.306 32.439 156.593 12 247.599 241.973 241.490 107.853 6.716 177.067 110.143 0.333 240.968 32.669 140.681 13 247.608 240.731 240.273 111.563 6.383 183.337 103.568 0.333 241.591 35.238 141.063 14 246.608 240.382 240.637 109.538 7.383 185.011 104.402 0.333 241.349 33.837 140.948 15 246.941 242.050 241.066 106.560 6.716 178.093 111.333 0.333 240.879 34.974 140.895 16 247.608 240.731 240.273 111.563 6.049 184.573 104.235 0.667 241.888 35.238 141.283 17 246.608 240.382 240.637 109.538 7.383 183.583 104.736 - 241.313 33.837 156.446 18 246.941 242.050 241.066 106.560 6.383 177.100 110.710 0.333 240.869 34.974 140.699 19 247.608 240.731 240.273 111.563 6.383 185.595 104.022 - 241.952 35.238 157.041 20 246.608 235.258 230.714 100.718 140.461 169.537 92.600 - 205.509 28.709 161.124


(38)

LAMPIRAN 15

RATA-RATA THROUGHPUT PADA SERVER 2, SERVER 20 & SERVER 22

PERCOBAAN SERVER 2 SERVER 20 SERVER 22 RATA-RATA

1 188.203 131.539 162.220 160.654

2 185.698 127.346 156.782 156.609

3 185.731 127.723 156.739 156.731

4 186.316 127.452 140.657 151.475

5 184.766 127.370 140.779 150.971

6 185.361 127.478 156.377 156.405

7 183.853 127.430 156.580 155.954

8 186.385 127.227 156.793 156.802

9 185.470 127.226 155.898 156.198

10 185.945 127.594 141.547 151.695

11 185.612 127.715 156.593 156.640

12 186.391 126.948 140.681 151.340

13 184.538 127.893 141.063 151.165

14 185.300 127.526 140.948 151.258

15 186.056 127.468 140.895 151.473

16 185.543 127.640 141.283 151.488

17 186.775 127.461 156.446 156.894

18 184.859 127.290 140.699 150.949

19 184.204 127.077 157.041 156.107

20 169.769 118.662 161.124 149.852

JUMLAH THROUGHPUT 154.033


(39)

LAMPIRAN 16

RATA-RATA DELAY CDN TANPA GEO DNS

CDN tanpa Geo DNS

Rata-Rata

Random 1

Random 2

Random 3

0.127017

0.130802

0.086726

0.114848

0.127333

0.133260

0.087303

0.115965

0.127841

0.132968

0.087327

0.116045

0.128029

0.132472

0.087509

0.116003

0.127483

0.131268

0.087462

0.115404

0.127390

0.134383

0.087357

0.116377

0.127484

0.134455

0.087576

0.116505

0.127509

0.134132

0.087253

0.116298

0.127589

0.132213

0.087532

0.115778

0.127771

0.133313

0.087804

0.116296

0.127708

0.131369

0.087530

0.115536

0.127903

0.125822

0.087681

0.113802

0.127086

0.135277

0.087332

0.116565

0.127535

0.135886

0.087190

0.116870

0.127207

0.133849

0.087299

0.116118

0.127492

0.133221

0.087458

0.116057

0.128176

0.132481

0.087327

0.115995

0.127755

0.132601

0.087518

0.115958

0.127388

0.134608

0.087618

0.116538

0.128471

0.147345

0.088253

0.121356


(40)

(41)

LAMPIRAN 17

RATA-RATA DELAY PADA SETIAP CLIENT (CDN GEO DNS)

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.010570 0.010739 0.066411 0.069705 0.049440 0.149166 0.149445 0.066150 0.046698 0.047976 0.066630 2 0.010570 0.010739 0.066495 0.069726 0.050046 0.152995 0.152019 0.066893 0.046698 0.047976 0.067416 3 0.010570 0.010739 0.066514 0.069746 0.050062 0.153663 0.152707 0.066898 0.046698 0.047975 0.067557 4 0.010570 0.010739 0.066465 0.069732 0.050016 0.154003 0.152934 0.066954 0.046698 0.047975 0.067609 5 0.010570 0.010739 0.066506 0.069771 0.050093 0.153345 0.152585 0.066982 0.046698 0.047975 0.067526 6 0.010570 0.010739 0.066458 0.069667 0.050124 0.155379 0.153645 0.067033 0.046698 0.047976 0.067829 7 0.010570 0.010739 0.066432 0.069616 0.050162 0.153938 0.152705 0.067055 0.046698 0.047976 0.067589 8 0.010570 0.010739 0.066454 0.069621 0.050046 0.155120 0.152925 0.067061 0.046698 0.047976 0.067721 9 0.010570 0.010739 0.066471 0.069626 0.050067 0.154728 0.154136 0.067053 0.046698 0.047976 0.067806 10 0.010570 0.010739 0.066436 0.069636 0.050119 0.155467 0.153604 0.067043 0.046698 0.047976 0.067829 11 0.010570 0.010739 0.066324 0.069593 0.050054 0.154797 0.153716 0.067036 0.046698 0.047976 0.067750 12 0.010570 0.010739 0.066363 0.069613 0.050088 0.152265 0.152752 0.067035 0.046698 0.047975 0.067410 13 0.010570 0.010739 0.066402 0.069639 0.050156 0.152748 0.153377 0.067034 0.046698 0.047975 0.067534 14 0.010570 0.010739 0.066314 0.069581 0.050214 0.153521 0.153209 0.067017 0.046698 0.047975 0.067584 15 0.010570 0.010739 0.066358 0.069608 0.050171 0.153846 0.153842 0.066989 0.046698 0.047975 0.067680 16 0.010570 0.010739 0.066458 0.069651 0.050169 0.153414 0.153438 0.066978 0.046698 0.047975 0.067609 17 0.010570 0.010739 0.066460 0.069617 0.050093 0.154262 0.153570 0.066961 0.046698 0.047975 0.067695 18 0.010570 0.010739 0.066561 0.069703 0.050108 0.154170 0.154222 0.066953 0.046698 0.047975 0.067770 19 0.010570 0.010739 0.066601 0.069774 0.050126 0.152855 0.153302 0.066942 0.046698 0.047975 0.067558 20 0.010570 0.010765 0.066846 0.070189 0.050544 0.154558 0.154710 0.067296 0.046820 0.048462 0.068076


(42)

(43)

LAMPIRAN 18

RATA-RATA PACKET LOSS CDN TANPA GEO DNS

CDN tanpa Geo DNS

Rata-Rata

Random 1

Random 2

Random 3

20.26%

12.54%

14.68%

15.83%

21.02%

13.53%

13.72%

16.09%

20.69%

13.26%

13.50%

15.82%

20.75%

13.26%

13.62%

15.88%

21.04%

13.40%

13.70%

16.04%

21.27%

13.51%

13.78%

16.19%

21.22%

13.58%

14.07%

16.29%

21.07%

13.52%

13.85%

16.15%

21.10%

13.58%

13.81%

16.16%

16.68%

13.26%

13.79%

14.58%

20.73%

12.98%

13.68%

15.80%

16.28%

12.51%

13.53%

14.11%

21.31%

13.71%

13.72%

16.24%

21.03%

13.55%

13.91%

16.16%

21.26%

13.31%

13.84%

16.14%

20.89%

13.55%

13.52%

15.99%

20.65%

13.42%

13.76%

15.94%

20.62%

13.28%

13.49%

15.80%

21.40%

13.49%

13.70%

16.20%

25.35%

20.16%

20.14%

21.88%


(44)

(45)

LAMPIRAN 19

RATA-RATA PACKET LOSS PADA SETIAP CLIENT (CDN GEO DNS)

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% 0% 0% 0% 15.74% 17.36% 0% 0% 0% 3.31%

2 0% 0% 0% 0% 0% 19.39% 20.51% 0% 0% 0% 3.99%

3 0% 0% 0% 0% 0% 19.29% 20.41% 0% 0% 0% 3.97%

4 0% 0% 0% 0% 0% 15.84% 20.41% 0% 0% 0% 3.62%

5 0% 0% 0% 0% 0% 19.49% 19.29% 0% 0% 0% 3.88%

6 0% 0% 0% 0% 0% 15.63% 19.09% 0% 0% 0% 3.47%

7 0% 0% 0% 0% 0% 18.17% 18.98% 0% 0% 0% 3.72%

8 0% 0% 0% 0% 0% 18.07% 20.20% 0% 0% 0% 3.83%

9 0% 0% 0% 0% 0% 18.88% 19.29% 0% 0% 0% 3.82%

10 0% 0% 0% 0% 0% 17.26% 20.00% 0% 0% 0% 3.73%

11 0% 0% 0% 0% 0% 18.58% 20.30% 0% 0% 0% 3.89%

12 0% 0% 0% 0% 0% 18.38% 19.49% 0% 0% 0% 3.79%

13 0% 0% 0% 0% 0% 18.98% 18.78% 0% 0% 0% 3.78%

14 0% 0% 0% 0% 0% 18.58% 17.06% 0% 0% 0% 3.56%

15 0% 0% 0% 0% 0% 18.27% 19.09% 0% 0% 0% 3.74%

16 0% 0% 0% 0% 0% 19.90% 19.80% 0% 0% 0% 3.97%

17 0% 0% 0% 0% 0% 16.95% 20.20% 0% 0% 0% 3.72%

18 0% 0% 0% 0% 0% 17.87% 17.56% 0% 0% 0% 3.54%

19 0% 0% 0% 0% 0% 18.27% 18.38% 0% 0% 0% 3.66%

20 0% 2.03% 12.49% 14.11% 3.86% 23.65% 25.89% 5.38% 10.66% 16.14% 11.42%


(46)

(47)

LAMPIRAN 20

RATA-RATA THROUGHPUT CDN TANPA GEO DNS

CDN tanpa Geo DNS

Rata-Rata Random 1 Random 2 Random 3

226.0382 247.0909 245.0443 239.391 223.7346 244.6852 243.5973 237.339 224.5928 245.3111 244.2667 238.057 225.0870 245.0618 244.0146 238.054 223.6947 244.6799 243.5814 237.319 223.4023 244.6076 243.8057 237.272 222.8236 240.7618 242.9266 235.504 224.1258 241.5216 243.6279 236.425 223.8575 244.0932 243.7510 237.234 237.1163 245.5242 243.8729 242.171 224.7173 245.8365 244.6919 238.415 238.0437 255.7873 244.4999 246.110 222.7001 243.4752 244.1261 236.767 223.7077 244.3811 243.4725 237.187 223.1043 244.8092 243.2058 237.040 224.2493 244.4196 244.0374 237.569 225.5060 244.7106 243.7457 237.987 225.0103 245.1912 244.4257 238.209 222.4600 244.7306 243.6245 236.938 211.2370 226.3272 227.0785 221.548


(48)

(49)

LAMPIRAN 21

RATA-RATA THROUGHPUT PADA SETIAP CLIENT (CDN GEO DNS)

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 279.675 279.675 279.675 236.526 229.326 279.675 279.675 279.675 270.326 2 279.675 279.675 279.675 279.675 279.675 226.023 218.971 279.675 279.675 279.675 268.240 3 279.675 279.675 279.675 279.675 279.675 224.546 220.687 279.675 279.675 279.675 268.264 4 279.675 279.675 279.675 279.675 279.675 233.804 220.177 279.675 279.675 279.675 269.138 5 279.675 279.675 279.675 279.675 279.675 227.303 224.602 279.675 279.675 279.675 268.931 6 279.675 279.675 279.675 279.675 279.675 236.686 224.160 279.675 279.675 279.675 269.825 7 279.675 279.675 279.675 279.675 279.675 228.649 224.411 279.675 279.675 279.675 269.046 8 279.675 279.675 279.675 279.675 279.675 229.508 223.099 279.675 279.675 279.675 269.001 9 279.675 279.675 279.675 279.675 279.675 225.473 223.417 279.675 279.675 279.675 268.629 10 279.675 279.675 279.675 279.675 279.675 228.914 220.501 279.675 279.675 279.675 268.682 11 279.675 279.675 279.675 279.675 279.675 227.732 221.729 279.675 279.675 279.675 268.686 12 279.675 279.675 279.675 279.675 279.675 226.577 224.577 279.675 279.675 279.675 268.856 13 279.675 279.675 279.675 279.675 279.675 226.795 225.297 279.675 279.675 279.675 268.950 14 279.675 279.675 279.675 279.675 279.675 226.273 230.758 279.675 279.675 279.675 269.444 15 279.675 279.675 279.675 279.675 279.675 227.786 224.966 279.675 279.675 279.675 269.016 16 279.675 279.675 279.675 279.675 279.675 222.467 221.427 279.675 279.675 279.675 268.130 17 279.675 279.675 279.675 279.675 279.675 230.862 220.000 279.675 279.675 279.675 268.827 18 279.675 279.675 279.675 279.675 279.675 229.215 228.868 279.675 279.675 279.675 269.549 19 279.675 279.675 279.675 279.675 279.675 227.835 225.330 279.675 279.675 279.675 269.057 20 279.675 274.552 245.235 240.366 269.753 213.805 205.323 265.286 249.422 234.484 247.790


(50)

DAFTAR PUSTAKA

[1]

Spiridon Bakiras, “Approximate Server Selection Algorithms in Content

DistributionNetworks” IEEE,2005. [Online]. Tersedia:

2016].

[2]

James F. Kurose

1

, Keith W. Ross

2

, “Computer Networking” A Top-Down

Approach,2008.

[3]

Mohammad Johan Rajabi. “Analisa Pemanfaatan Content Delivery

Network” [Online], Fakultas Ilmu Komputer, Universitas Indonesia, 2008.

Tersedia:

related:lib.ui.ac.id/file?file=digital/126425-T-642Analisa%

20pemanfaatan-Literatur.pdf teknologi akamai pdf.

[4]

Teerawat Issariyakul, Ekram Hossain. “Introduction to Network Simulator

NS2 (Second Edition)”. Springer Science+Business Media, LLC 2012.

[5]

Jirka Klaue, “EvalVid - A Video Quality Evaluation Tool-set” [Online].

Tersedia:

Februari 2016].

[6]

Chih-Heng Ke, Ce-Kuen Shieh, Wen-Shyang Hwang, Artur Ziviani, “An

Evaluation Framework for More Realistic Simulations of MPEG Video

Transmission”, Journal of Information Science and Engineering (accepted

SCI, EI), 2006 [Online]. Tersedia:

[7]

Muhammad Mulia Maulana, Suherman, “Analisis Kualitas Transmisi

Video dengan

Decodable Frame Rate”

[Online], Jurusan Teknik Elektro,

Fakultas Teknik, Universitas Sumatera Utara. Tersedia :


(51)

2016].

[8]

Yanto, “Analisis QoS (

Quality Of Service

) pada Jaringan Internet”

[Online]. Jurusan Teknik Elektro, Fakultas Teknik, Universitas

Tanjungpura`Tersedia:http://download.portalgaruda.org/articel.php?article

=32511&val=2313. [Diakses 5 Febuari 2016].

[9]

European Telecommunications Standards Institute (ETSI).

Telecommunications and Internet Protocol Harmonization Over Networks

(TIPHON). “In

General aspects of Quality of Service (QoS)

(pp. 24-27)”.

France, 1998.


(52)

12

BAB 3

PERANCANGAN SIMULASI

3.1

Perancangan Alur Penelitian

Secara garis besar, tahapan – tahapan dalam melakukan penelitian telah

dirancang meliputi pembuatan dan pengujian adalah seperti yang digambarkan

pada diagram alir padaGambar 3.1.

Mulai

Instalasi Simulasi

• Network Simulator 2

• Intergrasi Evalvid

Analisis hasil perhitungan dengan parameter (delay, packet loss dan

throughput) Pembuatan script TcL

Jalankan simulasi setiap skenario

Selesai

konfigurasi jaringan yang disimulasikan

Gambar 3.1. Diagram Alir Rancangan Penelitian


(53)

13

Perancangan terlebih dahulu melakukan instalasi dan pengujian perangkat

yang digunakan, yaitu

Network Simulator

NS-2 dan Evalvid. Untuk mendapatkan

hasil

trace

, maka piranti lunak evaluasi video (Evalvid) diintegrasikan ke NS-2

pada sistem operasi ubuntu.

Selanjutnya, konfigurasi jaringan yang akan disimulasikan dengan

melakukan pemilihan

server

,

client

dan

background traffic

. Dilanjutkan dengan

pembuatan

script

TcL pada setiap konfigurasi jaringan.

Setelah itu, jalankan simulasi dari setiap skenario yang telah dibuat lalu

analisa hasil perhitungan dengan parameter yang digunakan (

delay

,

packet loss

dan

throughput

).

3.2

Spesifikasi Perangkat Penelitian

Adapun spesifikasi perangkat penelitian yang digunakan untuk melakukan

simulasi adalah:

3.2.1

Perangkat Keras

Perangkat keras yang digunakan untuk menjalankan simulasi pada Tugas

Akhir ini adalah satu buah laptop Hp Pavilion G4-1311AU dengan

spesifikasi sebagai berikut:

-

Processor

AMD

Dual

-

Core

A4-3305M

-

Kecepatan Prosessor (1,9 GHz, 2MB L3

cache

)

-

Memory 4 GB DDR3


(54)

14

3.2.2

Perangkat Lunak

Spesifikasi perangkat lunak yang digunakan adalah:

-

Sistem operasi Ubuntu 14.04 LTS.

-

Network Simulator

NS-2.35

-

Modul Evalvid

3.3

Perancangan Konfigurasi Jaringan

Pada penelitian Tugas Akhir ini dilakukan perancangan dengan tiga

konfigurasi jaringan yang berbeda yaitu

single server

, jaringan CDN tanpa Geo

DNS, dan jaringan CDN dengan Geo DNS.

3.3.1

Single Server

Rancangan simulasi jaringan

single server

diperlihatkan pada Gambar

3.2.

Script

TcL

single server

diperlihatkan pada Lampiran 1.

Gambar 3.2 Rancangan Simulasi Jaringan

Single Server


(55)

15

Pada simulasi ini,

single server

dianggap sebagai

server

original. Simulasi

dilakukan dengan menggunakan tiga

server

yaitu

server

2, 20 dan 22. Dimana

masing-masing

server

melayani permintaan dari sepuluh

client.

Berikut adalah fungsi dan spesifikasi yang diberikan pada rancangan

jaringan

single server

dalam simulasi :

1.

Node 2, 20, 22 berfungsi sebagai

server.

2.

Node 1, 7, 8, 9, 14, 15, 16, 19, dan 21 berfungsi sebagai

client

penerima.

3.

Node 2, 3, 4, 5, 6, 10, 11, 12, 13, 17, 18 dan 20 merupakan

background

traffic

simulasi..

4.

Seluruh

link

diseting dengan mode

duplex

.

5.

Bandwidth

untuk

link

adalah 1.5 Mb, sedangkan pada n0,n1,n2 ke n3 yaitu

5Mb.

6.

Link propagation delay

yaitu 10 ms, sedangkan pada n0,n1,n2 ke n3 yaitu

2 ms.

3.3.2 Jaringan CDN Tanpa Geo DNS

Pada jaringan CDN tanpa Geo DNS, simulasi dilakukan dengan tiga

konfigurasi jaringan yang berbeda dimana

client

diarahkan kepada

server

secara

random. Rancangan simulasi jaringan CDN tanpa Geo DNS hampir sama dengan

single server

, yang membedakan hanya posisi

client

nya saja.

Script

TcL pada

jaringan CDN tanpa Geo DNS dapat dilihat pada Lampiran 2.


(56)

16

3.3.3 Implementasi Teknik Geo DNS

Gambar 3.3 merupakan implementasi teknik Geo DNS pada simulasi

jaringan CDN.

Script

TcL untuk teknik Geo DNS dapat dilihat pada Lampiran 3.

Gambar 3.3 Implementasi Geo DNS pada Jaringan CDN

Pada Gambar 3.3 diperlihatkan bahwa Geo DNS melakukan pemetaan

terhadap setiap

client

menurut lokasi yang terdekat dengan servernya. Wilayah A

terdapat

server

2 yang melayani permintaan dari

client

0,1,9 dan 16. Wilayah B

terdapat

server

22 yang melayani permintaan dari

client

7, 8, dan 21. Wilayah C

terdapat

server

20 yang melayani permintaan dari

client

14, 15 dan 19.

Implementasi teknik Geo DNS dijelaskan pada

script

TcL berikut.

Sebelumnya dijelaskan bahwa

server

2 melayani permintaan dari

client

0, 1, 9 dan

16. Pada

script

, $n2 merupakan

server

2 dan diberi nama udp_0, udp_1, udp_7

dan udp_8.

Wilayah B

Wila

y

a

h A

Wilayah C


(57)

17

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

Selanjutnya pada

client

penerima $n0 sebagai

client

0, $n1 sebagai

client

1, $n9 sebagai

client

9 dan $n16 sebagai

client

16 yang diberi nama $null_0,

$null_1, $null_9 dan $null_16.

# 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_9 [new Agent/myEvalvid_Sink]

$null_9 set_filename udpRec9

$ns attach-agent $n9 $null_9

set null_16 [new Agent/myEvalvid_Sink]

$null_16 set_filename udpRec16


(58)

18

Setelah

server

dan

client

disetting, lalu koneksikan keduanya maka n2

akan terhubung dengan node terdekatnya yaitu n0, n1, n9 dan n16.

# 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

3.4

Spesifikasi Trafik Simulasi

Tugas akhir ini dilakukan dengan menggunakan

software

NS-2 (

Network

Simulator

-2) yang merupakan perangkat lunak yang digunakan untuk

mensimulasikan jaringan berbasis TCP/IP dengan berbagai jenis medianya.

Adapun spesifikasi trafik video yang digunakan pada simulasi ditunjukkan pada

Tabel 3.1.

Tabel 3.1 Spesifikasi Trafik Video

Parameter

Keterangan

Nama video

Kecepatan frame

Tipe frame

Codec

Bit Rate (bps)

akiyo_cif.yuv

30fps

IPP

MPEG4

279.72Kbps

3.5

Parameter Evaluasi

3.5.1

Packet Loss

Packet loss

adalah perbandingan jumlah paket yang hilang dengan seluruh

paket yang dikirimkan. Salah satu penyebab

packet loss

adalah antrian yang

melebihi kapasitas

buffer

pada setiap

node

. Persamaan 3.1 merupakan formula

untuk mencari

packet loss

[7].


(1)

Penulis menyadari bahwa Tugas Akhir ini masih banyak kekurangan baik dari segi materi maupun penyajiannya. Oleh karena itu saran dan kritik dengan tujuan menyempurnakan dan mengembangkan kajian dalam bidang ini sangat penulis harapkan.

Akhir kata penulis berserah diri pada Allah SWT, semoga Tugas Akhir ini bermanfaat bagi pembaca sekalian terutama bagi penulis sendiri.

Medan, Juni 2016 Penulis

NIM. 130422018 Rizky Dian Eka Putri


(2)

DAFTAR ISI

ABSTRAK ... i

KATA PENGANTAR ... ii

DAFTAR ISI ... v

DAFTAR GAMBAR ... viii

DAFTAR TABEL ... ix

BAB 1 PENDAHULUAN ... 1

1.1 LatarBelakang ... 1

1.2 Perumusan Masalah ... 2

1.3 Tujuan Penelitian ... 2

1.4 Manfaat Penelitian ... 2

1.5 Batasan Masalah ... 3

1.6 Metode Penelitian ... 3

1.7 Sistematika Penulisan ... 4

BAB 2 TINJAUAN PUSTAKA ... 5

2.1 Content Delivery Network (CDN) ... 5

2.2 Teknik Geo Domain Name System (Geo DNS) ... 6

2.3 Perangkat Simulasi Yang Digunakan ... 8


(3)

BAB 3 PERANCANGAN SIMULASI ... 12

3.1 Perancangan Alur Penelitian ... 12

3.2 Spesifikasi Perangkat Penelitian ... 13

3.2.1 Perangkat Keras ... 13

3.2.2 Perangkat Lunak ... 14

3.3 Perancangan Simulasi ... 14

3.3.1 Single Server ... 14

3.3.2 Jaringan CDN tanpa Geo DNS ... 15

3.3.3 Implementasi Teknik Geo DNS ... 16

3.4 Spesifikasi Trafik Simulasi CDN ... 18

3.5 Parameter Evaluasi ... 19

3.5.1 Packet Loss ... 19

3.5.2 Delay ... 19

3.5.3 Throughput ... 20

3.6 Langkah Pelaksanaan Simulasi ... 20

BAB 4 HASIL SIMULASI DAN ANALISIS DATA ... 23

4.1 Umum ... 23

4.2 Hasil Pengujian Jaringan Tanpa CDN ... 23

4.2.1 Delay ... 23

4.2.2 Packet Loss ... 25

4.2.3 Throughput ... 27

4.3 Hasil Pengujian Pada Jaringan CDN ... 29


(4)

4.3.2 Packet Loss ... 32

4.3.3 Throughput ... 34

BAB 5 KESIMPULAN DAN SARAN ... 38

5.1 Kesimpulan ... 38

5.2 Saran ... 39 DAFTAR PUSTAKA


(5)

DAFTAR GAMBAR

Gambar 2.1 Konfigurasi Jaringan Content Delivery Network (CDN) ... 6

Gambar 2.2 Sistem CDN dengan Geo DNS ... 7

Gambar 2.3 Arsitektur Dasar NS-2 ... 8

Gambar 2.4 Struktur Framework EvalVid ... 9

Gambar 3.1 Diagram Alir Rancangan Penelitian ... 12

Gambar 3.2 Rancangan Simulasi Jaringan Single Server ... 14

Gambar 3.3 Implementasi Geo DNS pada Jaringan CDN ... 16

Gambar 3.4 Urutan Pelaksanaan Simulasi ... 21

Gambar 4.1 Karateristik Delay Single Server ... 24

Gambar 4.2 Karateristik Perbandingan Delay Single Server ... 25

Gambar 4.3 Karateristik Packet Loss Single Server ... 26

Gambar 4.4 Karateristik Perbandingan Packet Loss Single Server ... 27

Gambar 4.5 Karateristik Throughput Single Server ... 28

Gambar 4.6 Karateristik Perbandingan Throughput Single Server ... 29

Gambar 4.7 Karateristik Delay Single Server dan Jaringan CDN ... 31

Gambar 4.8 Perbandingan Delay Single Server dengan Jaringan CDN ... 31

Gambar 4.9 Karateristik Packet Loss Single Server dan Jaringan CDN... 33

Gambar 4.10 Perbandingan Packet Loss Single Server dengan jaringan CDN ... 34

Gambar 4.11 Karateristik Throughput Single Server dan Jaringan CDN ... 36


(6)

DAFTAR TABEL

Tabel 3.1 Spesifikasi Trafik Video ... 18

Tabel 3.2 Packet Loss versi TIPHON ... 19

Tabel 3.3 Delay versi TIPHON ... 20

Tabel 4.1 Hasil Pengujian Delay Single Server ... 23

Tabel 4.2 Hasil Pengujian Packet Loss Single Server ... 25

Tabel 4.3 Hasil Pengujian Throughput Single Server ... 27

Tabel 4.4 Perbandingan Delay Single Server dengan Jaringan CDN ... 30

Tabel 4.5 Perbandingan Packet Loss Single Server dengan Jaringan CDN ... 32