Computer Networking for IBPS PO — OSI Model, Protocols, Devices & Subnetting

intermediate 18 min read

Concept

A computer network is a system where two or more computing devices are connected to share resources, exchange data, and communicate. Think of it like the Indian postal system — you need addresses (IP addresses), post offices that sort and route mail (routers and switches), agreed-upon procedures for packaging letters (protocols), and different categories of routes — local courier (LAN), citywide delivery (MAN), national courier (WAN).

Networks exist at different scales:

The key concepts IBPS PO tests repeatedly are: OSI model layer assignments, which device operates at which layer, protocol-to-function mapping (what sends email, what secures file transfer), and basic subnetting arithmetic. These are factual recall questions — you either know the mapping or you don't. This page gives you the exact mappings and a framework to retain them.

The two dominant network architecture models are OSI (Open Systems Interconnection) and TCP/IP. OSI is the theoretical reference model with 7 layers. TCP/IP is the practical model the internet actually runs on, with 4 layers. IBPS PO questions almost always use OSI layer numbers and names — nail those.


Deep Dive

The OSI Model — 7 Layers

The OSI model layers, from bottom to top:

| Layer | Number | Name | Key Function | |---|---|---|---| | Physical | 1 | Physical | Bits over wire/fiber/radio | | Data Link | 2 | Data Link | Frames, MAC addresses, error detection | | Network | 3 | Network | Packets, IP addresses, routing | | Transport | 4 | Transport | Segments, TCP/UDP, end-to-end delivery | | Session | 5 | Session | Session management, dialog control | | Presentation | 6 | Presentation | Encryption, compression, format translation | | Application | 7 | Application | User-facing protocols: HTTP, FTP, SMTP |

The mnemonic "Please Do Not Throw Sausage Pizza Away" (Physical, Data Link, Network, Transport, Session, Presentation, Application) works fine. But more importantly — understand why each device maps where it does.

Network Devices and Their OSI Layers

This is the single most-tested pairing in IBPS PO computer sections:

The rule: higher layer = more intelligence = knows more about addressing. Hub knows nothing, switch knows MAC, router knows IP.

Key Protocols and Their Functions

Learn these as hard fact-pairs:

Application Layer Protocols (Layer 7):

The email protocol distinction matters: SMTP is for sending. POP3 and IMAP are for receiving/reading. The exam loves asking which is for sending vs. receiving.

Transport Layer Protocols (Layer 4):

Subnetting Basics

IPv4 addresses are 32-bit numbers written as four octets: 192.168.1.1. CIDR notation adds a slash and the number of network bits: 192.168.1.0/24 means the first 24 bits are the network portion.

Host calculation formula: 2^(32 - prefix) - 2

The -2 accounts for the network address (all host bits = 0) and broadcast address (all host bits = 1) — neither can be assigned to a host.

For /24: 2^(32-24) - 2 = 2^8 - 2 = 256 - 2 = 254 usable hosts.

IP Address Classes (default subnet masks):

| Class | Range (1st octet) | Default Mask | CIDR | |---|---|---|---| | A | 1–126 | 255.0.0.0 | /8 | | B | 128–191 | 255.255.0.0 | /16 | | C | 192–223 | 255.255.255.0 | /24 |

Class A: huge networks, few network IDs, many hosts. Class C: small networks, many network IDs, few hosts. Class B sits in the middle — common in mid-size organizations like bank networks.

Network Topologies


Memory Tricks & Shortcuts

patternOSI Layer Device Map — 1-2-3 Lock

Lock in three device-layer pairs as a chain: Hub=1, Switch=2, Router=3. That's it — Physical, Data Link, Network respectively. In the exam, any question asking "which device operates at which layer" can be answered in under 5 seconds with this triple. Every other device (bridge=2, repeater=1, gateway=7) is a variant you derive from this anchor. Standard recall without anchor: 20-25 seconds of uncertainty. With the 1-2-3 lock: under 5 seconds.

patternEmail Protocol Sender-Receiver Split

Remember: SMTP = Sending. POP3 and IMAP both = receiving (and both come after SMTP alphabetically and operationally). When you see an email protocol question, first ask "is this about sending or receiving?" — if sending, SMTP is the only answer. If the question distinguishes POP3 from IMAP: POP3 Pulls mail and Purges it from server; IMAP keeps it on server. This pattern eliminates wrong options in 8 seconds vs. 30 seconds of trying to recall definitions cold.

patternSubnetting: Host Count in 3 Steps

