Data Communication Components · Computer Networks

Connecting LANs

Watch lectures
SVGVector Architecture Diagram (SVG)
COMPUTER NETWORKS · Module 1★ High PriorityConnecting LANsIT Sem 6 · Code 100602 · Repeater, hub, bridge, switch, router, gatewayMNEMONICLayer 1 repeater / hub, Layer 2 bridge / switch, Layer 3 router, upper layers gateway.A switch splits collision domains; only a router (or VLAN) splits broadcast domains.Core BreakdownRepeaterLayer 1: regenerates a weakened signal, bit level, no filtering, extends length.Splits neither collision nor broadcast domains.HubLayer 1 multi-port repeater: every bit goes out of all other ports.All stations share one collision domain and one broadcast domain; half-duplex.BridgeLayer 2: filters by MAC address using a table learned from source addresses.Same segment: drop. Other segment: forward. Unknown or broadcast: flood.L2 switchMulti-port bridge in ASIC hardware: one collision domain per port, full-duplex.Store-and-forward checks CRC; cut-through reads 6 B; fragment-free reads 64 B.RouterLayer 3: forwards by IP address using tables built by RIP, OSPF, BGP.Does not forward broadcasts, so each interface is its own broadcast domain.GatewayTranslates protocols across all seven layers between incompatible networks.Example: IBM SNA mainframe network to a TCP/IP network.Diagram: Domains per DeviceDeviceCollisionBroadcastHub (L1)11Switch (L2)41Router (L3)44Gateway (L4-7)44Domains for a 4-port deviceSwitch MAC table (learned):AA:11 -> port 1BB:22 -> port 2 (age 300 s)Unknown dst -> flood all ports⚠️ Exam Traps & Viva Favorites① How does a switch learn?Backward learning: a frame arrives on port P withsource MAC S, so it stores S -> P with anaging timer in its MAC table.② Collision vs broadcast?Collision domain: where two sends clash; eachswitch port has its own. Broadcast domain: reachof an FF:FF frame; routers and VLANs split it.③ Store-and-forward vs cut?Store-and-forward buffers the whole frame andchecks CRC. Cut-through forwards after the destMAC: faster but it passes bad frames.Tip: hub 1+1, switch N+1, router N+NMaster Revision Table(learn it row by row!)DeviceOSI layerForwards onSplits collision domain?Splits broadcast domain?Repeater / HubLayer 1Electrical signal, bitsNo, one shared domainNo, one shared domainBridge / SwitchLayer 248 bit MAC addressYes, one per portNo, one shared domainRouterLayer 332 / 128 bit IP addressYes, one per portYes, one per interfaceGatewayLayers 4-7Application protocolsYesYesStore-and-forwardLayer 2Whole frame, CRC checkedHigher latencySame as switchCut-throughLayer 2After 6 B destination MACLowest latencySame as switchQUICK FACTSHub: 1 collision + 1 broadcast domain · 8-port switch: 8 collision + 1 broadcast domainBridge table entry = (source MAC, port, age) · unknown MAC means flood all portsRouter default: no Layer 2 broadcast (FF:FF:FF:FF:FF:FF) crosses interfacesVERIFIED★ Golden rule: switches cut collisions,routers cut broadcasts.

Connecting LANs: Network Interconnection Devices


1. Connecting Devices and the OSI Model

When Local Area Networks (LANs) grow or need to interconnect, specific hardware devices are employed. These devices operate at different layers of the OSI model:

MermaidDiagram
Rendering diagram…

2. Detailed Breakdown of Interconnecting Devices

A. Repeater (Layer 1 - Physical)

  • Function: Signals traveling along a cable attenuate (weaken) over distance. A repeater receives an attenuated electrical/optical signal, regenerates (cleans and restores) its original amplitude and timing, and retransmits it.
  • Key Characteristics:
    • Operates purely at the bit level without inspecting frames or headers.
    • Does NOT filter traffic: Forwarding is unconditional.
    • Does NOT separate collision domains or broadcast domains.
    • Extends physical network cable length limits.

