අන්තර්ගතයට යන්න
mcqdinethlive
SPARK · UNIT 6

Layer 2 and Layer 3 switches 101

A Layer 2 switch forwards frames by MAC address inside one LAN, and a Layer 3 switch also routes packets by IP address between networks. Why both exist, where they work today, and the past paper questions that test them.

සිංහලෙන් කියවන්න

A Layer 2 switch and a Layer 3 switch differ in the address they read. A Layer 2 switch reads the MAC address in a frame and sends the frame to one port inside one LAN (6.5, 6.6). A Layer 3 switch also reads the IP address in a packet and routes it between networks, as a router does (6.7). The Teachers' Guides teach one switch and one router, and they do not name these two kinds (Teachers' Guide 6.5, page 152) (ගුරු අත්පොත 6.5, පිටුව 168).

Both kinds exist because one flat LAN does not grow well. A school can split its switches into VLANs for the office, the labs and the Wi-Fi. Each VLAN is a separate LAN, so a Layer 3 switch at the centre routes between them at full port speed. A router at the edge still joins the school to the ISP. Large data centres go further and make almost every link a Layer 3 link.

The papers test this split. 2025 P-I Q19 asks the basic job of a switch, and the official key is to forward frames by MAC address. 2019 (New Syllabus) P-I Q35 describes a switch with VLAN settings that uses "frames and packets", and only a switch with Layer 3 functions does that. For Paper II, remember one fact: at a Layer 3 hop, the IP addresses stay the same and the MAC addresses change.

The hop, the VLAN design, the uses in 2026 and the full question list are in the full breakdown.

මේ Spark එක බෙදාගන්න

A/L ICT කරන යාළුවෙකුට යවන්න.

තවත් Sparks

  1. English

    Planning an A/L ICT second attempt

    A low 2026 A/L ICT result is a map of gaps, not an end. Six units carry 73.4% of the marks, and every paper for the plan is free on this site.

  2. English

    Sequential search in Python 101

    A sequential search returns inside the loop on a match and gives the not found value only after the loop. 2026 Paper II Q9(c) shows where that line goes.

  3. English

    Normalisation by dependencies 101

    The normal form of a table comes from its arrows. Find the key, draw who decides each column, and the kind of arrow names the normal form and the split.

All Sparks