Assignment 2

Assignment 2 - SIT202 Computer Networks Assignment 2 Task...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Task 1: The transport layer 1. Define, compare and contrast TCP and UDP. SIT202 Computer Networks Assignment 2 By: Ruo Hui NIU ID: 600246619
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Ruo Hui NIU Assignment 2 ID: 600246619 The most important difference between TCP and UDP is the concept of “guaranteed” reliability and delivery. UDP is known as a “connectionless” protocol since it has very few error recovery services and no guarantee of packet delivery. With UDP, packets are created and sent on their way. The sender has no idea if the packets were successfully received or whether or not they were received in order, even packet loss and corruption is relatively rate on modern networks. (Wikipedia) TCP is a “connection oriented” protocol and was specifically designed to allow for a reliable connection between two hosts exchanging data. TCP was also designed to ensure packets are processed in the same order they were sent. As part of the TCP protocol, each packet has a sequence number to show where that packet fits into the overall conversation. With the sequence numbers, packets can arrive in any order and at different times and the receiving system will know the correct order for processing them. (Wikipedia) 2. Consider a TCP connection between Host A and Host B. Suppose that the TCP segments travelling from Host A to Host B have source port number x and destination port number y. What are the source and destination port numbers for the segments travelling from Host B to Host A. Source port y and destination port x.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

Assignment 2 - SIT202 Computer Networks Assignment 2 Task...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online