The Link Layer, LANs and Wireless Access

Learn how data crosses each individual link of a network. Detect transmission errors with parity, checksums and cyclic redundancy checks; compare the ways many devices share one channel; and follow frames through Ethernet LANs with MAC addresses, ARP, self-learning switches and VLANs. See how data center networks connect thousands of servers, trace a web request through every layer, and explain how Wi-Fi and 4G and 5G cellular networks connect devices that move.

IntermediateLesson 7 of 8 in Computer Networks Course

What you will learn

  1. Describe the services the link layer gives a frame on each hop, and use parity, checksums and cyclic redundancy checks to detect, and in some cases correct, bit errors.
    • Describe link-layer services and where they run
      Explain how frames move hop by hop across links, which services a link-layer protocol can offer, and why the link layer is built into network adapters.
    • Detect and correct errors with parity and checksums
      Add and check parity bits and Internet checksums, and explain which error patterns each scheme catches and which it misses.
    • Compute and check a cyclic redundancy check
      Use modulo-2 division by a generator to compute the CRC bits for a frame, check a received frame, and explain which errors a CRC detects.
  2. Compare the three families of protocols that let many nodes share a broadcast channel, and calculate how efficiently each uses the channel.
    • State the multiple access problem and divide a channel
      Explain why nodes on a shared channel need a multiple access protocol, list what an ideal protocol achieves, and divide a channel by time, frequency or code.
    • Analyze ALOHA and slotted ALOHA
      Describe how random access protocols recover from collisions and calculate the efficiency of slotted and pure ALOHA.
    • Use carrier sensing, collision detection and backoff
      Explain how CSMA and CSMA/CD reduce wasted transmissions, apply binary exponential backoff, and estimate the efficiency of CSMA/CD.
    • Take turns with polling, token passing and cable access
      Explain how taking-turns protocols avoid collisions, weigh their costs, and describe how cable internet combines all three families of multiple access.
  3. Use MAC addresses and ARP to deliver frames, read an Ethernet frame, explain how switches learn where hosts are, and divide one physical LAN into virtual LANs.
    • Use MAC addresses and ARP
      Read and interpret MAC addresses, and use ARP to find the MAC address for an IP address, both on the local subnet and through a router.
    • Read the Ethernet frame and its service
      Identify the fields of an Ethernet frame, calculate padding and overhead, and describe the connectionless, unreliable service Ethernet provides.
    • Explain how switches learn, filter and forward
      Trace how a self-learning switch builds its table and decides whether to filter, forward or flood each frame, and compare switches with routers.
    • Divide a LAN with VLANs
      Explain why one flat LAN causes problems, how port-based VLANs and 802.1Q trunks divide it, and how traffic moves between VLANs.
  4. Describe how large data centers connect thousands of servers, and trace a complete web page request from a newly connected laptop through every layer of the protocol stack.
    • Explain data center network design
      Describe the hierarchy of switches and routers in a data center, calculate oversubscription and fat-tree sizes, and explain multipath routing and current design trends.
    • Trace a web page request through every layer
      Follow a laptop from joining a network to receiving a web page, naming every protocol, address and device involved at each step.
  5. Describe what makes wireless links different from wires, how Wi-Fi networks are organized and joined, and how the 802.11 protocol shares the channel and delivers frames.
    • Describe wireless links and network types
      Name the parts of a wireless network, classify wireless networks, and explain how path loss, interference, multipath, signal-to-noise ratio and hidden terminals shape wireless protocols.
    • Explain Wi-Fi architecture and association
      Describe the 802.11 standards and their frequency bands, the basic service set, channels and SSIDs, and the steps a station takes to join a Wi-Fi network.
    • Explain the 802.11 MAC protocol and frame
      Apply CSMA/CA with acknowledgments and RTS/CTS, read the four address fields of an 802.11 frame, and explain mobility within a subnet and power management.
  6. Describe the architecture and radio access of 4G and 5G networks, and explain how networks route data to devices that move between cells and between networks.
    • Describe 4G LTE architecture and radio access
      Name the parts of a 4G LTE network, follow a device as it attaches, and explain how tunnels and OFDM resource blocks carry its data.
    • Compare 5G with 4G and with Wi-Fi
      Describe the goals, radio frequencies and core network of 5G, map 5G core functions to their 4G counterparts, and compare cellular access with Wi-Fi.
    • Explain mobility management and handover
      Explain how networks keep a moving device reachable with indirect and direct routing, how a 4G handover works, and how mobility and wireless losses affect TCP.

Link Layer study guide

6 chapters

1

Explain what the link layer does and detect transmission errors

Each network hop has its own delivery problem: where a frame begins, who can send it and how a receiver recognizes damaged bits. Link-layer services solve those local problems while the network layer chooses the wider path. Parity, checksums and CRCs show how a small amount of extra information can expose errors, and why detecting damage is different from repairing it or guaranteeing that a message is authentic.

A datagram may cross Wi-Fi, Ethernet and several router links on its way to a server. The link layer handles each local crossing. Its packet, a frame, wraps the datagram in a header and usually a trailer.

Follow the next hop

A node is a device running a link-layer protocol: a host, router, switch or access point. A link connects adjacent nodes. The network layer chooses where the datagram should go next; the link layer delivers it across the selected link.

Imagine a laptop sending through an access point and a campus router. The laptop first sends an 802.11 frame to the AP. The AP bridges the traffic onto Ethernet. The campus router removes the incoming frame, examines the IP destination and builds a frame suitable for its outgoing link. A switch within the Ethernet LAN forwards a frame without replacing its source and destination MAC addresses. A router creates a new link-layer envelope for the next network.

Four services, different choices
ServiceWhat it contributes
FramingMarks the unit of transmission and carries addresses and check bits.
Link accessDecides when an interface may use a shared medium.
Reliable deliveryUses local acknowledgments and retransmissions to recover losses.
Error detection or correctionIdentifies damaged bits or repairs them with added redundancy.

Protocols choose the services their links need. Ethernet checks a frame's CRC and discards a damaged frame without acknowledging it. Wi-Fi acknowledges correctly received unicast data frames; a missing ACK can trigger a local retry. Wireless errors are common enough that recovering on the wireless hop can save the delay of an end-to-end TCP retransmission. A successful Wi-Fi exchange still does not promise that a datagram will survive all later links.

Shared and dedicated channels

A point-to-point link joins two endpoints, such as a host and one switch port. A shared or broadcast medium supports several transmitters, as on a Wi-Fi channel or a cable internet upstream. They need rules for sharing airtime. A shared channel does not guarantee that all stations can hear each other: obstacles and distance can hide wireless transmitters.

Full duplex lets both endpoints send at the same time. Half duplex lets only one send at a time. A modern switched Ethernet host link is normally full duplex; Wi-Fi stations share radio airtime.

Where the work happens

The network interface controller (NIC) performs framing, medium access and error checks in hardware at line speed. Operating-system software supplies datagrams and addressing information, handles interrupts and passes received datagrams upward. To send, the NIC builds the frame, computes check bits, follows the access rules and transmits. To receive, it checks the frame and extracts the datagram if the frame is acceptable.

Keep the two address scopes separate. Link-layer addresses identify the sender and receiver for a local delivery. IP source and destination addresses normally identify the endpoints across the routed path; NAT can rewrite them.

Key Takeaways

  • A frame encapsulates a datagram for local delivery.
  • The network layer selects the next hop; the link layer crosses its link.
  • Ethernet detects errors without link-layer retries; Wi-Fi retries unacknowledged unicast data.
  • A NIC combines fast hardware operations with operating-system support.

1.2 Parity, repair and the Internet checksum

Error checks add information that the receiver can test. A failed check proves damage; a passing check means that the scheme found no error. Different checks miss different patterns.

Count ones with parity

With even parity, choose a bit that makes the total count of ones even. The data 1101011 has five ones, so append 1: the transmitted sequence is 11010111. If one bit flips, the count becomes odd and the receiver detects it. An odd number of flips always changes parity. An even number preserves it, including two flips that change a zero to one and a one to zero.

Two-dimensional parity checks both rows and columns of a block. For rows 1011, 0110 and 1100, the even row-parity bits are 1, 0 and 0. Column-parity bits are 0, 0, 0 and 1; a corner bit completes parity for the check bits. If row 2 becomes 0100, row 2 and column 3 fail. Their intersection locates the changed bit, which the receiver flips back.

The repair rule is for a single-bit error. Two-dimensional parity detects all one-, two- and three-bit error patterns, but multiple failures need not identify a unique repair. Four flipped bits at the corners of a rectangle change two bits in each affected row and column. Every parity check then passes.

Repair without a round trip

Forward error correction (FEC) sends enough redundancy for the receiver to recover some damaged data without asking for another copy. This is useful when a retransmission would arrive too late, as with real-time traffic or a long satellite round trip. Extra check bits consume capacity even when no error occurs. Modern FEC codes offer stronger protection than the simple row-and-column scheme.

Add 16-bit words

The Internet checksum uses ones' complement addition. Add the 16-bit words, then wrap any overflow carry around into the low-order end. Invert every bit of the final 16-bit sum to form the checksum.

For 0x8F3A, 0x6C21 and 0x1E07:

  1. Add the first two words: 0x8F3A + 0x6C21 = 0xFB5B.
  2. Add the third: 0xFB5B + 0x1E07 = 0x11962.
  3. Fold the carry: 0x1962 + 0x0001 = 0x1963.
  4. Invert the bits: the checksum is 0xE69C.

The receiver includes the checksum in its sum. Here, 0x1963 + 0xE69C = 0xFFFF, so the check passes. Dropping the overflow would produce the wrong checksum; wrapping is part of the arithmetic.

The checksum is cheap in software and is used by IPv4, TCP and UDP. Its coverage differs: IPv4 checks its header; TCP and UDP cover their transport data and a pseudo-header. Swapping complete 16-bit words leaves the sum unchanged, so the checksum cannot detect that reordering. Ethernet and Wi-Fi use a stronger CRC computed efficiently in adapter hardware.

Key Takeaways

  • A single parity bit detects odd numbers of flips and misses even numbers.
  • Two-dimensional parity locates one flipped bit, but cannot generally repair multiple flips.
  • FEC trades extra transmitted bits for recovery without retransmission.
  • Checksum overflow wraps around before the sum is complemented.
  • A passing check does not prove that the data is unchanged.

1.3 Build and verify CRC bits

A cyclic redundancy check (CRC) treats bits as coefficients in a polynomial calculation. You can compute it directly with bit patterns: shifts and exclusive OR replace ordinary multiplication and subtraction.

Set the check width

Sender and receiver agree on a generator, G. A generator with r + 1 bits produces r check bits. For G = 1011, r is 3. The sender chooses those three bits so that data followed by the check bits divides exactly by G in modulo-2 arithmetic.

Modulo-2 addition and subtraction are both XOR. Equal bits give 0; unequal bits give 1. Thus 1011 XOR 0101 = 1110. There are no carries or borrows. Appending r zeros shifts a data pattern D left by r places, equivalent to multiplying by 2r.

Work the division

Use D = 11010011 and G = 1011.

  1. Append three zeros: 11010011000.
  2. Starting at the leftmost 1, align the leftmost generator bit with it and XOR.
  3. Move right to the next remaining 1 and repeat. Skip leading zeros.
  4. Stop after processing the data positions; the last three bits are the remainder R.

The successive full-width patterns are:

11010011000
01100011000
00111011000
00010111000
00000001000
00000000011

The remainder is 011. Keep its leading zero: the check field always has three bits. Replace the appended zeros with this remainder and transmit 11010011011.

Check what arrived

The receiver divides the complete received sequence by the same generator. It does not append another set of zeros. Dividing 11010011011 gives remainder 000, so no error is detected. If the third bit changes, the received sequence becomes 11110011011; its remainder is 010, so it is rejected.

This works because the valid transmitted pattern is a multiple of G. An error changes that pattern. The receiver detects the change unless the error pattern is also a multiple of G.

Know the protection

A suitable degree-r generator detects every burst error whose span is at most r bits. For longer random bursts, the chance of an undetected error is about 2−r. Generators containing the factor x+1 also detect every odd number of flips. These are different guarantees: burst length is the distance from the first changed bit to the last, including unchanged bits between them.

Ethernet and Wi-Fi use a 32-bit CRC, carried as a four-byte frame check sequence (FCS). Its random long-burst miss probability is about one in 4.3 billion. CRC-32 detects up to three flipped bits in an Ethernet-size frame. Hardware shift registers and XOR gates can compute it as bits pass through the adapter.

A CRC detects accidental damage; it does not authenticate a sender. Someone deliberately altering a frame can calculate a new CRC. It also supplies no automatic repair: Ethernet drops a bad frame, while Wi-Fi's missing ACK can cause a retry.

Key Takeaways

  • For an r + 1 bit generator, append r zeros and retain an r-bit remainder.
  • CRC division uses XOR without carries or borrows.
  • The receiver divides the complete received frame and rejects a nonzero remainder.
  • A degree-r CRC detects every burst spanning at most r bits.
  • CRC error detection is neither error correction nor authentication.
2

Share one channel with multiple access protocols

A shared channel has one pool of capacity and several possible senders. Reserving shares prevents contention but can waste idle capacity; allowing independent attempts makes light traffic efficient but creates collisions. Time, frequency, codes, carrier sensing and scheduled turns offer different tradeoffs. The useful comparison is how much successful traffic each method carries, how long a ready node waits and what coordination can fail.

2.1 Divide access by time, frequency or code

Several interfaces sharing one channel need a rule for who sends. If transmissions overlap at a receiver and cannot be decoded, a collision wastes channel time. A medium access protocol coordinates the competing senders.

What would ideal sharing achieve?

For a channel of rate R, one active sender should get all of R. With M active senders, each should average R/M. Coordination should be simple, inexpensive and decentralized, without a vulnerable controller or synchronized clocks. Real protocols trade among these aims.

Three families make different choices: channel partitioning reserves shares, random access allows attempts and resolves collisions, and taking turns grants temporary permission to send.

Reserve time or frequencies

