Professional Documents
Culture Documents
HTTP Commands:
● GET: used to retrieve information from the given server using a given URI Requests
using GET should only retrieve data and should have no other effect on the data
● POST: used to send data to the server, for example, customer information, file
upload, etc. using HTML forms
● PUT: Replaces all current representations of the target resource with the uploaded
content
● HEAD: Same as GET, but transfers the status line and header section only
● DELETE: Removes all current representations of the target resource given by a URI
HTTP over TCP:
● Merits:
○ Reliable because Connection-oriented
○ Loss less
○ Accurate Data Transmission
● Demerits:
○ Slow compared to UDP
HTTP over UDP
● Merits:
○ Fast compared to TCP’
● Demerits:
○ Unreliable due to connection-less
○ Complex as we have to incorporate reliability in protocol itself
2. Suppose N packets arrive simultaneously to a link at which no packets are currently being
transmitted or queued. Each packet is of length L and the link has transmission rate R.
a. What is the average queuing delay for the N packets?
b. Now suppose that N such packets arrive to the link every LN/R seconds. What is
the average queuing delay of a packet?
3. What are the five layers in the Internet protocol stack? What are the principal
responsibilities of each of these layers? Be very brief.
5. Briefly describe the stop and wait protocol. In particular, explain how the packet loss and
acknowledgement loss is handled by the protocol. Derive the efficiency of stop & wait
when the round trip time is RTT, transmission time is Tt, and the propagation time is Tp.
Efficency = (time to transmit a packet T) / (time to transmit a packet + round trip time)
= Tt / (Tt + RTT). IF RTT is roughly equal to 2*Tp then
= 1 / (1 + 2Tp/Tt)