Skip to content
Extraits de code Groupes Projets
Valider ab473268 rédigé par Vany Ingenzi's avatar Vany Ingenzi
Parcourir les fichiers

Why not

parent f98de3ee
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 50 ajouts et 216 suppressions
data_sent,data_received,data_truncated_received,fec_sent,fec_received,ack_sent,ack_received,nack_received,packet_ignored,throughput,min_rtt,max_rtt,packet_retransmitted,fec
43263.0,0.0,0.0,0.0,0.0,0.0,38716.0,30.0,0.0,996184.9375,7.0,222.0,38737.0,0
43386.0,0.0,0.0,1132.0,0.0,0.0,38845.0,24.0,0.0,1002924.3125,4.0,294.0,38860.0,1
44906.0,0.0,0.0,1132.0,0.0,0.0,40370.0,17.0,0.0,1033694.0,4.0,218.0,40380.0,1
34710.0,0.0,0.0,0.0,0.0,0.0,30175.0,19.0,0.0,925487.25,6.0,545.0,30184.0,0
36801.0,0.0,0.0,0.0,0.0,0.0,32265.0,19.0,0.0,968436.4375,4.0,300.0,32275.0,0
30674.0,0.0,0.0,1132.0,0.0,0.0,26133.0,25.0,0.0,948363.9375,5.0,249.0,26148.0,1
performance_results/ideal/output.gif

2,21 Mo