B. Hub (Layer 1 - Multi-port Repeater)

  • Function: Acts as a central connection point in a physical star topology.
  • Operation: Any signal received on one incoming port is regenerated and broadcast to all other connected ports.
  • Limitation:
    • All connected stations share one single collision domain and one broadcast domain.
    • Half-duplex operation; collisions occur if two stations transmit simultaneously.

C. Bridge (Layer 2 - Data Link)

  • Function: Divides a large LAN into two or more smaller segments, filtering traffic based on hardware MAC addresses.
  • Operation:
    • Maintains a Forwarding Table (MAC Table) learned dynamically via backward learning (inspecting the source MAC of incoming frames).
    • If destination MAC is on the same segment, the frame is filtered (dropped).
    • If destination MAC is on another segment, the frame is forwarded to that port only.
    • If destination MAC is unknown or broadcast (FF:FF:FF:FF:FF:FF), it floods to all other ports.
  • Advantage: Separates collision domains, reducing contention and improving throughput.

D. Layer 2 Switch (Multi-port Bridge)

  • Function: Modern high-speed evolution of a transparent bridge.
  • Operation:
    • Employs dedicated hardware ASICs (Application-Specific Integrated Circuits) for wire-speed frame switching.
    • Microsegmentation: Every switch port is its own dedicated collision domain.
    • Supports Full-Duplex transmission (stations can transmit and receive at full wire speed simultaneously with zero collisions).
    • Uses forwarding techniques:
      1. Store-and-Forward: Receives entire frame, checks CRC checksum for errors; discards corrupt frames before forwarding.
      2. Cut-Through: Forwards frame immediately after reading the 6-byte destination MAC address; lowest latency, but propagates corrupt frames.
      3. Fragment-Free: Reads the first 64 bytes (detecting collisions) before forwarding.

E. Router (Layer 3 - Network)

  • Function: Interconnects completely different logical networks (e.g., LAN to WAN, Subnet A to Subnet B).
  • Operation:
    • Forwards packets based on Logical IP Addresses rather than MAC addresses.
    • Runs routing protocols (OSPF, RIP, BGP) to calculate optimal packet paths across complex internetworks.
    • Separates Broadcast Domains: Routers do not forward Layer 2 broadcasts (FF:FF:FF:FF:FF:FF) across interfaces by default, preventing broadcast storms.

F. Gateway (Application / Multi-layer)

  • Function: Connects two completely incompatible network architectures by translating protocols across all 7 layers (e.g., connecting an IBM SNA mainframe network to a TCP/IP network).

3. Collision vs. Broadcast Domain Summary

Device OSI Layer Forwards Based On Divides Collision Domain? Divides Broadcast Domain?
Repeater / Hub Layer 1 Electrical signal / bits No (1 shared domain) No (1 shared domain)
Bridge / Switch Layer 2 48-bit MAC Address Yes (1 per port) No (1 shared domain)
Router Layer 3 32/128-bit IP Address Yes (1 per port) Yes (1 per interface)
Gateway Layers 4–7 Application protocols Yes Yes

Frequently Asked Questions

QHow does a switch learn MAC addresses?

A switch uses Backward Learning: when a frame arrives on Port PP with Source MAC SS, the switch records the mapping (S→P)(S \rightarrow P) with an aging timer in its MAC address table.

QWhat is the difference between a Collision Domain and a Broadcast Domain?
  • Collision Domain: A group of devices where two concurrent transmissions collide. Switched ports isolate collision domains.
  • Broadcast Domain: The scope over which a broadcast frame travels. Only Routers and VLANs break broadcast domains.
QCompare Store-and-Forward vs. Cut-Through switching.

Store-and-forward buffers the entire frame and verifies the FCS CRC, ensuring zero error propagation at the cost of slight buffer latency. Cut-through reads only the destination MAC and immediately forwards, minimizing latency but allowing corrupt frames to propagate.

QWhich devices break collision domains and which break broadcast domains?

Bridges and switches break collision domains (one per port). Only routers (and VLANs) break broadcast domains. Hubs and repeaters break neither.

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.

← All Computer Networks modules