TDMA assigns one slot per node in each repeating time frame. Each transmission uses the full channel rate during its slot, but a node's long-run share is R/N for N assigned nodes. Four nodes sharing 1 Gb/s each average 250 Mb/s. If three have no data, their fixed slots remain empty; the fourth still averages 250 Mb/s.

FDMA assigns a separate frequency band to each node. The node can transmit continuously in its band, but an equal division again gives R/N. Silence wastes a reserved band just as it wastes a TDMA slot.

MethodResource assignedMain coordination need
TDMAA recurring time slotAgreement on slot boundaries
FDMAA frequency bandSeparation of assigned bands
CDMAA spreading codeSuitable codes and received power control

Fixed partitioning prevents contention among assigned users, but bursty traffic often leaves shares idle while another sender has a queue.

Separate overlapping signals with codes

CDMA represents a data bit as +1 for bit 1 or −1 for bit 0. Multiply that value by a sender-specific sequence of chips, each +1 or −1. Simultaneous chip sequences add in the channel.

Take codes c1=(1,1,1,1) and c2=(1,−1,1,−1). Their inner product is zero, so they are orthogonal. If sender 1 transmits +1 and sender 2 transmits −1, their chip sequences are (1, 1, 1, 1) and (−1, 1, −1, 1). The received sum is (0, 2, 0, 2).

To decode sender 1, multiply received chips by its code, add, and divide by four: (0+2+0+2)/4=1. Sender 2's calculation is (0−2+0−2)/4=−1. Each code removes the other sender's contribution in this ideal model.

Actual systems need careful power control so that a nearby strong signal does not overwhelm a distant weak one. Orthogonality is a property of code pairs, not a promise that arbitrary radio signals separate perfectly. CDMA underpinned 3G access; LTE and 5G use OFDM-based access, with LTE's uplink using the related SC-FDMA scheme.

Key Takeaways

  • Ideal access gives one active node the whole rate and shares it fairly under load.
  • Fixed TDMA and FDMA shares remain reserved when their owners are idle.
  • CDMA spreads each bit with a code and decodes by correlation.
  • Orthogonal codes have zero inner product.
  • Power control matters when received CDMA signal strengths differ.

2.2 Find the useful fraction of an ALOHA channel

Random access lets a node transmit without first reserving a share. A collision is followed by an independently chosen random delay. Randomness helps senders stop repeating the same collision together.

Add slot boundaries

In slotted ALOHA, equal-length frames fit exactly into slots of L/R seconds. Nodes synchronize their clocks and begin only at slot boundaries. A new frame uses the next slot. After a collision, a waiting node attempts each later slot with probability p.

A slot has three possible outcomes: no node transmits, exactly one transmits successfully, or several collide. Making p very small reduces collisions but creates empty slots. Making it too large fills slots with competing attempts.

Derive success probability

Suppose N nodes always have frames and attempt independently with probability p. For one named node to succeed, it must transmit and all N − 1 others must remain silent. Its success probability is p(1−p)N−1. Any one of the N nodes can be that sole sender, giving total efficiency

η=Np(1−p)N−1.

With N = 10 and p = 0.1, the value is 10(0.1)(0.9)9≈0.387. A 100 Mb/s channel therefore carries about 38.7 Mb/s of successful frames in aggregate. This is not 38.7 Mb/s for each node. Symmetric saturated nodes share that successful capacity.

The best attempt probability is p=1/N. As N grows, the maximum useful fraction approaches 1/e≈0.368. The missing fraction includes both collisions and empty slots. Random access has overhead even when all senders are ready.

Remove synchronization

Pure ALOHA sends whenever a frame is ready, without slots. Suppose a frame takes T seconds. Another transmission beginning just before it can overlap its start; one beginning before it finishes can overlap its end. The vulnerable interval spans 2T.

Slots remove partial overlaps by forcing every start to a boundary. In the standard saturated probability model, a pure-ALOHA sender succeeds with probability p(1−p)2(N−1), and the large-population maximum aggregate efficiency is 1/(2e)≈0.184. Pure ALOHA is simpler to coordinate but has about half the best throughput of slotted ALOHA.

FeatureSlotted ALOHAPure ALOHA
Start timeSlot boundaryAny time
Vulnerable intervalOne frame timeTwo frame times
Large-population maximumAbout 37%About 18%

A single active sender can use every slot in slotted ALOHA. The 37% limit describes many competing saturated nodes, not a physical ceiling on every use of the protocol. ALOHA began as an island radio network in Hawaii; its contention-and-retry idea also appears in cable and cellular access requests.

Key Takeaways

  • A successful slotted-ALOHA slot contains exactly one transmission.
  • Aggregate success probability is Np(1 − p)^(N − 1).
  • The optimal p is 1/N in the symmetric saturated model.
  • Pure ALOHA has a two-frame vulnerable interval.
  • The familiar 37% and 18% limits concern large competing populations.

2.3 Sense the carrier and recover from collisions

Carrier sense multiple access (CSMA) makes a node listen before transmitting. Collision detection (CD) makes a transmitting node stop when it detects a collision. Listening improves efficiency but cannot eliminate the delay before a distant signal arrives.

Why an idle channel can still collide

If B begins sending at one end of a cable, D at the other end may still hear silence. D can begin during that propagation interval, producing a collision. With CSMA/CD, adapters monitor the medium while sending. On detecting a collision, an adapter stops the frame, sends a jam signal and schedules a retry.

Choose a random retry delay

After collision n for the same frame, binary exponential backoff chooses an integer K uniformly from 0 through 2m−1, with m=min⁡(n,10). The delay is K times 512 bit times. The range doubles after successive early collisions, spreading competing retries over more possibilities. The adapter abandons a frame after 16 unsuccessful attempts.

At 100 Mb/s, one bit takes 10 ns. A 512-bit slot therefore lasts 5.12 μs. After the third collision, K can be 0 through 7, so the longest wait is 7(5.12)=35.84 μs. At 10 Mb/s, the same 512 bit times last 51.2 μs. A bit-time count is not a fixed number of seconds across link speeds.

Check the network's timing

Collision detection works only while the sender is still transmitting. A minimum frame must outlast the worst-case trip to a distant collision and back. Classic Ethernet's 64-byte minimum supplies 512 bit times.

For a 2 km span and signal speed 2×108 m/s, the round-trip propagation time is 4000/(2×108)=20 μs. That exceeds a 100 Mb/s slot's 5.12 μs, even before device delays. A minimum frame could finish too early. The propagation-only distance bound is about 512 m; real shared-network limits must also allow for hubs and adapters.

Estimate efficiency

A common approximation is

η≈11+5dprop/dtrans,

where propagation delay is one-way across the network and transmission delay is the time to send a maximum-size frame. For 200 m at the same signal speed, propagation takes 1 μs. A 1,518-byte frame at 100 Mb/s takes 1518(8)/108=121.44 μs. Substitution gives about 0.96, or 96% efficiency. Smaller propagation delay and longer frames reduce the relative cost of contention.

Modern switched, full-duplex Ethernet has no shared-medium collisions and does not run CSMA/CD. Ethernet at 10 Gb/s and above is full duplex only. Wi-Fi also senses the carrier, but uses collision avoidance: a transmitting radio cannot reliably detect another station's much weaker signal, and hidden stations may be out of hearing range.

Key Takeaways

  • Carrier sensing leaves a collision window while signals propagate.
  • After collision n, backoff uses K from 0 through 2^min(n,10) − 1.
  • A 512-bit slot lasts 5.12 μs at 100 Mb/s.
  • Collision detection requires the sender to outlast the worst-case round trip.
  • The CSMA/CD efficiency estimate compares propagation with frame transmission time.
  • Full-duplex switched Ethernet does not use CSMA/CD.

2.4 Grant turns and combine access methods

Taking-turns protocols try to give a lone sender nearly the whole channel while dividing capacity fairly when many senders are active. They avoid repeated collisions by controlling permission to transmit.

Ask each sender or pass permission

In polling, a controller invites nodes to send in sequence, often with a limit on frames per turn. The limit prevents one busy node from keeping everyone else waiting. Poll messages consume airtime, and a ready node may wait while the controller checks idle nodes. The controller is also a single point of failure. Classic Bluetooth uses centrally coordinated access in a piconet.

In token passing, a small control frame circulates in a fixed order. Holding the token permits a node to send a bounded amount. A node with no data passes it onward promptly. No central poller is needed, but the protocol needs procedures for a lost token or a break in the logical cycle. Token Ring and FDDI used this approach.

Access familyLight loadHeavy load
Fixed partitioningSilent nodes leave shares unusedAssigned users send without collisions
Random accessOne node can use the full channelCollisions consume increasing capacity
Taking turnsControl messages add delayBounded turns share capacity without contention for data

On a ten-node channel with only node 7 active, fixed TDMA grants it one tenth of the time. Slotted ALOHA can let it use every slot. Polling approaches the full rate but spends some time polling the nine silent nodes.

Follow cable upstream access

DOCSIS connects cable modems to a cable modem termination system (CMTS). Frequency resources separate channels. On an ordinary downstream channel, the CMTS is the single sender. On an upstream channel, many modems compete to reach that same CMTS.

The upstream is divided into minislots. A downstream MAP message announces which upstream opportunities belong to which modems. The CMTS can give one modem consecutive minislots for a data burst, then give the next opportunity to another modem.

A modem with queued data can send a short bandwidth request in a contention opportunity. Requests can collide. The modem monitors later MAPs for its request's outcome. Once the acknowledgment time has passed its request and no grant or pending grant covers it, the modem retries using a truncated binary exponential backoff. Merely lacking an immediate data grant does not prove a collision: a recognized request may still be waiting for scheduling.

DOCSIS therefore combines three ideas: frequency division organizes channels, random access obtains requests, and scheduled grants carry upstream data. DOCSIS 3.1 and 4.0 add OFDM downstream and OFDMA upstream, dividing channels into narrow subcarriers while retaining request-and-grant access. Calling cable access only TDMA misses the contention that obtains a transmission opportunity.

Key Takeaways

  • Polling grants bounded turns but costs control time and depends on a controller.
  • Token passing distributes permission and needs token recovery.
  • Cable downstream has one CMTS sender; upstream has many modem senders.
  • DOCSIS combines frequency resources, contention requests and scheduled grants.
3

Address and switch frames in Ethernet LANs

An Ethernet LAN delivers frames by interface addresses, learns locations from traffic and contains broadcasts within a chosen group. To follow a frame correctly, separate the IP destination from the next local MAC destination, then apply the switch table to that frame. Frame-size accounting explains padding and link overhead; VLANs extend the same delivery rules to several logical networks on shared switching hardware.

3.1 Find the MAC address of the next local interface

An IP address helps select a network destination. A MAC address identifies an interface for local frame delivery. A laptop with Ethernet and Wi-Fi has a separate MAC address for each interface.

Read a 48-bit address

A common MAC address has six bytes, written as six hexadecimal pairs: 5C-F9-38-A2-41-07. The 48-bit space contains about 2.8 × 10¹⁴ values. In the familiar manufacturer assignment model, an IEEE-issued organizationally unique identifier (OUI) supplies the first 24 bits and the manufacturer assigns the remaining 24.

MAC addresses are flat: no part specifies the interface's current IP subnet. An interface can retain its MAC address after moving. Software can also replace a factory address; Wi-Fi devices commonly use randomized locally administered addresses for privacy. Addresses must remain unique within the local LAN.

The two low-order bits of the first byte have special meanings. The least significant bit is 0 for an individual address and 1 for a group address. The next bit is 0 for universal administration and 1 for local administration. 5C ends in binary 00, so it identifies a universally administered unicast address. DA ends in 10, so it identifies a locally administered unicast address. FF-FF-FF-FF-FF-FF is the broadcast destination.

Resolve an IPv4 neighbor

Address Resolution Protocol (ARP) maps an IPv4 address to a MAC address on the local subnet. An ARP cache stores IP–MAC mappings with expiration information. ARP messages travel directly in link-layer frames, identified by EtherType 0x0806.

Suppose A at 192.168.1.10/24 needs B at 192.168.1.20 and has no cached mapping:

  1. A broadcasts an ARP request asking who owns B's IPv4 address. It includes A's own IP and MAC addresses.
  2. All local interfaces receive the request; B recognizes the target address.
  3. B sends its reply to A's MAC address and can learn A's mapping.
  4. A caches B's mapping and sends the data frame to B.

The destination adapter accepts a frame addressed to itself, the broadcast address, or a multicast group it receives. It normally discards frames addressed elsewhere before they reach IP.

Send beyond the subnet

For destination 203.0.113.5, A first recognizes that the address is outside its /24 subnet. It selects gateway 192.168.1.1, resolves that gateway's MAC address and sends the Ethernet frame there. The enclosed IP datagram remains addressed to 203.0.113.5. Each router makes its next-hop decision and builds the outgoing frame.

ARP cannot discover a remote server's MAC address through routers. Routers stop the local broadcast, and the remote MAC would not identify the next receiver on A's cable anyway.

ARP does not authenticate ownership claims, so forged replies can redirect local traffic. IPv6 uses ICMPv6 Neighbor Discovery, with neighbor solicitations and advertisements, instead of ARP.

Key Takeaways

  • MAC addresses identify interfaces and contain no IP subnet hierarchy.
  • The first byte distinguishes individual/group and universal/local administration.
  • ARP resolves an IPv4 next hop on the local subnet.
  • A remote destination uses the gateway MAC in the first frame.
  • ARP mappings expire and are vulnerable to forged replies.
  • IPv6 resolves neighbors with Neighbor Discovery.

3.2 Account for every byte of an Ethernet transmission

Ethernet spans many physical media and speeds, while retaining a recognizable frame structure and 48-bit addressing. Shared coaxial Ethernet and hub-based Ethernet used one collision domain. A switch gives each host a separate link, normally operated full duplex.

Read the fields
FieldSizePurpose
Preamble and start delimiter8 bytesSynchronize reception and mark the start
Destination MAC6 bytesIdentify the local receiver
Source MAC6 bytesIdentify the sending interface
EtherType2 bytesIdentify the carried protocol
Data and any padding46–1,500 bytesCarry the datagram with minimum-length padding
Frame check sequence4 bytesDetect errors with CRC-32

