Tulasi Nepali Learning Platform
tulasinepali.com.np • Official Educational & Exam Preparation Notes
Overview & Definition (परिचय तथा परिभाषा)
Computer networking is the practice of connecting multiple computing devices to share resources, exchange data, and communicate. It forms the backbone of modern information systems, enabling everything from email and web browsing to cloud services and IoT.
Core Concepts with Detailed Sub‑sections (मुख्य अवधारणाहरू)
1. The TCP/IP Model
The TCP/IP (Transmission Control Protocol/Internet Protocol) model is a four‑layer framework that standardises how data is transmitted over the internet and most private networks. Its layers are:
- Link (Network Interface) Layer – Handles physical transmission of bits over a medium.
- Internet Layer – Provides logical addressing and routing.
- Transport Layer – Ensures reliable or best‑effort delivery of data.
- Application Layer – Supports network‑aware applications and services.
2. Functions, Protocols & Services of Each TCP/IP Layer
2.1 Link (Network Interface) Layer
Functions:
- Physical signalling and bit‑level transmission.
- Framing of packets into frames.
- Media access control (MAC) addressing.
- Error detection (e.g., CRC).
Key Protocols/Technologies: Ethernet (IEEE 802.3), Wi‑Fi (IEEE 802.11), PPP, ARP (Address Resolution Protocol) – although ARP bridges Link and Internet layers.
Services: Device discovery, local‑area network (LAN) connectivity, collision handling, link‑level flow control.
2.2 Internet Layer
Functions:
- Logical addressing (IP addresses).
- Routing of packets across multiple networks.
- Fragmentation and reassembly of packets.
Key Protocols: IPv4, IPv6, ICMP (Internet Control Message Protocol), IGMP (Internet Group Management Protocol), IPsec (for security).
Services: End‑to‑end addressing, path selection, error reporting (via ICMP), multicast group management.
2.3 Transport Layer
Functions:
- Process‑to‑process communication (ports).
- Reliability, flow control, and congestion control (TCP).
- Connectionless, low‑latency delivery (UDP).
Key Protocols: TCP, UDP, SCTP (Stream Control Transmission Protocol).
Services: Reliable byte‑stream service (TCP), best‑effort datagram service (UDP), multiplexing/demultiplexing using port numbers.
2.4 Application Layer
Functions:
- Provides network‑aware services directly to end users.
- Defines data formats, encoding, and session management.
Key Protocols: HTTP/HTTPS, FTP, SMTP, POP3/IMAP, DNS, Telnet, SSH, DHCP, SNMP, NTP, TLS/SSL.
Services: Web browsing, email exchange, file transfer, name resolution, remote login, network management.
3. Comparison with the OSI Model
The OSI (Open Systems Interconnection) model is a seven‑layer reference model used primarily for teaching and standardisation. While both models aim to describe networking functions, they differ in granularity and terminology.
| OSI Layer | TCP/IP Equivalent | Key Functions / Protocols |
|---|---|---|
| 7. Application | Application | HTTP, FTP, SMTP, DNS, etc. |
| 6. Presentation | Application | Data formatting, encryption, compression (TLS/SSL) |
| 5. Session | Application | Session management, dialog control |
| 4. Transport | Transport | TCP, UDP, flow & error control |
| 3. Network | Internet | IP, ICMP, routing |
| 2. Data Link | Link | Ethernet, MAC addressing, ARP |
| 1. Physical | Link | Physical media, electrical/optical signalling |
Key differences:
- TCP/IP merges OSI’s Presentation and Session layers into the Application layer.
- OSI’s Physical and Data Link layers are combined into the Link layer of TCP/IP.
- TCP/IP is a practical, implementation‑focused model; OSI is a theoretical framework.
Practical Application / Real‑world Relevance
Understanding the TCP/IP stack is essential for:
- Configuring routers, firewalls, and switches for secure network design.
- Troubleshooting connectivity issues using tools such as ping (ICMP), traceroute, netstat, and Wireshark.
- Developing web and mobile applications that rely on HTTP/HTTPS, DNS, and TCP sockets.
- Preparing for competitive examinations like Loksewa PSC, where networking fundamentals are frequently tested.
Quick Review Questions & Answers (अभ्यासका लागि प्रश्नोत्तर)
- Q: Which TCP/IP layer is responsible for logical addressing?
A: Internet Layer (IP). - Q: Name two connection‑oriented protocols.
A: TCP and SCTP. - Q: Which protocol translates domain names to IP addresses?
A: DNS (Domain Name System). - Q: In the OSI model, which layer corresponds to Ethernet framing?
A: Data Link Layer (Layer 2). - Q: What is the purpose of ICMP?
A: To report errors and provide diagnostic messages (e.g., ping).
Multiple‑Choice Questions (MCQs)
- Which TCP/IP layer provides end‑to‑end reliability?
- A) Link
- B) Internet
- C) Transport
- D) Application
- ARP operates primarily at which TCP/IP layer?
- A) Application
- B) Transport
- C) Internet
- D) Link
- Which of the following is NOT a function of the OSI Presentation layer?
- A) Data encryption
- B) Data compression
- C) Routing decisions
- D) Syntax translation
Remember: Mastering the TCP/IP stack equips you to design, secure, and troubleshoot modern networks – a skill set highly valued in civil service and IT‑related examinations.