NextGen Sarkari

Study material for government exam preparation across Punjab and India.

Home/Study Material/Networking & Technical/TCP/IP Model and Core Protocols
Fundamentals study guide

TCP/IP Model and Core Protocols

Learn how the operational Internet stack maps applications to transport sessions, IP routing and local-link delivery.

FundamentalsBeginner20 min readUpdated 2026-08-06

The TCP/IP model

TCP/IP layerClosest OSI layersExamples
Application7, 6 and 5HTTP, DNS, SSH, SMTP, DHCP
Transport4TCP, UDP
Internet3IPv4, IPv6, ICMP
Link / Network Access2 and 1Ethernet, Wi-Fi, ARP/ND, physical media

The TCP/IP model is implementation-focused. It groups several OSI functions together rather than preserving seven strict layers.

TCP versus UDP

FeatureTCPUDP
ConnectionConnection-orientedConnectionless
ReliabilityAcknowledgements, retransmission and sequencingNo built-in delivery guarantee
OverheadHigherLower
Typical usesHTTPS, SSH, email, many database sessionsDNS queries, voice/video, telemetry, real-time applications
Important cautionA successful handshake does not prove the application works.Applications must add reliability if they need it.

TCP connection establishment

SYN
SYN-ACK
ACK
Application data

The three-way handshake synchronises initial sequence information and confirms two-way reachability. Connection close normally uses FIN/ACK exchanges, while RST aborts a connection immediately.

Core protocols and functions

ProtocolFunction
IPMoves packets between addressed networks without guaranteeing delivery.
ARPResolves an IPv4 address to a local-link MAC address.
ICMPCarries control and diagnostic messages such as echo and unreachable indications.
DNSMaps names to records such as A, AAAA, CNAME and MX.
DHCPAutomatically supplies address, mask, gateway and other options.
TCP/UDP portsIdentify the application endpoint on a host.

Common ports to remember

ServiceTransport / port
HTTPTCP 80
HTTPSTCP 443
DNSUDP 53 commonly; TCP 53 also used
SSHTCP 22
SMTPTCP 25
DHCPv4UDP 67/68
NTPUDP 123
BGPTCP 179

Practical troubleshooting

Cross-platform checks
ping 192.0.2.10
tracert 192.0.2.10        # Windows
traceroute 192.0.2.10     # Linux
nslookup example.com
curl -Iv https://example.com
netstat -ano              # Windows
ss -lntup                 # Linux

Interpret each test carefully. Ping can be blocked, traceroute can be incomplete, and a listening port does not guarantee a healthy application response.

Quick self-check

1. Which protocol provides ordered reliable byte-stream delivery?
Answer: TCP.
2. Which transport protocol is usually used for a normal DNS query?
Answer: UDP, although DNS also uses TCP in several cases.
3. What is the purpose of ARP?
Answer: Resolve a local IPv4 address to a MAC address.
4. What does a TCP RST indicate?
Answer: The connection was reset or refused/aborted rather than gracefully closed.
5. Which TCP/IP layer performs routing?
Answer: The Internet layer.

Frequently asked questions

1. Does UDP mean packets are always lost?
Answer: No. It means UDP itself does not provide acknowledgement, retransmission or ordering. The network may still deliver every datagram.
2. Can DNS use TCP?
Answer: Yes. TCP is used for zone transfers and when response size, truncation or protocol features require it.
3. Does ping test TCP?
Answer: No. Ping normally uses ICMP echo messages.

Standards and further reading

Editorial note: Vendor commands and best-path tie-breakers can differ by platform and software release. Always verify production configuration against the device vendor documentation.

Continue learning