The synchronization sequence comprises seven alternating-bit bytes and a start delimiter. It precedes the part counted in the usual 64- to 1,518-byte frame length. EtherTypes include 0x0800 for IPv4, 0x86DD for IPv6 and 0x0806 for ARP. The receiver uses this field to hand the payload to the correct protocol.

Separate MTU from frame size

The usual Ethernet maximum transmission unit (MTU) is 1,500 bytes: the largest network-layer datagram carried in the data field. It excludes Ethernet's header and CRC. A larger datagram needs a compatible larger MTU or network-layer handling such as smaller packets; IPv4 can fragment where permitted, while IPv6 routers do not fragment forwarded packets.

A 20-byte datagram needs 26 padding bytes to reach the 46-byte minimum data field. Adding 14 header bytes and four CRC bytes gives the 64-byte minimum frame. The receiver uses the IP packet length to distinguish the datagram from padding. At the other extreme, a 1,500-byte datagram gives a 1,518-byte untagged frame.

Include occupied link time

Every frame also uses the eight-byte preamble/start sequence and a 96-bit idle gap, equivalent to 12 byte times. A maximum-size transmission therefore occupies 1,538 byte times. The data-field fraction is 1500/1538≈0.975, about 97.5%.

A minimum frame occupies 64+8+12=84 byte times. Its 46-byte data field is about 55% of that time. If only 20 bytes are actual IP data, useful IP efficiency is lower still: padding is not application information. Always name which bytes count as useful when reporting efficiency.

Understand the service

Ethernet is connectionless: no Ethernet handshake precedes a frame. It is also unreliable in the protocol sense: a bad CRC causes a drop without an Ethernet ACK or retry. TCP or an application may recover the lost data later.

IEEE 802.3 includes 10 Mb/s through 800 Gb/s technologies over copper and fiber. Names such as 100BASE-TX and 10GBASE-T encode speed and physical signaling details. Some data centers use jumbo frames with roughly 9,000-byte payloads. Support must agree along the relevant path; a faster link alone does not enlarge the normal MTU.

Key Takeaways

  • Ethernet MTU counts the payload, not the complete frame.
  • Untagged frames span 64–1,518 bytes from destination address through CRC.
  • A short datagram is padded to a 46-byte data field.
  • Wire-time accounting adds eight preamble bytes and a 12-byte-time gap.
  • Ethernet drops corrupt frames without its own acknowledgment or retry.

3.3 Learn from sources and forward by destinations

A switch connects Ethernet segments and forwards frames by destination MAC address. Hosts address each other or a router, not the switch. This transparency lets a switch be inserted without changing the hosts' addressing.

Make two separate decisions

For every arriving frame, first learn the source: record its MAC address, incoming port and current time. Then look up the destination to decide where the frame should go.

Destination-table resultAction
No matching entryFlood to other ports in the same VLAN
Matching entry on the arrival portFilter: do not send the frame back out
Matching entry on a different portForward only to that port

Learning from the destination would be circular: the switch has not observed where that destination actually sends. Entries age out when they are not refreshed, commonly after about 300 seconds, so old locations do not remain forever.

Trace an initially empty table

Connect A to port 1, B to port 2 and C to port 3.

  1. A sends to B. The switch records A → 1. B is unknown, so the frame leaves ports 2 and 3.
  2. B replies to A. The switch records B → 2 and sends only to port 1.
  3. C sends to B. The switch records C → 3 and sends only to port 2.

A broadcast is flooded even when other addresses are known. An unknown unicast is also flooded, but it remains addressed to one interface; other adapters discard it. A silent destination stays unknown until a frame with its source address reaches the switch.

If A and D share a hub connected to port 1 and D is already learned there, A's frame for D arrives on port 1. The switch filters it because D already lies on the incoming segment. D can receive the hub's local copy without the switch sending another copy.

Avoid endless flooding

Ethernet frames have no hop-count or TTL field. A loop can send broadcasts around repeatedly, multiplying copies into a broadcast storm. Spanning Tree Protocol (STP) creates a loop-free active tree by blocking redundant links. A blocked path can become active after a failure. In an STP-based layer-2 topology, redundant links provide resilience but are not all used simultaneously for ordinary forwarding.

Compare the boundaries

Switches separate collision domains and can connect ports of different speeds. They may buffer incoming frames and queue them at busy output ports. They do not remove a bottleneck when several inputs compete for one slower output.

Routers forward by IP, separate subnets and stop link-layer broadcasts. Their hierarchical addressing and routing protocols support larger networks; IP TTL limits looping datagrams. Switched LANs instead need a loop-free forwarding topology and control of broadcast growth.

Self-learning also exposes a weakness: fake source addresses can exhaust a switch's table. More legitimate destinations then become unknown and may be flooded. VLAN boundaries still limit the flood's scope; table learning is not an authentication mechanism.

Key Takeaways

  • Learn the source address on the arrival port, then look up the destination.
  • Unknown destinations and broadcasts are flooded within the VLAN.
  • A known destination on the arrival port is filtered.
  • Aging removes stale locations.
  • STP blocks redundant links to prevent layer-2 loops.
  • Switches separate collision domains; routers separate IP subnets and broadcasts.

3.4 Separate broadcast domains with VLANs

One large switched LAN spreads broadcasts to many hosts and ties logical groups to physical wiring. A virtual LAN (VLAN) divides the same switching infrastructure into separate layer-2 networks.

Assign logical membership

With port-based VLANs, each access port belongs to a chosen group. Ports 2–8 might belong to engineering VLAN 10 and ports 9–15 to finance VLAN 20. A broadcast entering VLAN 10 reaches the other VLAN 10 ports, not the finance ports. Moving a user between groups can be a software change to port membership.

A VLAN is a broadcast domain. It can span several physical switches, and one switch can support several VLANs. Hosts on ordinary access ports send and receive ordinary untagged frames; they need not know how the switches divide the LAN.

Route between groups

Different VLANs cannot exchange frames directly. An engineering host at 10.1.10.25 sending to finance host 10.1.20.40 recognizes a remote subnet and sends to its gateway's MAC address. The router removes the VLAN 10 frame and forwards the IP datagram into VLAN 20 in a new frame. A layer-3 switch can perform this routing internally.

Separation at layer 2 does not itself forbid routed communication. Filtering rules on the routed path decide which inter-VLAN traffic is allowed. Assigning two ports to different VLANs is not a replacement for that policy.

Carry membership over a trunk

A trunk carries several VLANs between switches, limited to those allowed on it. In the tagged case, IEEE 802.1Q inserts four bytes after the source MAC address:

  • A two-byte tag protocol identifier, commonly 0x8100.
  • Three priority bits.
  • One drop-eligible bit.
  • A 12-bit VLAN identifier, or VID.

The receiving switch uses the tag to keep the frame in its correct VLAN. Delivery to an ordinary untagged access port removes the tag. Trunks can also support an untagged native VLAN; tagging rules must be consistent between endpoints.

The VID has 212=4096 bit patterns. Values 0 and 4095 are reserved, leaving 4094 ordinary VLAN IDs. A tag expands a maximum untagged 1,518-byte frame to 1,522 bytes. Changing the bytes covered by the FCS requires a new CRC.

Extend isolation across a routed fabric

Cloud networks may need more than 4094 isolated groups. VXLAN encapsulates an Ethernet frame in UDP and IP, using a 24-bit virtual network identifier. This supplies about 16.7 million identifiers while the underlying routers forward the outer IP packet.

The inner frame expresses the virtual LAN's local delivery; the outer packet crosses the physical routed fabric. This allows virtual networks to span servers without making the entire data center one giant physical broadcast domain. VLANs can also be assigned by other criteria, such as source MAC address or protocol, although port membership is the simplest model.

Key Takeaways

  • Each VLAN is a separate layer-2 broadcast domain.
  • Inter-VLAN delivery needs routing and any required filtering policy.
  • An 802.1Q tag is four bytes and includes a 12-bit VID.
  • There are 4094 ordinary usable VLAN identifiers.
  • VXLAN carries inner Ethernet frames over a routed IP network.
4

Explain data center networks and follow a web request through every layer

Fast server links are useful only when the rest of the data center can carry their combined traffic. Uplink ratios, richer switch fabrics and flow-based path selection explain where capacity is gained or lost. A complete web exchange then connects those local forwarding ideas with DHCP, DNS, TCP and TLS, following what each layer contributes and which addresses change as packets pass through routers.

A data center serves external clients and also moves large amounts of traffic between its own servers. Storage replication, search fan-out and distributed machine learning can all stress links between racks.

Build the fabric

Servers connect to a top-of-rack (ToR) switch, often one for 20–40 servers. In a classic hierarchy, ToR switches connect upward through tier-2 and tier-1 switches. Border routers connect the fabric to the internet. A load balancer receives traffic for a service and distributes requests among servers; clients can use one public service address while the internal server set changes.

The critical question is how much traffic can leave a rack. Having fast server links does not guarantee equal bandwidth through the uplinks.

Calculate oversubscription

Suppose 40 servers each have a 25 Gb/s link. Their total potential demand is 40(25)=1000 Gb/s. Four 100 Gb/s uplinks provide 400 Gb/s. The oversubscription ratio is

server capacity/uplink capacity=1000/400=2.5.

That is 2.5 : 1. If all 40 servers send equally to other racks and these uplinks are the bottleneck, their average is 400/40=10 Gb/s each. Traffic staying within the rack does not consume the uplinks in the same way. The ratio describes aggregate capacity, not an automatic fixed rate limit for every server.

Add paths with Clos networks

A Clos fabric provides multiple paths between racks using many smaller switches. For even k, a three-tier k-port fat tree has k pods, each with k/2 edge and k/2 aggregation switches, plus (k/2)² core switches. With equal-rate links it supports k3/4 hosts using 5k2/4 switches.

For k = 4, the host count is 43/4=16 and the switch count is 5(42)/4=20. For k = 48, these become 27,648 hosts and 2,880 switches. The topology supplies full aggregate capacity for admissible traffic with suitable path assignment. It does not guarantee every host its full link rate when all hosts send to one destination or when routing concentrates flows.

Spread flows over equal-cost paths

Equal-cost multipath (ECMP) hashes packet fields such as IP addresses and transport ports to select a path. Packets of one flow normally follow the same path, preserving their order, while different flows can take different paths.

Hashing is not perfect load balancing. Two large flows may choose one path while another remains idle. Moving individual packets freely among paths can reorder them and trigger unnecessary TCP recovery. Capacity in the topology and capacity used by a particular traffic pattern are different measurements.

Modern designs also use software-defined control, VXLAN overlays for movable virtual machines and containers, and ECN-based congestion control for short queues and low latency. Operators balance bandwidth and resilience against the cost and energy use of switches, optics and links.

Key Takeaways

  • Oversubscription compares aggregate server-facing capacity with uplink capacity.
  • Traffic within a rack and traffic leaving it stress different links.
  • A k-port three-tier fat tree connects k³/4 hosts with 5k²/4 switches.
  • ECMP normally hashes each flow onto one path.
  • Multiple paths add capacity and resilience but hashing can leave them unevenly loaded.

4.2 Follow a laptop from DHCP to an HTTPS page

A new Ethernet connection must obtain addressing information before a browser can reach a remote site. Follow a laptop on 192.0.2.0/24, with gateway 192.0.2.1, DNS server 198.51.100.53 and web server 203.0.113.80. The exchange uses HTTPS over TCP.

Get the network settings

The laptop initially has a MAC address but no usable IPv4 address. It sends DHCP Discover from UDP port 68 to port 67, using IP source 0.0.0.0, IP destination 255.255.255.255 and Ethernet destination FF-FF-FF-FF-FF-FF.

The switch learns the laptop's source MAC and floods the broadcast. Here the router also runs the DHCP server. The four-message exchange is Discover, Offer, Request and Acknowledgment. The ACK supplies 192.0.2.37/24, gateway 192.0.2.1 and the DNS server address. A reply sent to the laptop's MAC can be forwarded using the switch's learned entry; no ARP lookup was needed for the initial broadcast.

Resolve the first next hop

The browser needs an IP address for www.example.com, so the laptop prepares a DNS query, normally to UDP port 53. The DNS server is outside the laptop's subnet. The laptop therefore needs the gateway's MAC address, not the DNS server's MAC.

With no cached gateway mapping, it broadcasts an ARP request for 192.0.2.1. The router replies with its local interface's MAC address. The laptop caches this mapping and puts the DNS datagram inside an Ethernet frame addressed to that interface.

Cross the routed path

The frame's destination is local, while its enclosed IP destination is 198.51.100.53. The campus router removes the Ethernet frame, looks up the IP route and builds the next link's frame. OSPF and BGP can supply the routes used within and between networks. Each subsequent router repeats next-hop forwarding.

DNS returns 203.0.113.80. The laptop can now create a transport connection to the web server. Its gateway MAC is already cached; reaching a different remote IP does not require resolving another local MAC.

Exchange encrypted web data

TCP connects to port 443 with SYN, SYN-ACK and ACK. A TLS handshake then establishes the encrypted channel. The browser sends an HTTP GET inside TLS over TCP. The server returns the page over that connection.

On the return path, the campus router places the final IP datagram in a frame addressed to the laptop. The switch forwards it to the learned port. The NIC checks the FCS, IP delivers to TCP, TCP orders the bytes, TLS processes the encrypted records and the browser reads the HTTP response.

Switches within one Ethernet LAN leave endpoint MAC addresses unchanged. Routers replace the frame for each next network; IP endpoint addresses remain unchanged in this trace. A NAT on another network could rewrite an IP address and port. Neither the outgoing frame nor the returning frame needs a switch port's MAC address as its destination.

Key Takeaways

  • DHCP can begin with broadcast IP and MAC destinations before address assignment.
  • ARP resolves the gateway for an off-subnet DNS or web destination.
  • DNS supplies the server IP before the new TCP connection.
  • TCP, then TLS, carries the HTTPS exchange in this trace.
  • Routers replace link-layer envelopes; ordinary Ethernet switches preserve endpoint MAC addresses.
  • A cached gateway mapping serves several remote IP destinations.
5

