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 187 ajouts et 89 suppressions
[DEBUG] Sender has following arguments: [SEND] [Seq: 000, Win_Rec: 1, Len: 12] (ack)
filename is tests_files/greeting.txt, [RECV] [Seq: 001, Type: 2, len 0]
stats_filename is tests_logs/advanced_tests/greeting/with_FEC/greeting_sender_stats.csv, [SEND] [Seq: 001, Win_Rec: 30, Len: 0] (ack)
fec_enabled is 1, [RECV] [Seq: 002, Type: 2, len 0]
receiver_ip is ::1,
receiver_port is 65169
[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 LAST PTYPE_DATA is being sent !
[DEBUG] Sending the pkt with seqnum: 0
==36399== Memcheck, a memory error detector ==38465== Memcheck, a memory error detector
==36399== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==38465== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==36399== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==38465== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==36399== Command: ./receiver ::1 65135 -s tests_logs/advanced_tests/greeting/with_FEC/greeting_receiver_stats.csv ==38465== Command: ./receiver ::1 65008 -s tests_logs/advanced_tests/greeting/with_FEC/greeting_receiver_stats.csv
==36399== Parent PID: 36367 ==38465== Parent PID: 38434
==36399== ==38465==
==38465==
==38465== HEAP SUMMARY:
==38465== in use at exit: 0 bytes in 0 blocks
==38465== total heap usage: 13 allocs, 13 frees, 9,872 bytes allocated
==38465==
==38465== All heap blocks were freed -- no leaks are possible
==38465==
==38465== For lists of detected and suppressed errors, rerun with: -s
==38465== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==36400== Memcheck, a memory error detector ==38466== Memcheck, a memory error detector
==36400== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==38466== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==36400== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==38466== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==36400== Command: ./sender -f tests_files/greeting.txt ::1 65169 -c -s tests_logs/advanced_tests/greeting/with_FEC/greeting_sender_stats.csv ==38466== Command: ./sender -f tests_files/greeting.txt ::1 65074 -c -s tests_logs/advanced_tests/greeting/with_FEC/greeting_sender_stats.csv
==36400== Parent PID: 36367 ==38466== Parent PID: 38434
==36400== ==38466==
==36400== ==38466==
==36400== Process terminating with default action of signal 2 (SIGINT) ==38466== HEAP SUMMARY:
==36400== at 0x498D995: poll (poll.c:29) ==38466== in use at exit: 536 bytes in 2 blocks
==36400== by 0x1095F6: main (in /home/vany/Desktop/school/networking/project_trtp/sender) ==38466== total heap usage: 11 allocs, 9 frees, 884 bytes allocated
==36400== ==38466==
==36400== HEAP SUMMARY: ==38466== 512 bytes in 1 blocks are definitely lost in loss record 2 of 2
==36400== in use at exit: 2,756 bytes in 5 blocks ==38466== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==36400== total heap usage: 7 allocs, 2 frees, 2,836 bytes allocated ==38466== by 0x10AE2F: pkt_set_payload (packet_implem.c:313)
==36400== ==38466== by 0x1098A8: append_to_fec_pkt (sender.c:124)
==36400== 8 bytes in 1 blocks are definitely lost in loss record 1 of 5 ==38466== by 0x10A44E: read_write_loop_sender (sender.c:449)
==36400== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==38466== by 0x109559: main (sender.c:560)
==36400== by 0x1095AA: main (in /home/vany/Desktop/school/networking/project_trtp/sender) ==38466==
==36400== ==38466== LEAK SUMMARY:
==36400== 2,748 (1,568 direct, 1,180 indirect) bytes in 1 blocks are definitely lost in loss record 5 of 5 ==38466== definitely lost: 512 bytes in 1 blocks
==36400== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==38466== indirectly lost: 0 bytes in 0 blocks
==36400== by 0x10AF9B: state_new (in /home/vany/Desktop/school/networking/project_trtp/sender) ==38466== possibly lost: 0 bytes in 0 blocks
==36400== by 0x1095CB: main (in /home/vany/Desktop/school/networking/project_trtp/sender) ==38466== still reachable: 24 bytes in 1 blocks
==36400== ==38466== suppressed: 0 bytes in 0 blocks
==36400== LEAK SUMMARY: ==38466== Reachable blocks (those to which a pointer was found) are not shown.
==36400== definitely lost: 1,576 bytes in 2 blocks ==38466== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==36400== indirectly lost: 1,180 bytes in 3 blocks ==38466==
==36400== possibly lost: 0 bytes in 0 blocks ==38466== For lists of detected and suppressed errors, rerun with: -s
==36400== still reachable: 0 bytes in 0 blocks ==38466== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==36400== suppressed: 0 bytes in 0 blocks
==36400==
==36400== For lists of detected and suppressed errors, rerun with: -s
==36400== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
data_sent:0
data_received:2
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:2
ack_received:0
nack_received:0
packet_ignored:0
throughput:45.823387
packet_duplicated:0
packet_recovered:0
@@ Using random seed: 1650987718 @@ Using random seed: 1650988955
@@ Using parameters: @@ Using parameters:
.. port: 65002 .. port: 65068
.. forward_port: 65137 .. forward_port: 65085
.. delay: 100 .. delay: 100
.. jitter: 100 .. jitter: 100
.. err_rate: 1 .. err_rate: 5
.. cut_rate: 1 .. cut_rate: 5
.. loss_rate: 1 .. loss_rate: 1
.. seed: 1650987718 .. seed: 1650988955
.. link_direction: Forward .. link_direction: Forward
@@ Remote host is ::1 [46889]
[SEQ 0] Delayed packet by 20 ms
[SEQ 0] Sent packet (Forward).
[SEQ 1] Sent packet (Reverse).
[SEQ 1] Delayed packet by 132 ms
[SEQ 2] Delayed packet by 50 ms
[SEQ 3] Delayed packet by 184 ms
[SEQ 2] Sent packet (Forward).
[SEQ 1] Sent packet (Forward).
[SEQ 3] Sent packet (Forward).
[SEQ 4] Sent packet (Reverse).
Hello I'm a good friend, I've seen that you are writing a protocol named TRTP.
How is it going ? Hard ? Good for you. See life is full of hard things just like your
network course. But when you manage to thrive throgh tough times then sweet things are
ahead. So good luck have a nice day of testing and remember : Tough Times Never Last.
PS: Drink a beer when you pass the test. Share your knowledge to others, computer
science isn't a field for selfishness. If you want to switch to Law, Economy, some shit
Hi Vany I'm pleased to read some news from you. As you know I work sometime a bit late in the night.
In a few hour you'll show up in the famous "Salle Intel" to be really productive as you are.
Best regards,
Samuel
Sorry to be lazy but I'll past down what is above :')
Hello I'm a good friend, I've seen that you are writing a protocol named TRTP.
How is it going ? Hard ? Good for you. See life is full of hard things just like your
network course. But when you manage to thrive throgh tough times then sweet things are
ahead. So good luck have a nice day of testing and remember : Tough Times Never Last.
PS: Drink a beer when you pass the test. Share your knowledge to others, computer
science isn't a field for selfishness. If you want to switch to Law, Economy, some shit
Hi Vany I'm pleased to read some news from you. As you know I work sometime a bit late in the night.
In a few hour you'll show up in the famous "Salle Intel" to be really productive as you are.
Best regards,
[DEBUG] Receiver has following arguments: stats_filename is tests_logs/advanced_tests/long_message/with_FEC/long_message_receiver_stats.csv, listen_ip is ::1, listen_port is 65137 [DEBUG] Receiver has following arguments: stats_filename is tests_logs/advanced_tests/long_message/with_FEC/long_message_receiver_stats.csv, listen_ip is ::1, listen_port is 65085
[DEBUG] Successfully bound to IPv6 address : 0000:0000:0000:0000:0000:0000:0000:0001, port : 65137 [DEBUG] Successfully bound to IPv6 address : 0000:0000:0000:0000:0000:0000:0000:0001, port : 65085
[DEBUG] Successfully connected to IPv6 addresss: 0000:0000:0000:0000:0000:0000:0000:0001, port : 65068
[DEBUG] Received data packet seqnum 0 with timestamp 1650988956 | current_window_size : 31, current_window_start : 0
[DEBUG] Sent ACK saying we are waiting for 1, timestamp 0
[DEBUG] Received data packet seqnum 2 with timestamp 1650988958 | current_window_size : 30, current_window_start : 0
[DEBUG] Received data packet seqnum 1 with timestamp 1650988958 | current_window_size : 29, current_window_start : 0
[DEBUG] Received data packet seqnum 3 with timestamp 1650988958 | current_window_size : 28, current_window_start : 0
[DEBUG] Going to consume the next 4 packets.
[DEBUG] Consuming packet : 0 | curr_recv_window = 27, recv_window_start = 0
[DEBUG] Consuming packet : 1 | curr_recv_window = 28, recv_window_start = 1
[DEBUG] Consuming packet : 2 | curr_recv_window = 29, recv_window_start = 2
[DEBUG] Consuming packet : 3 | curr_recv_window = 30, recv_window_start = 3
[DEBUG] Received the last packet
[DEBUG] Sent ACK saying we are waiting for 4, timestamp 1650988958
[DEBUG] Done the transfer with done status being true
[DEBUG] The difference between the two is 2200000.000000 seconds
[DEBUG] The transfer took 2200.000000 seconds
[DEBUG] Wrote the transfer statistics to tests_logs/advanced_tests/long_message/with_FEC/long_message_receiver_stats.csv.
[SEND] [Seq: 000, Win_Rec: 1, Len: 512] (ack)
[RECV] [Seq: 001, Type: 2, len 0]
[SEND] [Seq: 001, Win_Rec: 30, Len: 512] (ack)
[SEND] [Seq: 002, Win_Rec: 30, Len: 486] (ack)
[SEND] [Seq: 003, Win_Rec: 30, Len: 0] (ack)
[RECV] [Seq: 004, Type: 2, len 0]
==36433== Memcheck, a memory error detector ==38577== Memcheck, a memory error detector
==36433== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==38577== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==36433== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==38577== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==36433== Command: ./receiver ::1 65137 -s tests_logs/advanced_tests/long_message/with_FEC/long_message_receiver_stats.csv ==38577== Command: ./receiver ::1 65085 -s tests_logs/advanced_tests/long_message/with_FEC/long_message_receiver_stats.csv
==36433== Parent PID: 36403 ==38577== Parent PID: 38547
==36433== ==38577==
==38577==
==38577== HEAP SUMMARY:
==38577== in use at exit: 0 bytes in 0 blocks
==38577== total heap usage: 17 allocs, 17 frees, 11,984 bytes allocated
==38577==
==38577== All heap blocks were freed -- no leaks are possible
==38577==
==38577== For lists of detected and suppressed errors, rerun with: -s
==38577== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==36434== Memcheck, a memory error detector ==38578== Memcheck, a memory error detector
==36434== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==38578== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==36434== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==38578== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==36434== Command: ./sender -f tests_files/long_message.txt ::1 65002 -c -s tests_logs/advanced_tests/long_message/with_FEC/long_message_sender_stats.csv ==38578== Command: ./sender -f tests_files/long_message.txt ::1 65068 -c -s tests_logs/advanced_tests/long_message/with_FEC/long_message_sender_stats.csv
==36434== Parent PID: 36403 ==38578== Parent PID: 38547
==36434== ==38578==
==36434== ==38578==
==36434== Process terminating with default action of signal 2 (SIGINT) ==38578== HEAP SUMMARY:
==36434== at 0x49890A5: write (write.c:26) ==38578== in use at exit: 536 bytes in 2 blocks
==36434== by 0x4909EBC: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1181) ==38578== total heap usage: 17 allocs, 15 frees, 3,954 bytes allocated
==36434== by 0x490A7D7: new_do_write (fileops.c:449) ==38578==
==36434== by 0x490A7D7: _IO_new_file_xsputn (fileops.c:1255) ==38578== 512 bytes in 1 blocks are definitely lost in loss record 2 of 2
==36434== by 0x490A7D7: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1197) ==38578== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==36434== by 0x48F4F82: buffered_vfprintf (vfprintf-internal.c:2395) ==38578== by 0x10AE2F: pkt_set_payload (packet_implem.c:313)
==36434== by 0x48F1D53: __vfprintf_internal (vfprintf-internal.c:1346) ==38578== by 0x1098A8: append_to_fec_pkt (sender.c:124)
==36434== by 0x49A9152: __fprintf_chk (fprintf_chk.c:33) ==38578== by 0x10A44E: read_write_loop_sender (sender.c:449)
==36434== by 0x1094E5: main (in /home/vany/Desktop/school/networking/project_trtp/sender) ==38578== by 0x109559: main (sender.c:560)
==36434== ==38578==
==36434== HEAP SUMMARY: ==38578== LEAK SUMMARY:
==36434== in use at exit: 0 bytes in 0 blocks ==38578== definitely lost: 512 bytes in 1 blocks
==36434== total heap usage: 0 allocs, 0 frees, 0 bytes allocated ==38578== indirectly lost: 0 bytes in 0 blocks
==36434== ==38578== possibly lost: 0 bytes in 0 blocks
==36434== All heap blocks were freed -- no leaks are possible ==38578== still reachable: 24 bytes in 1 blocks
==36434== ==38578== suppressed: 0 bytes in 0 blocks
==36434== For lists of detected and suppressed errors, rerun with: -s ==38578== Reachable blocks (those to which a pointer was found) are not shown.
==36434== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==38578== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==38578==
==38578== For lists of detected and suppressed errors, rerun with: -s
==38578== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
data_sent:0
data_received:4
data_truncated_received:0
fec_sent:0
fec_received:0
ack_sent:2
ack_received:0
nack_received:0
packet_ignored:0
throughput:5490.909180
packet_duplicated:0
packet_recovered:0
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