Internet Protocols

Internet protocols let devices exchange information even when those devices use different hardware and software. When you open a website, several protocols cooperate: one helps find an address, another moves packets between networks, another manages reliable delivery, and another gives meaning to the web request. Understanding their separate responsibilities helps you explain both successful transfers and failures.

Rules with separate responsibilities

A protocol is an agreed set of rules governing communication, including message formats and how participants respond. Shared rules allow independently developed systems to communicate.


Internet communication uses packets. A large transfer can travel in many packets rather than as one uninterrupted block. These protocols perform different jobs:


Protocol

Main responsibility

What that responsibility does not establish

IP

Address packets and support forwarding between networks.

Every packet arrives or arrives in order.

TCP

Provide a reliable, ordered byte stream between endpoints.

The content is encrypted or factually correct.

DNS

Resolve domain names to records, including IP addresses.

A particular web page exists at that address.

HTTP

Define web requests, responses and their meaning.

Every request succeeds or uses the same transport in every version.


DNS resolves a domain name, such as the host name in a web address. It does not translate every part of a complete web address into an IP address.

TCP working over IP

A router uses IP information to forward packets toward a destination. Different packets can take different routes. IP provides best-effort delivery: packets may be lost, duplicated or received out of order.


TCP adds mechanisms for handling these problems. Sequence numbers identify positions in the byte stream. Acknowledgements report progress; a normal cumulative acknowledgement identifies the next byte expected in sequence. TCP can retransmit missing data, arrange received bytes in order and avoid delivering duplicate copies to the application.


TCP numbers bytes, not just whole packets. If later bytes arrive before an earlier range, the receiver may buffer them while waiting for the gap to be filled.



For a representative HTTP/1.1 exchange, DNS can first supply an address. A TCP connection then operates over IP, and HTTP requests and responses travel through it. A cached address can avoid a new DNS lookup.


A header carries information needed by a protocol. The payload is the data carried inside the protocol unit being considered. In the diagram, application data sits alongside TCP and IP headers; the IP payload includes both the TCP header and the application data.


An IP packet contains an IP header, a TCP header and application data.


Counting transmitted bytes

For a simplified transfer, let LL be the application-data size, PP the maximum application bytes per packet, and HH the combined header bytes per packet. Fill each packet before starting the next, except for the final packet. With no retransmissions, the packet count NN and transmitted total TT are


N=⌈LP⌉,T=L+NH.N=\left\lceil\frac{L}{P}\right\rceil,\qquad T=L+NH.


The ceiling brackets mean round upward to a whole packet. Headers occupy space even when the final packet is only partly full. Actual header sizes vary, so use the sizes stated in a problem.


Example: A simplified transfer carries 2000 B of application data in packets holding at most 1000 B each, with 40 B of headers per packet. It needs two packets, so its transmitted total is 2000+2(40)=2080 B2000+2(40)=2080\ \text{B}.


For efficiency measured by unique application bytes delivered,


efficiency=LT×100%.\text{efficiency}=\frac{L}{T}\times100\%.


Retransmitted bytes increase the transmitted total without increasing the unique application data.



What to remember

  • IP supports addressing and forwarding; TCP manages reliable, ordered byte delivery.
  • DNS resolves names; HTTP defines web requests and responses.
  • Reliable delivery does not imply encryption or correct application content.
  • Count headers for every packet sent, including retransmissions.

Example: Measuring a web response transfer

A school website sends a 7200 B HTTP/1.1 response over an established TCP connection using IP. Treat all 7200 B as application data. Each data packet carries at most 1200 B of application data and exactly 40 B of combined TCP and IP headers. Fill each packet before starting another.


Count only these data packets. Ignore acknowledgements, connection setup, other headers and all traffic in the opposite direction. For this problem, transmission efficiency is the percentage of transmitted bytes that become unique application data at the receiver.


Initially, every packet is sent once. One full data packet is lost, then retransmitted exactly once and received successfully. All other packets arrive successfully.


a) How many bytes are transmitted in the initial data packets, before the retransmission?


First divide the application-data size by the maximum application payload. The required packet count is ________ because


N=7200 B1200 B per packet=6 packets.N=\frac{7200\ \text{B}}{1200\ \text{B per packet}}=6\ \text{packets}.


All six packets are full. Each has its own headers, so the combined header size is ________:


6(40 B)=240 B.6(40\ \text{B})=240\ \text{B}.


Add the application data and headers to obtain the initial transmitted total:


T0=7200 B+240 B=7440 B.T_0=7200\ \text{B}+240\ \text{B}=7440\ \text{B}.


The initial data packets transmit 7440 B. The packet lost in transit still counts because it was transmitted.


b) How many bytes are transmitted in total after the successful retransmission?


The retransmitted packet includes its application payload and another copy of its headers. Its complete size is ________:


R=1200 B+40 B=1240 B.R=1200\ \text{B}+40\ \text{B}=1240\ \text{B}.


Add this packet to the initial total. Count both the lost transmission and its replacement.


T=7440 B+1240 B=8680 B.T=7440\ \text{B}+1240\ \text{B}=8680\ \text{B}.


The complete transfer transmits 8680 B in the counted data packets. Counting only packets that arrive would understate the bytes sent.


c) What is the transmission efficiency after the retransmission? Give your answer to one decimal place.


The receiver obtains 7200 B of unique application data. Sending one range again does not create additional unique content, so the numerator remains 7200 B. Use the complete transmitted total from part b in the denominator:


Efficiency=unique application bytestotal transmitted bytes×100%=72008680×100%=82.9493…%.\begin{aligned} \text{Efficiency}&=\frac{\text{unique application bytes}}{\text{total transmitted bytes}}\times100\%\\ &=\frac{7200}{8680}\times100\%\\ &=82.9493\ldots\%. \end{aligned}


The transmission efficiency is 82.9%. It is below 100% because headers and the repeated packet consume transmitted bytes without increasing the unique application data delivered.

A school network uses several internet protocols when students visit a website. Match each protocol to its main responsibility in that communication.

Match each term
A.

Address packets and support forwarding between networks.

B.

Manage reliable, ordered delivery of a byte stream.

C.

Resolve domain names to records such as network addresses.

D.

Define the meaning of web requests and responses.

TCP

IP

HTTP

DNS

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A developer inspects a TCP segment carrying application data in an established connection. Match each header field to the information it supplies.

Match each term
A.

Identifies the intended receiving application endpoint within the destination host.

B.

Identifies the first data byte's position in the connection's byte stream.

C.

Supplies a computed value for detecting corruption in segment contents and selected IP information.

D.

Advertises how many bytes the peer may send starting at the acknowledgement value.

Checksum

Receive window

Destination port

Sequence number

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An established TCP connection uses relative byte numbers, with its first application byte numbered 0. The receiver has obtained all bytes from 0 through 399 and has buffered bytes 800 through 1199. No other application bytes have arrived. A cumulative acknowledgement gives the next byte expected in order. What acknowledgement number should the receiver send?


A sender delivers bytes 0 through 399 first and bytes 800 through 1199 next to a receiver.


Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice