School of Engineering
Lab 3 Guidelines
COURSE: EEET2439/2597 Network
Fundamentals and Applications
Semester 1, 2019
Learning Outcomes:
1. The art of experimentation
2. Experimental and analytical skills
3. Conceptual learning
4. Understanding the basis of Networking Engineering
5. Developing collaborative learning skills
There are several differences between TCP and TCP protocols explained below:
TCP UDP
Function As a message makes its way across UDP is also a protocol used in message transport or
the internet from one computer to transfer. This is not connection based which means
another. This is connection based. that one program can send a load of packets to
another and that would be the end of the
relationship.
Usage TCP is suited for applications that UDP is suitable for applications that need fast,
require high reliability, and efficient transmission, such as games. UDP's
transmission time is relatively less stateless nature is also useful for servers that answer
critical. small queries from huge numbers of clients.
Use by HTTP, HTTPs, FTP, SMTP, Telnet DNS, DHCP, TFTP, SNMP, RIP, VOIP.
Ordering of data TCP rearranges data packets in the UDP has no inherent order as all packets are
packets order specified. independent of each other. If ordering is required, it
has to be managed by the application layer.
Speed of transfer The speed for TCP is slower than UDP is faster because error recovery is not
UDP. attempted. It is a "best effort" protocol.
Reliability There is absolute guarantee that the There is no guarantee that the messages or packets
data transferred remains intact and sent would reach at all.
arrives in the same order in which it
was sent.
Header Size TCP header size is 20 bytes UDP Header size is 8 bytes.
Streaming of Data is read as a byte stream, no Packets are sent individually and are checked for
data distinguishing indications are integrity only if they arrive. Packets have definite
transmitted to signal message boundaries which are honored upon receipt,
(segment) boundaries. meaning a read operation at the receiver socket will
yield an entire message as it was originally sent.
Data Flow TCP does Flow Control. TCP requires UDP does not have an option for flow control
Control three packets to set up a socket
connection, before any user data can
be sent. TCP handles reliability and
congestion control.
Error Checking TCP does error checking and error UDP does error checking but simply discards
recovery. Erroneous packets are erroneous packets. Error recovery is not attempted.
retransmitted from the source to the
destination.
Step 3: Initiate UDP Traffic, for doing that configure pc-student 1 as client and pc-student 2 as
server for exchanging UDP traffic,
o Which are the command lines?
Step 4: Configure pc-student 1 and pc-student 2 for exchanging UDP traffic, with:
o Packet length = 1000bytes
o Time = 20 seconds
o Bandwidth = 1Mbps
o Port = 9900
Which are the command lines?
Analyze the UDP options and try different configurations with Iperf.
STEP 4: First, filter the packets displayed in the Wireshark window by entering “tcp” into the
display filter specification window towards the top of the Wireshark window. Keep in mind
the field of TCP header and match the field with the captured packets.
STEP 5: Pick-up an TCP segment exchanged between pc-student 1 and pc-student 2: Answer the
following questions:
1. What is the IP address and TCP port number used by the client computer (source) and
serve computer (destination)?
3. What is the length of the TCP segmenting that server sent to the client? What is that
segment?
4. Which is the widow value for those packets? Is the same value?
2. What is the length of the UDP segment that client sent to the server?