Computer Network Notes: LAN, WAN, Topology, Devices, OSI Model, IP Address and Protocols

⏱ 5 min read

Offices, banks and government services now run on networks, so network questions appear in Kharidar, Nayab Subba, Computer Operator and Computer Officer papers. This note covers network types, topologies, transmission media, devices, the OSI and TCP/IP models, addresses and common protocols.

1. What is a computer network?

A computer network is a group of computers and devices connected together to share data, resources and services. Benefits are resource sharing (one printer or internet line for many users), communication (email, chat, video calls), data sharing and central backup. A computer that gives services is a server; a computer that uses them is a client. In a peer-to-peer network every computer is equal.

2. Types of network by area

TypeFull formArea coveredExample
PANPersonal Area NetworkA few metres around one personBluetooth between phone and earphones
LANLocal Area NetworkOne room, building or campusNetwork of an office or school
MANMetropolitan Area NetworkA cityCable TV or city-wide network
WANWide Area NetworkCountries and continentsThe internet, the largest WAN

3. Network topology

Topology is the physical or logical layout in which devices are connected.

TopologyHow it is connectedKey point
BusAll devices on one main cable (backbone)Cheap, but a break in the backbone stops the network
StarEvery device connected to a central hub or switchMost common in LANs; if the hub fails, all stop
RingEach device connected to two others in a circleData moves in one direction; one failure can break the ring
MeshEvery device connected to every other deviceMost reliable but most costly; n(n-1)/2 links
TreeStar networks joined in a hierarchyUsed in large organisations
HybridA mix of two or more topologiesFlexible

4. Transmission media

  • Twisted pair cable: two insulated copper wires twisted together; used in LANs with the RJ-45 connector (telephone lines use RJ-11). UTP means Unshielded Twisted Pair.
  • Coaxial cable: a copper core with a metal shield; used for cable TV.
  • Optical fibre: carries data as light using total internal reflection; the fastest, with very little loss and no electrical interference.
  • Wireless (unguided) media: radio waves, microwaves, satellite, infrared, Bluetooth and Wi-Fi.

5. Network devices

DeviceWork
NIC (Network Interface Card)Connects a computer to a network; has a unique MAC address
HubSends incoming data to all connected devices (not intelligent)
SwitchSends data only to the correct device using the MAC address
RouterConnects different networks and chooses the best path using IP addresses
ModemModulator-Demodulator; converts digital signals to analogue and back
RepeaterStrengthens (regenerates) a weak signal to cover longer distance
BridgeJoins two LAN segments
GatewayConnects networks that use different protocols
Access pointLets wireless devices join a wired network (Wi-Fi)

6. OSI and TCP/IP models

The OSI (Open Systems Interconnection) model, made by ISO, divides network communication into 7 layers, from bottom to top:

No.OSI layerExample of work or device
1PhysicalCables, signals, hub, repeater
2Data LinkMAC address, switch, bridge
3NetworkIP address, routing, router
4TransportTCP and UDP, error control
5SessionOpens and closes sessions
6PresentationEncryption, compression, data format
7ApplicationHTTP, FTP, SMTP, DNS

Memory aid from layer 1 to 7: Please Do Not Throw Sausage Pizza Away. The TCP/IP model, used on the internet, has 4 layers: Network Access (Link), Internet, Transport and Application.

7. Addresses and protocols

  • IP address: a logical address of a device on a network. IPv4 is 32-bit, written as four numbers from 0 to 255, for example 192.168.1.1. IPv6 is 128-bit, written in hexadecimal.
  • MAC address: the physical address of a network card, 48-bit, written as six pairs of hexadecimal digits.
  • DNS (Domain Name System) changes a domain name such as loksewapathsala.com into an IP address.
  • DHCP gives IP addresses to devices automatically.
ProtocolFull formUse
HTTP / HTTPSHyperText Transfer Protocol (Secure)Opening web pages; HTTPS is encrypted
FTPFile Transfer ProtocolUploading and downloading files
SMTPSimple Mail Transfer ProtocolSending email
POP3 / IMAPPost Office Protocol 3 / Internet Message Access ProtocolReceiving email
TCPTransmission Control ProtocolReliable, connection-oriented delivery
UDPUser Datagram ProtocolFast, connectionless delivery, used for video calls and games
Telnet / SSHTeletype Network / Secure ShellRemote login (SSH is secure)

8. Transmission modes and speed

ModeDirectionExample
SimplexOne direction onlyRadio and TV broadcast, keyboard to computer
Half duplexBoth directions, but one at a timeWalkie-talkie
Full duplexBoth directions at the same timeTelephone and mobile call

Network speed (data rate) is measured in bits per second (bps): kbps, Mbps and Gbps. Bandwidth is the maximum amount of data a connection can carry in a given time.

📌 Key points to remember

  • LAN covers a building, MAN a city and WAN countries; the internet is the largest WAN.
  • Star topology is the most common; mesh is the most reliable and costly.
  • Optical fibre carries data as light and is the fastest medium.
  • A hub sends data to all, a switch to the right device, and a router connects different networks.
  • Modem means modulator-demodulator.
  • OSI has 7 layers (Physical to Application); TCP/IP has 4 layers.
  • IPv4 is 32-bit, IPv6 is 128-bit and a MAC address is 48-bit.
  • SMTP sends email, POP3 or IMAP receive it; DNS turns domain names into IP addresses.
  • Simplex: one way; half duplex: walkie-talkie; full duplex: telephone.
📝 Quiz

Test yourself: Computer Network Notes

20 questions on What is a computer network?, Network devices and Transmission modes and speed.

Loading quiz...

Leave a Comment

Your email address will not be published. Required fields are marked *

Loksewa Pathsala is an independent educational platform. It is not affiliated with the Public Service Commission (Lok Sewa Aayog) or the Government of Nepal. · लोक सेवा आयोगको आधिकारिक साइट होइन। · Sources & disclaimer
Scroll to Top