Question
1. (i) Mention any two services that TCP can provide but UDP cannot provide. (ii)] Suppose a process in Host C has a UDP socket
1. (i) Mention any two services that TCP can provide but UDP cannot provide.
(ii)] Suppose a process in Host C has a UDP socket with port number 6789. Suppose both Host A and Host B each send a UDP segment to Host C with destination port number 6789. Will both of these segments be directed to the same socket at Host C? If so, how will the process at Host C know that these two segments originated from two different hosts?
(iii) Suppose Client A initiates a session with Server S. At about the same time, Client B also initiates a session with Server S. Provide possible source and destination port numbers for:
(a) The segments sent from A to S. (b) The segments sent from B to S. (c) The segments sent from S to A. (d) The segments sent from S to B. (e) If A and B are different hosts, is it possible that the source port number in the segments from A to S is the same as that from B to S? (f) How about if they are the same host?
(iv) [2+2] Suppose you have the following 2 bytes: 01011100 and 01100101. What is the 1s complement of the sum of these two bytes? Give an example where 1 bit is flipped in each of the two bytes and yet the 1s complement does not change.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started