Explain how wireless links and Wi-Fi networks work

Radio links share spectrum and change with distance, obstacles and competing signals. A station must choose an access point, establish its link and wait for an opportunity to send. Wi-Fi combines those steps with acknowledgments, backoff and optional reservations because sensing silence cannot guarantee a clear receiver. Frame address roles also explain how an AP bridges a wireless host onto the same IP subnet as wired devices.

5.1 Reason about signals, interference and hidden stations

A wireless network combines hosts, radio links and often a base station. Its channel changes as devices move, objects block paths and other transmitters become active. Those changes shape both transmission rates and recovery from errors.

Classify the connection

Infrastructure mode sends through a base station: a Wi-Fi access point or a cellular base station. Ad hoc mode has no such infrastructure. Either arrangement can use one wireless hop or several.

ArrangementExample
Single hop with infrastructureA laptop reaching a Wi-Fi AP
Single hop without infrastructureAn ad hoc Wi-Fi link or Bluetooth piconet
Multiple hops with infrastructureMesh APs relaying toward a wired connection
Multiple hops without infrastructureMobile or vehicular ad hoc networks

A Bluetooth central coordinates its piconet, but it is not an internet-access base station in this classification. Changing the serving AP or cellular base station is a handover.

Explain a weak or distorted signal

Path loss reduces received power with distance and obstacles. Interference adds unwanted energy from other transmitters; 2.4 GHz Wi-Fi shares spectrum with Bluetooth and microwave ovens. Multipath propagation brings reflected copies along different-length routes, which can blur symbols at the receiver.

The signal-to-noise ratio (SNR) compares received signal power with noise power:

SNRdB=10log⁡10(Psignal/Pnoise).

A power ratio of 100 gives 20 dB. In a free-space model, power falls with distance squared. Doubling distance leaves one quarter of the power, a drop of about 6 dB if noise stays fixed. Indoors, walls and reflections also affect the received signal, so distance alone does not determine SNR.

Trade rate against errors

A modulation carrying more bits per symbol can send faster, but its signal states are harder to distinguish. For a fixed modulation, higher SNR generally lowers the bit error rate. Rate adaptation selects a more robust, slower mode when reception worsens and a faster mode when it improves. The highest advertised rate is not always the mode that delivers the most usable data under current conditions.

Locate the hidden collision

Suppose A and C can both reach B but cannot hear each other. A may hear silence while C is already sending to B. A then transmits and the frames interfere at B. This hidden terminal problem shows why a sender's carrier-sense result does not describe conditions at the receiver.

Classic Bluetooth serves short-range personal devices, often around 10 m, in the 2.4 GHz band. One central can coordinate up to seven active peripherals. It hops among 79 one-megahertz channels at 1,600 hops/s. Bluetooth Low Energy uses 40 two-megahertz channels. These are different physical channel arrangements, even though both support low-power personal devices.

Variable radio losses motivate local acknowledgments, retransmissions and FEC. A loss caused by weak reception can still reduce TCP throughput if transport recovery treats it as congestion.

Key Takeaways

  • Wireless topology depends on hop count and the presence of infrastructure.
  • Path loss, interference and multipath affect reception in different ways.
  • SNR compares powers logarithmically; a ratio of 100 is 20 dB.
  • Rate adaptation changes modulation to match reception conditions.
  • Hidden senders can collide at a receiver even after sensing silence.
  • Classic Bluetooth and Bluetooth Low Energy use different channel arrangements.

5.2 Find an AP, associate and obtain an address

Wi-Fi is the IEEE 802.11 wireless LAN family. An access point (AP) bridges wireless frames onto a distribution network, often Ethernet. It need not perform IP routing.

Distinguish a name from a radio

A basic service set (BSS) comprises an infrastructure AP and its associated stations. The SSID is the network name; the BSSID identifies a particular BSS, normally using the AP radio's MAC address. Several BSSs joined by a common distribution system and sharing an SSID form an extended service set (ESS). Two unrelated APs using the same name do not thereby form one ESS.

A station can find an AP by passive scanning, listening for periodic beacon frames, or active scanning, sending a probe request and listening for responses. Beacons advertise information such as the SSID and BSSID, typically about ten times a second. The station chooses a BSS and exchanges an association request and response. Strong signal is useful, but an AP with many competing clients may still deliver less throughput than a slightly weaker, quieter AP.

Put setup steps in order

Security and association are distinct operations. WPA2 first uses open 802.11 authentication and association. WPA2-Personal then establishes keys with the four-way handshake; WPA2-Enterprise performs an 802.1X credential exchange before that key handshake. WPA3-Personal instead uses SAE password authentication before association, followed by the four-way handshake. After successful link setup, DHCP can supply IP settings.

Compare bands and generations
StandardWi-Fi nameBandsTheoretical peak
802.11b—2.4 GHz11 Mb/s
802.11a / g—5 / 2.4 GHz54 Mb/s
802.11nWi-Fi 42.4 and 5 GHz600 Mb/s
802.11acWi-Fi 55 GHzAbout 6.9 Gb/s
802.11axWi-Fi 6 / 6E2.4 and 5 / also 6 GHzAbout 9.6 Gb/s
802.11beWi-Fi 72.4, 5 and 6 GHzAbout 46 Gb/s

The figures are peak physical rates using the relevant maximum capabilities, not each user's application throughput. Support for older generations requires a band and mode both devices share. Newer OFDMA features can schedule users, while contention remains central to Wi-Fi access.

Understand channel overlap

In the ordinary 2.4 GHz channel sequence, centers are 5 MHz apart. Channels 1, 6 and 11 are centered at 2,412, 2,437 and 2,462 MHz. A roughly 20 MHz signal overlaps close neighbors: channels 1 and 4 are only 15 MHz apart, while 1 and 6 are 25 MHz apart.

The 5 and 6 GHz bands offer more separate channels. Channel bonding joins spectrum into 40, 80 or 160 MHz channels; Wi-Fi 7 also supports 320 MHz channels. Available channels and permitted widths depend on local radio regulations, especially at 6 GHz. Wider channels can increase rate, but the advertised width does not create dedicated spectrum for each station.

Key Takeaways

  • SSID is a network name; BSSID identifies a particular BSS.
  • An ESS needs a common distribution system as well as a shared SSID.
  • Scanning, security, association and IP configuration are separate stages.
  • Nearby 2.4 GHz channel numbers can overlap in frequency.
  • Wi-Fi peak rates are shared physical capabilities, not per-user throughput.

5.3 Share Wi-Fi airtime and read its addresses

Wi-Fi uses CSMA/CA, carrier sensing with collision avoidance. A transmitter's own radio signal overwhelms weak incoming signals, and hidden stations may be inaudible. It sends a complete frame and learns success from an acknowledgment.

Count down only through idle slots

In the basic contention procedure, a station waits for an idle DIFS interval. If it has deferred, it chooses a random backoff and counts down during idle slots. A busy channel freezes the remaining count. After the exchange ends and DIFS passes, countdown resumes.

If X chooses 3 and Y chooses 7, X reaches zero first. Y freezes with 4 slots remaining while X transmits. A correct unicast data frame receives an ACK after the shorter SIFS interval. SIFS gives that response priority over stations waiting DIFS. Y resumes after the exchange; it does not restart automatically at 7 or count through X's transmission.

A missing ACK causes a retry with a larger contention window. It can mean lost data or a lost ACK. Sequence numbers let the receiver suppress a duplicate in the latter case. Ordinary broadcast and multicast data frames receive no individual ACKs.

Reserve airtime for hidden senders

Optional RTS/CTS exchanges reserve a duration before a long data frame. A sender sends request-to-send; the receiver replies clear-to-send. A hidden station that hears the CTS defers for the announced time, even if it never heard the RTS. Short control frames add overhead but can avoid wasting a long data transmission in a collision. They reduce hidden-terminal damage without making the channel collision-free.

Follow three address roles

A basic data frame carries frame control, duration, addresses 1–3, sequence control, an optional address 4, a payload and a 32-bit CRC, in that order. The traditional maximum payload is 2,312 bytes; newer aggregation formats add further structure. A fourth address appears in four-address formats such as wireless bridging. In ordinary infrastructure data frames, address 1 is the immediate radio receiver and address 2 the radio transmitter. Address 3 preserves the endpoint on the distribution-system side.

For host H1 sending through AP to router interface R1:

  1. Toward AP: address 1 = AP, address 2 = H1, address 3 = R1.
  2. AP emits Ethernet with source H1 and destination R1.
  3. In return, Ethernet has source R1 and destination H1.
  4. AP sends radio data with address 1 = H1, address 2 = AP, address 3 = R1.

Address 3 can belong to another LAN host instead of a router. The AP's radio role must not replace the original Ethernet endpoint in the bridged frame.

Move or sleep

Moving from AP1 to AP2 on the same subnet preserves H1's IP address. Reassociation changes its radio attachment. A frame arriving through AP2 with source H1 teaches switches H1's new location. Movement to a different subnet needs new addressing or mobility support to preserve existing connections.

For power saving, a station tells the AP it will sleep. The AP buffers its frames and advertises waiting traffic in beacon information. The station wakes to check and collect data, then can sleep again. Sleeping saves radio energy but can delay delivery until the next wake interval.

Key Takeaways

  • Wi-Fi backoff freezes while the channel is busy.
  • SIFS lets a unicast ACK precede new DIFS-based contention.
  • A missing ACK can cause retransmission; sequence numbers suppress duplicates.
  • RTS/CTS lets hidden stations defer after hearing the receiver.
  • Radio receiver/transmitter addresses differ from bridged endpoint roles.
  • Same-subnet roaming preserves IP addressing but changes switch location learning.
  • Power saving trades radio wake time against buffered-delivery delay.
6

Explain how cellular networks connect and move mobile users

Cellular access coordinates radio resources through an operator network and keeps subscribers connected as their serving cells change. LTE and 5G divide work between radio stations, control functions and user-data forwarding. Following registration and tunnels makes those roles concrete. Mobility routing then explains how stable endpoint addresses can survive movement, and how temporary radio losses still affect transport performance.

6.1 Follow LTE registration and its data tunnels

A cellular network divides coverage into cells served by base stations. The phone or modem is user equipment (UE). Its SIM holds a subscriber identity, the IMSI, and a long-term secret used in authentication.

Separate network roles

An IMSI has up to 15 digits: a three-digit mobile country code, a two- or three-digit network code, and a subscriber number. The test identity 001 01 0123456789 illustrates those fields. It identifies a subscription, not the UE's IP address.

The LTE base station, an eNodeB, schedules radio resources, handles its cell and participates in handover. Its backhaul leads to the Evolved Packet Core (EPC).

Core elementMain responsibility
MMEControl of attachment, authentication coordination and mobility
HSSHome subscription and authentication information
S-GWForwarding user data and anchoring movement among eNodeBs
P-GWConnecting to an external packet network and assigning the UE IP address

Control messages establish and manage connectivity. User-plane packets carry the subscriber's actual data. Treating the MME as the router for every web packet confuses those planes.

Attach step by step

The UE finds synchronization signals and selects a cell. It sends an attach request through the eNodeB to the MME. The MME obtains authentication information from the subscriber's home HSS. The UE and network authenticate and establish protection, then the MME coordinates the bearer data paths through the gateways. The P-GW provides the UE's IP address.

LTE is an all-IP packet system; supported voice service travels as IP as well as ordinary data. Between the eNodeB, S-GW and P-GW, GTP-U carries the UE's packets through tunnels over UDP and outer IP. The inner datagram retains the UE endpoint address while outer addresses identify tunnel endpoints. Changing a radio attachment can therefore change a tunnel endpoint without changing the UE's IP address.

Divide the radio work

The link stack has three main sublayers. PDCP performs functions including header compression and encryption. RLC segments and reassembles data and can provide retransmission in acknowledged mode. MAC manages scheduled opportunities and hybrid ARQ, combining rapid retries with coding.

LTE's downlink uses OFDMA; the uplink uses the related SC-FDMA scheme. Subcarriers are 15 kHz apart. A resource block spans 12 subcarriers, or 180 kHz, for a 0.5 ms slot. Scheduling commonly assigns resources in 1 ms subframes. More allocated blocks and a higher usable modulation rate can increase a UE's data rate; the standard does not require one particular fairness algorithm.

An idle UE saves energy using sleep and wake procedures. Only the access hop must be radio: backhaul can be fiber, copper or microwave, and gateways still separate the radio network from the internet.

Key Takeaways

  • The IMSI identifies a subscription, while an IP address identifies packet connectivity.
  • The MME controls attachment and mobility; gateways forward user data.
  • GTP-U tunnels preserve inner endpoint addressing as attachment changes.
  • PDCP, RLC and MAC divide radio-link processing and recovery.
  • An LTE resource block spans 12 subcarriers or 180 kHz.
  • LTE uses OFDMA downlink and SC-FDMA uplink.

6.2 Compare 5G radio, core functions and Wi-Fi

5G extends cellular access with flexible radio timing and a redesigned core. High peak rates, low latency and large device populations serve different use cases; one device should not expect all design targets at once.

Interpret the design goals

IMT-2020 defines enhanced mobile broadband, eMBB; ultra-reliable low-latency communication, URLLC; and massive machine-type communication, mMTC. Associated requirements include a 20 Gb/s peak downlink rate, 1 ms user-plane radio latency for URLLC, and one million devices per square kilometer for dense machine communication. These are evaluation targets under specified conditions, not ordinary internet download speed or round-trip latency guarantees.

Change the radio timing

New Radio (NR) uses OFDM with scalable spacing. With numerology μ, subcarrier spacing is 15(2μ) kHz and a normal 14-symbol slot lasts 1/2μ ms. At 30 kHz, μ = 1 and the slot lasts 0.5 ms. At 120 kHz, μ = 3 and it lasts 0.125 ms. Shorter slots enable faster scheduling opportunities, though end-to-end latency also includes transport, processing and queues.

NR FR1 spans 410 MHz–7.125 GHz, including common mid-band around 3.5 GHz. FR2 spans 24.25–71 GHz across its subranges. The high bands often called millimeter-wave offer wide channels but suffer strong blockage and short useful range. Small cells and focused beams from large antenna arrays help use them. Many 5G deployments use FR1 and need no millimeter-wave link.