Given /X notation — Step 1: host bits = 32 - X. Step 2: total addresses = 2^(host bits). Step 3: subtract 2. That's your answer. For /24: host bits = 8, total = 256, usable = 254. For /16: host bits = 16, total = 65536, usable = 65534. This 3-step chain takes 10 seconds. The common mistake is forgetting to subtract 2 — always do it. Without the chain, students second-guess whether to subtract 1 or 2 and lose 30+ seconds.

patternFTP vs SFTP — The Security Pair

Any protocol with an S prefix (SFTP, HTTPS, SSH) means the secure version of the base protocol. SFTP = FTP + encryption. HTTPS = HTTP + SSL/TLS. SSH = Telnet + encryption. When a question asks "which protocol provides secure file transfer," the answer is always the S-prefixed version. This pattern resolves the question in under 5 seconds — you don't need to recall port numbers or technical details.

patternIP Class Recognition by First Octet

First octet 1-126 = Class A. First octet 128-191 = Class B. First octet 192-223 = Class C. Quick anchor: 127 is loopback (not Class A usable). 128 starts Class B — think of it as "B for Big jump" at 128. 192 starts Class C — think "C for Common office network" (192.168.x.x is everywhere). Default mask question: Class A gets /8, Class B gets /16, Class C gets /24 — the class number times 8 gives the CIDR prefix. Class B: 2×8 = /16. Class C: 3×8 = /24. This cuts mask lookup to a multiplication.


Fast-Solving Framework

When you see a computer networking question in the exam hall, run this decision tree:

Step 1 — Is it a device/layer question? Apply the 1-2-3 lock immediately. Hub=1, Switch=2, Router=3. Done.

Step 2 — Is it a protocol question? Ask: sending email (SMTP), receiving email (POP3/IMAP), secure file transfer (SFTP), web (HTTP/HTTPS), secure remote login (SSH). Check if the question asks about security — if yes, eliminate unencrypted options (FTP, Telnet, HTTP) first.

Step 3 — Is it a subnetting question? Apply the 3-step chain: host bits = 32 minus prefix, total = 2 to the power of host bits, subtract 2. If it's a Class question, use the class times 8 rule for the CIDR prefix.

Step 4 — Is it a topology or network type question? Star = most common modern LAN. Mesh = maximum redundancy. LAN/MAN/WAN = building/city/national scope. These are pure recall.

Step 5 — Eliminate first, then confirm. On 4-option MCQs, if you can eliminate two options using these rules, your odds go from 25% to 50% before you use any deeper knowledge. Never leave a networking question blank — elimination alone gets you far.


Solved PYQs

Why this question: Tests the single most common subnetting calculation in IBPS PO — host count from CIDR notation. Appears in bank exams repeatedly because it has one clean correct answer with a common trap (256 instead of 254).

Previous Year Questionपिछले वर्ष का प्रश्न
What is the maximum number of hosts that can be addressed in a /24 network?
/24 नेटवर्क में अधिकतम कितने hosts को address किया जा सकता है?
  1. 254
  2. 255
  3. 256
  4. 253
  1. 254
  2. 255
  3. 256
  4. 253
Solutionसमाधान
In a /24 network, there are 8 host bits (32-24=8), giving 2^8 = 256 total addresses. However, the first address is reserved for network address and the last for broadcast, leaving 254 usable host addresses.
/24 नेटवर्क में 8 होस्ट बिट्स (32-24=8) होते हैं, जो 2^8 = 256 कुल पते देते हैं। हालांकि, पहला पता नेटवर्क पते के लिए और अंतिम ब्रॉडकास्ट के लिए आरक्षित है, जिससे 254 उपयोग योग्य होस्ट पते बचते हैं।

Solving path: Apply 3-step chain. Prefix = 24. Host bits = 32 - 24 = 8. Total addresses = 2^8 = 256. Subtract 2 (network + broadcast) = 254. The trap option is 256 — correct only if you forget to subtract 2. The trap option 255 has no mathematical basis. Answer: 254.


Why this question: Tests a pure-recall hardware specification. Ethernet cable distance limits come up in IBPS PO as a quick elimination question — most candidates don't know the exact figure.

Previous Year Questionपिछले वर्ष का प्रश्न
What is the maximum transmission distance for standard Ethernet cable (Cat5e/Cat6)?
स्टैंडर्ड Ethernet cable (Cat5e/Cat6) की अधिकतम transmission दूरी कितनी होती है?
  1. 50 meters
  2. 100 meters
  3. 150 meters
  4. 200 meters
  1. 50 meters
  2. 100 meters
  3. 150 meters
  4. 200 meters
