Skip to content
GK24
GK NotesComputer AwarenessComputer Networks

Computer Networks: Topologies, Devices and OSI Layers

Computer Networks notes for competitive exams: LAN, MAN and WAN, the six topologies, network devices and their OSI layers, protocols, port numbers and IP addressing.

By · Published · 5 min read

Computer Networks: Topologies, Devices and OSI Layers — GK24 title card
Computer Networks: Topologies, Devices and OSI Layers — GK24 title card

A computer network is two or more computers, servers, printers or phones joined by a communication link so that they can exchange data and share hardware and software. One printer serving a whole office, a bank branch reading an account opened in another city, and a student opening a website all work because of a network. Examiners treat this chapter as the backbone of the Computer Awareness section: the types of network, the topologies, the devices and the layers come up in almost every SSC, Railway and Banking paper.

Types of network by the area they cover

Networks are classified first by how far they reach. The bigger the area, the slower and costlier the link becomes.

NetworkFull formArea coveredExample
PANPersonal Area NetworkAbout 10 metres around a personBluetooth between a phone and earphones
LANLocal Area NetworkA room, building or campusComputer lab joined by Ethernet cable
MANMetropolitan Area NetworkA cityCable television network of a city
WANWide Area NetworkA country or the whole worldThe internet, the largest WAN

A LAN is owned by one organisation and is the fastest of the four; a WAN is usually built on leased lines and satellite links owned by telecom companies. A network limited to one campus is sometimes called a CAN, and a wireless LAN is a WLAN, better known by its trade name Wi-Fi.

Network topologies

Topology means the shape in which the machines are wired. Six arrangements are asked.

TopologyArrangementPoint to remember
BusAll nodes tap one common backbone cableNeeds terminators at both ends; the cheapest, but one break stops the network
StarEvery node joins a central hub or switchMost common in modern LANs; failure of the hub kills the network
RingNodes form a closed loop, data moves in one directionUses token passing; a single break breaks the ring
MeshEvery node is linked to every other nodeA full mesh of n nodes needs n(n-1)/2 cables; most reliable, most costly
TreeStars joined to a root in a hierarchyAlso called a hierarchical topology
HybridTwo or more of the above combinedThe internet itself is a hybrid

Transmission media and modes

Data travels either through a cable, called guided or wired media, or through the air, called unguided or wireless media. Twisted pair cable, the cheapest, ends in an RJ-45 connector and carries almost all office LANs. Coaxial cable, once used for bus networks, still carries cable television. Optical fibre carries light instead of electricity, works on total internal reflection, gives the highest bandwidth and is immune to electromagnetic interference. Wireless media include radio waves, microwaves, infrared and satellite links.

Data can flow in three modes. In simplex mode it moves one way only, as from a keyboard to a computer. In half duplex mode it moves both ways but only one way at a time, as in a walkie-talkie. In full duplex mode both ends can send at the same time, as in a telephone call. Speed is measured in bits per second, so 1 Mbps means ten lakh bits every second.

Network devices

Each device works at a fixed level of the network and this is the favourite question of paper setters.

DeviceWorkOSI layer
RepeaterRegenerates a weak signal so it can travel furtherPhysical
HubJoins LAN nodes and broadcasts data to all of themPhysical
SwitchSends a frame only to the port of the destination MAC addressData Link
BridgeJoins two segments of the same networkData Link
RouterJoins different networks and chooses the path using IP addressesNetwork
GatewayJoins two networks using different protocolsAll layers
ModemModulator-demodulator: turns digital signals into analog and backPhysical
NICNetwork Interface Card; carries the machine's MAC addressData Link

The OSI and TCP/IP models

The OSI reference model, published by the International Organization for Standardization, divides communication into seven layers: Physical, Data Link, Network, Transport, Session, Presentation and Application, counted from the bottom. Students remember them by the sentence Please Do Not Throw Sausage Pizza Away. The unit of data has a different name at each level: a bit at the physical layer, a frame at the data link layer, a packet at the network layer and a segment at the transport layer. The practical TCP/IP model compresses the same work into four layers: Network Access, Internet, Transport and Application.

At the transport layer, TCP is connection oriented and delivers data in order with acknowledgement, while UDP is connectionless, faster and used for live video and voice. Common port numbers are 21 for FTP, 22 for SSH, 23 for Telnet, 25 for SMTP, 53 for DNS, 80 for HTTP and 443 for HTTPS.

Addressing on a network

A MAC address is the 48-bit physical address burned into the NIC and written as twelve hexadecimal digits. An IPv4 address is a 32-bit logical address written as four decimal numbers separated by dots, such as 192.168.1.1, and is divided into five classes: A, B and C for ordinary hosts, D for multicast and E for experiments. The block starting with 127 is reserved for loopback testing. Because IPv4 space ran short, IPv6 was defined with 128-bit addresses written as eight groups of hexadecimal digits separated by colons. The Domain Name System translates a readable name such as gk24.in into the numeric IP address of the server.

Network security in brief

A firewall, which may be hardware or software, filters traffic entering or leaving a network. Encryption scrambles data so only the holder of the key can read it, and a Virtual Private Network builds an encrypted tunnel across the public internet. The whole set of points through which an intruder could get in is called the attack surface, and shrinking it is the first step of network security. On mobile networks, GPRS, which stands for General Packet Radio Service, first carried packet data over 2G cellular links.

Exam Point of View