Map core responsibilities

A gNB is a 5G base station. Non-standalone (NSA) deployments combine NR access with an LTE anchor and 4G core. Standalone (SA) deployments use the 5G core's service-based organization.

5G functionResponsibility and relation to LTE
AMFAccess and mobility control, resembling part of the MME role
SMFSession control and IP address management
UPFUser-data forwarding, corresponding to gateway data-plane work
AUSFSubscriber authentication
UDMSubscription management and authentication-data support; stored data resides in UDR

The functions divide responsibilities; the mapping is not one old box replaced by one identically functioning new box. Separating user-plane forwarding from control lets an operator place a UPF near a local application. Network slicing supports virtual networks with different service properties on shared infrastructure.

Compare cellular and Wi-Fi access

Cellular networks generally use licensed spectrum, operator-managed subscribers and centrally scheduled radio resources over wide areas. Wi-Fi generally uses unlicensed local spectrum and contention-based access managed by an organization or user. Wi-Fi 6 and later also support AP-scheduled OFDMA, so scheduling is not unique to cellular. Both families adapt radio rates and recover some losses locally. 5G-Advanced continues the 5G family; 6G remains a development effort aimed toward around 2030.

Key Takeaways

  • 5G targets describe different evaluated use cases, not everyday service guarantees.
  • Doubling NR subcarrier spacing halves the normal slot duration.
  • 5G includes FR1 coverage as well as high-frequency FR2 access.
  • NSA uses a 4G anchor and core; SA uses the 5G core.
  • AMF and SMF control connectivity while UPF forwards user packets.
  • Network slicing shares infrastructure across differentiated virtual networks.

6.3 Keep a moving device reachable

Changing radio attachment is easy to hide if a device keeps its IP address. Moving between networks is harder: an ordinary TCP connection is identified by endpoint addresses and ports. Mobility mechanisms preserve reachability while the physical delivery path changes.

Separate stable identity from current location

The home network holds the subscription record; a visited network serves a roaming subscriber elsewhere. In Mobile IP, a stable home address identifies the device and a care-of address locates its current attachment. Advertising a separate route for every moving device throughout the internet would create an enormous, constantly changing routing burden.

With indirect routing, the correspondent sends to the home address. A home agent intercepts and tunnels traffic toward the care-of address. The correspondent need not track movement, but the path can detour through the home network. A Brazilian subscriber in Tokyo receiving data from a Tokyo server may have that traffic sent through Brazil first: triangle routing.

With direct routing, the correspondent learns the current location and tunnels toward the visited network. It avoids the home detour but requires correspondent participation and updates or forwarding when the device moves again. In LTE roaming, home routing through a home P-GW and local breakout provide related choices.

Follow an LTE handover

Within an LTE network, the S-GW can remain the data-path anchor while the UE changes eNodeBs:

  1. Signal measurements reported by the UE lead the source eNodeB to request handover from a target.
  2. The target reserves resources and returns the access information.
  3. The source commands the UE to move and forwards in-flight data toward the target.
  4. The UE synchronizes with the target, accesses it and sends completion.
  5. The target requests a path switch through the MME; the S-GW changes its tunnel endpoint.
  6. The old radio resources are released, and traffic follows the new tunnel.

Preparation happens before the UE moves; the core path switch follows arrival at the target. A handover may briefly delay or lose packets without changing the inner IP address.

Distinguish Mobile IP versions

Mobile IPv4 supports a foreign-agent care-of address or one obtained directly by the mobile device. Discovery and registration inform the home agent. Mobile IPv6 needs no foreign agent: ordinary IPv6 configuration obtains the care-of address, and a Binding Update registers it with the home agent. These IETF mechanisms are less widely deployed than cellular-specific mobility management.

Connect losses to transport behavior

Conventional loss-based TCP generally treats loss as congestion, so a radio error or handover loss can reduce its sending rate even when queues were not overloaded. Local ARQ and FEC can hide some wireless losses. Other approaches distinguish loss causes or split a transport connection across wireless and wired portions. Splitting changes the original end-to-end transport arrangement. Applications such as streaming video can also lower their bitrate as available bandwidth falls.

Key Takeaways

  • Mobility separates a stable endpoint address from its changing attachment.
  • Indirect routing hides movement but can create a home-network detour.
  • Direct routing avoids the detour while requiring location handling by the correspondent.
  • LTE prepares the target, moves the UE, switches the tunnel path and releases the source.
  • Mobile IPv6 registers a care-of address with Binding Updates and needs no foreign agent.
  • Wireless losses can trigger congestion responses in loss-based TCP.

Link Layer examples

6 Walkthroughs

1

Detect damage from the first hop to the CRC

15 steps
Follow local delivery, test parity and a checksum, then compute and check a small CRC.
  1. 1
    IntroductionWhat can the receiver trust?

    A laptop sends a datagram across a wireless link and then through a router. Each receiver needs a frame it can recognize and a way to test whether its bits survived.

    We will follow that local envelope, repair a single parity error, compute a checksum and build a CRC. Keep one distinction in view: detecting damage tells you that recovery is needed; it does not automatically tell you how to reconstruct the original data.

  2. 2
    ExplanationReplace the local envelope

    A frame packages a datagram for delivery over the current link. The NIC supplies link fields and check bits, then follows that medium’s access rules.

    At a router, the incoming frame ends. The router selects a next hop from the IP destination and builds another frame. Within an Ethernet LAN, an ordinary switch forwards the existing endpoint MAC addresses without replacing them.

  3. 3
    ConnectionLocal repair has a shorter route

    Wi-Fi acknowledges correctly received unicast data and can retry when no ACK arrives. This can recover a radio loss without waiting for TCP endpoints separated by many links.

    Ethernet checks the FCS but does not send an Ethernet ACK or retry a damaged frame. Both detect errors; their local delivery services differ. A successful wireless ACK still says nothing about a later frame lost beyond the AP.

  4. 4
    ChallengeChoose the layer that retries

    A datagram crosses Wi-Fi successfully, then its Ethernet frame fails the receiver’s CRC check. Does the earlier Wi-Fi ACK make Ethernet retransmit it?

    ---reveal---

    No. The ACK confirmed only the earlier unicast radio delivery. Ethernet drops its damaged frame without local recovery. A higher-layer protocol such as TCP may eventually recover the missing data, using a new transmission across the path.

  5. 5
    ExampleBuild even parity

    Data 1110010 contains four ones. Even parity therefore appends 0, giving 11100100 with an even total.

    If one bit changes, parity becomes odd and the receiver rejects the sequence. If two bits change, the total remains even and the parity check misses the error. The check field itself can also be damaged; it participates in the same total count.

  6. 6
    ExampleLocate a single changed bit

    Arrange data in rows and add even parity for each row and column. Suppose exactly one data bit flips, and the checks identify row 3 and column 2 as bad.

    That pair of failed checks locates row 3, column 2. Flipping that bit restores the block. With several changed bits, failed checks may no longer identify a unique repair; the single-error repair rule must not be applied blindly.

  7. 7
    ChallengeFind an invisible parity pattern

    Exactly four data bits flip in a two-dimensional parity block: two in one row and two directly beneath them in another row. Check bits do not change. Will row and column parity detect this pattern?

    ---reveal---

    No. Each affected row has two flips and each affected column also has two. Every parity check stays even. The changes occupy a rectangle’s four corners, an example of damage that passes this check.

  8. 8
    ExampleFold a checksum carry

    Add the 16-bit words 0xA000 and 0x7001. Their raw sum is 0x11001, one bit wider than the field.

    Keep low bits 0x1001 and wrap the carry back: 0x1001 + 1 = 0x1002. Invert all 16 bits to obtain checksum 0xEFFD. At the receiver, 0x1002 + 0xEFFD = 0xFFFF, the expected passing sum.

  9. 9
    Key InsightPassing is different from proving

    The checksum can pass even if complete 16-bit words are exchanged, because their sum does not depend on order. Parity likewise misses some patterns.

    These examples explain why stronger checks matter. They also explain the phrase “no error detected”: a check partitions bit patterns into groups it can distinguish, and some altered patterns still occupy the same group as the original.

  10. 10
    ExplanationChoose a CRC width

    Use data 1001 and generator 1011. The generator has four bits, so its degree is three and its CRC remainder must contain exactly three bits.

    Append three zeros to the data, making 1001000. Division uses XOR, not ordinary subtraction. At each leading 1, align 1011 and XOR it away, then move to the next remaining 1.

  11. 11
    ExamplePerform the XOR steps

    Starting from 1001000, XOR the aligned generator 1011000:

    1001000 XOR 1011000 = 0010000.

    The next leading 1 is in position 3. XOR 0010110:

    0010000 XOR 0010110 = 0000110.

    The last three bits are 110. Append them to the original data, producing the transmitted pattern 1001110. No decimal subtraction or borrowing is involved.

  12. 12
    ExampleCheck the transmitted pattern

    Divide received 1001110 by 1011 using the same XOR procedure. The first operation leaves 0010110; the next cancels it completely. The remainder is 000.

    The receiver therefore detects no error. It divides the complete received pattern directly; appending three more zeros would apply the sender’s construction step to the wrong input.

  13. 13
    ChallengeInterpret a failed CRC

    For a three-bit CRC, a received frame gives remainder 101. Can the receiver accept it, and does that remainder generally identify which bit to repair?

    ---reveal---

    The frame fails because the remainder is nonzero. The remainder is evidence of damage, not a general repair location. The link’s recovery policy determines the next action: a drop for Ethernet, or potentially a retry after a missing Wi-Fi ACK.

  14. 14
    ChallengeSeparate checking from recovery

    A Wi-Fi receiver detects a bad CRC in a unicast data frame and sends no ACK. How can the sender recover even though the CRC did not reconstruct the data?

    ---reveal---

    The sender times out waiting for the ACK and can retransmit its saved frame. Detection happens at the receiver; recovery uses the sender’s retained copy. That is retransmission, whereas FEC would use redundancy to reconstruct data at the receiver.

  15. 15
    RecapUse the right question at the receiver

    For a new error-checking problem, identify what the receiver actually computes. Parity counts ones; a checksum folds a sum; a CRC divides with XOR.

    Then ask what follows from the outcome. A failing check identifies damage. A passing check leaves some undetectable patterns possible. Recovery needs its own mechanism—receiver-side correction or a retry—and local success still leaves later hops to complete.

2

Compare ways to share one channel

17 steps
Move from fixed shares through coded access and ALOHA to Ethernet backoff and cable grants.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionA queue at several senders
  2. 2
    ExampleCompare fixed time shares
  3. 3
    ExampleRecover a coded symbol
  4. 4
    ChallengeDistinguish a burst from an average
  5. 5
    ExplanationCount exactly one attempt
  6. 6
    ExampleCalculate useful channel time
  7. 7
    ChallengeExplain the second vulnerable side
  8. 8
    ExplanationHear the past state of the wire
  9. 9
    ExampleExpand the retry window
  10. 10
    ChallengeChoose the delay that matters
  11. 11
    ConnectionMove from a shared wire to a switch
  12. 12
    AnalogyPass permission to the next speaker
  13. 13
    ExplanationRequest cable capacity
  14. 14
    ChallengeClassify the three parts of DOCSIS
  15. 15
    Key InsightAn optimal protocol can still waste time
  16. 16
    ChallengeConnect load to the access choice
  17. 17
    RecapEvaluate a new access design
3

Deliver a frame through a switched VLAN

19 steps
Resolve the next hop, count Ethernet bytes, learn switch locations and cross a VLAN boundary.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTwo addresses for two delivery scopes
  2. 2
    ExplanationResolve the gateway
  3. 3
    ExampleKeep the IP destination inside
  4. 4
    ChallengeChoose local or remote resolution
  5. 5
    TipRead the low MAC bits
  6. 6
    ExamplePad the small datagram
  7. 7
    ExampleCount occupied byte times
  8. 8
    ChallengeSeparate MTU and complete frame length
  9. 9
    ExplanationLearn before the destination lookup
  10. 10
    ExampleUse the reply to narrow delivery
  11. 11
    ChallengeUpdate a moved host
  12. 12
    ConnectionStop a loop before flooding
  13. 13
    ExplanationMake two logical LANs
  14. 14
    ExampleMark a frame crossing the trunk
  15. 15
    ChallengeCount ordinary VLAN identities
  16. 16
    Key InsightA layer-2 boundary still has a routed path
  17. 17
    ChallengeCombine ARP with switch learning
  18. 18
    ConnectionCarry a virtual LAN over routers
  19. 19
    RecapTrace the next unfamiliar LAN exchange
4

Find the bottleneck and follow a web request

12 steps
Calculate rack capacity, reason about path hashing and trace configuration through an encrypted page request.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFrom rack capacity to one request
  2. 2
    ExampleMeasure the rack’s uplink limit
  3. 3
    Key InsightCount paths without promising perfect use
  4. 4
    ChallengeDiagnose an idle alternate path
  5. 5
    ExampleBegin before the laptop has an IP
  6. 6
    ExampleGet the first local mapping
  7. 7
    ChallengeReuse the right cached state
  8. 8
    ExampleEstablish transport and protection
  9. 9
    ConnectionUnwrap the returning response
  10. 10
    ChallengeName the two kinds of address change
  11. 11
    ChallengeConnect local forwarding to shared capacity
  12. 12
    RecapInspect state and capacity separately
5

Join Wi-Fi and follow one radio exchange

18 steps
Relate reception conditions to association, frozen backoff, acknowledgments and frame address roles.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionThe receiver hears a different channel
  2. 2
    ExplanationSeparate three radio problems
  3. 3
    ExampleUse SNR to compare powers
  4. 4
    ChallengeFind the collision location
  5. 5
    ExplanationIdentify the radio behind the name
  6. 6
    ExampleScan and establish the link
  7. 7
    ChallengeInterpret neighboring channels
  8. 8
    ExplanationWait without losing countdown progress
  9. 9
    ExampleGive the ACK priority
  10. 10
    ChallengeHandle a lost acknowledgment
  11. 11
    Key InsightReserve from the receiver’s position
  12. 12
    ExampleSend toward the AP
  13. 13
    ExampleSend back toward the laptop
  14. 14
    ChallengePreserve the original wired source
  15. 15
    ConnectionMove without changing the subnet
  16. 16
    TipSleep while the AP holds traffic
  17. 17
    ChallengeCombine rate choice with channel access
  18. 18
    RecapTrace a radio frame in four views