data_sent:0
data_received:5859
data_truncated_received:19
fec_sent:0
fec_received:724
ack_sent:39291
ack_received:0
nack_received:0
packet_ignored:453
throughput:1044119.437500
packet_duplicated:1457
packet_recovered:124
data_sent:0
data_received:5904
data_truncated_received:23
fec_sent:0
fec_received:0
ack_sent:39165
ack_received:0
nack_received:0
packet_ignored:392
throughput:1001298.562500
packet_duplicated:1378
packet_recovered:0
data_sent:0
data_received:5853
data_truncated_received:19
fec_sent:0
fec_received:721
ack_sent:40197
ack_received:0
nack_received:0
packet_ignored:467
throughput:1029673.375000
packet_duplicated:1450
packet_recovered:123
data_sent:0
data_received:5877
data_truncated_received:27
fec_sent:0
fec_received:0
ack_sent:37830
ack_received:0
nack_received:0
packet_ignored:383
throughput:993940.812500
packet_duplicated:1351
packet_recovered:0
data_sent:0
data_received:5449
data_truncated_received:18
fec_sent:0
fec_received:763
ack_sent:27451
ack_received:0
nack_received:0
packet_ignored:352
throughput:971431.750000
packet_duplicated:1072
packet_recovered:149
data_sent:0
data_received:5835
data_truncated_received:27
fec_sent:0
fec_received:0
ack_sent:38436
ack_received:0
nack_received:0
packet_ignored:422
throughput:992450.312500
packet_duplicated:1309
packet_recovered:0
data_sent:43811
data_received:0
data_truncated_received:0
fec_sent:1132
fec_received:0
ack_sent:0
ack_received:39275
nack_received:19
packet_ignored:0
throughput:1039259.312500
min_rtt:4
max_rtt:240
packet_retransmitted:39285
data_sent:43706
data_received:0
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:0
ack_received:39165
nack_received:23
packet_ignored:0
throughput:997203.437500
min_rtt:5
max_rtt:230
packet_retransmitted:39180
data_sent:44734
data_received:0
data_truncated_received:0
fec_sent:1132
fec_received:0
ack_sent:0
ack_received:40197
nack_received:19
packet_ignored:0
throughput:1022288.937500
min_rtt:2
max_rtt:227
packet_retransmitted:40208
data_sent:42374
data_received:0
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:0
ack_received:37829
nack_received:27
packet_ignored:0
throughput:984541.062500
min_rtt:4
max_rtt:238
packet_retransmitted:37848
data_sent:31985
data_received:0
data_truncated_received:0
fec_sent:1132
fec_received:0
ack_sent:0
ack_received:27451
nack_received:18
packet_ignored:0
throughput:963552.000000
min_rtt:1
max_rtt:300
packet_retransmitted:27459
data_sent:42970
data_received:0
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:0
ack_received:38427
nack_received:27
packet_ignored:0
throughput:990699.375000
min_rtt:6
max_rtt:251
packet_retransmitted:38444
...@@ -663,7 +663,6 @@ void receiver_read_write_loop(int sfd, const char * pathname) ...@@ -663,7 +663,6 @@ void receiver_read_write_loop(int sfd, const char * pathname)
reception_loop(pfd, state); reception_loop(pfd, state);
} }
DEBUG("Done the transfer with done status being %s", (state->transfer_done) ? "true" : "false"); DEBUG("Done the transfer with done status being %s", (state->transfer_done) ? "true" : "false");
sleep(2);
double time_in_ms = time_milliseconds(&(state->timestamp_last_packet)) - time_milliseconds(&(state->timestamp_first_packet)); double time_in_ms = time_milliseconds(&(state->timestamp_last_packet)) - time_milliseconds(&(state->timestamp_first_packet));
DEBUG("The difference between the two is %f seconds", (double) time_in_ms * 1000); DEBUG("The difference between the two is %f seconds", (double) time_in_ms * 1000);
DEBUG("The transfer took %f seconds", time_in_ms); DEBUG("The transfer took %f seconds", time_in_ms);
......
...@@ -3,19 +3,50 @@ ...@@ -3,19 +3,50 @@
# File use for the test of performance # File use for the test of performance
FILE_TO_TRANSFER='tests_files/thumbs-up-nod.gif' FILE_TO_TRANSFER='tests_files/thumbs-up-nod.gif'
### 1. Ideal Case Transferr if [ ! -d "performance_results/" ]; then
mkdir "performance_results/"
fi
### 1. Ideal Case Transfer
# Chosen parameters for Ideal scenario # Chosen parameters for Ideal scenario
ERROR_RATE=1 ERROR_RATE=1
CUT_RATE=0
DELAY=3
JITTER=1
LOSS_RATE=0
if [ ! -d "performance_results/ideal" ]; then
mkdir "performance_results/ideal"
fi
export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/ideal/"
### 2. Average Case Transfer
# Chosen parameters for Ideal scenario
ERROR_RATE=10
CUT_RATE=1 CUT_RATE=1
DELAY=100 DELAY=290
JITTER=100 JITTER=30
LOSS_RATE=1 LOSS_RATE=1
if [ ! -d "performance_results/" ]; then
mkdir "performance_results/" if [ ! -d "performance_results/average" ]; then
mkdir "performance_results/average"
fi fi
export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/average/"
if [ ! -d "performance_results/ideal" ]; then ### 2. Average Case Transfer
mkdir "performance_results/ideal"
# Chosen parameters for Ideal scenario
ERROR_RATE=10
CUT_RATE=1
DELAY=1500
JITTER=500
LOSS_RATE=1
if [ ! -d "performance_results/worst" ]; then
mkdir "performance_results/worst"
fi fi
export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/ideal/" export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/worst/"
\ No newline at end of file \ No newline at end of file
@@ Using random seed: 1650983295 @@ Using random seed: 1650987716
@@ Using parameters: @@ Using parameters:
.. port: 65086 .. port: 65169
.. forward_port: 65117 .. forward_port: 65135
.. delay: 100 .. delay: 100
.. jitter: 100 .. jitter: 100
.. err_rate: 1 .. err_rate: 1
.. cut_rate: 1 .. cut_rate: 1
.. loss_rate: 1 .. loss_rate: 1
.. seed: 1650983295 .. seed: 1650987716
.. link_direction: Forward .. link_direction: Forward
@@ Remote host is ::1 [54141] @@ Remote host is ::1 [59206]
[SEQ 0] Delayed packet by 109 ms [SEQ 0] Delayed packet by 143 ms
[SEQ 0] Sent packet (Forward). [SEQ 0] Sent packet (Forward).
[SEQ 0] Delayed packet by 9 ms
[SEQ 0] Sent packet (Forward).
[SEQ 1] Sent packet (Reverse).
[SEQ 1] Delayed packet by 7 ms
[FEC 0] Delayed packet by 162 ms
[SEQ 1] Sent packet (Forward).
[FEC 0] Sent packet (Forward).
[SEQ 2] Sent packet (Reverse).
Hello World!
\ No newline at end of file
[DEBUG] Receiver has following arguments: stats_filename is tests_logs/advanced_tests/greeting/with_FEC/greeting_receiver_stats.csv, listen_ip is ::1, listen_port is 65117 [DEBUG] Receiver has following arguments: stats_filename is tests_logs/advanced_tests/greeting/with_FEC/greeting_receiver_stats.csv, listen_ip is ::1, listen_port is 65135
[DEBUG] Successfully bound to IPv6 address : 0000:0000:0000:0000:0000:0000:0000:0001, port : 65117 [DEBUG] Successfully bound to IPv6 address : 0000:0000:0000:0000:0000:0000:0000:0001, port : 65135
[DEBUG] Successfully connected to IPv6 addresss: 0000:0000:0000:0000:0000:0000:0000:0001, port : 65086 [DEBUG] Successfully connected to IPv6 addresss: 0000:0000:0000:0000:0000:0000:0000:0001, port : 65169
[DEBUG] Received data packet seqnum 0 with timestamp 984824098 | current_window_size : 31, current_window_start : 0 [DEBUG] Received data packet seqnum 0 with timestamp 984824098 | current_window_size : 31, current_window_start : 0
[DEBUG] Received data packet seqnum 0 with timestamp 984824098 | current_window_size : 30, current_window_start : 0
[DEBUG] Sent ACK saying we are waiting for 1, timestamp 0
[DEBUG] Received data packet seqnum 1 with timestamp 0 | current_window_size : 30, current_window_start : 0
[DEBUG] Going to consume the next 2 packets.
[DEBUG] Consuming packet : 0 | curr_recv_window = 29, recv_window_start = 0
[DEBUG] Consuming packet : 1 | curr_recv_window = 30, recv_window_start = 1
[DEBUG] Received the last packet
[DEBUG] Received packet [0] Out of window with timestamp 0 | receive window start at : 2 (included) till 33 (excluded)
[DEBUG] Sent ACK saying we are waiting for 2, timestamp 0
[DEBUG] Done the transfer with done status being true
[DEBUG] The difference between the two is 2014000.000000 seconds
[DEBUG] The transfer took 2014.000000 seconds
[DEBUG] Wrote the transfer statistics to tests_logs/advanced_tests/greeting/with_FEC/greeting_receiver_stats.csv.
...@@ -3,25 +3,8 @@ ...@@ -3,25 +3,8 @@
stats_filename is tests_logs/advanced_tests/greeting/with_FEC/greeting_sender_stats.csv, stats_filename is tests_logs/advanced_tests/greeting/with_FEC/greeting_sender_stats.csv,
fec_enabled is 1, fec_enabled is 1,
receiver_ip is ::1, receiver_ip is ::1,
receiver_port is 65086 receiver_port is 65169
[DEBUG] Successfully connected to IPv6 addresss: 0000:0000:0000:0000:0000:0000:0000:0001, port : 65086 [DEBUG] Successfully connected to IPv6 addresss: 0000:0000:0000:0000:0000:0000:0000:0001, port : 65169
[DEBUG] The sender will send a pkt on the socket, the current sender window size is: 31 | receiver window size: 1 [DEBUG] The sender will send a pkt on the socket, the current sender window size is: 31 | receiver window size: 1
[DEBUG] The LAST PTYPE_DATA is being sent ! [DEBUG] The LAST PTYPE_DATA is being sent !
[DEBUG] Sending the pkt with seqnum: 0 [DEBUG] Sending the pkt with seqnum: 0
[DEBUG] The pkt with seqnum: 0 has timeout
[DEBUG] Sending the pkt with seqnum: 0
[DEBUG] The sender is reading from the socket.
[DEBUG] The ACK with the seqnum: 1 has been received
[DEBUG] The sender is cumulatively acknowledging [0 : 1[ (place in the buffer) | [0, 1[ (seqnum)
[DEBUG] The sender will send a pkt on the socket, the current sender window size is: 31 | receiver window size: 30
[DEBUG] The CLOSING pkt is being sent !
[DEBUG] Sending the pkt with seqnum: 1
[DEBUG] A timer of -> 30000ms <- has started after sending the last PTYPE_DATA pkt !
[DEBUG] The sender will send a pkt on the socket, the current sender window size is: 30 | receiver window size: 29
[DEBUG] Sending LAST FEC pkt with seqnum: 0
[DEBUG] A timer of -> 30000ms <- has started after sending the last PTYPE_DATA pkt !
[DEBUG] The sender is reading from the socket.
[DEBUG] The ACK with the seqnum: 2 has been received
[DEBUG] The sender is cumulatively acknowledging [1 : 2[ (place in the buffer) | [1, 2[ (seqnum)
[DEBUG] Sender disconnected
[DEBUG] Wrote the transfer statistics to tests_logs/advanced_tests/greeting/with_FEC/greeting_sender_stats.csv.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter