please do not submit the notebook picture On the Transport Layer services are pr
ID: 3749570 • Letter: P
Question
please do not submit the notebook picture
On the Transport Layer services are provided by the Transmission Control Protocol (TCP) and User Datagram Protocol( Q6 (a) What is the difference in the service offered to applications by the TCP and UDP protocols (8 marks) (b) For each of the following applications determine whether you would use TCP or UDP and explain the reasons for your choice. I. File transfer I Watching a real time streamed video II Web browsing IV.A Voice Over IP (VoIP) telephone conversation (3 marks) (3 marks) (3 marks) (3 marks) (c) Both TCP and UDP use port numbers. What are these port numbers used for?Explanation / Answer
Answer)
a) In the transport layer, there are differences in the type of services offered by the transmission control protocol (TCP) and the user datagram protocol (UDP). The TCP is a reliable connection protocol where reliable connections between 2 different hosts is necessary. Thus here TCP checks for transmission errors, lost packets, packets out of order, etc. in the transport layer and tries to correct these without bothering the application. The UDP is unreliable transport protocol and is thus used where there is no need of reliability, thus there is no error checking or flow control and UDP just sends and forgets the packets.
Whether to use TCP or UDP:
i. File transfer - TCP should be used because file transfers have important data and need a reliable connection. corrupted files are of no use by the system.
ii. Watching a real time steamed video - UDP should be used as error correction in real time steamed videos are pointless and do not need flow control and can use an unreliable connection.
iii. Web browsing - Web browsing should use TCP as it has to be reliable as the data is important while browsing as an erroneous loaded page is not usable or functional.
iv. A VoIP telephone conversation - UDP should be used as flow control and error correction is not needed here as it is an isochronous application.
Both TCP and UDP sue the port numbers. A port number is an endpoint of a communication and thus ports are associated with the IP address and also the protocol type such as TCP or UDP. the port identifies the specific process of the network or a network service running. Thus port is here at software level and is a logical construct.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.