Solutionसमाधान
The maximum transmission distance for standard Ethernet cable (Cat5e/Cat6) is 100 meters. Beyond this distance, signal degradation occurs, and repeaters or switches are needed to extend the network.
स्टैंडर्ड ईथरनेट केबल (Cat5e/Cat6) की अधिकतम ट्रांसमिशन दूरी 100 मीटर है। इस दूरी से अधिक पर सिग्नल डिग्रेडेशन होता है, और नेटवर्क का विस्तार करने के लिए रिपीटर या स्विच की आवश्यकता होती है।

Solving path: The 100-meter limit for Cat5e/Cat6 is a standard specification to memorize. The logic: signal degrades with distance; 100m is the engineering standard beyond which you need a repeater or switch. Eliminate 50m (too short — practical office networks often exceed this), 150m and 200m (both exceed the standard). Answer: 100 meters.


Why this question: Tests protocol-to-function mapping for network diagnostics. Ping, tracert, nslookup, and netstat are all network commands but serve completely different diagnostic purposes.

Previous Year Questionपिछले वर्ष का प्रश्न
Which command is used to test network connectivity between two hosts?
दो hosts के बीच network connectivity जाँचने के लिए कौन सा command उपयोग किया जाता है?
  1. tracert
  2. nslookup
  3. ping
  4. netstat
  1. tracert
  2. nslookup
  3. ping
  4. netstat
Solutionसमाधान
The ping command is used to test network connectivity between two hosts. It sends ICMP echo request packets to the destination host and measures the round-trip time for responses.
ping कमांड का उपयोग दो होस्ट के बीच नेटवर्क कनेक्टिविटी का परीक्षण करने के लिए किया जाता है। यह गंतव्य होस्ट को ICMP इको रिक्वेस्ट पैकेट भेजता है और प्रतिक्रियाओं के लिए राउंड-ट्रिप समय को मापता है।

Solving path: ping sends ICMP echo requests to test basic reachability. tracert (traceroute on Linux) shows the path packets take — hop by hop. nslookup resolves domain names to IP addresses. netstat shows active connections and listening ports. The question asks specifically about testing connectivity between two hosts — that's ping's primary job. Answer: ping.


Why this question: Tests the email protocol direction distinction — one of the highest-frequency protocol questions in IBPS PO computer sections.

Previous Year Questionपिछले वर्ष का प्रश्न
Which protocol is used for sending emails from a client to a mail server?
client से mail server पर emails भेजने के लिए कौन सा protocol उपयोग किया जाता है?
  1. POP3
  2. IMAP
  3. SMTP
  4. HTTP
  1. POP3
  2. IMAP
  3. SMTP
  4. HTTP
Solutionसमाधान
SMTP (Simple Mail Transfer Protocol) is used for sending emails from a client to a mail server and between mail servers. POP3 and IMAP are used for retrieving emails from servers.
SMTP (सिंपल मेल ट्रांसफर प्रोटोकॉल) का उपयोग क्लाइंट से मेल सर्वर और मेल सर्वर के बीच ईमेल भेजने के लिए किया जाता है। POP3 और IMAP का उपयोग सर्वर से ईमेल प्राप्त करने के लिए किया जाता है।

Solving path: Eliminate POP3 and IMAP immediately — both are for retrieving/reading mail, not sending. Eliminate HTTP — it's a web protocol, unrelated to email. SMTP is specifically the protocol for outbound email delivery: client to mail server, and between mail servers. Answer: SMTP.


Why this question: Tests OSI layer-to-device mapping — one of the top two most-tested networking concepts in IBPS PO computer awareness sections.

Previous Year Questionपिछले वर्ष का प्रश्न
Which networking device operates at the Data Link Layer of the OSI model?
कौन सा नेटवर्किंग डिवाइस OSI मॉडल की Data Link Layer पर काम करता है?
  1. Router
  2. Hub
  3. Switch
  4. Gateway
  1. Router
  2. Hub
  3. Switch
  4. Gateway
Solutionसमाधान
A switch operates at the Data Link Layer (Layer 2) of the OSI model. It uses MAC addresses to forward frames within the same network segment and creates separate collision domains for each port.
स्विच OSI मॉडल की डेटा लिंक लेयर (लेयर 2) पर कार्य करता है। यह समान नेटवर्क सेगमेंट के भीतर फ्रेम को फॉरवर्ड करने के लिए MAC पतों का उपयोग करता है और हर पोर्ट के लिए अलग कॉलिज़न डोमेन बनाता है।

Solving path: Apply the 1-2-3 lock. Hub = Layer 1. Switch = Layer 2. Router = Layer 3. The question asks for the Data Link Layer (Layer 2) device. Switch is the answer. Gateway operates at higher layers (often Layer 7). Router is Layer 3, not Layer 2. Answer: Switch.


Common Mistakes


Related Topics

Practice on SarkariRise

Sign up + get 3 free mocks →