6

Keep a cellular session alive during movement

17 steps
Trace LTE attachment, compare 5G functions and follow a handover while preserving endpoint identity.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionA stable endpoint on a moving radio
  2. 2
    ExplanationAttach through control functions
  3. 3
    ExampleKeep the inner packet inside a tunnel
  4. 4
    ChallengeChoose the path a web packet follows
  5. 5
    ExampleTurn subcarriers into resources
  6. 6
    ConnectionRecover errors near the radio
  7. 7
    ExplanationMap 5G control and forwarding
  8. 8
    ExampleShorten a normal NR slot
  9. 9
    ChallengeSeparate a peak target from a service promise
  10. 10
    Key InsightWide spectrum has a coverage cost
  11. 11
    ExamplePrepare the new cell first
  12. 12
    ExampleSwitch the path after arrival
  13. 13
    ChallengeOrder the handover boundary
  14. 14
    AnalogyKeep a home address and update delivery
  15. 15
    ConnectionRemove the detour and add update work
  16. 16
    ChallengeConnect a stable address to lost throughput
  17. 17
    RecapRead the next mobility trace by role

Link Layer practice questions

50 Practice Questions in 5 sets

Set 1: Error checks and shared-channel access10 Practice Questions

Question 1 of 10

What Internet checksum is produced by the 16-bit words 0xF100 and 0x2200?
  1. 0xECFE
  2. 0xECFF
  3. 0x1301
  4. 0xED00
Show answerHide answer
Answer: A
The ordinary sum is 0x11300; folding its carry gives 0x1301, whose complement is 0xECFE. Complementing only the low 16 bits gives 0xECFF and loses the end-around carry. Adding the correct checksum to the folded sum yields 0xFFFF.

Question 2 of 10

An Ethernet adapter receives a frame with an incorrect FCS. What does ordinary Ethernet do?
  1. Request another copy with an Ethernet negative ACK.
  2. Deliver it and let the IP checksum repair its data.
  3. Discard it without a link-layer acknowledgment.
  4. Correct the damaged bits using the FCS remainder.
Show answerHide answer
Answer: C
Ethernet uses its FCS to detect damage and discards a frame that fails. It does not send a link-layer ACK or request a retry, so recovery depends on a higher layer when that layer provides it. A CRC remainder detects an error but does not supply a general bit-repair procedure.

Question 3 of 10

What complete bit sequence results when one even-parity bit is appended to 10011001?
  1. 100110011
  2. 100110010
  3. 010011001
  4. 10011001
Show answerHide answer
Answer: B
The data contains four ones, so appending 0 preserves the even total and produces 100110010. Appending 1 would give odd parity. Prepending the check bit changes the specified field order, while leaving the data unchanged omits the requested check bit.

Question 4 of 10

An even two-dimensional parity block has exactly four flipped data bits and no flipped check bits. Every row and column check still passes. What geometric arrangement must the changed bits form?
  1. Four positions in a single row.
  2. Four positions in a single column.
  3. Four positions along one diagonal.
  4. The four corners of a rectangle.
Show answerHide answer
Answer: D
Every affected row and column must contain an even number of flips. With four distinct data positions, the only nonempty pattern meeting both requirements uses two rows and two columns at their intersections. Four flips in one row leave its parity unchanged but make four separate column checks fail.

Question 5 of 10

For data 1010 and CRC generator 1011, what bit sequence does the sender transmit?
  1. 1010000
  2. 1010110
  3. 10101011
  4. 1010011
Show answerHide answer
Answer: D
The four-bit generator requires three check bits. Dividing the zero-extended data 1010000 by 1011 using XOR leaves 011, giving 1010011. Sending 1010000 leaves placeholders instead of the computed remainder, while appending the generator itself gives the wrong check-field width.

Question 6 of 10

Six nodes have fixed equal TDMA slots on a 240 Mb/s channel. Only one node has queued data. What is its average assigned data rate?
  1. 240 Mb/s
  2. 40 Mb/s
  3. 120 Mb/s
  4. 60 Mb/s
Show answerHide answer
Answer: B
The busy node owns one of six recurring slots, so its long-run assigned share is 240 ÷ 6 = 40 Mb/s. It uses the full physical rate only during its own slot. The silent nodes do not surrender their slots in fixed TDMA, so their unused capacity does not raise that average.

Question 7 of 10

Four saturated slotted-ALOHA nodes independently transmit with probability 0.25 per slot. What fraction of slots carry a successful frame?
  1. About 0.422.
  2. About 0.105.
  3. About 0.316.
  4. About 0.684.
Show answerHide answer
Answer: A
Exactly one of the four nodes must transmit, giving 4 × 0.25 × 0.75³ = 0.421875. The value 0.105 is approximately one named node’s success probability and omits the other possible sole senders. The remaining slots include both collisions and silence, not just collisions.

Question 8 of 10

After a frame’s fourth collision on classic 10 Mb/s Ethernet, what is the largest binary exponential backoff delay?
  1. 409.6 μs
  2. 819.2 μs
  3. 768 μs
  4. 76.8 μs
Show answerHide answer
Answer: C
After collision four, the random integer ranges from 0 to 15. One 512-bit slot at 10 Mb/s lasts 51.2 μs, so the largest delay is 15 × 51.2 = 768 μs. Using 16 slots gives 819.2 μs but includes an integer outside the allowed range.

Question 9 of 10

A proposed 100 Mb/s shared Ethernet span is 600 m long. Signal speed is 2 × 10⁸ m/s, and device delays are ignored. Can it detect the farthest collision before a minimum 64-byte frame finishes?
  1. Yes; the 3 μs one-way delay is below 5.12 μs.
  2. No; the 6 μs round trip exceeds 5.12 μs.
  3. Yes; the 6 μs round trip is below 51.2 μs.
  4. No; the 3 μs one-way delay exceeds 0.64 μs.
Show answerHide answer
Answer: B
The one-way propagation time is 600 ÷ (2 × 10⁸) = 3 μs, so news of a far-end collision can take 6 μs to return. The minimum frame lasts 512 ÷ 10⁸ = 5.12 μs. Checking only the one-way trip wrongly accepts a network where the sender can finish before detecting the collision.

Question 10 of 10

A cable modem has sent a bandwidth request and sees a MAP marking its request as pending. How should it interpret the lack of a data grant in that MAP?
  1. The request was recognized but awaits a grant.
  2. The request collided and must be repeated now.
  3. The downstream channel has a data collision.
  4. The modem owns the next unassigned minislot.
Show answerHide answer
Answer: A
A pending indication means the CMTS has recognized demand but has not yet supplied the data opportunity. The modem cannot infer collision merely from the lack of an immediate grant. Upstream requests can contend, while the CMTS’s downstream MAP announces permission rather than creating permission to use any empty slot.
Set 2: Ethernet addressing, switches and VLANs10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A 30-byte IP datagram is carried in an ordinary untagged Ethernet frame. How many padding bytes are required?
  1. 34 bytes
  2. 16 bytes
  3. 18 bytes
  4. 0 bytes
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

The first byte of a MAC address is 06, binary 00000110. How is this address classified?
  1. Universally administered unicast.
  2. Locally administered multicast.
  3. Universally administered multicast.
  4. Locally administered unicast.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Host 192.0.2.18/24 sends to 198.51.100.72 through gateway 192.0.2.254. Its ARP cache is empty. Which IP address must it resolve for the first data frame?
  1. 192.0.2.254
  2. 198.51.100.72
  3. 192.0.2.18
  4. 192.0.2.255
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A sends an IP datagram to remote B through router R. One switch lies between A and R and another between R and B. With no NAT, how do the destination addresses compare on the two LANs?
  1. IP destinations R, then B; MAC destination B on both.
  2. IP destination B on both; MAC destinations the two switches.
  3. IP destination B on both; MAC destinations R, then B.
  4. IP destinations the two switches; MAC destination R on both.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An Ethernet frame carries a 100-byte IP datagram with no VLAN tag or padding. Including the preamble and idle gap, how many byte times does the transmission occupy?
  1. 118 byte times
  2. 138 byte times
  3. 126 byte times
  4. 146 byte times
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A switch learns host P on port 5. A frame for P later arrives on port 5. What forwarding action does it take?
  1. Flood the frame.
  2. Send it out port 5.
  3. Filter the frame.
  4. Delete P’s entry.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An empty-table switch receives M → N on port 2, then N → M on port 4. A third frame K → N arrives on port 1. Where does that third frame go?
  1. Only port 4.
  2. All ports except port 1.
  3. Only port 2.
  4. Only ports 2 and 4.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A transparent switch has learned H on port 2 and J on port 3. H moves to port 4 and sends to a silent, unknown host Z. J then sends to H. What does the switch do with the two frames?
  1. Flood H → Z; forward J → H only to port 2.
  2. Forward H → Z only to port 4; flood J → H.
  3. Filter H → Z; forward J → H only to port 3.
  4. Flood H → Z; forward J → H only to port 4.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Two hosts share a physical switch but belong to VLANs 30 and 40, each with its own subnet. What device function is required for them to communicate?
  1. Frame flooding across the VLANs.
  2. One trunk tag for both VLANs.
  3. IP routing between the VLANs.
  4. ARP forwarding across VLANs.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A switch receives a maximum-size 1,518-byte untagged frame and sends it tagged across a trunk allowed to carry its VLAN. What changes in frame length and FCS are needed?
  1. 1,522 bytes, with a recomputed FCS.
  2. 1,522 bytes, with the original FCS.
  3. 1,518 bytes, with a shorter payload.
  4. 1,526 bytes, with a second FCS added.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Data paths and wireless delivery10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

The received signal power is 1,000 times the noise power. What is the SNR in decibels?
  1. 10 dB
  2. 20 dB
  3. 30 dB
  4. 60 dB
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A ToR switch serves 24 servers at 10 Gb/s each and has two 40 Gb/s uplinks. What is the oversubscription ratio?
  1. 1 : 3
  2. 3 : 1
  3. 6 : 1
  4. 2 : 1
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

How many hosts and switches are in a three-tier fat tree built with eight-port switches?
  1. 64 hosts and 80 switches.
  2. 128 hosts and 160 switches.
  3. 512 hosts and 320 switches.
  4. 128 hosts and 80 switches.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A laptop has obtained IP settings. Its DNS server is off-subnet and its gateway MAC is cached. What destination addresses does its Ethernet-carried DNS query use?
  1. Gateway MAC outside; DNS server IP inside.
  2. DNS server MAC outside; gateway IP inside.
  3. Broadcast MAC outside; DNS server IP inside.
  4. Switch MAC outside; DNS server IP inside.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

After resolving a remote DNS server through its gateway, a laptop receives a different remote IP for a website. Its ARP cache remains valid. For a new HTTPS-over-TCP connection, what must happen before HTTP data can be sent?
  1. ARP for the web server, then TLS setup without TCP.
  2. DHCP again, then TCP setup using the DNS server MAC.
  3. TCP setup, then TLS setup; reuse the gateway mapping.
  4. TLS setup, then TCP setup; replace the gateway mapping.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Two wireless stations can both reach an AP but cannot hear each other. Why can their transmissions collide even when each senses silence?
  1. The AP uses the same MAC address for both stations.
  2. Sensing describes each sender’s location, not reception at the AP.
  3. Sensing always reserves the next complete frame duration.
  4. The stations are necessarily assigned overlapping IP addresses.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Two unrelated Wi-Fi APs advertise the same SSID but have no common distribution system. Do they form one ESS?
  1. No; a common distribution system is also required.
  2. Yes; the shared name alone establishes one ESS.
  3. No; every BSS must advertise a different SSID.
  4. Yes; equal SSIDs also give them equal BSSIDs.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Stations U and V defer behind a busy Wi-Fi channel. They choose backoffs of 2 and 6 slots. U then sends successfully. How many slots remain for V when countdown resumes?
  1. 6 slots
  2. 0 slots
  3. 2 slots
  4. 4 slots
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Wired host W sends through an AP to wireless host L on the same LAN. What are radio addresses 1, 2 and 3 in the AP’s three-address data frame?
  1. L, W, AP.
  2. AP, W, L.
  3. AP, L, W.
  4. L, AP, W.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A station joins WPA3-Personal Wi-Fi and then obtains an IPv4 address automatically. What is the relevant setup order?
  1. Association, SAE, DHCP, four-way handshake.
  2. SAE, association, four-way handshake, DHCP.
  3. DHCP, association, SAE, four-way handshake.
  4. Open authentication, DHCP, association, SAE.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Cellular control, radio timing and mobility10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Which LTE core element coordinates attachment and mobility control rather than forwarding ordinary user packets?
  1. The MME.
  2. The S-GW.
  3. The P-GW.
  4. The eNodeB.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An LTE scheduler assigns five resource blocks across frequency in one slot. What total frequency width do those blocks occupy?
  1. 75 kHz
  2. 180 kHz
  3. 900 kHz
  4. 1,800 kHz
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A UE changes eNodeBs while its S-GW and IP address remain fixed. What must change to redirect its downlink packets without changing an existing TCP connection’s endpoint address?
  1. The UE address inside the carried datagram.
  2. The remote endpoint’s inner IP address.
  3. The tunnel endpoint toward the unchanged P-GW.
  4. The tunnel endpoint toward the serving eNodeB.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

