Octet

Models and media

0 of 36 nailed

Core17

  1. Walk me through the OSI model, layer by layer.

    Say this first

    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

    LayerNameJobPDUExamplesDevices
    7ApplicationProtocols the application speaksDataHTTP, DNS, SMTP, SSHProxies, L7 load balancers
    6PresentationEncoding, compression, encryptionDataTLS (often placed here), ASCII, JPEG
    5SessionOpening, managing and closing dialogsDataRPC, NetBIOS sessions
    4TransportProcess to process delivery, ports, reliability, flow controlSegment (TCP), datagram (UDP)TCP, UDPStateful firewalls, L4 load balancers
    3NetworkLogical addressing, routing between networksPacketIPv4, IPv6, ICMPRouters, L3 switches
    2Data linkFraming, MAC addressing, error detection on one linkFrameEthernet, 802.11, PPPSwitches, bridges, APs
    1PhysicalBits as electrical, light or radio signalsBits1000BASE-T, 10GBASE-LRHubs, 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.

    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 did you do?Book 1.3 ArchitectureOwn page
  2. 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

    OSITCP/IP (RFC 1122)Protocols
    7 Application, 6 Presentation, 5 SessionApplicationHTTP, DNS, DHCP, SSH, TLS, BGP
    4 TransportTransportTCP, UDP
    3 NetworkInternetIPv4, IPv6, ICMP
    2 Data link, 1 PhysicalLinkEthernet, 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.

    Traps

    • Saying TCP/IP has seven layers. It has four (or five in the teaching variant).
    How did you do?Book 1.3 ArchitectureOwn page
  3. Why do we use layered models at all?

    Say this first

    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).

    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).
    How did you do?Book 1.3 ArchitectureOwn page
  4. 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

    LayerPDUHeader addedTypical size
    7DataHTTPvariable
    4SegmentTCP header (ports, seq, ack, flags)20 bytes, up to 60 with options
    3PacketIPv4 header (addresses, TTL, protocol)20 bytes, up to 60 with options
    2FrameEthernet header 14 bytes + FCS 4 bytes18 bytes, 22 with an 802.1Q tag
    1BitsPreamble and SFD 8 bytes, then 12 bytes of interframe gap20 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.

    • Ethernet EtherType: 0x0800 IPv4, 0x86DD IPv6, 0x0806 ARP, 0x8100 802.1Q tag.
    • IPv4 Protocol (IPv6 Next Header): 1 ICMP, 6 TCP, 17 UDP, 47 GRE, 50 ESP, 89 OSPF.
    • TCP or UDP destination port: 443 HTTPS, 53 DNS, 22 SSH.

    Overhead in numbers

    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.

    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.
    How did you do?Book 1.3 ArchitectureBook 2.3 FramingOwn page
  5. 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

    HubSwitchRouter
    Layer123
    Decides onNothingDestination MACDestination IP (longest prefix match)
    Collision domainsOne for all portsOne per portOne per interface
    Broadcast domainsOneOne per VLANOne per interface
    DuplexHalf onlyFull on each portFull on each interface
    Unknown destinationRepeats everywhereFloods within the VLANDrops (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.

    Traps

    • Saying a switch "breaks up broadcast domains". Only VLANs and routers do that.
  6. What is a MAC address and how is it structured?

    Say this first

    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

    AddressMeaning
    ff:ff:ff:ff:ff:ffBroadcast
    01:00:5e:xx:xx:xxIPv4 multicast (low 23 bits of the group address)
    33:33:xx:xx:xx:xxIPv6 multicast (low 32 bits of the group address)
    01:80:c2:00:00:00IEEE STP BPDUs
    00:00:0c:07:ac:xxHSRP 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.

    Traps

    • Saying the MAC is used end to end. It is replaced at every router.
    How did you do?Book 2.6 Multi-Access NetworksOwn page
  7. 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

    DeviceCollision domainsBroadcast domains
    Hub1 for all ports1
    Switch, one VLAN1 per port1
    Switch, N VLANs1 per portN
    Router1 per interface1 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.

    Traps

    • Saying switches break up broadcast domains. They break up collision domains.
  8. 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

    TypeIPv4MAC
    UnicastAny host addressThe host's MAC
    Broadcast255.255.255.255 (limited), or the subnet's last address (directed)ff:ff:ff:ff:ff:ff
    Multicast224.0.0.0/4, link-local 224.0.0.0/2401:00:5e plus low 23 bits
    AnycastA normal unicast address used in many placesNormal 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.

    Traps

    • Calling anycast "send to all". It goes to one, the nearest.
    How did you do?Book 4.3 MulticastBook 3.3 Internet (IP)Own page
  9. What are a LAN, WAN, MAN and PAN?

    Say this first

    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

    TypeTypical spanWho owns the linksExamples
    PANA few metersThe userBluetooth headset, USB
    LAN, WLANA floor, a building, a campusThe organizationEthernet switches, Wi-Fi
    CANSeveral buildingsThe organizationCampus fiber between buildings
    MANA cityProvider or the organizationMetro Ethernet, dark fiber
    WANCountries and continentsMostly providersMPLS, 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.

    Traps

    • Defining them only by distance. Ownership and cost model matter more in practice.
    How did you do?Book 1.2 RequirementsOwn page
  10. 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

    TopologyStrengthWeaknessWhere today
    BusCheap, simpleOne break takes all down, shared collisions10BASE2 and 10BASE5 history
    StarEasy to add and isolate faultsThe center is a single point of failureAccess layer
    Extended star, hierarchicalScales in tiersDepends on the uplinksCampus core, distribution, access
    RingTwo paths with few linksNeeds a protocol to block the loopMetro Ethernet rings (G.8032), SONET
    Full meshMaximum redundancyn(n-1)/2 linksSmall cores, DMVPN spoke to spoke, WAN cores
    Partial meshRedundancy where it mattersDesign effortMost WANs
    Spine-leafEqual hops, ECMPMany cablesData 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.

    Traps

    • Forgetting the n(n-1)/2 formula when asked about full mesh scaling.
    How did you do?Book 1.2 RequirementsOwn page
  11. 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

    TermUnitExample
    Bandwidthbit/sA 1 Gbps port
    Throughputbit/sA file copy reaching 600 Mbps
    Latencyms35 ms RTT to a cloud region
    JittermsDelay 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.

    Traps

    • Using bandwidth and speed interchangeably. More bandwidth does not reduce propagation delay.
    How did you do?Book 1.5 PerformanceOwn page
  12. 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

    CategoryBandwidthCommon use
    Cat5e100 MHz1000BASE-T at 100 m, 2.5GBASE-T
    Cat6250 MHz1000BASE-T, 5GBASE-T, 10GBASE-T to about 55 m
    Cat6A500 MHz10GBASE-T at 100 m
    Cat82000 MHz25GBASE-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.

    Traps

    • Saying Cat6 does 10G at 100 m. It is about 55 m; Cat6A is needed for 100 m.
    How did you do?Book 2.1 Technology LandscapeOwn page
  13. 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

    PinT568AT568B
    1white-greenwhite-orange
    2greenorange
    3white-orangewhite-green
    4blueblue
    5white-bluewhite-blue
    6orangegreen
    7white-brownwhite-brown
    8brownbrown
    • 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.

    Traps

    • Saying router to switch needs crossover. Router (MDI) to switch (MDI-X) is straight-through.
    How did you do?Book 2.2 EncodingOwn page
  14. 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

    TypeCoreJacket color (common)10GBASE-SR reach
    OM162.5 micronOrange33 m
    OM250 micronOrange82 m
    OM350 micron, laser optimizedAqua300 m
    OM450 micron, laser optimizedAqua or violet400 m
    OM550 micron, widebandLime green400 m, built for SWDM
    OS1, OS29 micronYellown/a (single-mode optics)

    Typical optics

    OpticFiberWavelengthReach
    1000BASE-SXMMF850 nm550 m on OM2 50 micron
    1000BASE-LX/LHSMF1310 nm10 km (5 km in the original IEEE spec)
    10GBASE-SRMMF850 nm300 m OM3, 400 m OM4
    10GBASE-LRSMF1310 nm10 km
    10GBASE-ERSMF1550 nm40 km
    100GBASE-SR4MMF, 8 fibers on MPO850 nm70 m OM3, 100 m OM4
    100GBASE-LR4SMF, duplex LC4 wavelengths near 1310 nm10 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.

    Traps

    • Mixing up the core sizes. 9 micron is single-mode; 50 and 62.5 micron are multimode.
    How did you do?Book 2.1 Technology LandscapeOwn page
  15. 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

    AmendmentAdds
    802.3u100BASE-TX Fast Ethernet
    802.3z1000BASE-SX and LX (fiber gigabit)
    802.3ab1000BASE-T
    802.3ae10 Gbps over fiber
    802.3an10GBASE-T
    802.3ba40 and 100 Gbps
    802.3by25 Gbps
    802.3bz2.5GBASE-T and 5GBASE-T
    802.3af, at, btPoE, 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.

    Traps

    • Guessing ZR is an IEEE standard name for 10G. 10G ZR (about 80 km) is a vendor and MSA term.
    How did you do?Book 2.1 Technology LandscapeOwn page
  16. 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 status
    Port         Name               Status       Vlan       Duplex  Speed Type
    Gi1/0/1      PC-101             connected    10         a-full a-1000 10/100/1000BaseTX
    Gi1/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.

    Traps

    • Hard-coding one end only. That is the textbook way to cause a duplex mismatch.
    How did you do?Book 2.6 Multi-Access NetworksOwn page
  17. 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

    ClassStandardPower at the switch (PSE)Power at the device (PD)
    0af15.4 W12.95 W
    1af4.0 W3.84 W
    2af7.0 W6.49 W
    3af15.4 W12.95 W
    4at (PoE+)30 W25.5 W
    5bt Type 345 W40 W
    6bt Type 360 W51 W
    7bt Type 475 W62 W
    8bt Type 490 W71.3 W

    Power-up sequence

    1. 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.
    2. Classification: the device draws a set current that tells the switch its class.
    3. Power on: the switch applies roughly 44 to 57 V and keeps monitoring the load.
    4. 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.

    Traps

    • Quoting the switch figure as what the device receives. The device gets less because of cable loss.
    How did you do?Book 2.1 Technology LandscapeOwn page

Working13

  1. 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

    1. Check the FCS of the incoming frame. Drop it if it is bad.
    2. Strip the Ethernet header and trailer.
    3. 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.
    4. Look up the destination in the routing table (longest prefix match) to get the next hop and outgoing interface.
    5. Resolve the next hop's MAC address (ARP cache, or ARP request).
    6. 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.

    Traps

    • Saying the destination MAC is the final server's MAC all the way. MACs are only meaningful on one link.
    • Forgetting TTL and checksum change at every hop.
    How did you do?Book 3.3 Internet (IP)Own page
  2. Which OSI layer does ARP belong to?

    Say this first

    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)

    FieldValue
    Hardware type1 (Ethernet)
    Protocol type0x0800 (IPv4)
    Hardware and protocol address lengths6 and 4
    Opcode1 request, 2 reply
    Sender MAC, sender IP, target MAC, target IP28 bytes total

    The 28-byte ARP payload is padded to the 46-byte Ethernet minimum.

    Traps

    • Saying "layer 3" flatly. ARP has no IP header and is never routed.
    How did you do?Book 3.3 Internet (IP)Own page
  3. 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

    ProtocolCarried inServes
    ARPEthernet, EtherType 0x0806IP to MAC resolution
    STP BPDU802.3 frame with LLC to 01:80:C2:00:00:00Layer 2 loop prevention
    LLDPEthernet, EtherType 0x88CC to 01:80:C2:00:00:0ENeighbor discovery
    MPLSLabel stack between layer 2 and IP, EtherType 0x8847Label switching ("layer 2.5")
    ICMPIP protocol 1Error reporting and diagnostics
    EIGRPIP protocol 88Routing
    OSPFIP protocol 89Routing
    GREIP protocol 47Tunneling
    ESP and AHIP protocols 50 and 51IPsec
    VRRPIP protocol 112Gateway redundancy
    BGPTCP 179Routing between and within autonomous systems
    DHCPUDP 67 server, 68 clientHost configuration
    DNSUDP 53, TCP 53 for large answers and zone transfersName resolution
    TLSOver 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.

    Traps

    • Saying BGP is "layer 3" without mentioning TCP 179. The encapsulation is the point.
    How did you do?Book 1.3 ArchitectureBook 3.3 Internet (IP)Own page
  4. 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

    1. 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.
    2. 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

    DeviceForwards onNotes
    Wireless APLayer 2Translates 802.11 frames to 802.3. In controller designs, data may be tunneled in CAPWAP.
    L4 load balancerIP and portCan do NAT, often DSR, does not read the payload.
    L7 load balancerHTTP host, path, headers, cookiesTerminates TCP and usually TLS, opens a new connection to the server.
    Layer 3 switchMAC within a VLAN, IP between VLANsSVIs or routed ports, routing in ASIC.
    NICLayers 1 and 2Has the MAC, does framing and FCS.

    Traps

    • Saying "a firewall is layer 4" without separating placement (routed or transparent) from inspection depth.
    How did you do?Book 8.5 Example SystemsOwn page
  5. 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.

    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.
  6. 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

    LayerWhat proves itCommands
    1Link up, right speed and duplex, no CRC errors, optic light levelsshow interfaces status, show interfaces, show interfaces transceiver
    2Right VLAN, MAC learned, STP forwarding, ARP resolvesshow mac address-table, show spanning-tree, show arp
    3Correct IP and mask, route exists both ways, ping and tracerouteshow ip route, ping, traceroute
    4Port reachable, no ACL or firewall drop, no MTU black holetelnet host 443, nc -vz, curl -v, firewall logs
    7Application answers correctlycurl, 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.

    Traps

    • Saying "ping works so the network is fine". ICMP can take a different policy path from TCP 443.
    How did you do?Book 1.3 ArchitectureOwn page
  7. 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

    ModuleSpeedLanesTypical connector
    SFP1 Gbps (also 100BASE-FX)1Duplex LC or RJ-45
    SFP+10 Gbps1Duplex LC
    SFP2825 Gbps1Duplex LC
    QSFP+40 Gbps4 x 10GMPO or duplex LC (LR4)
    QSFP28100 Gbps4 x 25GMPO or duplex LC
    QSFP-DD, OSFP400 to 800 Gbps8 lanesMPO 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.

    Traps

    • Assuming any module fits any port of the same shape. Check speed, platform support and coding.
    How did you do?Book 2.1 Technology LandscapeOwn page
  8. 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.

    Traps

    • Thinking the connector color is cosmetic. Green APC and blue UPC look alike but must not mate.
    How did you do?Book 2.1 Technology LandscapeOwn page
  9. 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.

    On the counters

    Full-duplex side:

    Output
    SW1# show interfaces GigabitEthernet1/0/2 | include CRC|runts
         112 runts, 0 giants, 0 throttles
         845 input errors, 733 CRC, 0 frame, 0 overrun, 0 ignored

    Half-duplex side:

    Output
    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.

    Traps

    • Putting late collisions on the full-duplex side. Full duplex never counts collisions.
    • Concluding the link is fine because ping works.
    How did you do?Book 2.6 Multi-Access NetworksOwn page
  10. How does CSMA/CD work, and is it still relevant?

    Say this first

    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.

    Traps

    • Saying switches still use CSMA/CD on full-duplex ports. Full duplex turns it off.
    How did you do?Book 2.6 Multi-Access NetworksOwn page
  11. 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/24
    GigabitEthernet1/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.

    What each counter points to

    CounterLikely cause
    CRCCable, connector, optic, EMI, duplex mismatch (full side)
    RuntsCollisions, duplex mismatch, faulty NIC
    GiantsJumbo frames into a 1500-byte port, MTU mismatch
    Overrun, ignored, no bufferThe receiver could not keep up (hardware or buffer exhaustion)
    Late collisionDuplex mismatch (half side), cable too long
    Output dropsCongestion: speed mismatch, microbursts, oversubscription
    Interface resetsFlapping link, keepalive failures

    Method

    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.

    Traps

    • Calling output drops a cabling problem. They are congestion.
    • Reading lifetime counters without clearing them first.
    How did you do?Book 2.4 Error DetectionOwn page
  12. 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 inline
    Module   Available     Used     Remaining
              (Watts)     (Watts)    (Watts)
    ------   ---------   --------   ---------
    1           437.0      431.8         5.2
    Interface Admin  Oper       Power   Device              Class Max
                                (Watts)
    --------- ------ ---------- ------- ------------------- ----- ----
    Gi1/0/1   auto   on         6.3     IP Phone 8845       2     30.0
    Gi1/0/2   auto   on         25.5    AP-2F-EAST          4     30.0
    Gi1/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.

    Traps

    • Looking only at the port and not the module budget. The port can be fine and the switch empty.
    How did you do?Book 2.1 Technology LandscapeOwn page
  13. 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

    ComponentExampleValue
    Propagation3,000 km of fiber pathabout 15 ms one way, 30 ms RTT minimum
    Serialization1500 bytes at 1 Gbps12,000 bits / 10^9 = 12 microseconds
    Serialization1500 bytes at 10 Gbps1.2 microseconds
    Serialization1500 bytes at 1.544 Mbpsabout 7.8 ms
    QueuingA 1 MB buffer draining at 1 Gbpsup to 8 ms
    ProcessingHardware forwardinga 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.

    Traps

    • Saying a faster link reduces propagation delay. It only reduces serialization.
    How did you do?Book 1.5 PerformanceOwn page

