### 實驗數據-Delay(comparison)

```Final Project-Routing
698430033

High Speed Network Group Lab
3 type routing policy



Static Routing
Session Routing
Dynamic Routing

High Speed Network Group Lab
2
Want to do


jitter、packet loss rate，並比較三種routing policy

High Speed Network Group Lab
3
Scenario





At 0.1s 0->4
At 0.3s 1->4
At 0.5s 0->4 down
At 0.9s 0->1 down
At 1s 0->4 up

High Speed Network Group Lab
4
Awk程式(End-to-End delay)





start = start_time[packet_id];
end = end_time[packet_id];
packet_duration = end - start

High Speed Network Group Lab
5
Awk程式(jitter)


Packet_duration的部份與 End-to-end delay相同
->只把接收時間大於傳送時間的記錄列出來

seqno_diff = pkt_seqno[packet_id] - last_seqno;
delay_diff = packet_duration - last_delay;
if (seqno_diff == 0) {
jitter =0;
} else {
jitter = delay_diff/seqno_diff;
}

High Speed Network Group Lab
6
Awk程式(throughput)

if(action=="r" && to==4 && flow_id==0) {
pkt_byte_sum[i+1]=pkt_byte_sum[i]+ pktsize;
…
…
. . .}
th = pkt_byte_sum[j] / (end_time[j]start_time)*8/1000;
printf("%.2f\t%.2f\n", end_time[j], th);

High Speed Network Group Lab
7

High Speed Network Group Lab
8

High Speed Network Group Lab
9

High Speed Network Group Lab
10

High Speed Network Group Lab
11

High Speed Network Group Lab
12

High Speed Network Group Lab
13

High Speed Network Group Lab
14

Flow 0
0->4
Flow 0
1->4
Dynamic Routing
6/396(1.5%)
3/321(0.9%)
Session Routing
6/374(1.6%)
3/324(0.9%)
Static Routing
3/241(1.24%)
6/160(3.75%)

High Speed Network Group Lab
15
```