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

Added other scenarios in perfomance

parent d429c048
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 116 ajouts et 22 suppressions
performance_results/ideal/output.gif

466 ko

Hello World!
\ No newline at end of file
data_sent:0
data_received:3
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:2
ack_received:0
nack_received:0
packet_ignored:0
throughput:47.904190
packet_duplicated:1
packet_recovered:0
data_sent:0
data_received:3
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:2
ack_received:0
nack_received:0
packet_ignored:0
throughput:47.904190
packet_duplicated:1
packet_recovered:0
data_sent:0
data_received:3
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:2
ack_received:0
nack_received:0
packet_ignored:0
throughput:47.928108
packet_duplicated:1
packet_recovered:0
data_sent:4
data_received:0
data_truncated_received:0
fec_sent:1
fec_received:0
ack_sent:0
ack_received:2
nack_received:0
packet_ignored:0
throughput:23.964054
min_rtt:2001
max_rtt:2004
packet_retransmitted:2
data_sent:4
data_received:0
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:0
ack_received:2
nack_received:0
packet_ignored:0
throughput:23.958073
min_rtt:2001
max_rtt:2006
packet_retransmitted:2
data_sent:4
data_received:0
data_truncated_received:0
fec_sent:1
fec_received:0
ack_sent:0
ack_received:2
nack_received:0
packet_ignored:0
throughput:23.970037
min_rtt:2001
max_rtt:2004
packet_retransmitted:2
......@@ -128,7 +128,7 @@ uint16_t can_consume(receiver_state_t * state, const pkt_t * latest_packet_recei
// We have received the last 4 paquets harmless or we just received the last packet
int to_consume = 0;
ASSERT(state->next_to_consume >= 0 && state->next_to_consume < TWO_EXP_EIGHT);
if (pkt_get_length(latest_packet_received) == 0)
if (pkt_get_length(latest_packet_received) == 0 && state->last_received_in_order == pkt_get_seqnum(latest_packet_received))
{ // Last packet we read everything from the buffer
for (uint16_t i = state->next_to_consume; state->recvd_data_buf[i] != NULL; i = (i + 1) % TWO_EXP_EIGHT )
to_consume++;
......
......@@ -27,8 +27,8 @@ MODES=(
'without_FEC'
)
ERROR_RATE=1
CUT_RATE=1
ERROR_RATE=5
CUT_RATE=5
DELAY=100
JITTER=100
LOSS_RATE=1
......
......@@ -20,8 +20,8 @@ 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/"
export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/ideal/" &
wait $!
### 2. Average Case Transfer
......@@ -35,18 +35,20 @@ LOSS_RATE=1
if [ ! -d "performance_results/average" ]; then
mkdir "performance_results/average"
fi
export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/average/"
export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/average/" &
wait $!
### 2. Average Case Transfer
### 3. Worst Case Transfer
# Chosen parameters for Ideal scenario
ERROR_RATE=10
ERROR_RATE=15
CUT_RATE=1
DELAY=1500
JITTER=500
LOSS_RATE=1
LOSS_RATE=13
if [ ! -d "performance_results/worst" ]; then
mkdir "performance_results/worst"
fi
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
export ERROR_RATE CUT_RATE DELAY JITTER LOSS_RATE && ./tests/perfomance_test.sh ${FILE_TO_TRANSFER} "performance_results/worst/" &
wait $!
\ No newline at end of file
@@ Using random seed: 1650987716
@@ Using random seed: 1650988936
@@ Using parameters:
.. port: 65169
.. forward_port: 65135
.. port: 65074
.. forward_port: 65008
.. delay: 100
.. jitter: 100
.. err_rate: 1
.. cut_rate: 1
.. err_rate: 5
.. cut_rate: 5
.. loss_rate: 1
.. seed: 1650987716
.. seed: 1650988936
.. link_direction: Forward
@@ Remote host is ::1 [59206]
[SEQ 0] Delayed packet by 143 ms
@@ Remote host is ::1 [43169]
[SEQ 0] Delayed packet by 144 ms
[SEQ 0] Sent packet (Forward).
[SEQ 1] Sent packet (Reverse).
[SEQ 1] Delayed packet by 87 ms
[SEQ 1] 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 65135
[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 : 65169
[DEBUG] Received data packet seqnum 0 with timestamp 984824098 | current_window_size : 31, current_window_start : 0
[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 65008
[DEBUG] Successfully bound to IPv6 address : 0000:0000:0000:0000:0000:0000:0000:0001, port : 65008
[DEBUG] Successfully connected to IPv6 addresss: 0000:0000:0000:0000:0000:0000:0000:0001, port : 65074
[DEBUG] Received data packet seqnum 0 with timestamp 1650988936 | current_window_size : 31, current_window_start : 0
[DEBUG] Sent ACK saying we are waiting for 1, timestamp 0
[DEBUG] Received data packet seqnum 1 with timestamp 1650988938 | 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] Sent ACK saying we are waiting for 2, timestamp 1650988938
[DEBUG] Done the transfer with done status being true
[DEBUG] The difference between the two is 2095000.000000 seconds
[DEBUG] The transfer took 2095.000000 seconds
[DEBUG] Wrote the transfer statistics to tests_logs/advanced_tests/greeting/with_FEC/greeting_receiver_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