What does a 20 Gb/s 5G peak downlink requirement tell a phone user about ordinary application downloads?
  1. It is the minimum application rate for every registered phone.
  2. It is a design target, not a guaranteed user download rate.
  3. It is a fixed total rate shared equally by all national subscribers.
  4. It is a guaranteed rate whenever a phone displays a 5G icon.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An NR scheduler uses 60 kHz subcarrier spacing. A UE receives one normal 14-symbol slot in every six-slot cycle and carries 4,800 bits in each allocated slot. Ignoring overhead, what is its average rate?
  1. 0.8 Mb/s
  2. 3.2 Mb/s
  3. 6.4 Mb/s
  4. 19.2 Mb/s
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A factory uses standalone 5G and wants its local application’s user traffic to avoid a distant core forwarding site. Which placement change directly shortens that user-data path?
  1. Place the UPF near the factory application.
  2. Place the AUSF near the factory application.
  3. Move only the UDM subscriber repository nearby.
  4. Place only the AMF near the factory application.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A roaming phone receives traffic through a home-network gateway far from both the phone and its nearby server. What mobility tradeoff does this illustrate?
  1. Direct routing with no home-network involvement.
  2. A new IP subnet created by each Ethernet switch.
  3. A radio collision corrected by source routing.
  4. Transparent anchoring with a triangle-routing detour.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A target LTE eNodeB has reserved resources, but the UE has not yet accessed its cell. In the normal handover sequence, what must occur before the target requests the core path switch?
  1. The source permanently releases all UE resources.
  2. The P-GW gives the UE a replacement IP address.
  3. The UE accesses the target and reports completion.
  4. The S-GW completes path switching before radio arrival.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A Mobile IPv6 node keeps home address H, registers care-of address C1, then moves and registers C2. A correspondent continues ordinary indirect delivery. What destination addresses does the home agent use for the inner packet and outer tunnel?
  1. Inner C2; outer C2.
  2. Inner H; outer C1.
  3. Inner H; outer C2.
  4. Inner C1; outer H.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A loss-based TCP flow loses packets during a radio handover although wired queues are not congested. Why can its throughput fall after radio delivery resumes?
  1. Link-layer retries guarantee TCP retains its earlier sending rate.
  2. A completed handover immediately restores the earlier TCP window.
  3. Empty wired queues prevent every TCP congestion response.
  4. Loss can trigger a congestion response and a lower sending rate.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Diagnose complete network scenarios10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A received frame has a nonzero CRC remainder. What conclusion is justified?
  1. The sender is authenticated.
  2. The erroneous bit position is known.
  3. The original data can always be reconstructed.
  4. The frame contains a detected error.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Two synchronized ideal CDMA senders use codes (1, 1, −1, −1) and (1, −1, 1, −1). The receiver sees (0, 2, −2, 0). What data bits did the first and second senders transmit?
  1. First 0, second 1.
  2. First 1, second 1.
  3. First 1, second 0.
  4. First 0, second 0.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Three saturated slotted-ALOHA nodes independently attempt with probability 0.5. An observer ignores all empty slots. Among the remaining slots, what fraction are successful?
  1. 3/7.
  2. 3/8.
  3. 1/2.
  4. 6/7.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A VLAN 70 broadcast arrives at a switch with VLAN 70 access ports and a trunk that allows only VLANs 10 and 20. Where can that broadcast leave?
  1. All access ports and the trunk.
  2. Other VLAN 70 access ports only.
  3. Other VLAN 70 ports and the trunk.
  4. Only the router port in VLAN 20.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A rack has 32 servers with 25 Gb/s links and four 100 Gb/s uplinks. During one interval, eight servers each send at 25 Gb/s to local peers, and the other 24 equally saturate the uplinks toward remote racks. What is each remote sender’s uplink-limited rate?
  1. About 16.7 Gb/s.
  2. 12.5 Gb/s.
  3. 25 Gb/s.
  4. About 8.3 Gb/s.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Two 80 Gb/s flows hash to one 100 Gb/s ECMP path while an equal-cost 100 Gb/s path is idle. What best explains their combined throughput ceiling and a risk of packet-by-packet spreading?
  1. The flows can total 160 Gb/s; packet spreading risks reordering.
  2. They total at most 100 Gb/s; packet spreading preserves ordering.
  3. They total at most 80 Gb/s; packet spreading risks reordering.
  4. They total at most 100 Gb/s; packet spreading risks reordering.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A stationary receiver initially has SNR 24 dB. Its sender then doubles the free-space distance while receiver noise power doubles. What is the approximate new SNR?
  1. 18 dB.
  2. 21 dB.
  3. 15 dB.
  4. 12 dB.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A unicast Wi-Fi frame reaches an AP correctly, but its ACK is lost. The sender retries with the same sequence identity. How should the AP handle delivery and acknowledgment?
  1. Deliver another payload copy and acknowledge the retry.
  2. Suppress duplicate delivery and acknowledge the retry.
  3. Suppress duplicate delivery and withhold the retry’s ACK.
  4. Deliver another payload copy and withhold the retry’s ACK.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A phone uses an NR radio with an LTE anchor and an EPC core. How is this deployment classified, and which core supplies its service?
  1. Standalone; NR requires service from a 5G core.
  2. Non-standalone; the EPC supplies core service.
  3. Non-standalone; a 5G UPF replaces the EPC.
  4. Standalone; only subscriber records stay in LTE.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A mobile device moves from V1 to V2 and updates its home agent. Server A uses indirect routing. Server B still uses a cached direct-routing locator for V1. What does each path need to reach the device now?
  1. A uses the home tunnel to V2; B needs a locator update or forwarding from V1.
  2. A and B both use the updated home tunnel to V2 without any further action.
  3. A needs a new locator for V2; B automatically uses the updated home tunnel.
  4. A still uses the home tunnel to V1; B already reaches V2 through direct routing.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

117 Key Terms, each with its definition

A

Access efficiency
Access efficiency is the long-run successful fraction of shared-channel capacity under a stated traffic and protocol model.
An ALOHA efficiency of 0.37 describes total successful capacity, not each node’s individual share.
Access point
An access point is a wireless link-layer device that connects associated stations to a distribution network and bridges their traffic.
A bridge-mode AP converts an Ethernet frame into an 802.11 frame without making an IP routing decision.
Ad hoc network
An ad hoc network lets wireless nodes communicate without an infrastructure access base station, potentially forwarding for one another.
A mobile ad hoc network can relay a packet through several moving wireless participants.
AMF
The access and mobility management function handles 5G access registration and mobility control, coordinating with other core services.
The AMF manages control procedures while the UPF forwards the subscriber’s application packets.
ARP
Address Resolution Protocol maps an IPv4 next-hop address to a MAC address on the local link through requests and replies.
A laptop resolves its gateway’s IPv4 address before framing a packet for a remote DNS server.
ARP cache
An ARP cache stores learned local IPv4-to-MAC mappings with expiration information so a host can reuse them without querying for every packet.
One valid gateway cache entry supports packets sent to several different remote networks.
Association
Association is the link setup exchange that establishes a station’s membership in a chosen BSS so the AP can bridge its data.
A station associates with the selected AP before normal DHCP-based IP configuration through that AP.

B

Beacon
A beacon is a periodic Wi-Fi management frame advertising BSS information that stations can discover through passive scanning.
A laptop listens on a channel for beacons to learn which APs are available without sending probes.
Beamforming
Beamforming coordinates antenna signals to concentrate transmission or reception toward a desired direction, helping high-band radio links.
A focused beam can improve a short FR2 link, though it cannot eliminate blockage by every obstacle.
Binary exponential backoff
Binary exponential backoff enlarges the random retry range after repeated collisions, spreading attempts over more possible waiting slots.
After collision three, classic Ethernet chooses K from 0 through 7 for its retry delay.
Binding Update
A Binding Update is a Mobile IPv6 message registering an association between a stable home address and a current care-of address.
The mobile node informs its home agent after obtaining a care-of address on the visited IPv6 link.
Bit time
A bit time is the time needed to transmit one bit at a link’s data rate, so the same bit count lasts less time at higher rates.
A 512-bit backoff slot takes 51.2 μs at 10 Mb/s but only 5.12 μs at 100 Mb/s.
Broadcast domain
A broadcast domain is the set of interfaces reached by a link-layer broadcast under the LAN’s forwarding and VLAN membership rules.
An ARP request reaches other members of its VLAN but does not cross a router as a layer-2 broadcast.
Broadcast storm
A broadcast storm is excessive repeated broadcast traffic, often caused by frames circulating and multiplying through a layer-2 loop.
Ethernet’s lack of a TTL makes preventing the active loop essential to containing flooded copies.
BSS
An infrastructure basic service set consists of an access point and the wireless stations associated with that AP.
Moving between campus APs changes the station’s BSS even when its IP subnet stays the same.
BSSID
A basic service set identifier identifies a particular BSS, normally using the infrastructure AP radio’s MAC address.
A station can distinguish two campus radios with the same SSID by comparing their BSSIDs.
Burst error
A burst error is an error pattern whose span runs from its first changed bit through its last, including any unchanged bits between them.
Two flipped bits separated by four unchanged bits form a burst spanning six positions.

C

Care-of address
A care-of address identifies a mobile node’s current attachment in Mobile IP, letting a home agent tunnel traffic toward the visited network.
The home address can remain stable while a new care-of address reflects the device’s changed location.
Carrier sensing
Carrier sensing is listening to a medium before transmitting to determine whether a detectable transmission is already under way.
A distant signal still in flight can leave a station sensing silence even when another has started.
CDMA
Code-division multiple access spreads each sender’s symbols with a distinct chip code and recovers them by correlating the combined signal.
A receiver multiplies received chip values by the desired code and averages the products.
Channel bonding
Channel bonding combines adjacent frequency resources into a wider Wi-Fi channel, increasing potential rate while occupying more spectrum.
A wider channel may increase one link’s peak rate but leaves fewer independent channels nearby.
Clos fabric
A Clos fabric is a multistage switching network with multiple paths between endpoints, built to increase capacity and resilience.
Extra paths can preserve inter-rack connectivity when one link or intermediate switch fails.
CMTS
A cable modem termination system is the operator-side cable-access element that transmits downstream and coordinates modem upstream opportunities.
The CMTS announces an upstream schedule to many household modems over the downstream channel.
Collision
A collision occurs when overlapping transmissions at a shared receiver prevent successful decoding of the affected frames.
Two hidden stations may both send after sensing silence and then collide at their common AP.
Connectionless service
A connectionless service allows a transmission without first establishing a protocol-level connection through a setup handshake.
Ethernet can send a frame without an Ethernet connection handshake with its destination.
CSMA/CA
CSMA/CA combines carrier sensing, contention backoff and collision-avoidance procedures so wireless stations share access without collision detection.
A sender completes its frame and relies on acknowledgment rather than detecting a collision mid-frame.
CSMA/CD
CSMA/CD combines carrier sensing with collision detection, stopping a damaged transmission and retrying after a randomized backoff.
Classic shared Ethernet sends a jam signal when it detects a collision during transmission.
Cyclic redundancy check
A cyclic redundancy check detects bit errors by testing whether a received bit polynomial divides exactly by an agreed generator.
A nonzero division remainder makes the Ethernet adapter discard the received frame.

D

Default gateway
A default gateway is the local router next hop used for destinations without a more specific matching route in a host’s routing table.
The first frame for an off-subnet DNS server targets the gateway’s MAC, not the DNS server’s MAC.
DHCP
Dynamic Host Configuration Protocol supplies a host with addressing settings such as an IP address, subnet information, gateway and DNS server.
A newly connected laptop begins with a broadcast because it has not yet obtained its own address.
DIFS
Distributed inter-frame spacing is an idle waiting interval used before ordinary distributed Wi-Fi contention, longer than SIFS.
A deferred station waits for the channel’s required idle interval before resuming its backoff.
Direct routing
Direct mobility routing lets the correspondent learn the mobile node’s current location and send toward it without the normal home detour.
A later move needs additional location handling because the correspondent no longer relies only on home routing.
DNS
The Domain Name System maps names to information such as IP addresses, letting an application locate a service by a human-readable name.
The browser learns a remote web server’s IP address before starting its new transport connection.
DOCSIS
DOCSIS is the cable-access specification family that coordinates shared upstream transmission and downstream service between modems and a CMTS.
A modem can request capacity in a contention opportunity and later send data in a granted burst.

E

ECMP
Equal-cost multipath selects among routes with equal cost, commonly hashing each flow onto one path to preserve packet order.
Two large flows can hash together and congest one path while another equal-cost path remains idle.
Encapsulation
Encapsulation places one protocol’s unit inside another protocol’s payload, adding fields for the layer currently transporting it.
A DNS message can sit inside UDP, then IP, then an Ethernet frame for the next local hop.
End-around carry
An end-around carry is an overflow from a ones’ complement addition that is added back into the least significant end of the result.
The raw sum 0x10002 folds to 0x0003 before the checksum bits are inverted.
eNodeB
An eNodeB is an LTE base station that schedules radio resources, serves a cell and takes part in mobility and handover procedures.
The source eNodeB prepares a target before commanding a UE to leave its current cell.
ESS
An extended service set joins infrastructure BSSs through a common distribution system and network name to form one logical wireless LAN.
Several campus APs can support roaming within one ESS while retaining distinct BSSIDs.
EtherType
EtherType is the Ethernet field that identifies the carried protocol, allowing the receiver to dispatch the payload to the appropriate handler.
The value 0x0806 marks an ARP message rather than an IPv4 or IPv6 datagram.
Exclusive OR
Exclusive OR is a bit operation producing 1 for unequal input bits and 0 for equal input bits, without carries or borrows.
CRC division cancels a leading 1 by XORing the aligned generator into the current pattern.

F

Fat tree
A fat tree is a structured Clos topology that provides many equal-rate paths, with a standard k-port three-tier form supporting k³/4 hosts.
A four-port fat tree connects 16 hosts using 20 switches in its standard three-tier arrangement.
FDMA
Frequency-division multiple access gives nodes separate frequency bands so they can transmit simultaneously without sharing the same band.
A reserved but unused frequency band wastes capacity even when another sender has queued data.
Filtering
Filtering is a switch’s decision to withhold forwarding when a known destination lies on the same segment as the arrival port.
Two hosts behind one hub need no second copy of their local frame sent back by the switch.
Flooding
Flooding sends a frame through other eligible ports in its VLAN when broadcast delivery is required or the unicast destination is unknown.
A silent host can remain unknown, causing frames addressed to it to reach multiple switch ports.
Forward error correction
Forward error correction adds redundancy that lets a receiver reconstruct some damaged data without requesting another transmission.
A satellite receiver can repair a correctable error without waiting through another long round trip.
Frame
A frame is a link-layer transmission unit that encapsulates a datagram with fields for local delivery and usually an error-checking trailer.
A router removes the received frame before wrapping the datagram for the next network link.
Frame check sequence
A frame check sequence is a frame field containing error-detection bits, such as the four-byte CRC carried at an Ethernet frame’s end.
Adding a VLAN tag changes protected frame bytes, so the sender must calculate a new FCS.
Full duplex
Full duplex is a link mode in which both endpoints can send at the same time, using separate simultaneous transmission directions.
A server can send a response while receiving another request on its full-duplex Ethernet link.

