Electronics and Communication Engineering‹›⌂ 0:00 studied

Module 11 · 10 min read · Free chapter

Data communication and networks: topologies, OSI, switching and LANs

In short

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.

What are you preparing for? We show the practice and previous year questions of your exam.

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 nn nodes this needs
links=n(n−1)2,ports per node=n−1\text{links} = \frac{n(n-1)}{2}, \qquad \text{ports per node} = n - 1

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 6×52=15\dfrac{6 \times 5}{2} = 15 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:

ttrans=LRt_{\text{trans}} = \frac{L}{R}

for LL bits at a link rate RR bit/s. The propagation delay is the time for a bit to travel the distance dd at signal speed vv, about 2×1082 \times 10^8 m/s in cable and fibre:

tprop=dvt_{\text{prop}} = \frac{d}{v}

Queuing delay depends on traffic and processing delay on the router.

The bandwidth–delay product R×tpropR \times t_{\text{prop}} 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: ttrans=12 000107=1.2t_{\text{trans}} = \dfrac{12\,000}{10^7} = 1.2 ms and tprop=2×1062×108=10t_{\text{prop}} = \dfrac{2 \times 10^6}{2 \times 10^8} = 10 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 12e≈18.4%\dfrac{1}{2e} \approx 18.4\% throughput; slotted ALOHA, which allows sending only at slot boundaries, doubles this to 1e≈36.8%\dfrac{1}{e} \approx 36.8\%.

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:

Lmin⁡=2R tpropL_{\min} = 2R\,t_{\text{prop}}

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 2B+D2B + D = 144 kbit/s; primary rate is 30B+D30B + D (2.048 Mbit/s) in India and Europe and 23B+D23B + D in North America. GSM's signalling was built on ISDN ideas.

Worked example. A 10 Mbit/s Ethernet cable is 2500 m long with v=2×108v = 2 \times 10^8 m/s. Then tprop=12.5t_{\text{prop}} = 12.5 μs and Lmin⁡=2×107×12.5×10−6=250L_{\min} = 2 \times 10^7 \times 12.5 \times 10^{-6} = 250 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:

  1. Compare network topologies and transmission modes with examples.
  2. Explain the OSI and TCP/IP models, placing devices and protocols at their layers.
  3. Compare circuit, message and packet switching and compute packet delays.
  4. Explain Ethernet CSMA/CD and its frame, Wi-Fi CSMA/CA, ALOHA and ISDN.

Practice questions (our own, not previous-year questions).

  1. Explain the seven layers of the OSI model. At which layers do hubs, switches and routers operate? (12 marks)
  2. 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 v=2×108v = 2 \times 10^8 m/s. (10 marks)
  3. 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.
  • ttrans=8000106=8t_{\text{trans}} = \dfrac{8000}{10^6} = 8 ms.
  • tprop=3×1062×108=15t_{\text{prop}} = \dfrac{3 \times 10^6}{2 \times 10^8} = 15 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: n(n−1)2\dfrac{n(n-1)}{2} links, n−1n - 1 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.
  • ttrans=LRt_{\text{trans}} = \dfrac{L}{R}; tprop=dvt_{\text{prop}} = \dfrac{d}{v}.
  • Ethernet: preamble 10101010, SFD 10101011, 6-byte MACs, 46–1500 data, 4-byte CRC; minimum 64 bytes from Lmin⁡=2R tpropL_{\min} = 2R\,t_{\text{prop}}.
  • ALOHA 18.4%, slotted 36.8%; Wi-Fi CSMA/CA.
  • ISDN: B = 64 kbit/s; BRI 2B+D2B + D = 144 kbit/s; PRI 30B+D30B + D in India.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. A walkie-talkie works in which transmission mode?

  2. A fully connected mesh network has 8 nodes. The number of links required is:

  3. Which statement about mesh topology is correct?

  4. A network switch that forwards frames using MAC addresses operates at which OSI layer?

  5. Which of the following protocols uses UDP?

  6. Which OSI layer is responsible for routing packets between networks?

  7. The conventional telephone network uses:

  8. A 2000-bit packet is sent on a 1 Mbit/s link. The transmission delay is:

  9. In an IEEE 802.3 Ethernet frame, the start frame delimiter is:

  10. A 100 Mbit/s CSMA/CD network has a maximum one-way propagation delay of 5 μs. The minimum frame size for collision detection is:

  11. The maximum throughput of slotted ALOHA is about:

  12. The ISDN basic rate interface provides:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

How many links does a full mesh of n nodes need?

n(n − 1)/2 links, with n − 1 ports on every node; 8 nodes need 28 links.

Which protocols use UDP?

DNS queries, DHCP, SNMP, TFTP and real-time voice and video; HTTP, FTP, SMTP and Telnet use TCP.

What is the Ethernet start frame delimiter?

The byte 10101011, sent after seven preamble bytes of 10101010; its final 11 marks the start of the frame.

Why does Ethernet need a minimum frame size?

A sender must still be transmitting when news of a collision returns, so the frame must last twice the propagation time: L ≥ 2R·t_prop, giving 64 bytes.

More in this module: Wireless and networks

Official sources

Facts in this chapter were checked against these official sources.

  1. TNPSC June 2026 question paper, Electronics Engineering / Electronics and Communication Engineering (code 447), questions 11–15 and 174
  2. MPSC syllabus, Deputy Superintendent of Police / Assistant Commissioner of Police, Communication and Information Technology Department: digital communication (switching techniques) and advanced digital communication (networks, OSI model)