Examiners ask six things from this chapter. First, match the network to its area: PAN, LAN, MAN and WAN, with the internet as the largest WAN. Second, the topologies, especially the central hub of a star, token passing in a ring and the n(n-1)/2 cable formula of a mesh. Third, the OSI layer at which each device works, which is the single most repeated question; hub and repeater at layer one, switch and bridge at layer two, router at layer three. Fourth, expansions and port numbers: TCP, UDP, GPRS, NIC, HTTP 80, HTTPS 443, FTP 21, SMTP 25 and DNS 53. Fifth, address lengths in bits, where the trap is swapping the 48-bit MAC address with the 32-bit IPv4 address. Sixth, the three transmission modes with their stock examples, the walkie-talkie for half duplex and the telephone for full duplex.

Important Facts

Largest WANThe internet, a network of networks running on TCP/IP
Range of a PANAbout 10 metres, as in Bluetooth
Cables in a full meshn(n-1)/2 for n nodes
Topology using token passingRing topology
Commonest LAN topology todayStar, built around a hub or switch
Layers in the OSI modelSeven, from Physical up to Application
Layers in the TCP/IP modelFour: Network Access, Internet, Transport, Application
MAC address length48 bits, written as twelve hexadecimal digits
IPv4 and IPv6 address length32 bits and 128 bits
Loopback address blockAddresses beginning with 127
Ethernet standardIEEE 802.3
Wi-Fi and Bluetooth standardsIEEE 802.11 and IEEE 802.15
Connector on twisted pair cableRJ-45, an eight-pin jack
Connection oriented transport protocolTCP, which uses a three-way handshake
Full form of GPRSGeneral Packet Radio Service
Attack surfaceAll the points through which an intruder could enter a system

Practice MCQs on this topic

Q1.Computer AwarenessAsked in: Uttar Pradesh · 22 Dec, 2018, Shift 1Medium

In terms of computers, the set of ways in which an adversary can enter a system and can potentially cause damage is called:

  1. A.Attack Surface
  2. B.Attack Signature
  3. C.Attack Pattern
  4. D.Attack Path
Show answer
Correct answer: A. Attack Surface

The attack surface of a system is the total collection of every point at which an unauthorised person could try to enter it or pull data out of it: open ports, running services, user accounts, login pages, removable drives and even the employees who can be tricked.

Q3.Computer AwarenessAsked in: Delhi · 1 Aug 2021, Shift 3Easy

What is the full form of GPRS in mobile computing?

  1. A.General Packet Radio Service
  2. B.General Packet Route service
  3. C.General Package Radio Service
  4. D.General Packet Radiation Service
Show answer
Correct answer: A. General Packet Radio Service

GPRS was added to the 2G cellular system so that the same radio channel could carry data in packets instead of holding a circuit open the way a voice call does.

Q7.Computer AwarenessMedium

A MAC address is how many bits long?

  1. A.16 bits
  2. B.32 bits
  3. C.48 bits
  4. D.128 bits
Show answer
Correct answer: C. 48 bits

The Media Access Control address is the permanent physical address written into the network interface card by its maker, and it is 48 bits long, shown to users as twelve hexadecimal digits in six pairs such as 00:1A:2B:3C:4D:5E. The first half identifies the manufacturer and the second half the particular…

Q12.Computer AwarenessEasy

Which of the following is the largest Wide Area Network in existence?

  1. A.Ethernet
  2. B.The internet
  3. C.Bluetooth
  4. D.Intranet of a company
Show answer
Correct answer: B. The internet

The internet joins networks in every country through undersea cables, optical fibre on land and satellite links, all of them following the common TCP/IP rules, and no single organisation owns it, so it is rightly called the largest wide area network and a network of networks.

Frequently Asked Questions

What is the difference between a hub and a switch?

A hub is a physical layer device that copies an incoming signal to every other port, so all machines receive traffic meant for one of them and collisions are common. A switch is a data link layer device that reads the destination MAC address and forwards the frame only to the port where that machine sits, which saves bandwidth and avoids collisions. This is why switches replaced hubs in offices.

Is a router the same thing as a modem?

No. A modem converts digital signals into analog form and back so that data can travel over a telephone line, cable or fibre link, and it is the point where the service provider's line ends. A router works at the network layer, reads IP addresses and decides the path for each packet between networks. Home devices often combine both functions in one box, which is why the two names get mixed up.

Which topology is the most reliable and why?

The mesh topology, because every node has a direct link to every other node, so a broken cable only removes one path and the traffic takes another. The price of that reliability is cost: a full mesh of n nodes needs n(n-1)/2 cables and n-1 ports on every machine, so it is used only for backbones and critical links, not for ordinary offices.

How many layers does the OSI model have and how are they remembered?

Seven. Counting from the bottom they are Physical, Data Link, Network, Transport, Session, Presentation and Application, remembered by the sentence Please Do Not Throw Sausage Pizza Away. The practical TCP/IP model does the same work in four layers, and exams sometimes ask which OSI layers the TCP/IP application layer covers, the answer being the session, presentation and application layers together.

Why was IPv6 introduced when IPv4 was already working?

An IPv4 address is only 32 bits long, which allows about 429 crore addresses in all, and the growth of phones, servers and smart devices exhausted that supply. IPv6 uses 128-bit addresses written as eight groups of hexadecimal digits separated by colons, which gives a practically unlimited pool, and it also simplifies the header and builds in support for encryption.

What is the difference between the internet, an intranet and an extranet?

The internet is the public global network open to everyone. An intranet uses the same technology but is closed to one organisation, carrying its circulars, attendance and internal portals. An extranet extends part of that private network to trusted outsiders such as suppliers, dealers or branch partners, usually through a login over an encrypted link.

Sources

View all