Expert6

  1. 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.

    Traps

    • Defending OSI as literal truth. Seniors are expected to know where it bends.
  2. 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

    dBmmW
    +32
    01
    -30.5
    -100.1
    -200.01
    -300.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.

    ItemPlanning lossTotal
    Fiber at 1310 nm0.35 dB per km x 124.2 dB
    Connector pairs0.5 dB x 42.0 dB
    Fusion splices0.1 dB x 20.2 dB
    Link loss6.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.

    Traps

    • Treating dB and dBm as the same. dBm is an absolute power; dB is a ratio or a loss.
    How did you do?Book 2.1 Technology LandscapeOwn page
  3. 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 status
    Port         Name               Status       Vlan       Duplex  Speed Type
    Gi1/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/14
    SW1# 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.

    Traps

    • Blaming the NIC driver first. A clean a-100 on a gigabit device usually points at the cable.
    How did you do?Book 2.2 EncodingOwn page
  4. 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.

    Traps

    • Forgetting to convert bits to bytes. 100 megabits is 12.5 megabytes.
  5. 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

    PartBytes
    Preamble and SFD8
    Ethernet header (no tag)14
    Payload46 to 1500
    FCS4
    Interframe gap12

    Small versus large frames at 1 Gbps

    FrameOn the wireFrames per second
    64 bytes84 bytes = 672 bits1,488,095
    1518 bytes1538 bytes = 12,304 bits81,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.

    Traps

    • Forgetting the preamble and interframe gap. They use wire time even though they are not in a capture.
    How did you do?Book 2.3 FramingBook 1.5 PerformanceOwn page