Module 11 · 10 min read · Free chapter
Data communication and networks: topologies, OSI, switching and LANs
A walkie-talkie is half duplex and a telephone full duplex. A full mesh of n nodes needs n(n − 1)/2 links. Switches work at OSI layer 2 and routers at layer 3; SNMP and DNS use UDP. Transmission delay is L/R and propagation delay d/v. Ethernet's start frame delimiter is 10101011, and slotted ALOHA reaches 36.8% throughput.
Start from zero: how devices talk
A network connects computers, phones and other devices so they can exchange data. The internet is a network of networks, linking billions of devices through cables, fibre, radio and satellites.
Electronics engineers build the physical side of this: the transmitters, cables, fibres, radios and switching hardware. They also need to understand how data is organised into frames and packets, how devices share a link and how networks are layered.
This chapter covers transmission modes and topologies, the OSI and TCP/IP models, switching and delay, and local area networks including Ethernet.
The computer science bank covers these topics in more depth, starting from layering, OSI and TCP/IP, and switching.
Why it matters. Network questions are a regular part of ECE technical papers; TNPSC 2026 asked five of them in a row.
Transmission modes and topologies
Data can flow in three transmission modes:
| Mode | Direction | Example |
|---|---|---|
| Simplex | one way only | keyboard to computer, TV broadcast |
| Half duplex | both ways, one at a time | walkie-talkie |
| Full duplex | both ways at once | telephone, modern Ethernet |
The topology is the layout of links between nodes.
- Bus: all nodes share one cable. It is cheap and simple, but a cable fault stops the whole network and collisions rise with traffic.
- Star: every node connects to a central hub or switch. A single cable fault affects only one node, but the centre is a single point of failure. This is the usual layout of office LANs.
- Ring: each node connects to two neighbours, and data travels round the ring, often controlled by a circulating token. A break can stop the ring unless a second ring is added.
- Mesh: every node has a dedicated link to every other node. With nodes this needs
Mesh is robust, private and free of traffic sharing, but expensive and bulky, so it is used in backbones where reliability matters most.
Networks are also grouped by size: a LAN covers a building or campus, a MAN a city, and a WAN a country or the world.
Worked example. A full mesh of 6 nodes needs links and 5 ports on each node.
Why it matters. Matching devices to transmission modes and properties to topologies are frequent one-mark questions.
Layers: the OSI and TCP/IP models
Networks split the job of communication into layers. Each layer offers a service to the one above and uses the one below, so a change in one layer, such as moving from copper to fibre, does not disturb the others.
The OSI reference model has seven layers, from bottom to top:
| Layer | Job | Unit and example |
|---|---|---|
| 1 Physical | bits as signals on the medium | bits; cables, hubs, repeaters |
| 2 Data link | framing, MAC addresses, error detection | frames; Ethernet, switches |
| 3 Network | logical addressing and routing | packets; IP, routers |
| 4 Transport | end-to-end delivery, ports | segments; TCP, UDP |
| 5 Session | opening and managing dialogues | |
| 6 Presentation | formats, encryption, compression | |
| 7 Application | services for users | HTTP, FTP, SMTP, DNS |
The TCP/IP model, used by the internet, has four or five layers; its application layer combines OSI's session, presentation and application layers.
At the transport layer, TCP sets up a connection, numbers bytes, acknowledges them and retransmits losses, so it is reliable and ordered; HTTP, FTP, SMTP and Telnet use it. UDP sends independent datagrams with no connection or retransmission, so it is fast and light; DNS queries, DHCP, SNMP, TFTP and live voice and video use it.
Devices are placed by the highest layer they understand. A hub or repeater just regenerates bits (layer 1). A switch reads MAC addresses and forwards frames only to the right port (layer 2). A router reads IP addresses and chooses paths between networks (layer 3).
In a client–server design, servers run continuously and serve many clients, and data can be backed up centrally. In peer-to-peer networks every machine is both client and server, which is cheap but weaker in security and central backup.
Why it matters. Layer order, which device works at which layer and which protocols use UDP are standard questions.
Switching and delay
A network must decide how data moves between nodes that are not directly linked. There are three switching methods:
- Circuit switching sets up a dedicated path for the whole conversation, as in the traditional telephone network. Once set up, delay is small and constant, but the reserved capacity is wasted during silences.
- Message switching stores each complete message at every node and forwards it when the next link is free, as in old telegraph and email relays. It needs large buffers and gives long delays.
- Packet switching breaks data into small packets that share links with other traffic and may take different routes, being reordered at the destination. It uses links efficiently, which is why the internet uses it, but delay varies with traffic. A virtual circuit variant fixes the route at the start while still sharing links.
A packet's delay at each hop has four parts. The transmission delay is the time to push all its bits onto the link:
for bits at a link rate bit/s. The propagation delay is the time for a bit to travel the distance at signal speed , about m/s in cable and fibre:
Queuing delay depends on traffic and processing delay on the router.
The bandwidth–delay product is the number of bits in flight on a link at once.
Worked example. A 1500-byte packet on a 10 Mbit/s link of 2000 km: ms and ms, so the total, ignoring queues, is 11.2 ms.
Why it matters. Comparing switching methods and computing transmission and propagation delay are favourite questions in ECE and CSE papers.
LANs: Ethernet, Wi-Fi, ALOHA and ISDN
When many stations share one channel, a medium access control (MAC) method decides who sends when.
The first random-access scheme was ALOHA, built for a radio network in Hawaii in 1971. A station simply sends, and resends after a random wait if there is a collision. Pure ALOHA reaches at most throughput; slotted ALOHA, which allows sending only at slot boundaries, doubles this to .
Ethernet (IEEE 802.3) uses CSMA/CD: listen before sending (carrier sense), and if a collision is detected while sending, stop, send a jam signal and retry after a random binary exponential backoff. Modern switched, full-duplex Ethernet has no collisions, but the frame format remains:
| Field | Size |
|---|---|
| Preamble | 7 bytes of 10101010 |
| Start frame delimiter (SFD) | 1 byte, 10101011 |
| Destination and source MAC addresses | 6 bytes each |
| Type or length | 2 bytes |
| Data | 46–1500 bytes |
| CRC (frame check sequence) | 4 bytes |
For a collision to be detected, a station must still be sending when the collision news returns from the far end. So the frame must last at least twice the propagation time:
This sets Ethernet's minimum frame size of 64 bytes.
Wi-Fi (IEEE 802.11) cannot detect collisions while transmitting, so it uses CSMA/CA: wait for the channel to be idle, add a random backoff, and optionally reserve the channel with RTS and CTS messages. Token ring (IEEE 802.5) passes a token round the ring, and only the holder may send, so there are no collisions.
ISDN (integrated services digital network) was the first all-digital telephone service. Its B channels carry 64 kbit/s of voice or data and its D channel carries signalling. Basic rate is = 144 kbit/s; primary rate is (2.048 Mbit/s) in India and Europe and in North America. GSM's signalling was built on ISDN ideas.
Worked example. A 10 Mbit/s Ethernet cable is 2500 m long with m/s. Then μs and bits.
Why it matters. The SFD pattern, minimum frame calculations, ALOHA efficiencies and CSMA/CD versus CSMA/CA are common in TNPSC and other state papers.
Descriptive lens
Written papers ask about this topic in four ways:
- Compare network topologies and transmission modes with examples.
- Explain the OSI and TCP/IP models, placing devices and protocols at their layers.
- Compare circuit, message and packet switching and compute packet delays.
- Explain Ethernet CSMA/CD and its frame, Wi-Fi CSMA/CA, ALOHA and ISDN.
Practice questions (our own, not previous-year questions).
- Explain the seven layers of the OSI model. At which layers do hubs, switches and routers operate? (12 marks)
- Compare circuit switching and packet switching. Find the total delay for a 1000-byte packet over a 1 Mbit/s link of 3000 km, with m/s. (10 marks)
- Explain CSMA/CD. Why must an Ethernet frame have a minimum length? (10 marks)
Answer plan for question 2.
- Define each method and contrast reserved paths with shared links; mention the telephone network and the internet.
- ms.
- ms.
- Total, ignoring queuing and processing, is 23 ms.
- Note that a faster link reduces only the transmission part.
Quick revision
- Simplex (keyboard), half duplex (walkie-talkie), full duplex (telephone).
- Mesh: links, ports per node; star is common; ring uses a token.
- OSI: physical, data link, network, transport, session, presentation, application.
- Hub layer 1, switch layer 2 (MAC), router layer 3 (IP).
- TCP reliable, connection-oriented; UDP for DNS, DHCP, SNMP, TFTP.
- Circuit (telephone), message (store and forward), packet (internet) switching.
- ; .
- Ethernet: preamble 10101010, SFD 10101011, 6-byte MACs, 46–1500 data, 4-byte CRC; minimum 64 bytes from .
- ALOHA 18.4%, slotted 36.8%; Wi-Fi CSMA/CA.
- ISDN: B = 64 kbit/s; BRI = 144 kbit/s; PRI in India.