CS Atlas GATE 2027
Computer Networks course
0 / 90 complete

Computer Networks/Phase 2 · Data Link Layer

Lesson 2.4.2 · Item 38 of 90

Ethernet efficiency; switched vs shared Ethernet

Read at your own pace. Try the questions before opening the answers.

On this page

Recall warm-up

  1. Minimum Ethernet frame size?
    Stuck? Peek at 2.4.1 Ethernet frame format, MAC address types, minimum and maximum frame sizes
    • Frame: preamble 7 + SFD 1 | dest 6 | src 6 | type/len 2 | data 46–1500 | CRC 4.
    • Frame 64–1518 bytes (preamble excluded); pad data to 46.
    • MTU = 1500 bytes.
    • First-byte LSB 1 → multicast; FF:…:FF → broadcast; else unicast.
    • 64 bytes = 512 bits = CSMA/CD slot time at 10 Mbps.

    Read lesson 2.4.1

  2. A at range 2 and B at range 4: P(A wins)?
    Stuck? Peek at 2.3.4 Binary exponential backoff; probability of winning
    • After the n-th collision: K uniform in {0, …, 2^min(n,10) − 1}; wait K × slot; abort after 16.
    • Slot = 512 bit times (51.2 µs at 10 Mbps).
    • P(A wins) = #{K_A < K_B} / (a·b); both at range 2: win 1/4, tie 1/2.
    • Capture: A at range 2 vs B at range 4 → A wins 5/8.

    Read lesson 2.3.4

  3. Send-and-wait utilisation in terms of a?
    Stuck? Peek at 1.3.3 RTT, bandwidth-delay product, utilisation and a = Tp/Tt
    • RTT = 2·Tp for tiny signals (add Tt / queuing if stated).
    • BDP = B × Tp bits in flight; B × RTT before any reply.
    • a = Tp / Tt.
    • Send-and-wait: U = Tt/(Tt + 2Tp) = 1/(1 + 2a); throughput = U·B.
    • To keep the link busy: about 1 + 2a units in flight.

    Read lesson 1.3.3

The Hook

Classic Ethernet had every computer clamped onto one coaxial cable — one big classroom with CSMA/CD as the speaking rule. Today each computer has its own cable to a switch, and collisions have vanished. GATE asks both: the efficiency formula for the shared case, and how switches change collision and broadcast domains.

Predict First

On a shared Ethernet, does efficiency get better or worse when the cable gets longer, with the same frame size and rate?

,

Worse. A longer cable means a larger Tp, so a = Tp/Tt grows: collisions take longer to notice and more time is lost in each contention period.

Core Concept

Efficiency of shared (CSMA/CD) Ethernet

Efficiency = fraction of time the channel carries successful frames when many stations are busy. The standard approximation:

η = 1 / (1 + 5a), with a = Tp/Tt (Tp over the longest path).

As a → 0 (short cable or long frames), η → 1; as a grows, η falls.

00.2630.5250.7881.0500.050.10.20.5110.80.6670.50.2860.16710.7560.6080.4370.2370.134a = Tₚ / Tₜefficiency
1/(1+5a)1/(1+6.44a)
Two common forms of the CSMA/CD efficiency formula.

Textbook variants

Different books derive slightly different constants. Kurose & Ross: 1/(1 + 5a). Tanenbaum's contention-slot model gives 1/(1 + 2e·a) ≈ 1/(1 + 5.44a). Forouzan quotes about 1/(1 + 6.44a). In this course the default is 1/(1 + 5a); if a question states a model or a different constant, use the question's.
SourceFormulaη at a = 0.1
Kurose (course default)1/(1 + 5a)0.667
Tanenbaum (2e)1/(1 + 5.44a)0.648
Forouzan1/(1 + 6.44a)0.608
Same idea, different constants (computed).

Shared vs switched Ethernet

  • Shared (bus or hub): one medium, CSMA/CD needed, everyone in one collision domain, half-duplex.
  • Switched: each host has a dedicated full-duplex link to a switch interface; the switch stores and forwards frames (Lesson 1.2.2) only toward the right interface. No collisions, so CSMA/CD is not needed, and each link gets its full rate.
Hub (shared)
all interfaces = one collision domain · half-duplex · CSMA/CD
Switch
each interface its own collision domain · full-duplex · no CSMA/CD
Switches end collisions.

Collision domains and broadcast domains

Collision domain: the set of interfaces whose transmissions can collide. Broadcast domain: the set reached by a link-layer broadcast (FF:FF:FF:FF:FF:FF).
DeviceCollision domainsBroadcast domains
Hub / repeaterdoes not split (1 for all interfaces)does not split
Switch / bridgeone per interfacedoes not split (forwards broadcasts)
Routerone per interfaceone per interface (stops broadcasts)
Switches split collision domains; only routers split broadcast domains.

