In: Computer Science
b) UDP does not provide end to end flow control, but TCP does. Explain how this is achieved using sequence numbers. Give an example where a packetized message sent using UDP is received incorrectly, but when using TCP it is received correctly under same circumstances without channel errors.
TCP is connection-oriented and UDP is connectionless. This implies that some time recently sending TCP parcels, a association is set up between the server and the client. This handle of setting up a association is called TCP handshaking. The stream of bundles is at that point sent over this connection. In UDP, there's no such association. Each bundle is sent separately and straightforwardly from the sender to the collector without a dependable information channel.TCP could be a solid convention that includes a sequence number to the information parcels because it sends out a stream. This makes a difference the beneficiary orchestrate and fasten back the message together. UDP doesn’t include a number to its header, which suggests the beneficiary has no way of knowing on the off chance that it gotten all the parcels and within the right arrange.
Example :
UDP: Anything where you do not care as well much in case you get all information always :-
1.Tunneling/VPN (misplaced parcels are alright - the tunneled convention takes care of it) 2.Media gushing (misplaced outlines are ok)
TCP: Nearly anything where you have got to urge all transmitted data :-
1.Web
2. SSH, FTP, telnet
3.SMTP, sending mail
4.IMAP/POP, accepting mail.
Comments for any queries..!
Please give me a thumbs up..!