Assignment - 3
Assignment - 3
COMPUTER NETWORK
SHIVAM SHARMA
ROLL NO-96
IT- (B)
Q1. Explain about the TCP header and working of TCP protocol
and differentiate between TCP and UDP with frame format.
ANS- The Transmission Control Protocol (TCP) header is the first 24 bytes
of a TCP segment that contains the parameters and state of an end-toend
TCP socket. The TCP header is used to track the state of communication
between two TCP endpoints.
TCP provides extensive error checking UDP has only the basic error checking
ANS- 07FF
Q3. What do you understand by Quality of service, parameters?
List various Quality of service parameters.
ANS- "Quality of Service" (QOS) refers to certain characteristics of a data
link connection as observed between the connection endpoints. ... QOS
parameters that are not negotiated during connection establishment. The
values are determined or known through other methods, usually
administrative.
Q4. Explain RSA Algorithm. Taking p=5, q=11, d=27 . Find the
value of e.?
ANS-
RSA ALGORITHM-
RSA algorithm is a public key encryption technique and is considered as
the most secure way of encryption. It was invented by Rivest, Shamir and
Adleman in year 1978 and hence name RSA algorithm.
Algorithm
The initial procedure begins with selection of two prime numbers namely p
and q, and then calculating their product N, as shown −
N=p*q
Here, let N be the specified large number.
The specified pair of numbers n and e forms the RSA public key and it is
made public.
Example
For a real-life analogy, let's say we have a couple of moving trucks
(packets) taking furniture (data) from one house to another. If a truck
transported each piece of furniture as soon as it was taken out of the old
house, one piece at a time, clearly the operation would take forever (SWS).
If we have enough trucks in transit between locations, there's going to be a
fair bit of congestion on the route as well. The obvious and more efficient
solution is, of course, to wait until each truck is full before it drives off to the
new house to avoid the large overhead of the drive time and
loading/unloading time of each truck's trip.