Seven layers, bottom to top. 1 Physical moves bits as signals over copper, fiber or radio. 2 Data link frames
those bits and delivers them on one segment using MAC addresses (Ethernet, Wi-Fi). 3 Network gives logical
addresses and routes packets between networks (IP). 4 Transport carries data between processes using ports,
with or without reliability (TCP, UDP). 5 Session, 6 Presentation and 7 Application cover dialog control,
data formats and encryption, and the protocols users touch (HTTP, DNS, SMTP).
Go deeper
Layer by layer
Layer
Name
Job
PDU
Examples
Devices
7
Application
Protocols the application speaks
Data
HTTP, DNS, SMTP, SSH
Proxies, L7 load balancers
6
Presentation
Encoding, compression, encryption
Data
TLS (often placed here), ASCII, JPEG
5
Session
Opening, managing and closing dialogs
Data
RPC, NetBIOS sessions
4
Transport
Process to process delivery, ports, reliability, flow control
Segment (TCP), datagram (UDP)
TCP, UDP
Stateful firewalls, L4 load balancers
3
Network
Logical addressing, routing between networks
Packet
IPv4, IPv6, ICMP
Routers, L3 switches
2
Data link
Framing, MAC addressing, error detection on one link
Frame
Ethernet, 802.11, PPP
Switches, bridges, APs
1
Physical
Bits as electrical, light or radio signals
Bits
1000BASE-T, 10GBASE-LR
Hubs, repeaters, cables, transceivers
How I say it in the room
I describe each layer by what problem it solves, not by memorized names. Layer 2 answers "how do I get this
frame to the next box on this wire". Layer 3 answers "how do I get this packet to the right network
anywhere". Layer 4 answers "which program gets it, and does it arrive complete and in order".
A common mnemonic from the bottom is "Please Do Not Throw Sausage Pizza Away". Use it to recall the order,
then talk about function.
They will ask next
Which layer adds error detection, and does it correct errors?
Layer 2 adds the 4-byte FCS (a CRC-32) to every Ethernet frame. A receiver that finds a bad FCS drops
the frame and counts a CRC error. Nothing at layer 2 in Ethernet retransmits it. Recovery, if any,
comes from TCP at layer 4 or from the application.
Where does a VLAN tag live?
At layer 2. The 802.1Q tag is 4 bytes inserted after the source MAC address in the Ethernet header.
What is the difference between a segment and a datagram?
Both are layer 4 PDUs. Segment is the TCP term, datagram the UDP term. People also say "IP datagram"
for a layer 3 packet, so be ready to clarify which one you mean.
Traps
Reciting the names without saying what each layer does. Interviewers want function and examples.
Putting switches at layer 3 by default. A plain switch is layer 2. A layer 3 switch also routes.
How does the TCP/IP model differ from the OSI model?
Say this first
The TCP/IP model is the one the internet actually runs. RFC 1122 defines four layers: link, internet,
transport and application. OSI splits the link layer into physical and data link, and splits the top into
session, presentation and application. Many textbooks use a five-layer hybrid: physical, data link, network,
transport, application. OSI is the vocabulary we use; TCP/IP is the protocol suite that won.
Go deeper
Side by side
OSI
TCP/IP (RFC 1122)
Protocols
7 Application, 6 Presentation, 5 Session
Application
HTTP, DNS, DHCP, SSH, TLS, BGP
4 Transport
Transport
TCP, UDP
3 Network
Internet
IPv4, IPv6, ICMP
2 Data link, 1 Physical
Link
Ethernet, Wi-Fi, PPP
Why the difference matters
OSI was designed first as a model, then protocols were written to fit it. TCP/IP grew from working
protocols, and the model describes what was built.
In TCP/IP the application handles what OSI calls session and presentation. TLS, for example, is a library
the application calls.
When engineers say "layer 2", "layer 3", "layer 4" or "layer 7" they borrow OSI numbers even though they
run TCP/IP. Nobody says "layer 5 problem" in practice.
They will ask next
Why do some books show TCP/IP with five layers and others with four?
The original RFC 1122 model has four layers, with one link layer. Many teaching texts split the link
layer into physical and data link because the two have very different problems (signals versus
framing). Both are fine as long as you say which you are using.
Where does TLS sit in the TCP/IP model?
In the application layer. It runs on top of TCP and below HTTP, so in OSI terms people place it at
layer 6 or describe it as sitting between layers 4 and 7.
Traps
Saying TCP/IP has seven layers. It has four (or five in the teaching variant).
Layering lets each protocol solve one problem and trust the layer below for the rest. You can swap Wi-Fi for
Ethernet without changing TCP, or change HTTP without touching IP. It also gives engineers a shared
vocabulary and a structured way to troubleshoot: prove the physical link, then layer 2, then layer 3, and so on.
Go deeper
What layering buys you
Independence. Each layer offers a service to the one above through a defined interface. IP runs over
Ethernet, Wi-Fi, LTE or an MPLS label switched path without changes.
Interoperability. Vendors build to one layer's standard. A Cisco switch and a Linux host agree on
Ethernet without agreeing on anything above it.
Troubleshooting. "Link is up, I can ARP for the gateway, but I cannot ping past it" puts the fault at
layer 3 in a few seconds.
Encapsulation. Each layer adds its own header, so devices only look as deep as they need. A switch
reads the Ethernet header; a router reads the IP header.
The cost
Every layer adds header overhead and some processing. Strict layering also hides useful information, which
is why real systems cross layers on purpose: TCP MSS is set from the interface MTU, and QoS marks at layer 3
(DSCP) are mapped to layer 2 (CoS).
They will ask next
Give an example of one layer changing without affecting another.
A laptop moves from Ethernet to Wi-Fi. Layer 1 and layer 2 change completely. If it keeps the same IP
address, its TCP sessions continue, because TCP only cares about IP addresses and ports.
Traps
Treating the model as how packets are built in strict order in every case. Real stacks cross layers (MSS from MTU, ARP serving IP).
Explain encapsulation and name the PDU at each layer.
Say this first
Going down the stack, each layer wraps the data from the layer above with its own header (and for Ethernet a
trailer). Application data becomes a TCP segment or UDP datagram, then an IP packet, then an Ethernet frame,
then bits on the wire. The receiver decapsulates in reverse, and each layer uses a type field to know who to
hand the payload to next.
Go deeper
A web request on Ethernet
Layer
PDU
Header added
Typical size
7
Data
HTTP
variable
4
Segment
TCP header (ports, seq, ack, flags)
20 bytes, up to 60 with options
3
Packet
IPv4 header (addresses, TTL, protocol)
20 bytes, up to 60 with options
2
Frame
Ethernet header 14 bytes + FCS 4 bytes
18 bytes, 22 with an 802.1Q tag
1
Bits
Preamble and SFD 8 bytes, then 12 bytes of interframe gap
20 bytes of wire overhead
How the receiver knows what is inside
Each header has a field that names the next protocol. This is multiplexing on the way down and
demultiplexing on the way up.
A full 1500-byte IP packet carrying TCP leaves 1460 bytes of application data (1500 minus 20 IP minus 20
TCP). On the wire it costs 1538 bytes: 1500 + 18 Ethernet + 20 preamble and gap.
They will ask next
Does a router decapsulate all the way to layer 7?
No. It strips the layer 2 frame, reads the layer 3 header, makes a forwarding decision, and builds a new
frame for the outgoing link. It does not look at TCP or the payload unless a feature asks it to (ACLs
matching ports, NAT, NetFlow, firewall inspection).
What is the minimum Ethernet frame size and why?
64 bytes from destination MAC to FCS. Shorter payloads are padded to 46 bytes. The minimum comes from
half-duplex CSMA/CD: a sender must still be transmitting when a collision from the far end of a
maximum-length segment reaches it, so it can detect the collision.
Traps
Calling everything a "packet". Use frame for layer 2 and packet for layer 3 when precision matters.
Forgetting the FCS is a trailer, not part of the header.
What is the difference between a hub, a switch and a router?
Say this first
A hub is layer 1: it repeats every bit out every other port, so all ports share one collision domain and run
half duplex. A switch is layer 2: it learns source MACs and forwards each frame only to the port where the
destination lives; each port is its own collision domain, but all ports in a VLAN share one broadcast domain.
A router is layer 3: it forwards packets between networks by IP address and does not forward broadcasts, so
each interface is its own broadcast domain.
Go deeper
Comparison
Hub
Switch
Router
Layer
1
2
3
Decides on
Nothing
Destination MAC
Destination IP (longest prefix match)
Collision domains
One for all ports
One per port
One per interface
Broadcast domains
One
One per VLAN
One per interface
Duplex
Half only
Full on each port
Full on each interface
Unknown destination
Repeats everywhere
Floods within the VLAN
Drops (or uses default route)
Details worth adding
A switch floods three things inside the VLAN: broadcasts, unknown unicast and multicast without IGMP
snooping.
A router rewrites the layer 2 header and decrements TTL. A switch forwards the frame unchanged (apart from
VLAN tagging).
A layer 3 switch does both jobs in hardware. Routers usually win on WAN interfaces, deep buffers, large
routing tables and features like NAT, VPN and full BGP tables.
They will ask next
Do hubs still matter?
Not in production. They matter as a concept: half duplex, one collision domain, and why CSMA/CD existed.
A small "dumb" switch is still a switch.
How does a switch learn where a MAC lives?
From the source MAC of each frame it receives, recorded against the ingress port and VLAN. Entries age
out after 300 seconds by default on Cisco switches if no frame from that MAC is seen.
Traps
Saying a switch "breaks up broadcast domains". Only VLANs and routers do that.
A MAC address is a 48-bit layer 2 address written as 12 hex digits. The first 24 bits are the OUI, assigned
to the manufacturer by the IEEE; the last 24 bits are assigned by that vendor. Two bits in the first byte
carry meaning: the least significant bit is I/G (1 means group, so multicast or broadcast), and the next is
U/L (1 means locally administered). It only matters on the local segment; routers replace it at every hop.
Go deeper
Formats you will see
Cisco: 0050.56a1.2b3c
Linux and most others: 00:50:56:a1:2b:3c
Windows: 00-50-56-A1-2B-3C
Special addresses
Address
Meaning
ff:ff:ff:ff:ff:ff
Broadcast
01:00:5e:xx:xx:xx
IPv4 multicast (low 23 bits of the group address)
33:33:xx:xx:xx:xx
IPv6 multicast (low 32 bits of the group address)
01:80:c2:00:00:00
IEEE STP BPDUs
00:00:0c:07:ac:xx
HSRP version 1 virtual MAC (xx is the group)
Locally administered addresses
Phones and laptops now randomize their MAC per Wi-Fi network for privacy. Those addresses have the U/L bit
set, so the second hex digit is 2, 6, A or E. This breaks MAC-based tracking, some MAB setups and
DHCP reservations.
They will ask next
Why does mapping IPv4 multicast to MAC cause overlap?
Only 23 bits of the 28-bit group ID fit into 01:00:5e, so 32 IPv4 groups share each MAC. For example
224.1.1.1 and 225.1.1.1 map to the same MAC 01:00:5e:01:01:01. Hosts filter the rest in software.
Can two devices have the same MAC?
It happens with cloned VMs, bad hardware and random addresses that collide. On one VLAN it causes MAC
flapping between ports and intermittent loss. Across different VLANs or subnets it does not matter.
Traps
Saying the MAC is used end to end. It is replaced at every router.
What is the difference between a collision domain and a broadcast domain? Count them in an example.
Say this first
A collision domain is the set of devices whose transmissions can collide on a shared half-duplex medium.
Hubs extend it; every switch port and router port is its own. A broadcast domain is the set of devices that
receive a layer 2 broadcast. Switches extend it within a VLAN; routers and VLAN boundaries end it. With full
duplex on every port, collisions cannot happen at all.
Go deeper
Worked example
R1 has two LAN interfaces. Gi0/0 connects to switch SW1 with four PCs. Gi0/1 connects to a hub with three PCs.
All on one VLAN each.
Broadcast domains: 2. One per router interface. R1 does not forward broadcasts.
Collision domains: 6. SW1 has five ports in use (four PCs and the uplink to R1), each its own
collision domain. The hub, its three PCs and R1 Gi0/1 share one.
Rules of thumb
Device
Collision domains
Broadcast domains
Hub
1 for all ports
1
Switch, one VLAN
1 per port
1
Switch, N VLANs
1 per port
N
Router
1 per interface
1 per interface
Why it matters now
Collision domains are history on a full-duplex switched network. Broadcast domains still matter: every host
in one must process every ARP and broadcast, and a loop in one becomes a broadcast storm. That is why we keep
VLANs to a few hundred hosts.
They will ask next
Does a VLAN create a collision domain or a broadcast domain?
A broadcast domain. Collision domains are per port regardless of VLAN.
Is a Wi-Fi cell a collision domain?
In effect, yes. Stations share one channel and contend for it. Wi-Fi avoids collisions with CSMA/CA
because a radio cannot detect a collision while it transmits.
Traps
Saying switches break up broadcast domains. They break up collision domains.
Explain unicast, multicast, broadcast and anycast.
Say this first
Unicast is one sender to one receiver. Broadcast is one to everyone in the layer 2 domain. Multicast is one
to the group of receivers that asked for it, using class D addresses 224.0.0.0/4 and IGMP in IPv4. Anycast is
one address announced from several places, so packets go to the nearest instance by routing metric. IPv6 has
no broadcast at all; it uses multicast instead.
Go deeper
Addresses
Type
IPv4
MAC
Unicast
Any host address
The host's MAC
Broadcast
255.255.255.255 (limited), or the subnet's last address (directed)
ff:ff:ff:ff:ff:ff
Multicast
224.0.0.0/4, link-local 224.0.0.0/24
01:00:5e plus low 23 bits
Anycast
A normal unicast address used in many places
Normal unicast MAC
Details interviewers like
Directed broadcast to a remote subnet is not forwarded by Cisco routers by default
(no ip directed-broadcast has been the default since IOS 12.0) because of smurf attacks.
Switches flood multicast like broadcast unless IGMP snooping tells them which ports have receivers.
Anycast in IPv4 is purely a routing trick: the same prefix is announced by BGP from many sites. DNS root
servers, public resolvers like 8.8.8.8 and CDNs use it. It suits short transactions; a route change
mid-session can move a TCP flow to another instance.
They will ask next
Why does IPv6 not need broadcast?
Everything broadcast did is done with multicast groups. NDP uses solicited-node multicast, so only hosts
whose address ends in the same 24 bits get the query, instead of every host on the link.
Traps
Calling anycast "send to all". It goes to one, the nearest.
They describe scope. A PAN covers a few meters around one person (Bluetooth, USB). A LAN covers a building or
campus, is owned by the organization and runs fast and cheap (Ethernet, Wi-Fi). A MAN spans a city, often
metro Ethernet or dark fiber rings. A WAN connects sites across cities or countries over links you usually
lease from a provider: MPLS, internet with VPN or SD-WAN, leased lines, LTE and 5G.
Go deeper
Comparison
Type
Typical span
Who owns the links
Examples
PAN
A few meters
The user
Bluetooth headset, USB
LAN, WLAN
A floor, a building, a campus
The organization
Ethernet switches, Wi-Fi
CAN
Several buildings
The organization
Campus fiber between buildings
MAN
A city
Provider or the organization
Metro Ethernet, dark fiber
WAN
Countries and continents
Mostly providers
MPLS, internet VPN, SD-WAN, leased lines
What actually changes with scope
Cost per bit, latency and who you call when it breaks. LAN bandwidth is cheap, so you overprovision. WAN
bandwidth is expensive and slower to upgrade, so you use QoS, compression and caching. A SAN is a separate
idea: a storage network (Fibre Channel or iSCSI), not a size class.
They will ask next
Is the internet a WAN?
It is the largest network of networks. Companies use it as WAN transport by building VPN or SD-WAN
overlays on top of it.
Traps
Defining them only by distance. Ownership and cost model matter more in practice.
Describe the common network topologies and where you still see each one.
Say this first
Bus: every node on one shared cable, old coax Ethernet. Star: every node to a central device, which is every
modern switched LAN. Ring: each node to two neighbors, still used in metro and SONET or ERPS rings. Mesh:
many paths between nodes; full mesh needs n(n-1)/2 links, so it is used only for small cores and WAN cores.
Real networks are hybrids, such as a hierarchical star at the campus and spine-leaf in the data center.
Go deeper
Topologies
Topology
Strength
Weakness
Where today
Bus
Cheap, simple
One break takes all down, shared collisions
10BASE2 and 10BASE5 history
Star
Easy to add and isolate faults
The center is a single point of failure
Access layer
Extended star, hierarchical
Scales in tiers
Depends on the uplinks
Campus core, distribution, access
Ring
Two paths with few links
Needs a protocol to block the loop
Metro Ethernet rings (G.8032), SONET
Full mesh
Maximum redundancy
n(n-1)/2 links
Small cores, DMVPN spoke to spoke, WAN cores
Partial mesh
Redundancy where it matters
Design effort
Most WANs
Spine-leaf
Equal hops, ECMP
Many cables
Data centers
Mesh math
10 sites in full mesh need 10 x 9 / 2 = 45 links. 20 sites need 190. That growth is why hub and spoke
plus dynamic spoke-to-spoke tunnels (DMVPN, SD-WAN) took over.
Physical versus logical
The cabling shape and the forwarding shape can differ. A hub was a physical star but a logical bus. Token
Ring was a physical star with a logical ring inside the MAU.
They will ask next
Why is spine-leaf better than a three-tier tree in a data center?
Any leaf reaches any other leaf in two hops through any spine, and ECMP uses all spines at once. Latency
is predictable and east-west capacity grows by adding spines.
Traps
Forgetting the n(n-1)/2 formula when asked about full mesh scaling.
What is the difference between bandwidth, throughput, latency and jitter?
Say this first
Bandwidth is capacity: the link rate in bits per second. Throughput is what you actually get end to end,
limited by the slowest link, congestion, loss and TCP windows. Goodput is the useful application data after
headers and retransmissions. Latency is delay, one way or round trip. Jitter is the variation in delay from
packet to packet. Voice and video care most about latency and jitter, bulk transfers about throughput.
Go deeper
Definitions with units
Term
Unit
Example
Bandwidth
bit/s
A 1 Gbps port
Throughput
bit/s
A file copy reaching 600 Mbps
Latency
ms
35 ms RTT to a cloud region
Jitter
ms
Delay varies between 20 ms and 45 ms
Loss
%
0.5% of packets dropped
Common targets for voice
The usual guidance is one-way delay under 150 ms (ITU-T G.114), jitter under about 30 ms, and loss under 1%.
Jitter buffers trade extra delay for smooth playout.
Why throughput falls short of bandwidth
Header overhead (about 5% for full-size TCP over Ethernet).
A single TCP flow is capped at window size divided by RTT.
Loss makes TCP cut its sending rate.
The bottleneck link anywhere on the path sets the ceiling.
They will ask next
A user has a 1 Gbps link but one download only reaches 50 Mbps to a distant server. Why?
Check RTT and loss first. With 100 ms RTT, a 64 KB window caps one flow at about 5 Mbps, and even with
window scaling, small loss rates hold TCP far below link rate on long paths. Multiple streams, a closer
server or a better congestion control algorithm help more than a faster link.
Traps
Using bandwidth and speed interchangeably. More bandwidth does not reduce propagation delay.
Which copper cable categories support which speeds, and what is the distance limit?
Say this first
Twisted-pair Ethernet is limited to 100 meters per channel: 90 m of fixed horizontal cable plus up to 10 m of
patch cords. Cat5e runs 1000BASE-T and also 2.5GBASE-T. Cat6 runs 1 Gbps at 100 m and 10GBASE-T only to about
55 m. Cat6A runs 10GBASE-T at the full 100 m and is the normal choice for new cabling, especially for
multigigabit Wi-Fi APs and higher PoE. Cat8 is a short-reach data center cable for 25G and 40GBASE-T up to 30 m.
Go deeper
Categories
Category
Bandwidth
Common use
Cat5e
100 MHz
1000BASE-T at 100 m, 2.5GBASE-T
Cat6
250 MHz
1000BASE-T, 5GBASE-T, 10GBASE-T to about 55 m
Cat6A
500 MHz
10GBASE-T at 100 m
Cat8
2000 MHz
25GBASE-T and 40GBASE-T to 30 m, rack and row only
Choices that matter on a real job
Multigigabit (802.3bz): 2.5GBASE-T and 5GBASE-T were designed to run on installed Cat5e and Cat6
so Wi-Fi 6 and 7 APs can exceed 1 Gbps without recabling.
Jacket rating: plenum (CMP) for air-handling spaces, riser (CMR) between floors. Local fire code decides.
Solid versus stranded: solid core for permanent runs, stranded for patch cords.
Shielding: shielded cable (F/UTP, S/FTP) helps in high-noise areas but must be grounded correctly.
Between buildings: use fiber. Copper between buildings invites ground potential differences and
lightning damage.
They will ask next
Why is the limit 100 meters?
Signal attenuation and crosstalk grow with length. The standards specify performance for a 100 m
channel. Longer runs may link up but show errors, especially at higher speeds.
How do you extend beyond 100 meters?
Put a switch in the middle, or use fiber with media converters or optics. For a single device at
distance, some PoE extenders exist, but fiber is the clean answer.
Traps
Saying Cat6 does 10G at 100 m. It is about 55 m; Cat6A is needed for 100 m.
When do you need a crossover cable instead of a straight-through cable, and what does Auto-MDIX change?
Say this first
For 10 and 100 Mbps, PCs and routers (MDI) send on pins 1 and 2 and receive on 3 and 6, while switches and
hubs (MDI-X) do the reverse. Unlike devices (PC to switch) use straight-through; like devices (switch to switch,
PC to PC, router to PC) need crossover. Auto-MDIX detects the wiring and swaps the pairs electronically, so on
modern gear either cable works. It is on by default on current Cisco switches.
Go deeper
Pinouts
Pin
T568A
T568B
1
white-green
white-orange
2
green
orange
3
white-orange
white-green
4
blue
blue
5
white-blue
white-blue
6
orange
green
7
white-brown
white-brown
8
brown
brown
Straight-through: the same standard on both ends (usually T568B to T568B).
Crossover: T568A on one end, T568B on the other. That swaps pairs 1-2 and 3-6. A full gigabit
crossover also swaps 4-5 with 7-8.
Rollover (console): pin 1 to 8, 2 to 7 and so on, for RJ-45 console ports.
Auto-MDIX on Cisco
Cisco IOS
interface GigabitEthernet1/0/10 speed auto duplex auto mdix auto
mdix auto is the default. On older Catalyst platforms it only works when speed and duplex are left on
auto, so hard-coding speed could silently disable it and bring the link down with the wrong cable.
They will ask next
Why does gigabit Ethernet care less about crossover?
1000BASE-T sends and receives on all four pairs at the same time, so there is no fixed transmit pair.
Auto-MDIX is part of the 1000BASE-T PHY behavior in practice, and every gigabit port I have used handles
either cable.
Router to PC with no switch in between, which cable?
Crossover, because both are MDI devices. With Auto-MDIX on either end a straight cable also works.
Traps
Saying router to switch needs crossover. Router (MDI) to switch (MDI-X) is straight-through.
What is the difference between single-mode and multimode fiber?
Say this first
Multimode has a large core (50 or 62.5 microns) that carries many light paths, driven by cheap 850 nm VCSEL
optics. The paths arrive at slightly different times (modal dispersion), which limits reach to hundreds of
meters. Single-mode has a 9 micron core that carries one path, driven by 1310 or 1550 nm lasers, and reaches
10 to 80 km and beyond. Both have 125 micron cladding. The optic must match the fiber type.
Go deeper
Fiber types
Type
Core
Jacket color (common)
10GBASE-SR reach
OM1
62.5 micron
Orange
33 m
OM2
50 micron
Orange
82 m
OM3
50 micron, laser optimized
Aqua
300 m
OM4
50 micron, laser optimized
Aqua or violet
400 m
OM5
50 micron, wideband
Lime green
400 m, built for SWDM
OS1, OS2
9 micron
Yellow
n/a (single-mode optics)
Typical optics
Optic
Fiber
Wavelength
Reach
1000BASE-SX
MMF
850 nm
550 m on OM2 50 micron
1000BASE-LX/LH
SMF
1310 nm
10 km (5 km in the original IEEE spec)
10GBASE-SR
MMF
850 nm
300 m OM3, 400 m OM4
10GBASE-LR
SMF
1310 nm
10 km
10GBASE-ER
SMF
1550 nm
40 km
100GBASE-SR4
MMF, 8 fibers on MPO
850 nm
70 m OM3, 100 m OM4
100GBASE-LR4
SMF, duplex LC
4 wavelengths near 1310 nm
10 km
How I choose
Multimode for short runs inside a building or row when optics cost dominates. Single-mode for anything
between buildings, for long runs, and increasingly everywhere, because one plant then supports every
future speed.
They will ask next
What happens if you plug a multimode optic into single-mode fiber?
It may link up on a very short patch, but the large multimode beam couples poorly into the small core, so
loss is high and errors follow. It is unsupported. The reverse, single-mode optics on multimode, also
suffers; 1000BASE-LX over multimode needs a mode-conditioning patch cord.
What is a BiDi optic?
It sends and receives on different wavelengths over a single fiber strand, so one strand carries both
directions. The two ends must be a matched pair (for example one transmits at 1310 nm and the other at
1490 or 1550 nm, depending on the product).
Traps
Mixing up the core sizes. 9 micron is single-mode; 50 and 62.5 micron are multimode.
How do you read Ethernet standard names like 1000BASE-T, 10GBASE-LR or 100GBASE-SR4?
Say this first
The number is the speed in Mbps (or G for gigabits). BASE means baseband signaling. The suffix names the medium
and reach: T twisted pair, SX and SR short reach on multimode, LX and LR long reach (about 10 km) on single-mode,
ER extended (40 km), CR copper twinax (DAC), KR backplane. A trailing number is the lane count: SR4 uses four
lanes, which for SR4 means four fiber pairs.
Go deeper
Useful IEEE amendments to know
Amendment
Adds
802.3u
100BASE-TX Fast Ethernet
802.3z
1000BASE-SX and LX (fiber gigabit)
802.3ab
1000BASE-T
802.3ae
10 Gbps over fiber
802.3an
10GBASE-T
802.3ba
40 and 100 Gbps
802.3by
25 Gbps
802.3bz
2.5GBASE-T and 5GBASE-T
802.3af, at, bt
PoE, PoE+, 4-pair PoE
Reading a few
1000BASE-T: 1 Gbps over four pairs of Cat5e or better, 100 m.
10GBASE-SR: 10 Gbps, 850 nm, multimode, 300 m on OM3.
25GBASE-CR: 25 Gbps over a twinax DAC, a few meters.
100GBASE-LR4: 100 Gbps as four 25 Gbps wavelengths on one single-mode pair, 10 km.
They will ask next
What is the difference between SR4 and LR4 in how they use fiber?
SR4 runs four lanes in parallel over eight multimode fibers on an MPO connector. LR4 multiplexes four
wavelengths onto one single-mode fiber pair with LC connectors.
Traps
Guessing ZR is an IEEE standard name for 10G. 10G ZR (about 80 km) is a vendor and MSA term.
How does speed and duplex autonegotiation work, and should you hard-code it?
Say this first
On copper, both sides send bursts of link pulses that advertise their abilities, and they pick the best
common mode: highest speed, full duplex if both support it. If one side is hard-coded, it stops negotiating.
The other side can still detect the speed from the signal (parallel detection) but cannot learn the duplex, so
at 10 or 100 Mbps it falls back to half duplex. My rule: leave both ends on auto, or hard-code both ends to the
same values. Never mix.
Go deeper
Reading the result on Cisco
Cisco IOS
SW1# show interfaces statusPort Name Status Vlan Duplex Speed TypeGi1/0/1 PC-101 connected 10 a-full a-1000 10/100/1000BaseTXGi1/0/2 OLD-PRINTER connected 10 half 100 10/100/1000BaseTX
The a- prefix means the value was negotiated. No prefix means it was hard-coded.
Configuring
Cisco IOS
interface GigabitEthernet1/0/2 speed 100 duplex full
If you do this, configure the far end the same way.
Why auto is the modern default
Hard-coding was common in the 1990s when early autonegotiation was buggy. Today autonegotiation is
reliable, required for 1000BASE-T, and hard-coding one side is the main way people create duplex mismatches.
They will ask next
What happens if one side is fixed at 100 full and the other is on auto?
The auto side sees no negotiation, detects 100 Mbps from the signal, and falls back to half duplex. You
get a duplex mismatch: 100 full on one end, 100 half on the other.
Is there autonegotiation on fiber?
1000BASE-X has its own autonegotiation that agrees duplex and flow control, not speed. 10G optics have no
autonegotiation. The speed is set by the optic.
Traps
Hard-coding one end only. That is the textbook way to cause a duplex mismatch.
What PoE standards and classes exist, and how much power does each deliver?
Say this first
802.3af (PoE) gives 15.4 W at the switch port and guarantees 12.95 W at the device. 802.3at (PoE+) gives 30 W
and 25.5 W. 802.3bt uses all four pairs: Type 3 gives 60 W and 51 W, Type 4 gives 90 W and 71.3 W. The gap is
what the cable can lose over 100 m. The switch first detects a valid signature resistance, then reads the
device's class, then applies about 48 V.
Go deeper
Classes
Class
Standard
Power at the switch (PSE)
Power at the device (PD)
0
af
15.4 W
12.95 W
1
af
4.0 W
3.84 W
2
af
7.0 W
6.49 W
3
af
15.4 W
12.95 W
4
at (PoE+)
30 W
25.5 W
5
bt Type 3
45 W
40 W
6
bt Type 3
60 W
51 W
7
bt Type 4
75 W
62 W
8
bt Type 4
90 W
71.3 W
Power-up sequence
Detection: the switch applies a low voltage and looks for a signature resistance of about 25 kilohms.
A normal NIC does not present it, so it never gets power.
Classification: the device draws a set current that tells the switch its class.
Power on: the switch applies roughly 44 to 57 V and keeps monitoring the load.
Optional refinement: CDP or LLDP-MED lets the device ask for an exact wattage, so the switch can
reserve less than the class maximum.
Cisco names
UPOE is Cisco's 60 W four-pair PoE that came before 802.3bt. UPOE+ is Cisco's 90 W offering aligned with
802.3bt Type 4.
They will ask next
What uses each level?
Phones and simple sensors fit in 802.3af. Most Wi-Fi 6 and 6E APs, and PTZ cameras, want PoE+ or more.
Wi-Fi 7 APs, displays, thin clients and LED lighting push into 802.3bt.
Why does class 0 cause budgeting waste?
A class 0 device gives no class information, so the switch reserves the full 15.4 W even if the device
draws 3 W, unless CDP or LLDP refines the request.
Traps
Quoting the switch figure as what the device receives. The device gets less because of cable loss.
A packet crosses three routers. What changes in it at each hop, and what stays the same?
Say this first
The layer 2 header is rebuilt at every hop: new source MAC (the router's outgoing interface) and new
destination MAC (the next hop, learned through ARP). The source and destination IP addresses stay the same
end to end unless NAT is involved. Each router decrements TTL by one, recalculates the IPv4 header checksum,
and a new FCS is computed for the new frame.
Go deeper
Per hop, on each router
Check the FCS of the incoming frame. Drop it if it is bad.
Strip the Ethernet header and trailer.
Check the IPv4 header checksum, decrement TTL. If TTL reaches 0, drop the packet and send ICMP Time
Exceeded (type 11, code 0) to the source.
Look up the destination in the routing table (longest prefix match) to get the next hop and outgoing
interface.
Resolve the next hop's MAC address (ARP cache, or ARP request).
Recalculate the IPv4 header checksum (TTL changed), build a new frame, compute a new FCS, send it.
What else can change
NAT at the edge rewrites source IP and often source port.
Fragmentation: if the outgoing MTU is smaller and DF is clear, IPv4 routers split the packet.
DSCP may be re-marked by QoS policy.
VLAN tags are added, removed or changed per link.
What stays the same
Source and destination IP (without NAT), the TCP or UDP header and the payload.
They will ask next
Why does the router need to recalculate the IP checksum?
The IPv4 header checksum covers the header only, and TTL is in the header. Every TTL decrement changes
the checksum. IPv6 removed the header checksum partly to avoid this per-hop work.
If you capture on the link before the last router, what destination MAC do you see?
The last router's MAC on that link, not the server's. The server's MAC only appears on the server's
own segment.
Traps
Saying the destination MAC is the final server's MAC all the way. MACs are only meaningful on one link.
ARP is carried directly inside an Ethernet frame with EtherType 0x0806, with no IP header, so by
encapsulation it is layer 2. Its job is to map a layer 3 address (IPv4) to a layer 2 address (MAC), so it
serves layer 3. I say it sits between the two, which is why people call it "layer 2.5". The answer the
interviewer wants is that reasoning, not a single number.
Go deeper
The evidence for each side
Layer 2 argument. ARP messages are never routed. They have no TTL and no IP header. A router does not
forward an ARP request to another network.
Layer 3 argument. ARP exists only because IP needs a MAC to build a frame. Its fields carry IPv4
addresses, and the ARP cache is consulted by the IP stack.
The ARP packet (IPv4 over Ethernet)
Field
Value
Hardware type
1 (Ethernet)
Protocol type
0x0800 (IPv4)
Hardware and protocol address lengths
6 and 4
Opcode
1 request, 2 reply
Sender MAC, sender IP, target MAC, target IP
28 bytes total
The 28-byte ARP payload is padded to the 46-byte Ethernet minimum.
They will ask next
What replaces ARP in IPv6?
Neighbor Discovery (NDP), which uses ICMPv6 Neighbor Solicitation and Neighbor Advertisement messages
sent to solicited-node multicast addresses instead of broadcast. Because it rides on IPv6, NDP is
clearly a layer 3 protocol.
Where would you place DHCP and ICMP by the same logic?
ICMP is carried inside IP (protocol 1) and serves IP, so layer 3. DHCP rides on UDP ports 67 and 68, so
it is an application protocol that configures layer 3.
Traps
Saying "layer 3" flatly. ARP has no IP header and is never routed.
Where do ICMP, OSPF, BGP, DHCP, STP and TLS fit in the models?
Say this first
Place each protocol by what carries it, then mention what it serves. ICMP rides in IP (protocol 1) and is
part of layer 3. OSPF rides in IP as protocol 89, a layer 3 control protocol. BGP runs over TCP port 179, so it
is an application by encapsulation that controls layer 3 routing. DHCP uses UDP 67 and 68. STP BPDUs are layer
2 frames. TLS sits above TCP and below HTTP.
Go deeper
Reference table
Protocol
Carried in
Serves
ARP
Ethernet, EtherType 0x0806
IP to MAC resolution
STP BPDU
802.3 frame with LLC to 01:80:C2:00:00:00
Layer 2 loop prevention
LLDP
Ethernet, EtherType 0x88CC to 01:80:C2:00:00:0E
Neighbor discovery
MPLS
Label stack between layer 2 and IP, EtherType 0x8847
Label switching ("layer 2.5")
ICMP
IP protocol 1
Error reporting and diagnostics
EIGRP
IP protocol 88
Routing
OSPF
IP protocol 89
Routing
GRE
IP protocol 47
Tunneling
ESP and AH
IP protocols 50 and 51
IPsec
VRRP
IP protocol 112
Gateway redundancy
BGP
TCP 179
Routing between and within autonomous systems
DHCP
UDP 67 server, 68 client
Host configuration
DNS
UDP 53, TCP 53 for large answers and zone transfers
Name resolution
TLS
Over TCP (QUIC folds TLS 1.3 into its own handshake over UDP)
Encryption and authentication
The point behind the question
The interviewer is checking whether you understand encapsulation. BGP is the classic trap: it is a routing
protocol, yet it rides on TCP and needs IP reachability to the neighbor before it can even start.
They will ask next
Why does it matter that BGP runs over TCP and OSPF does not?
BGP gets reliability, ordering and flow control from TCP, so it can send large tables incrementally and
peer with routers several hops away. OSPF talks directly over IP, mostly to link-local multicast
224.0.0.5 and 224.0.0.6, and builds its own reliability with acknowledgments.
Traps
Saying BGP is "layer 3" without mentioning TCP 179. The encapsulation is the point.
At which layer does a firewall operate? What about a load balancer, a wireless AP and a layer 3 switch?
Say this first
A classic stateful firewall decides at layers 3 and 4: addresses, protocol, ports and connection state. A next
generation firewall reads up to layer 7 to identify applications, users and threats. It can sit in routed
mode as a layer 3 hop, or in transparent mode as a layer 2 bridge. An L4 load balancer works on IP and
ports; an L7 one reads HTTP. An AP bridges 802.11 to 802.3 at layer 2. A layer 3 switch switches at layer 2
and routes at layer 3 in hardware.
Go deeper
Two different questions hide here
Where does it sit in the path? Routed firewall: it is the next hop, has IPs on each side, routes.
Transparent firewall: it bridges between two VLANs on the same subnet and is invisible to traceroute.
How deep does it look? Packet filter (stateless ACL): layers 3 and 4, each packet on its own.
Stateful firewall: layers 3 and 4 plus a connection table, so return traffic is allowed automatically.
NGFW: application identification, URL filtering, IPS, TLS inspection, user identity. That is layer 7.
Other devices
Device
Forwards on
Notes
Wireless AP
Layer 2
Translates 802.11 frames to 802.3. In controller designs, data may be tunneled in CAPWAP.
L4 load balancer
IP and port
Can do NAT, often DSR, does not read the payload.
L7 load balancer
HTTP host, path, headers, cookies
Terminates TCP and usually TLS, opens a new connection to the server.
Layer 3 switch
MAC within a VLAN, IP between VLANs
SVIs or routed ports, routing in ASIC.
NIC
Layers 1 and 2
Has the MAC, does framing and FCS.
They will ask next
Why might you deploy a firewall in transparent mode?
To insert it into an existing network without re-addressing. The subnet stays the same on both sides,
the default gateway does not change, and the firewall still filters traffic between the two segments.
Does a stateless ACL on a router make it a firewall?
It filters, but without state it cannot know that an inbound packet belongs to a connection the inside
opened. You end up permitting broad return traffic, for example by the established keyword, which only
checks for ACK or RST bits.
Traps
Saying "a firewall is layer 4" without separating placement (routed or transparent) from inspection depth.
What happens, end to end, when you type a website address into a browser and press Enter?
Say this first
The browser parses the URL and checks its caches. It resolves the name through DNS, which first needs the
host to reach its resolver: if the resolver is off subnet, the host ARPs for its default gateway MAC. With
the server IP in hand, it opens a TCP connection to port 443 (three-way handshake), runs a TLS handshake and
checks the certificate, then sends an HTTP GET. Along the way switches forward frames by MAC, routers forward
packets by longest prefix match and rewrite layer 2 headers, and the edge usually NATs the private source.
Go deeper
1. Before any packet leaves
The browser parses https://www.example.com/, checks HSTS and its own caches. The OS checks its DNS cache
and the hosts file.
2. Getting off the local network
The host compares the resolver's IP with its own address and mask. If the resolver is on another subnet, the
frame goes to the default gateway. If the gateway MAC is not in the ARP cache, the host broadcasts an ARP
request (destination ff:ff:ff:ff:ff:ff) and the gateway replies with its MAC by unicast.
3. DNS
The host sends a query, usually UDP port 53, to its recursive resolver. On a cache miss the resolver walks
the hierarchy: a root server, the .com TLD servers, then the authoritative servers for example.com. It
returns A and AAAA records with TTLs, and both the resolver and the host cache them.
4. TCP
SYN, SYN-ACK, ACK to port 443 from an ephemeral source port. Each side announces its MSS and window
options. With HTTP/3 the browser uses QUIC over UDP 443 instead, which merges transport and TLS setup.
5. TLS 1.3
ClientHello with SNI (the server name), supported ciphers and a key share. The server answers with
ServerHello, its certificate chain and Finished. The browser validates the chain up to a trusted root CA and
checks the name. One round trip, then the session keys are in place.
6. HTTP
GET / with a Host header. The server answers 200 OK with HTML. The browser parses it and fetches CSS,
scripts and images, reusing connections (HTTP/2 multiplexes many requests on one connection).
7. What the network does underneath
Access switches forward by destination MAC and VLAN.
Every router hop rewrites source and destination MAC, decrements TTL, and picks the next hop by longest
prefix match.
The edge firewall or router translates the private source address and port to a public one (PAT) and
keeps state so the reply comes back in.
Replies may take a different path back (asymmetric routing), which stateful devices must tolerate.
They will ask next
What does the host do differently if the server is on its own subnet?
It ARPs for the server's IP directly and sends the frame straight to the server's MAC. The default
gateway is only used when the destination is off subnet.
Where can this go wrong, and how would you tell which step failed?
Work up the steps. Link and IP config (ipconfig or ip addr), ARP for the gateway (arp -a), ping the
gateway, DNS (nslookup or dig), TCP to 443 (curl -v or Test-NetConnection -Port 443), then TLS
and HTTP errors in curl -v. Each step has its own symptom.
Why does the browser send the server name in the ClientHello?
That is SNI. One IP address can host many sites, so the server needs the name before it can choose
which certificate to present.
Traps
Skipping ARP and the default gateway. Interviewers listen for the local subnet decision.
Saying DNS always uses TCP. Normal queries use UDP 53; TCP is used for large responses and zone transfers.
How do you use the OSI model when you troubleshoot?
Say this first
I use it to prove each layer in order and to pick a starting point. Bottom up when the symptom smells
physical (link down, errors, one user). Top down when the user reports an application error and the network
looks healthy. Divide and conquer from layer 3 with a ping: if ping works, look up; if it fails, look down.
Each layer has a quick proof: link up and clean counters, a MAC and ARP entry, a route and ping, a TCP
connect to the port, then the application response.
Go deeper
Proof per layer
Layer
What proves it
Commands
1
Link up, right speed and duplex, no CRC errors, optic light levels
show interfaces status, show interfaces, show interfaces transceiver
2
Right VLAN, MAC learned, STP forwarding, ARP resolves
show mac address-table, show spanning-tree, show arp
3
Correct IP and mask, route exists both ways, ping and traceroute
show ip route, ping, traceroute
4
Port reachable, no ACL or firewall drop, no MTU black hole
telnet host 443, nc -vz, curl -v, firewall logs
7
Application answers correctly
curl, dig, application logs
Picking the approach
Bottom up is thorough but slow. Good after cabling work or for a single port.
Top down starts where the user is. Good when many users are fine and one app fails.
Divide and conquer starts in the middle. A successful ping clears layers 1 to 3 at once.
Follow the path hop by hop, using the routing table and ARP at each device.
They will ask next
Ping works, but the website does not load. Which layers are cleared?
Layers 1 to 3 between those two endpoints, for ICMP. Look at layer 4 and up: a firewall or ACL dropping
TCP 443, DNS returning the wrong address, an MTU problem that only hits large packets, or the
application itself.
Traps
Saying "ping works so the network is fine". ICMP can take a different policy path from TCP 443.
What are SFP, SFP+, QSFP and DAC, and what should you check before plugging one in?
Say this first
They are hot-swappable pluggable modules that give a port its physical layer. SFP is 1 Gbps, SFP+ 10 Gbps,
SFP28 25 Gbps, QSFP+ 40 Gbps (4 x 10), QSFP28 100 Gbps (4 x 25), and QSFP-DD or OSFP carry 400 and 800 Gbps.
A DAC is twinax copper with modules fixed on each end, cheap for a few meters in a rack; an AOC is the same idea
with fiber. Before plugging in, check the platform compatibility list, matching optics on both ends,
the fiber type and the reach.
Go deeper
Form factors
Module
Speed
Lanes
Typical connector
SFP
1 Gbps (also 100BASE-FX)
1
Duplex LC or RJ-45
SFP+
10 Gbps
1
Duplex LC
SFP28
25 Gbps
1
Duplex LC
QSFP+
40 Gbps
4 x 10G
MPO or duplex LC (LR4)
QSFP28
100 Gbps
4 x 25G
MPO or duplex LC
QSFP-DD, OSFP
400 to 800 Gbps
8 lanes
MPO or duplex LC
Things that bite
Speed support: an SFP+ port often accepts a 1G SFP, but an SFP port never runs an SFP+ at 10G.
Confirm per platform.
Breakout: a 40G or 100G port can split into four 10G or 25G ports with a breakout cable, if the
platform supports it and you configure it.
Vendor coding: switches read the module's EEPROM. Cisco IOS rejects unsupported modules and can
err-disable the port with reason gbic-invalid.
Both ends must match: SR to SR, LR to LR. Different reach classes do not interoperate reliably.
DOM: digital optical monitoring reports temperature, voltage, laser bias, Tx and Rx power.
show interfaces transceiver reads it.
They will ask next
Why use a DAC instead of two optics and a patch cord?
Cost and power. A passive DAC needs almost no power and costs a fraction of two optics. The limit is
reach (a few meters passive, longer with active DAC) and thick, stiff cables.
Can a 10GBASE-SR on one side talk to a 10GBASE-LR on the other?
No. SR uses 850 nm on multimode and LR uses 1310 nm on single-mode. Both ends need the same type.
Traps
Assuming any module fits any port of the same shape. Check speed, platform support and coding.
What fiber connector types do you see, and what is the difference between UPC and APC?
Say this first
LC is the small duplex connector used on almost every SFP. SC is the older square push-pull connector, still
common in patch panels and PON. ST is a legacy bayonet type. MPO or MTP carries 12 or 24 fibers in one ferrule
for parallel optics like 40G and 100G SR4. UPC connectors are polished flat and are blue for single-mode. APC
connectors are polished at 8 degrees to cut back-reflection, are green, and are used in PON and RF over fiber.
Never mate APC with UPC.
Go deeper
Field rules
Inspect before you connect. Contamination is the most common cause of optical errors and loss. Use a
fiber scope, clean with a proper cleaner, inspect again.
Polarity. Transmit on one end must meet receive on the other. Duplex patch cords are A to B. If a link
stays down with both optics healthy, swapping the two strands at one end is a quick test.
MPO polarity follows TIA methods A, B and C. Mixing cassette and trunk types from different methods
is a classic cause of dark links in new data center builds.
Bend radius. Tight bends leak light, especially at 1550 nm.
Why APC and UPC must not mix
The angled face of an APC does not sit flush against a flat UPC face. You get an air gap, high loss and
possible damage to the end faces.
They will ask next
A new fiber link stays down, both optics show Tx power but Rx is very low on both ends. First check?
Polarity and the patching path. Very low Rx on both ends with good Tx often means the strands are
crossed somewhere in the patch panels, or the patch goes to the wrong port. Trace it, then swap the
strands at one end.
Traps
Thinking the connector color is cosmetic. Green APC and blue UPC look alike but must not mate.
What are the symptoms of a duplex mismatch, and why do they look that way?
Say this first
The link is up and ping works, but anything heavy crawls. The half-duplex side counts late collisions,
because it treats the other side's traffic as collisions and aborts its own frames well past the first 64
bytes. The full-duplex side counts CRC errors and runts, because it receives those cut-off frames. Throughput
collapses under load since TCP sees loss. Cisco CDP logs a %CDP-4-DUPLEX_MISMATCH message.
Go deeper
Mechanism
The full-duplex side transmits whenever it has data. It never listens for collisions.
The half-duplex side runs CSMA/CD. If it is sending and a frame arrives, it calls that a collision,
sends a jam signal and stops. If that happens after the first 512 bits (64 bytes), it is a late
collision, and the MAC does not retry the frame. Loss is left to TCP.
The full-duplex side receives the truncated frame plus jam, which fails the FCS: CRC errors and runts.
SW2# show interfaces FastEthernet0/1 | include collision 0 output errors, 2290 collisions, 3 interface resets 0 babbles, 418 late collision, 1022 deferred
And the CDP hint on SW1:
Output
%CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on GigabitEthernet1/0/2 (not half duplex), with SW2 FastEthernet0/1 (half duplex).
Why ping hides it
Small, occasional packets rarely overlap with traffic in the other direction. A file copy keeps both
directions busy (data one way, ACKs the other), so collisions explode.
Fix
Make both sides the same: both auto (preferred) or both hard-coded to the same speed and duplex. Then clear
counters and confirm CRC and late collisions stop increasing.
They will ask next
Why does a mismatch usually happen?
One side hard-coded to 100 full and the other left on auto. The auto side cannot detect duplex from a
side that does not negotiate, so it falls back to half duplex.
Can a duplex mismatch happen at 1 Gbps on copper?
Rarely in practice. 1000BASE-T requires autonegotiation and almost nothing supports gigabit half duplex.
It is a 10 and 100 Mbps problem, which is why it shows up with old printers, building systems and
industrial gear.
Traps
Putting late collisions on the full-duplex side. Full duplex never counts collisions.
Carrier Sense Multiple Access with Collision Detection was how half-duplex Ethernet shared a medium. Listen
first, transmit when idle, keep listening; on a collision send a 32-bit jam signal, wait a random backoff and
retry, up to 16 attempts. The slot time is 512 bit times, which is why the minimum frame is 64 bytes. It is
off on full-duplex links, so it is relevant today only for duplex mismatches, old 10 and 100 Mbps gear, and
as background for Wi-Fi's CSMA/CA.
Go deeper
Backoff
After the nth collision the sender waits a random number of slot times from 0 to 2^k - 1, where k is the
smaller of n and 10. After 16 failed attempts it drops the frame and counts an excessive collision. At 10
Mbps a slot time is 51.2 microseconds; at 100 Mbps it is 5.12 microseconds.
Normal versus late collisions
A normal collision happens within the first 64 bytes, while the frame could still be colliding with a
sender at the far end of a legal network. A late collision happens after that point. On a correctly built
half-duplex network it never happens, so it signals a duplex mismatch or a segment that is too long.
Wireless is different
A radio cannot hear a collision while it transmits, so 802.11 uses collision avoidance: listen, random backoff
before sending, and an ACK for every unicast frame.
They will ask next
Why did gigabit half duplex need carrier extension?
At 1 Gbps a 64-byte frame finishes so quickly that collision detection would only work over about 20
meters. 802.3z extended the slot time to 512 bytes with carrier extension. Almost nothing used gigabit
half duplex in practice.
Traps
Saying switches still use CSMA/CD on full-duplex ports. Full duplex turns it off.
What do CRC errors, runts, giants, input errors and output drops on an interface tell you?
Say this first
CRC errors are frames whose FCS did not match: a layer 1 problem such as bad cable, dirty fiber, a failing
optic, EMI, or a duplex mismatch. Runts are frames under 64 bytes, giants frames over the maximum size (often
an MTU or tagging mismatch). Input errors is the total of the input error types. Output drops are not errors on
the wire: the egress queue was full, which means congestion. I clear the counters and watch which one grows.
Go deeper
A Catalyst interface with a physical problem
Output
SW1# show interfaces GigabitEthernet1/0/24GigabitEthernet1/0/24 is up, line protocol is up (connected) Hardware is Gigabit Ethernet, address is 7c21.0e44.1a18 (bia 7c21.0e44.1a18) MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0 5 minute input rate 412000 bits/sec, 61 packets/sec 5 minute output rate 389000 bits/sec, 58 packets/sec 1840122 packets input, 1306214450 bytes, 0 no buffer 0 runts, 0 giants, 0 throttles 4471 input errors, 4471 CRC, 0 frame, 0 overrun, 0 ignored 0 output errors, 0 collisions, 2 interface resets
CRC equals input errors, no runts, full duplex: a cabling or port problem, not a mismatch.
clear counters GigabitEthernet1/0/24, then watch for a few minutes. Old totals since boot tell you
nothing about now. On Catalyst, show interfaces counters errors gives a compact table per port.
They will ask next
CRC errors are on the switch port, but the server's NIC shows none. Which direction is bad?
CRC errors are counted by the receiver. The switch receiving bad frames means the path from the server
to the switch is bad: the server's transmit side, the cable, or the switch's receive side. Swap the cable
and patch first, then the port.
Traps
Calling output drops a cabling problem. They are congestion.
Reading lifetime counters without clearing them first.
An access point keeps rebooting or shows a low power warning. How do you work through a PoE problem?
Say this first
Check what the port is delivering and what the switch has left. show power inline shows the module budget,
each port's operational state, the power drawn, the detected class and the configured maximum. Common causes:
the switch power budget is exhausted, the port is capped below what the AP needs, the AP negotiated a lower
class and disabled radios, or the cable or a passive patch in the path is bad.
Go deeper
Look at the switch
Output
SW1# show power inlineModule Available Used Remaining (Watts) (Watts) (Watts)------ --------- -------- ---------1 437.0 431.8 5.2Interface Admin Oper Power Device Class Max (Watts)--------- ------ ---------- ------- ------------------- ----- ----Gi1/0/1 auto on 6.3 IP Phone 8845 2 30.0Gi1/0/2 auto on 25.5 AP-2F-EAST 4 30.0Gi1/0/3 auto off 0.0 n/a n/a 30.0
Only 5.2 W remain. A new PoE+ AP plugged into Gi1/0/3 cannot be powered.
Fixes, in order
Add or upgrade the power supply, or move devices to a switch with budget.
Set priorities so critical devices win when the budget runs short (platform feature, often
power inline priority or a stack power policy).
Make sure the port is not capped:Cisco IOS
interface GigabitEthernet1/0/3 power inline auto max 30000
The value is in milliwatts.
Check the AP side: many APs drop to a reduced mode (fewer spatial streams, USB off, one radio off) when
they get PoE instead of PoE+.
Inspect the cable. Long or poor runs and old injector setups cause voltage drop and flapping.
Planning rule
Sum the class maximum of every device you expect, not the typical draw, unless you use CDP or LLDP
negotiation and have measured. Leave headroom for a power supply failure if the switch has two.
They will ask next
What does power inline static do differently from power inline auto?
Static pre-allocates the power to that port even before a device is connected, guaranteeing it. Auto
allocates on demand after detection and classification, first come first served.
How do you stop a port from ever supplying power?
power inline never on the interface. Useful on ports facing other switches or untrusted equipment.
Traps
Looking only at the port and not the module budget. The port can be fine and the switch empty.
What are the components of latency, and roughly how big is each one?
Say this first
Four parts. Propagation: distance divided by signal speed; light in fiber covers about 200 km per millisecond,
so 5 microseconds per km. Serialization: frame size divided by link rate; 1500 bytes takes 12 microseconds at 1
Gbps but about 8 ms on a 1.5 Mbps T1. Queuing: time waiting behind other packets, the variable part that
creates jitter. Processing: the forwarding lookup, microseconds in hardware.
Go deeper
Worked numbers
Component
Example
Value
Propagation
3,000 km of fiber path
about 15 ms one way, 30 ms RTT minimum
Serialization
1500 bytes at 1 Gbps
12,000 bits / 10^9 = 12 microseconds
Serialization
1500 bytes at 10 Gbps
1.2 microseconds
Serialization
1500 bytes at 1.544 Mbps
about 7.8 ms
Queuing
A 1 MB buffer draining at 1 Gbps
up to 8 ms
Processing
Hardware forwarding
a few microseconds
What you can and cannot change
Propagation only changes with a shorter path (better routing, a closer region).
Serialization matters on slow links. It is why voice over low-speed WAN needed fragmentation and
interleaving.
Queuing is where QoS, buffer tuning and avoiding congestion help. Deep buffers that stay full cause
bufferbloat: high latency without loss.
They will ask next
Why is the RTT from Europe to the US east coast never below about 70 ms?
Fiber paths across the Atlantic are around 6,000 to 7,000 km one way once you include the cable route
and terrestrial legs. At 5 microseconds per km that is about 30 to 35 ms each direction before any
queuing. Physics sets the floor.
Traps
Saying a faster link reduces propagation delay. It only reduces serialization.
Is the OSI model how networks really work? Where does it break down?
Say this first
No. It is a teaching and vocabulary tool. The OSI protocol suite itself lost to TCP/IP, and real protocols
cross layers all the time. MPLS sits between layers 2 and 3. VXLAN carries a layer 2 frame inside UDP inside
IP, so a "layer 2" network rides on layer 4. QUIC rebuilds transport in user space over UDP and includes TLS.
BGP is an application on TCP that controls layer 3. I use OSI numbers for communication and think in actual
headers.
Go deeper
Examples that do not fit neatly
MPLS: a label stack inserted between the Ethernet header and IP. Usually called layer 2.5.
Tunnels: GRE puts IP inside IP. VXLAN puts an Ethernet frame inside UDP port 4789. IPsec ESP is an IP
protocol that carries an entire IP packet. The layer count repeats inside the tunnel.
QUIC: transport features (streams, loss recovery, congestion control) live in the application over
UDP. TLS 1.3 is built into its handshake.
Layers 5 and 6: in practice they live inside applications and libraries. Few engineers ever name a
"session layer" problem.
Devices: a layer 3 switch, an NGFW reading layer 7 and a load balancer rewriting HTTP headers all span
several layers.
Why the model still earns its place
It gives a shared language ("is this a layer 1 or layer 3 problem?"), it orders troubleshooting, and it
explains why a device can or cannot see a field: a switch never looks at the TCP port unless a feature tells
it to.
They will ask next
What is the outer and inner structure of a VXLAN packet?
Outer Ethernet, outer IP (VTEP to VTEP), outer UDP to port 4789, an 8-byte VXLAN header with a 24-bit
VNI, then the original Ethernet frame with its own IP and TCP inside. It adds 50 bytes of overhead for
an untagged outer frame, which is why VXLAN underlays run a larger MTU.
Traps
Defending OSI as literal truth. Seniors are expected to know where it bends.
How do you read optical power in dBm, and how would you calculate a fiber link budget?
Say this first
dBm is power relative to 1 milliwatt on a log scale: 0 dBm is 1 mW, every -3 dB halves the power and every
-10 dB divides it by ten. The budget is the minimum transmit power minus the receiver sensitivity. Subtract
the loss of the fiber, connectors and splices, and keep at least 3 dB of margin for aging, dirt and repairs.
The receive power should sit inside the optic's range: too low gives errors, too high can saturate the receiver.
Go deeper
Conversions to know
dBm
mW
+3
2
0
1
-3
0.5
-10
0.1
-20
0.01
-30
0.001
Worked example
A single-mode optic's datasheet gives minimum Tx power -6 dBm and Rx sensitivity -14 dBm, so the power
budget is 8 dB. The link is 12 km with 4 connector pairs and 2 fusion splices.
Item
Planning loss
Total
Fiber at 1310 nm
0.35 dB per km x 12
4.2 dB
Connector pairs
0.5 dB x 4
2.0 dB
Fusion splices
0.1 dB x 2
0.2 dB
Link loss
6.4 dB
Margin is 8 - 6.4 = 1.6 dB. It will probably link up today, but it is below a 3 dB design margin. I would
reduce connector count or choose an optic with a larger budget.
Reading it on a switch
show interfaces transceiver lists Tx and Rx power per port with alarm and warning thresholds. Compare the
Tx of one end with the Rx of the other: the difference is the real link loss.
Too much light
A long-reach optic on a short patch can overload the receiver. Use an inline attenuator (for example 5 or 10
dB) or a shorter-reach optic.
They will ask next
One end shows Rx -2.5 dBm and the other end shows Rx -18 dBm on a short link. What do you suspect?
One direction is fine and the other has lost about 15 dB more. Look at that direction: a dirty or
damaged connector, a bad patch cord strand, or a tight bend. Clean and inspect both ends of that strand
first, then test with a light meter.
Why do vendors use dBm instead of milliwatts?
Losses multiply along a link, and logs turn multiplication into subtraction. You can add up dB losses for
each component and subtract them from the dBm launch power.
Traps
Treating dB and dBm as the same. dBm is an absolute power; dB is a ratio or a loss.
Why does a gigabit port sometimes link up at only 100 Mbps, and how do the four pairs get used?
Say this first
10BASE-T and 100BASE-TX use only two pairs: pins 1-2 and 3-6, one pair for each direction. 1000BASE-T uses all
four pairs, each carrying traffic in both directions at once with echo cancellation, PAM-5 coding at 125
megasymbols per second, about 250 Mbps per pair. If pair 4-5 or 7-8 is broken or missing, the link cannot
run at 1 Gbps, and many PHYs downshift to 100 Mbps. A gigabit port stuck at 100 is a cabling clue.
Go deeper
Diagnosing it
Cisco IOS
SW1# show interfaces GigabitEthernet1/0/14 statusPort Name Status Vlan Duplex Speed TypeGi1/0/14 Printer-2F connected 20 a-full a-100 10/100/1000BaseTX
The device supports gigabit, yet negotiation settled at a-100. Run the built-in cable test (it may bounce
the link on some platforms, so do it in a window):
Cisco IOS
SW1# test cable-diagnostics tdr interface GigabitEthernet1/0/14SW1# show cable-diagnostics tdr interface GigabitEthernet1/0/14
The TDR result shows each pair's status (Normal, Open, Short) and approximate distance to a fault.
Other causes
A patch cord or wall plate wired with only two pairs.
The far device only advertises 100 Mbps, or someone set speed 100 on one end.
An old Cat5 cable with poor crosstalk performance at gigabit.
They will ask next
Why does 1000BASE-T need autonegotiation even if you want to fix the speed?
The two PHYs must agree which one is the clock master and which is the slave, and that is resolved
during autonegotiation. On many switches, speed 1000 on a copper port only limits what is advertised
rather than turning negotiation off.
Traps
Blaming the NIC driver first. A clean a-100 on a gigabit device usually points at the cable.
A fiber link stays down even though both optics and the fiber test fine. What else can keep it down?
Say this first
Settings that must agree at layer 1. On 1 Gbps fiber, 1000BASE-X autonegotiation on one side and
speed nonegotiate on the other can leave the link down on one end. On 25G and 100G, a forward error
correction mismatch (RS-FEC on one side, BASE-R FEC or none on the other) keeps the link down. Also check a
port speed that does not match the optic, a breakout that was not configured, and an err-disabled port from
UDLD or an unsupported module.
Go deeper
Checklist
Check
Why
Autonegotiation (1000BASE-X)
It agrees duplex and pause, not speed. Both ends must use it or both must not. Cisco disables it with speed nonegotiate.
FEC mode
25GBASE-SR and 100GBASE-SR4 require RS-FEC. DACs at 25G may use RS-FEC, BASE-R (FC) FEC or none. Both ends must match.
Port speed
A 1G optic in a port fixed at 10G (or the reverse) stays down.
Breakout
A 4 x 25G cable on a port still configured as 100G stays down.
Err-disable
show interfaces status err-disabled for gbic-invalid, udld and others.
Polarity
Tx must land on Rx. Swap the strands at one end as a test.
Server NICs and switches often pick different FEC defaults, which is why switch-to-server 25G links are
the classic case.
They will ask next
What does FEC cost you?
A little latency (on the order of 100 ns for RS-FEC) and some line overhead, in exchange for correcting
bit errors that would otherwise corrupt frames. At 25G and above over multimode, the optics are designed
assuming FEC is on.
Traps
Swapping optics repeatedly before comparing the configuration on both ends.
What is the bandwidth-delay product, and why does it matter for a long-distance link?
Say this first
It is the link rate multiplied by the round-trip time: the amount of data that must be in flight to keep the
pipe full. A 1 Gbps path with 100 ms RTT holds 100 megabits, which is 12.5 MB. A single TCP flow only reaches
full speed if its window (and the socket buffers) are at least that big. Without window scaling the window
tops out at 64 KB, capping that flow at about 5 Mbps.
Go deeper
The math
BDP = bandwidth x RTT = 10^9 bit/s x 0.1 s = 10^8 bits = 12.5 MB.
Max throughput of one flow = window / RTT. With 65,535 bytes: 65,535 x 8 / 0.1 = about 5.2 Mbps.
TCP window scaling (RFC 7323) shifts the 16-bit window by up to 14 bits, allowing windows up to about 1 GB.
What else limits a long fat network
Loss. One loss halves (Reno) or cuts (CUBIC) the congestion window, and regrowth takes many RTTs on a
long path.
Socket buffers. Operating systems autotune, but a host with small fixed buffers stays slow.
Middleboxes that strip the window scale option during the handshake.
What to say when users complain
Measure RTT and loss before buying bandwidth. Parallel streams, tuned buffers, a modern congestion control
such as BBR, or a server closer to the users fix more of these cases than a bigger circuit.
They will ask next
How long does slow start take to fill that 12.5 MB pipe?
Starting from about 10 segments and doubling each RTT, it takes roughly 10 RTTs to grow past 8,000
segments, about a second at 100 ms RTT, assuming no loss. Short transfers finish before reaching full
speed, which is why latency dominates web performance.
Traps
Forgetting to convert bits to bytes. 100 megabits is 12.5 megabytes.
How many packets per second is line rate on a 10 Gbps port with minimum-size frames?
Say this first
About 14.88 million. A 64-byte frame costs 84 bytes of wire time once you add the 8-byte preamble and start
delimiter and the 12-byte interframe gap. 84 bytes is 672 bits, and 10^10 divided by 672 is 14,880,952 frames
per second. At 1 Gbps it is 1,488,095; at 100 Gbps about 148.8 million. Device datasheets quote these numbers
for "line rate at 64 bytes".
Go deeper
Per-frame cost on the wire
Part
Bytes
Preamble and SFD
8
Ethernet header (no tag)
14
Payload
46 to 1500
FCS
4
Interframe gap
12
Small versus large frames at 1 Gbps
Frame
On the wire
Frames per second
64 bytes
84 bytes = 672 bits
1,488,095
1518 bytes
1538 bytes = 12,304 bits
81,274
Efficiency
IP efficiency with full frames: 1500 / 1538 = 97.5%.
TCP payload efficiency: 1460 / 1538 = 94.9%, or about 94.1% with the 12 bytes of TCP timestamps.
So a 1 Gbps link moves about 949 Mbps of TCP payload at best.
Why it matters
Forwarding engines are limited in packets per second as well as bits per second. A box rated "10 Gbps"
may only reach that with large packets. Firewalls and software routers are the usual suspects.
They will ask next
Does an 802.1Q tag change the math?
It adds 4 bytes per frame. The minimum frame stays 64 bytes (the payload padding shrinks to 42 bytes),
while the maximum tagged frame becomes 1522 bytes.
Traps
Forgetting the preamble and interframe gap. They use wire time even though they are not in a capture.