X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=a2%2F1cases.tex;h=e9ffe8f95ac0ed3e757d512dfb432ba564de852c;hb=131c22ec196a998e14902e8127216c7a09b63119;hp=b785956458bffdcaf30f37c7155ab02d5b9486ac;hpb=86989d796ff012fb0a8b803fe46758b202010194;p=tt2015.git diff --git a/a2/1cases.tex b/a2/1cases.tex index b785956..e9ffe8f 100644 --- a/a2/1cases.tex +++ b/a2/1cases.tex @@ -220,7 +220,7 @@ test case can not be created as it is not possible with that number of segments & a & b & b & c & b & \xmark & \xmark & \doTCC & \doTCC\\ & c & a & b & a & b & \xmark & \xmark & \doTCC & \doTCC\\ & c & b & a & c & a & \xmark & \xmark & \doTCC & \doTCC\\ - & b & a & b & c & a & \xmark & \xmark & \doTCC & \doTCC\\ + & b & a & b & c & a & \xmark & \xmark & \xmark & \doTCC\\ & b & b & a & b & b & \xmark & \xmark & \doTCC & \doTCC\\ & c & b & b & a & b & \xmark & \doTCC & \doTCC & \doTCC\\ & b & b & b & a & b & \xmark & \doTCC & \doTCC & \doTCC\\ @@ -304,6 +304,7 @@ described in Table~\ref{tbl:testpairs}. \hline Test number & Expected results\\ \hline\hline + \doTCC & An ACK\# of the sequence number of the SYN packet + 1. \\ \hline \doTCC & An ACK\# of the send sequence number + 1.\\ \hline \doTCC & An ACK\# of the sequence number of the last send segment + the size of the payload of that segment.\\ \hline @@ -348,26 +349,37 @@ described in Table~\ref{tbl:testpairs}. \begin{longtable}{|p{.2\linewidth}|p{.8\linewidth}|} \hline + Nr & 1 \\\hline - Title & Single valid request with 1byte payload. \\\hline + Title & Connect to the \emph{echo-server} without sending a payload. \\\hline Input & Generated packets. \\\hline - Expected output & Packets echoed back by Echo-Server. \\\hline + Expected output & \emph{Echo-server} accepts the connection. \\\hline \multirow{2}{*}{Course of action} - & 1. Use the steps listed above in order to start the SUT. \\ - & 2. Execute the script by running \texttt{\# code/client/tests/1.py} \\\hline + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/1.py} \\\hline Valid trace & Verify that the script prints 'Success'. \\\hline \hline Nr & 2 \\\hline - Title & Single valid request with 65495bytes payload. \\\hline + Title & Single valid request with 1byte payload. \\\hline Input & Generated packets. \\\hline Expected output & Packets echoed back by Echo-Server. \\\hline \multirow{2}{*}{Course of action} - & 1. Use the steps listed above in order to start the SUT. \\ - & 2. Execute the script by running \texttt{\# code/client/tests/2.py} \\\hline + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/1.py} \\\hline Valid trace & Verify that the script prints 'Success'. \\\hline \hline +% Nr & 3 \\\hline +% Title & Single valid request with 65495bytes payload. \\\hline +% Input & Generated packets. \\\hline +% Expected output & Packets echoed back by Echo-Server. \\\hline +% \multirow{2}{*}{Course of action} +% & 1. Use the steps listed above in order to start the SUT. \\ +% & 2. Execute the script by running \texttt{\# code/client/tests/2.py} \\\hline +% Valid trace & Verify that the script prints 'Success'. \\\hline +% \hline + Nr & 3 \\\hline Title & 5 valid requests with 1byte payload. \\\hline Input & Generated packets. \\\hline @@ -389,26 +401,89 @@ described in Table~\ref{tbl:testpairs}. \hline Nr & 5 \\\hline - Title & 5 valid requests with 1byte payload sent out of order. \\\hline + Title & 5 requests with 1byte payload with corrupted source port, destination port and checksum. The second segment is omitted in order to simulate a packet drop on the client side. \\\hline Input & Generated packets with 1byte payload, two packets are swapped in position. \\\hline - Expected output & All requests sent up to and including - the swapped packet with the lowest sequence number, the remaining packets are ropped. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline \multirow{2}{*}{Course of action} & 1. Use the steps listed above in order to start the SUT. \\ & 2. Execute the script by running \texttt{\# code/client/tests/5.py} \\\hline Valid trace & Verify that the script prints 'Success'. \\\hline \hline - + Nr & 6 \\\hline - Title & Request with corrupted source port. \\\hline - Input & Generated packets with 1byte payload, in these packets the source port Number is increased by one. \\\hline - Expected output & The Echo server will receive the packet but is not able to respond with a ACK, this will result in a connection time out. \\\hline + Title & 5 requests with 65495byte payload with corrupted source port, destination port and checksum. The second segment is omitted in order to simulate a packet drop on the client side. \\\hline + Input & Generated packets with 65495byte payload, second generated packet is removed. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline \multirow{2}{*}{Course of action} & 1. Use the steps listed above in order to start the SUT. \\ & 2. Execute the script by running \texttt{\# code/client/tests/6.py} \\\hline Valid trace & Verify that the script prints 'Success'. \\\hline \hline + %% HIER + + Nr & 7 \\\hline + Title & 5 requests with 1byte corrupted payload, corrupted source and destination port. \\\hline + Input & Generated packets with 1byte payload, in these packets the payload byte, source and destination ports are increased by one. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline + \multirow{2}{*}{Course of action} + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/7.py} \\\hline + Valid trace & Verify that the script prints 'Success'. \\\hline + \hline + + Nr & 8 \\\hline + Title & 5 requests with 65495byte corrupted payload, corrupted source and destination port. \\\hline + Input & Generated packets with 65495byte payload, in these packets one of the payload bytes, source and destination ports are increased by one. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline + \multirow{2}{*}{Course of action} + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/8.py} \\\hline + Valid trace & Verify that the script prints 'Success'. \\\hline + \hline + + + Nr & 9 \\\hline + Title & 5 requests with 1byte corrupted payload, invalid checksum and the second packet is dropped. \\\hline + Input & Generated packets with 1byte payload, in these packets the payload byte and checksum are increased by one. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline + \multirow{2}{*}{Course of action} + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/9.py} \\\hline + Valid trace & Verify that the script prints 'Success'. \\\hline + \hline + + Nr & 10 \\\hline + Title & 5 requests with 65495byte corrupted payload, invalid checksum and the second packet is dropped. \\\hline + Input & Generated packets with 65495byte payload, in these packets one of the payload bytes and the checksum are increased by one. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline + \multirow{2}{*}{Course of action} + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/10.py} \\\hline + Valid trace & Verify that the script prints 'Success'. \\\hline + \hline + + Nr & 11 \\\hline + Title & 5 requests with 65495byte corrupted payload that doesn't show up in checksum and corrupted destination port. The second packet is dropped. \\\hline + Input & Generated packets with 65495byte payload, in these packets one 16bit word in the payload is increased by 1 and another 16bit word is decreased by 1. The destination port is also increase by one and the second packet is removed. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline + \multirow{2}{*}{Course of action} + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/11.py} \\\hline + Valid trace & Verify that the script prints 'Success'. \\\hline + \hline + + + + Nr & 6 \\\hline + Title & 5 requests with 1byte payload with corrupted source port, destination port and checksum. The second segment is omitted in order to simulate a packet drop on the client side. \\\hline + Input & Generated packets with 1byte payload, two packets are swapped in position. \\\hline + Expected output & All packets are dropped resulting in a connection time-out. \\\hline + \multirow{2}{*}{Course of action} + & 1. Use the steps listed above in order to start the SUT. \\ + & 2. Execute the script by running \texttt{\# code/client/tests/5.py} \\\hline + Valid trace & Verify that the script prints 'Success'. \\\hline + \hline Nr & 7 \\\hline Title & Request with corrupted destination port. \\\hline