G

Generator
A CRC generator is the agreed bit polynomial used in modulo-2 division; a degree-r generator determines an r-bit check field.
The four-bit generator 1011 produces a three-bit remainder, including leading zeros.
gNB
A gNB is a 5G radio base station that connects UE radio access to the network and manages scheduled radio resources.
A phone’s 5G radio link reaches a gNB before its data is carried through the packet core.

H

Handover
A handover transfers a mobile device’s serving radio attachment to another base station, coordinating resources and data-path changes.
LTE prepares the target, moves the UE, switches the core path and then releases source resources.
Hidden terminal
A hidden terminal is a station that can interfere at a shared receiver while being out of carrier-sensing range of another sender.
Two stations on opposite sides of a building can each hear an AP but miss each other’s transmissions.
Home network
A home network is the subscriber’s own provider network, holding subscription information and potentially anchoring mobility delivery.
A roaming subscriber’s authentication information can remain at home while access occurs abroad.
HSS
The home subscriber server stores LTE subscription and authentication information in the subscriber’s home network for network control procedures.
A visited network uses the home HSS to obtain information needed to authenticate a roaming subscriber.
Hub
An Ethernet hub is a physical-layer repeater that copies incoming bits onto other ports, leaving connected hosts in one shared collision domain.
Two hosts attached to a hub can collide even though they use separate cables to that hub.

I

IMSI
An international mobile subscriber identity is a subscription identifier stored by the SIM, composed of country, network and subscriber digits.
The IMSI identifies the subscription used during attachment, not the UE’s assigned IP address.
Indirect routing
Indirect mobility routing sends traffic through a home anchor before tunneling it to the mobile device’s current attachment.
A nearby server’s traffic may still travel through a faraway home network before reaching the phone.
Infrastructure mode
Infrastructure mode is wireless operation in which stations connect through a base station such as a Wi-Fi AP or cellular radio station.
A laptop reaches the wired campus network through its associated Wi-Fi access point.
Interference
Interference is unwanted energy from competing transmitters that makes the desired signal harder for a receiver to decode.
Bluetooth activity and microwave emissions can disturb Wi-Fi reception in the 2.4 GHz band.
Interframe gap
An Ethernet interframe gap is a mandatory idle interval of 96 bit times between frames, contributing to occupied link time.
Wire-time efficiency includes the gap even though it is not part of the address-through-FCS frame.
Internet checksum
The Internet checksum is the complement of a ones’ complement sum of 16-bit words, checked by adding the received words and checksum.
A receiver expects an all-ones result after including the transmitted checksum in its folded sum.

L

Link-layer reliable delivery
Link-layer reliable delivery uses acknowledgments and retransmissions to recover losses locally, without waiting for an end-to-end retry.
A Wi-Fi retry can repair a radio loss before a distant TCP sender would retransmit its data.
Load balancer
A load balancer distributes requests or connections across servers that provide one service, often hiding their internal addresses from clients.
Clients contact one public service address while requests are assigned to several backend servers.
Locally administered address
A locally administered MAC address has its local bit set, indicating assignment outside the universal manufacturer allocation scheme.
A phone may use a randomized local unicast address when joining a particular Wi-Fi network.

M

MAC address
A MAC address is a link-layer identifier for a network interface, commonly 48 bits long and written as six hexadecimal byte pairs.
A laptop’s Ethernet and Wi-Fi interfaces each have their own local delivery address.
MAP message
A DOCSIS MAP message announces upstream access opportunities, including grants, contention regions and information for tracking requests.
A pending indication can tell a modem that its request was recognized even before a data grant arrives.
MME
The mobility management entity is an LTE control-plane element coordinating attachment, authentication support and movement-related signaling.
The MME consults the home HSS while setting up connectivity for a visiting subscriber.
MTU
A maximum transmission unit is the largest network-layer packet that a link can carry in one frame’s payload under its supported format.
Ordinary Ethernet’s 1,500-byte MTU excludes the Ethernet header and frame check sequence.
Multipath propagation
Multipath propagation brings several copies of a transmitted signal along routes of different lengths, causing different arrival delays.
Reflections from walls can overlap at an indoor receiver and blur its symbol decisions.
Multiple access protocol
A multiple access protocol coordinates when several nodes transmit over a shared channel and determines how competing attempts are handled.
Wi-Fi stations need access rules because several devices can have frames queued on one channel.

N

Neighbor Discovery
Neighbor Discovery is an IPv6 protocol suite using ICMPv6 messages for tasks including local neighbor address resolution.
IPv6 sends neighbor solicitations and advertisements instead of using IPv4 ARP messages.
Network slicing
Network slicing provides differentiated virtual networks over shared cellular infrastructure, supporting distinct service requirements.
An operator can support industrial control and ordinary broadband as separate service slices.
New Radio
New Radio is the 5G radio interface, using OFDM-based signaling with scalable subcarrier spacings and slot durations.
A 30 kHz spacing gives a normal 0.5 ms slot, while 120 kHz gives a 0.125 ms slot.
NIC
A network interface controller is adapter hardware that handles framing, medium access and error checks, supported by operating-system software.
The NIC rejects a damaged Ethernet frame before delivering its IP payload to the host.
Node
A node is a device that runs a link-layer protocol, including a host, router, switch or wireless access point.
A path from a laptop to a server crosses links between several different kinds of nodes.

O

Orthogonal codes
Orthogonal codes are sequences whose inner product is zero, allowing ideal code correlation to remove another sender’s contribution.
Two synchronized four-chip senders can be separated when their spreading codes are orthogonal.
OUI
An organizationally unique identifier is an IEEE-assigned prefix used in a familiar manufacturer allocation scheme for universal MAC addresses.
The first 24 bits can identify the organization assigning the remaining adapter address bits.
Oversubscription
Oversubscription is the ratio of total offered server-facing link capacity to the uplink capacity available for traffic leaving a group.
A rack with 800 Gb/s toward servers and 400 Gb/s of uplinks has a 2 : 1 ratio.

P

P-GW
The packet data network gateway connects LTE service to external packet networks and provides the UE’s IP address and associated connectivity.
Home-routed roaming can carry user traffic through a P-GW in the subscriber’s home network.
Padding
Ethernet padding consists of extra data-field bytes added when the carried packet is shorter than the frame format’s minimum payload.
A 24-byte IP datagram needs 22 padding bytes to make a 46-byte Ethernet data field.
Parity bit
A parity bit is an extra bit chosen so that the total number of ones in the protected sequence has a specified even or odd parity.
Adding a 1 to data with five ones produces an even total of six ones for even parity.
Path loss
Path loss is the weakening of received radio power as a signal travels, affected by distance, obstacles and the propagation environment.
With free-space propagation, doubling distance reduces received signal power to one quarter.
Point-to-point link
A point-to-point link connects two endpoints directly, so its access rules do not need to coordinate several independent local transmitters.
A full-duplex cable between a laptop and a switch port is a point-to-point Ethernet link.
Polling
Polling is a taking-turns protocol in which a controller invites nodes to transmit, typically limiting the amount sent per invitation.
An active station can wait while the controller checks several stations with nothing queued.
Power-save buffering
Power-save buffering holds frames at an AP for a sleeping station and signals pending traffic when that station checks beacon information.
A phone can keep its radio asleep between wake intervals while the AP stores incoming frames.
Propagation delay
Propagation delay is the time a signal takes to travel between two locations, determined by distance and propagation speed.
Shared Ethernet must allow collision information to complete a round trip before a minimum frame ends.
Pure ALOHA
Pure ALOHA is random access that permits frame starts at any time, creating a two-frame-time interval in which another start can overlap.
A transmission beginning just before the desired frame can collide with its opening portion.

R

Rate adaptation
Rate adaptation selects a transmission mode according to radio conditions, balancing a higher physical rate against reliable reception.
A station experiencing lower SNR may switch to a slower modulation with fewer decoding errors.
Resource block
An LTE resource block contains 12 subcarriers spaced 15 kHz apart over a 0.5 ms slot, forming a unit of time-frequency resources.
Five frequency-adjacent resource blocks span 900 kHz during their assigned slot.
RTS/CTS
RTS/CTS is an optional request-and-clear exchange that reserves airtime, allowing stations hearing the receiver to defer a transmission.
A station hidden from the sender may hear the AP’s CTS and wait through the announced exchange.

S

S-GW
The serving gateway forwards LTE user traffic and can anchor the data path while the UE changes its serving eNodeB.
During handover, the S-GW updates the tunnel endpoint toward the target radio station.
Self-learning
Self-learning is a switch’s automatic recording of a received frame’s source MAC address on its incoming port.
A host’s reply teaches its location; being named as a destination in an earlier frame does not.
Sequence number
A link-layer sequence number identifies transmitted data so the receiver can recognize a retry and suppress repeated delivery.
If the data arrives but its ACK is lost, the retry can be acknowledged without delivering data twice.
SIFS
Short inter-frame spacing is the brief interval before response frames such as a unicast ACK, giving them priority over new contention.
An ACK sent after SIFS can precede a station waiting through the longer DIFS interval.
Slotted ALOHA
Slotted ALOHA is random access in which equal-length frames start only at synchronized boundaries and collided frames retry probabilistically.
Exactly one transmitter makes a successful slot; silence and simultaneous attempts waste slots.
SMF
The session management function controls 5G data sessions and IP address management, arranging user-plane forwarding through UPFs.
The SMF can manage a session whose chosen UPF sits near the application’s edge location.
SNR
Signal-to-noise ratio compares received signal power with background noise power, often expressed as ten times the logarithm of that power ratio.
A power ratio of 100 gives 20 dB; reducing signal power at fixed noise lowers the SNR.
Spanning Tree Protocol
Spanning Tree Protocol selects a loop-free active switching topology by blocking redundant links and adapting after connectivity failures.
A blocked redundant link can restore connectivity after an active path through the LAN fails.
SSID
A service set identifier is the Wi-Fi network name advertised to stations, which can be shared by multiple BSSs or unrelated networks.
The same displayed name on two APs does not by itself establish one connected wireless network.
Standalone 5G
Standalone 5G pairs NR access with the 5G core, allowing its service-based control and user-plane functions to manage connectivity.
An NR deployment anchored on LTE and using EPC is non-standalone rather than standalone.
Switch table
A switch table records learned MAC locations and timing information, allowing a switch to select output ports for known destinations.
A source observed on port 7 refreshes that MAC’s location even if its destination remains unknown.

T

TDMA
Time-division multiple access assigns recurring time slots to nodes, allowing each node to transmit only during its designated intervals.
An idle node’s slot remains unused in a fixed TDMA allocation while another node waits.
TLS
Transport Layer Security establishes an authenticated protected channel, used by HTTPS to secure web traffic above the transport connection.
In an HTTPS-over-TCP trace, the TLS handshake follows TCP setup and precedes encrypted HTTP data.
Token passing
Token passing is distributed access control in which a circulating control frame grants its current holder a bounded opportunity to send.
A node with no data promptly passes the token so the next participant can take a turn.
Top-of-rack switch
A top-of-rack switch connects servers within a rack and supplies uplinks carrying their traffic toward other racks or external networks.
Many fast server ports can compete for less total capacity on the rack switch’s uplinks.
Trunk
A trunk is a link between VLAN-aware devices that transports traffic for multiple allowed VLANs while preserving their separate identities.
A trunk allowing VLANs 10 and 20 does not automatically carry a broadcast belonging to VLAN 30.
Two-dimensional parity
Two-dimensional parity adds row and column checks to a bit block, allowing one changed bit to be located at two failed checks’ intersection.
A failed third row and second column locate one flipped data bit at row 3, column 2.

U

Undetected error
An undetected error is a change to protected data that still passes the chosen error check because the altered pattern has a valid check result.
Swapping complete 16-bit words can change data while leaving its Internet checksum valid.
UPF
The user plane function forwards 5G user packets and can be deployed separately from control functions to shape data-path placement.
A local UPF can keep factory application traffic from taking a detour through a distant forwarding site.
User equipment
User equipment is the cellular device, such as a phone or modem, that accesses an operator network through a serving radio base station.
The UE reports signal measurements that help the network decide whether to prepare a handover.

V

VID
A VLAN identifier is the 12-bit field in an 802.1Q tag that identifies VLAN membership, with 0 and 4095 reserved for special meanings.
The remaining values provide 4094 ordinary usable VLAN identifiers on an 802.1Q network.
Visited network
A visited network is a network serving a subscriber outside the subscriber’s own home network, such as a roaming partner operator.
A traveler can use local radio access while user traffic is still anchored through the home provider.
VLAN
A virtual LAN is a separate logical layer-2 network formed on shared switching infrastructure, with its own broadcast domain.
Engineering and finance ports can remain separate even when both groups use the same physical switch.
Vulnerable interval
A vulnerable interval is the range of competing transmission start times that could overlap and corrupt a particular frame.
Slot boundaries shorten ALOHA’s vulnerable interval by eliminating partial frame overlaps.
VXLAN
VXLAN is an overlay encapsulation that carries Ethernet frames inside UDP/IP packets and distinguishes virtual networks with a 24-bit identifier.
Two virtual machines can share a virtual LAN while the physical fabric routes their outer packets.

#

802.1Q tag
An 802.1Q tag is a four-byte field inserted after the Ethernet source MAC address to carry VLAN identity and related control information.
Adding the tag increases a maximum ordinary Ethernet frame to 1,522 bytes and changes its CRC.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started