Putting it together

  • Shared Ethernet efficiency falls with a: η ≈ 1/(1 + 5a).
  • Switches give each interface its own collision-free, full-duplex link.
  • Switches split collision domains; routers split broadcast domains.

Visual

RSWH1H2A1A2A3B1B2B3
Router R → switch SW → two hubs H1, H2 with 3 hosts each. Collision domains: H1 group, H2 group, SW–R link = 3. Broadcast domains on this side of R: 1.

Worked Examples

Easy

Shared Ethernet: 10 Mbps, 1000-byte frames, longest path 2500 m, v = 2 × 10⁸ m/s. Efficiency with 1/(1 + 5a)?

Show the full solution

Tt = 8000 / 10⁷ = 0.8 ms. Tp = 2500 / 2×10⁸ = 12.5 µs. a = 0.015625. η = 1/(1 + 0.078125) = 0.9275.

Medium

For a = 0.1, compute the efficiency with each textbook form.

Show the full solution

1/(1 + 0.5) = 0.667; 1/(1 + 0.544) = 0.648; 1/(1 + 0.644) = 0.608.

GATE

A router connects to a switch. The switch has two hubs attached (3 hosts on each) and two hosts attached directly. Count collision domains and broadcast domains among these devices (router's other side ignored).

Show the full solution

Collision domains: hub 1 group, hub 2 group, each directly attached host's link (2), and the switch–router link (1) → 1 + 1 + 2 + 1 = 5. Broadcast domains: the switch forwards broadcasts, so everything behind the router's one interface is 1 broadcast domain.

GATE Traps

  • Switched full-duplex Ethernet has no collisions — CSMA/CD efficiency formulas do not apply to it.
  • Switches do not split broadcast domains; routers do.
  • A hub with many hosts is still one collision domain.

Memory Hook

"Hubs share the floor, switches give everyone a private lane, routers build walls against shouting."

Connect the Dots

Phase 2 is complete: our frame can cross one link reliably and fairly. The packet inside still needs a route across many networks. Next (Phase 3): the network layer — what does the address that stays fixed from laptop to server look like?

Self-Test

  1. NAT

    Shared Ethernet with a = 0.2. Efficiency using 1/(1 + 5a)?

    Write your answer before opening the key.

  2. MCQ

    Which device splits broadcast domains?

    1. Hub
    2. Repeater
    3. Switch
    4. Router
  3. NAT

    A switch has 8 interfaces, each connected to one host. How many collision domains?

    Write your answer before opening the key.

  4. MSQ

    Which are true of switched full-duplex Ethernet?

    1. No collisions occur.
    2. CSMA/CD is not needed.
    3. All interfaces are one collision domain.
    4. Broadcast frames still reach every interface.
  5. NAT

    Shared Ethernet: T_t = 51.2 µs, T_p = 5.12 µs. Efficiency with 1/(1 + 5a) (3 decimals)?

    Write your answer before opening the key.

Rule Card

  • Shared Ethernet efficiency η = 1/(1 + 5a) (course default); variants 1/(1 + 5.44a), 1/(1 + 6.44a).
  • Switched full-duplex: no collisions, no CSMA/CD, full rate per link.
  • Collision domains: hub = 1; switch/router = 1 per interface.
  • Broadcast domains: only routers split them.

Concept Ledger

  • Ethernet efficiency 1/(1 + 5a) and variants
  • shared vs switched Ethernet
  • collision domain
  • broadcast domain

Answer Vault

Try the questions first. Open when you are ready to check.

Warm-up answers

  1. 64 bytes.
  2. 5/8.
  3. 1/(1 + 2a).

Self-test answers

  1. 0.5 — 1/(1 + 1) = 0.5.
  2. D — Routers do not forward link-layer broadcasts.
    • A: Hubs repeat everything.
    • B: Repeaters repeat everything.
    • C: Switches forward broadcasts to all interfaces.
  3. 8 — One per switch interface.
  4. ABD — Dedicated full-duplex links; broadcasts are flooded.
    • C: Each interface is its own collision domain.
  5. 0.666..0.667 — a = 0.1 → 1/1.5 = 0.667.

Flashcards

  1. Shared Ethernet efficiency (default)?
    Reveal answer1/(1 + 5a).
  2. Which device splits broadcast domains?
    Reveal answerA router.
  3. Collision domains on an 8-interface switch?
    Reveal answer8.

Exam shortcuts

  • η = 1/(1 + 5a) for shared Ethernet. — CSMA/CD with many active stations; course default unless the question states another constant.
  • Counting domains: each switch/router interface = one collision domain (a hub and everything on it = one); each router interface = one broadcast domain. — hubs, switches and routers only (no VLANs).

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.