# Alex Xu — ccie13192.com (full text) > Personal site of Alex Xu, senior network architect in Shanghai (CCIE #13192 in Routing & Switching, > Security and Service Provider). Carrier and enterprise networking since 2003. This file carries the > complete text of every note so an agent can read the writing without scraping the pages. Canonical pages: https://ccie13192.com/ · https://ccie13192.com/notes/ · https://ccie13192.com/about/ · https://ccie13192.com/contact/ · https://ccie13192.com/privacy/ Publisher: Alex Xu · Funding: Google AdSense advertising, no vendor payments, no affiliate links. --- # What a CCIE Number Does Not Tell You URL: https://ccie13192.com/notes/what-a-ccie-number-does-not-tell-you/ Published: 2026-11-01 Tags: ccie, career, hiring, network-engineering A number I have carried since 2003 sits on my business card, in my email signature, and for years it was the first line of my website. It gets me a hearing. It has never got me a job on its own. The distance between those two things is what this piece is about, because that distance is where hiring managers and candidates both waste time. I hold CCIE #13192 in Routing and Switching (2003), Security (2005) and Service Provider (2009). I have also sat on the other side of the table: interviewing for carrier backbone teams in East Africa, for a bank building a dual-site data centre in Shanghai, and more recently for a global retail estate with several thousand sites. The pattern is consistent enough that I have stopped being polite about it. ## What the lab measures, and what it cannot The CCIE lab is a timed, closed-book exercise in building and repairing a network from a specification. You get a topology, a set of requirements and a clock. You are judged on whether the thing converges and whether it does what the requirements said. That environment is artificial in one important way: nobody files a change request, nobody calls you at 3 a.m., and no revenue depends on your decision. It is also brutally realistic in another way: the network does not care how confident you sound. What the lab tests is real. It tests whether you can read a topology and turn it into working configuration under pressure. It tests whether you know a protocol deeply enough to predict what it will do rather than copying a template. It tests whether you debug systematically after your first hypothesis turns out to be wrong. It also tests perseverance, which is an underrated engineering trait: the difference between the engineer who stops when the lab is not converging and the one who keeps eliminating until one cause is left. What it does not test is everything that happens after convergence. A lab does not ask what a design costs, what happens when the vendor code misbehaves in a corner case, how you roll back a change that went wrong at 2 a.m., or how you explain to a business owner why their store is offline and what you are doing about it. Those are not lab skills. They are operational skills, and they are learned by owning something that can break. The practical consequence: the certification is a strong signal for some roles and a weak one for others. It is strong where the work is protocol mechanics under time pressure and where a partner or tender requires a certified engineer on staff. It is weaker where the job is judgement under uncertainty, because the exam cannot see judgement and does not try to. ## The number is a timestamp, not a rank CCIE #13192 is a low five-digit number. It was issued in 2003. Someone who earned number 65000 last month did well on a different exam, with a different blueprint, on different equipment, and probably with a stronger grounding in EVPN, automation and cloud connectivity than I had in 2003. The number tells you roughly when someone sat the lab. It does not tell you how good they are now, and it certainly does not rank two engineers against each other. The same number covers all three of my tracks, which surprises people in interviews. That is how the programme works: one number per person, however many active certifications. So a number can tell you that someone has been around for two decades, and that is worth something, because longevity in this field usually implies a survivor's instinct for change control. But longevity is not the same as current depth. I have met CCIEs who had not touched a data centre fabric in ten years and were weaker on VXLAN than a CCNP who ran one daily, and I have met engineers with no certification who could read a packet capture better than most of the room. Where the timestamp argument does not hold: in environments where the certificate is scarce, it is often the only cheap filter available. A carrier NOC hiring twenty people cannot run a two-hour design interview with each one. In that setting the number does useful work as a floor, even though it is a poor ceiling. Judge it as a filter, not as a measurement. ## The tiers I actually see in interviews After enough interviews, a rough ladder emerges. It is not a ladder of certification levels, and it has little to do with years served. It is a ladder of what a person can be trusted with. | Level | What you can observe | What it predicts | Where it stops | | Configuration | Produces a working configuration from a written specification | Can execute a work order without supervision | Novel failures, design trade-offs, ambiguity | | Troubleshooting | Forms hypotheses, eliminates them, documents what was ruled out | On-call competence and incident ownership | Multi-team incidents, change risk, prevention | | Design | Names the failure domains and the cost of a choice before anything is built | Architecture that survives its first bad day | Execution against production and budget constraints | | Ownership | Changes how the organisation changes the network | Stability measured in years, not tickets | Organisational politics and budgets, which are often the real constraint | Certification correlates reasonably well with the first two levels, weakly with the third, and almost not at all with the fourth. The reason is structural rather than personal: design judgement comes from having lived with a bad decision and being blamed for it, and ownership comes from being in the room when priorities are set. Neither is available inside a lab window. A certified engineer can still be a configuration-level engineer at forty-five, and an uncertified one can be an owner. I have worked with both. The failure mode of this ladder is that interviewers often test the top of it with questions that only probe the bottom. Asking a candidate to recite BGP best-path order tells you they can memorise. Asking them how they would design a migration that must be reversible tells you something the lab never could. ## What I ask instead, and the checks I run I try to spend interview time on questions where the answer cannot be recited. The questions below are the ones that have been most useful to me, in the order I usually ask them. First: describe a change you made that broke something. What was the first signal that something was wrong, and what did you do in the first ten minutes? This tests whether they have actually caused an incident, whether they admit it, and whether they have an incident discipline rather than a hero story. A candidate who says nothing has ever broken has either been very junior or is not telling me the truth. Second: here is a topology on the whiteboard. Where are the failure domains, and what breaks when this one link goes? This tests design vocabulary. You can tell within a minute whether someone has seen a real failure domain or only read about redundancy. Third: what would you monitor to know this was degrading before users called? This is the single best predictor of operational maturity I have found, because it forces the candidate to think in time, not just in state. Fourth: tell me about a time you were wrong about a root cause. The answer matters less than the way it is told. Engineers who can describe their own wrong hypothesis calmly are worth more than engineers who cannot. Fifth: show me how you would verify that this change is reversible, and who you would call if it is not. This tests change management, which is the skill that most distinguishes a network that stays up from one that does not. None of these are free. They cost interview time and they depend on the interviewer's own judgement, which is why they do not scale to a high-volume hiring pipeline and why the certificate still exists as a cheap approximation. That is an honest limit, not a defect of the certificate. The checks I actually run before trusting a CV: - Treat the certificate as a floor for roles where it is scarce, and never as a ceiling. - Read the issue year next to the track. A 2003 R&S is a different signal from a recent data centre or automation certification. - Ask for one design story and one incident story, and listen for the failure domains and the first signal. - Ask what the candidate refuses to do, or what they would escalate. Good engineers have boundaries and know them. - Check whether the CV describes what the person owned or what their team did. The difference is usually visible in one sentence. - Do not confuse interview fluency with operational reliability. The lab does not test it, and neither does a good conversation. - If the role involves an existing network, ask what they would change first and what they would leave alone. Restraint is a design skill. - When hiring for a senior role, make the reference check about judgement, not about knowledge. Knowledge is already on the certificate. --- # Reading a BGP Looking Glass When a Prefix Disappears URL: https://ccie13192.com/notes/reading-a-bgp-looking-glass/ Published: 2026-11-01 Tags: bgp, routing, operations, networking A regional operations team messages me: one of our customer prefixes has stopped being reachable from one corner of the internet. Someone has already opened the public looking glass for the upstream router, typed the prefix, got nothing back, and concluded that BGP is down. The session was up, the prefix was in the table, and the problem was three layers away from the conclusion. That sequence is so common that I now treat the looking glass as a device that answers one narrow question and quietly invites you to answer five others wrongly. ## Four questions, one prefix When a prefix disappears, there are exactly four points where it can be lost, and they belong to different people. A looking glass usually shows you one of them. The first question is whether the prefix arrived at the router at all. That lives in the Adj-RIB-In, per neighbour, after the session came up. If the neighbour never sent the prefix, nothing this router does will fix it. A public looking glass that shows only the local table cannot tell you this, which is why a single empty lookup is such weak evidence. The second question is whether the router accepted it. Receiving is not accepting. An inbound prefix-list, an AS-path filter, a maximum-prefix limit, or a policy that matches a community the neighbour stopped setting all leave the prefix visibly absent while the session stays up and healthy. This is the most common place a prefix dies without anybody noticing. The third question is whether it was selected. A prefix can be present in the BGP table and still not be the path used, because another path wins, or because the winning path has become unusable. Selection is a best-path decision governed by the rules in RFC 4271 and by every local policy term your team has added since. It is also the step where a resolver failure hides: the route can be selected and still get marked as unusable if the next hop does not resolve in the IGP. The fourth question is whether the router advertised it onwards. A route can be present, accepted and selected, and still not leave the router, because outbound policy drops it, because it was summarised into something else, because the peer is iBGP and the route was learned from another iBGP peer without a route reflector, or because a well-known community such as NO_EXPORT was attached upstream. The fourth question is the one most often skipped, and it is often the right one. The looking glass usually answers the third question, and sometimes the fourth, for one router. It rarely answers the first and second, because those require per-neighbour state that the page does not expose. That asymmetry is the whole source of confusion: the page looks authoritative and is structurally incomplete. ## What the status codes mean, and what they do not The codes in front of a BGP entry are a compact record of what happened to the route inside the router. They are useful, provided you do not read more into them than the vendor put there. | Code | What it marks | What to check next | | * | Valid route | Nothing by itself; validity is not selection | | > | Best path | Whether it is also the path that is installed and advertised | | i | Learned from an iBGP peer | Route reflector topology and next-hop reachability | | r | RIB failure: the route exists but cannot be used | Next-hop recursion into the IGP, or a policy rejection during installation | | S | Stale, often after a graceful restart | Whether the peer actually re-converged or the stale entry is expiring | | h | History entry | Whether the prefix was withdrawn recently and what withdrew it | | d | Damped | Whether route dampening is enabled and what the penalty timer is doing | | m or = | Multipath candidate | How many paths are installed and how they are hashed | The RIB-failure marker produces the most misleading looking-glass output. The prefix is there, the session is up, and the next hop is an address the local IGP no longer resolves. The BGP process keeps the route and refuses to install it, so a page that renders only installed paths shows nothing at all. I have seen a team spend a day chasing an upstream provider when the real change was a summarisation boundary in their own IGP. Dampening is the other one that looks like an outage but is a policy decision. If dampening is enabled, a prefix that flaps a few times gets suppressed for a period that grows with each flap history. The prefix is reachable, the peer is up, and the router is deliberately not using it. The fix is a policy change, not a routing protocol fix, and it is worth knowing whether you have dampening enabled before you start debugging anything else. One boundary: these codes are conventional shorthand, and the exact set differs by platform and software train. Reading a Junos table with a Cisco decoder ring is how you misdiagnose a route. ## The order I actually work in Start at the session, because a session problem makes every later question meaningless. Then move outward, from what your router knows to what it tells its neighbours. The commands below are illustrative Cisco-style shapes, not verified output, and the exact syntax varies by platform and software version. ``` show bgp ipv4 unicast summary show bgp ipv4 unicast neighbors 192.0.2.1 received-routes show bgp ipv4 unicast 203.0.113.0/24 show bgp ipv4 unicast neighbors 192.0.2.1 advertised-routes show ip route 203.0.113.0 show bgp ipv4 unicast dampening parameters ``` The session check is not just up or down. Look at uptime, the last reset reason, prefixes received against the configured maximum, and whether the session has been flapping. A maximum-prefix limit that tripped shuts the session down and produces exactly the symptoms of an upstream outage. Then ask whether the prefix is in the received set from the neighbour you expect. This is the step that distinguishes a local problem from someone else's problem, and the step a passive looking glass cannot do. If the prefix is not in the received set, you are done with your router: go and ask the neighbour, and be prepared to find out the prefix was withdrawn for a commercial or policy reason rather than a technical one. If it was received, check acceptance. Look at the inbound policy and its counters, not just its text. A prefix-list that has grown a stale deny entry, or an AS-path filter matching a transit path that changed last Tuesday, will produce an empty table with no log line. Then check selection and installation: compare the path with its competitors, look for the RIB-failure marker, and confirm the next hop is resolvable in the forwarding table. Then check what you advertise. A route that is correct locally and absent at the neighbour is an outbound policy problem, an aggregation problem or an iBGP design problem. If the neighbour is an iBGP peer and the route came from another iBGP peer, a route reflector is involved, and the reflector may be filtering. This is where I look first when a prefix is visible in one data centre and not another: not at the internet, but at the route reflector and its policy. ## Communities and aggregation, and the checklist I run Communities are the last thing I check, and I check them last because they are the least likely to be the cause and the most likely to send you down a rabbit hole. A community is a tag; it does not move a prefix. What moves a prefix is the policy that matches the tag. If the upstream attached NO_EXPORT to a summary, or if your own network uses a community scheme to mark customer, peer and transit routes, then an apparently healthy BGP table at the upstream can coexist with a prefix that never reaches you, because the upstream router is choosing not to advertise it. The well-known communities in RFC 1997, and large community attributes in RFC 8092, behave exactly as specified, and the semantics of every other community in your fabric are a local convention that exists only in your own runbook. Aggregation deserves equal suspicion: a summary-only advertisement that no longer covers the prefix you think it covers produces a clean withdrawal with no obvious error. What I run before I touch anything: - Confirm the peer session state, uptime, last reset reason and prefix count against the maximum. - Ask which vantage point the report came from, and get a second looking glass from a different AS before drawing a conclusion. - Check the prefix in the received-routes view, not just the local table. - Check acceptance against inbound policy counters, prefix limits and any route dampening. - Check selection and installation, including next-hop recursion and the RIB-failure marker. - Check what is advertised to each neighbour, including route-reflector policy for iBGP paths. - Check whether aggregation or a summary-only change landed just before the report. - Only then read communities, and read them as an explanation for policy, not as a cause in themselves. - If the prefix is missing from the received set, stop debugging your own router and go and ask the neighbour. --- # MPLS vs SRv6 for Operators: What Actually Changes URL: https://ccie13192.com/notes/mpls-vs-srv6-for-operators/ Published: 2026-11-01 Tags: mpls, srv6, service-provider, network-architecture The MPLS versus SRv6 argument is usually conducted with diagrams. The diagrams are the easy part. What actually decides the question in an operator is something less photogenic: which tools your on-call engineers reach for when a path is not doing what the diagram says, and whether those tools still exist after the migration. I came up through the ATM and Frame Relay to IP/MPLS migration of a national backbone in the mid-2000s, and the lesson from that project was not that MPLS was better. It was that the migration cost lived in the runbooks and the reflexes, not in the equipment. ## What changes in the data plane MPLS carries a 4-byte label stack between the Ethernet header and the IP header. Each hop swaps the top label for another and forwards toward the next hop. The label-switched path is either signalled by a protocol such as LDP, reserved by RSVP-TE, or, in segment routing, constructed from labels that the IGP advertises as segment identifiers. The important property is that forwarding state is distributed: every hop holds state about the paths it participates in, and the data plane is a cheap fixed-size lookup. SRv6 removes the label. The path is encoded as a list of IPv6 addresses, carried in the segment routing header defined in RFC 8754, and the forwarding behaviour of each segment is defined in RFC 8986. The headend puts the segment list into the packet; the core forwards ordinary IPv6 packets and processes segments only where a segment endpoint lives. There is no per-LSP state distributed hop by hop, because each packet carries its own instructions. That is the structural difference: MPLS keeps state in the network, SRv6 keeps state in the packet. The engineering consequences are not symmetric. Removing distributed state simplifies the control plane and makes traffic steering an end-to-end decision rather than a per-hop reservation. That is genuinely attractive if you want to express policy the way a service or an application thinks about it. The price is a larger header, which interacts with MTU, with hardware parser depth, and with the cost of per-hop IPv6 lookup. Static random access memory in the forwarding pipeline is finite, and a header that grows by 16 bytes per segment is not free on a router that was specified for label stacks. One honest complication: SR-MPLS is the middle point, and it is easy to forget in these debates. It uses the same MPLS forwarding plane as today, with labels distributed by the IGP as segment identifiers instead of by LDP. You get much of the segment routing policy story without changing the data plane or the OAM tooling. If the question is really "should I move off MPLS forwarding", SR-MPLS is not the answer, but if the question is "do I need segment routing policy", it often is. | Dimension | MPLS with SR-MPLS | SRv6 | | Forwarding state | Per-path labels distributed by IGP; SR-MPLS removes LDP but keeps label forwarding | No per-path state in the core; segments carried in the packet | | Header cost | 4 bytes per label | IPv6 header plus SRH and 16 bytes per segment; uSID compresses this | | Hardware dependency | Mature on almost every platform shipped in the last fifteen years | Depends on ASIC and line card support, segment depth and uSID capability | | OAM | LSP ping and traceroute are decades old and understood by every NOC | Defined in RFC 9259 and improving, but less uniformly deployed | | Fast reroute | TE fast reroute and TI-LFA, both well trodden | TI-LFA and SRv6 repair paths, requiring hardware support for segment processing | | Failure domain | Forwarding plane and label distribution | IPv6 forwarding, locator reachability and segment processing | | Team familiarity | Deep in most operators over a certain age | Still thin in most NOCs, and concentrated in a few engineers | ## The migration is five migrations When people say "we are moving to SRv6", they usually mean the data plane change. That is the easy one. A production migration is at least five changes happening on different timescales, and they are rarely funded together. The first is the control plane and IGP. Locators must be advertised, IPv6 reachability must be solid, and the IGP extensions in RFC 9352 must be supported by every platform in the path, not just the headends. The second is OAM. Your team knows how to trace an LSP and how to read an LSP ping return code. Tracing an SRv6 path means reading a segment list, mapping locators back to routers, and understanding which segment failed. That is a different tool and a different mental model, and the runbook that used to be one page becomes a training problem. The third is telemetry and the operations stack. Capacity planning, path accounting and fault correlation in an MPLS network are built around LSPs and label stacks. The OSS that collects this data has to understand SIDs. If the collector does not, the migration can be technically complete while the network becomes less visible than before. The fourth is hardware. A feature can be present in software and absent in the ASIC, and the difference shows up as a line card that cannot do the thing the design assumes. The fifth is interworking: your peers, your partner networks, your PE-CE edges and your inter-AS design all have to agree on a transport, and some of them will not have migrated. Why does this matter more for SRv6 than for the last decade of MPLS work? Because MPLS was the shared assumption for almost every carrier network in the world, so every tool, every vendor and every engineer had already solved it. SRv6 is not yet that shared assumption, so the migration is partly a migration of the ecosystem around you. Where that argument does not hold: a greenfield operator building with current hardware, an IPv6-only strategy and a small team can collapse all five migrations into one build, because there is no installed runbook to unlearn. That is a real advantage of being late. ## Where SRv6 wins, and where it does not SRv6 wins where the network needs to express end-to-end intent. If you are building transport for mobile, for a slice-based service, or for a data centre interconnect where the path itself is a product decision, the ability to put the path in the packet and steer it per flow without a signalling protocol is not a nice-to-have. It also wins on operational simplicity at scale: no label distribution state to reconcile, fewer protocols to run, and a natural fit with an IPv6-only underlay. The locator plus IS-IS advertisement below is an illustrative shape, not vendor-verified output. ``` segment-routing srv6 locator MAIN prefix 2001:db8:100::/48 behavior usid ! router isis CORE address-family ipv6 unicast segment-routing srv6 locator MAIN ``` SRv6 does not win by default. If the MPLS estate is mature, the runbooks are stable and the hardware is a few years old, the marginal policy benefit may not pay for a migration that touches every card, every OSS integration and every on-call engineer. It does not win if the requirement is deep OAM maturity today, because MPLS OAM has been exercised by every operator for twenty years and SRv6 OAM is still catching up in uniform deployment. It also does not win if MTU is tight in the existing design and header growth cannot be absorbed, which is exactly the kind of constraint that a diagram never shows. The failure mode of both directions is the same: choosing the technology and deferring the operations work. An SRv6 network with no SRv6-literate NOC is worse than an MPLS network with a well-trained team, and vice versa. ## What I would do on a real network First, I would separate the two questions. If the problem is path policy and traffic steering, SR-MPLS on the existing data plane solves most of it and costs a fraction of the migration. If the problem is an eventual move to an IPv6-only transport with end-to-end programmability, then SRv6 is the destination and the timing is a separate argument. Second, I would pilot SRv6 in a domain that is new anyway: a greenfield site, a new DCI pair, a new mobile transport ring. New domains do not require anyone to unlearn a working runbook, and they give the team a safe place to build OAM tooling and telemetry before production depends on it. The checklist I would want answered before committing budget: - Which problem is being solved: policy expressiveness, IPv6-only transport, or vendor lifecycle? - Does every platform in the path support the required segment depth, or only the headends? - Is the hardware ASIC qualified for the feature, not just the software train? - Can the NOC trace a path without the vendor's escalation, and how long does it take? - Does the telemetry and OSS stack understand SIDs, locators and segment lists? - What is the interworking plan for peers, partners and inter-AS links that stay on MPLS? - What is the MTU budget in the existing design, and does it survive the header change? - Which new domain gets the pilot, and what does success look like in numbers? - Is SR-MPLS a sufficient and cheaper answer to the same problem? - What is the rollback story if the pilot fails, and how much of the estate is affected? --- # Lossless Ethernet for AI Clusters: PFC, ECN and the Failure Modes That Bite URL: https://ccie13192.com/notes/lossless-ethernet-for-ai-clusters/ Published: 2026-11-01 Tags: ai-fabric, roce, ethernet, data-center The first time a RoCE cluster lost most of its throughput while every drop counter stayed at zero, the team blamed the AI framework. The framework was fine. Priority Flow Control was doing exactly what it had been configured to do, on a queue that had been quietly sharing a priority with traffic it should never have shared, and the resulting pause spread across a rail until half the cluster was waiting on one slow receiver. Nothing had been dropped, so nothing looked broken, which is the worst kind of network failure to debug. ## What lossless actually promises RoCEv2 carries RDMA over UDP, conventionally to destination port 4791. It assumes a lossless or near-lossless path because RDMA retransmits at the operation level rather than the packet level: a single lost packet can cost far more goodput than the same loss would cost a TCP flow. To get that behaviour on Ethernet, three mechanisms are combined. Priority Flow Control, defined in IEEE 802.1Qbb, pauses a specific priority class on a port when its receive buffer crosses a threshold. Explicit Congestion Notification, defined in RFC 3168, marks packets before buffers overflow, giving senders an early signal. The senders respond with rate control, and the whole loop only works if the thresholds and the priority mapping are consistent across the fabric. The word to notice is priority. Lossless is a property of one traffic class, not of the link. The same port carries lossy storage or management traffic on other priorities, and the link is only "lossless" for the queues that were configured and negotiated for it. That is why a fabric can be certified as lossless by a vendor and still drop the traffic that matters, if the queue mapping on one leaf does not match the rest. The mechanism also changes what a buffer means. A switch cannot pause a sender instantaneously. In the time it takes a pause frame to be generated, transmitted and acted on, the upstream device keeps sending. The receiving switch must therefore reserve headroom for the frames already in flight, and if that headroom is undersized, packets are dropped before the pause can take effect. Headroom sizing is a design decision driven by port speed, cable length and whether the fabric is expected to absorb bursts, and no two platforms express it the same way. | Mechanism | What it does | How it fails | | PFC | Pauses one priority class on a port before the buffer overflows | Pause storms, head-of-line blocking, cyclic deadlock across hops | | ECN | Marks packets early so senders slow down | Inconsistent thresholds across the fabric cause drops or permanent throttling | | DCQCN | Turns congestion marks into sender rate changes | Depends entirely on ECN being enabled end to end; one blind hop breaks it | | Buffer headroom | Absorbs frames in flight while a pause takes effect | Undersized headroom means drops occur before the pause arrives | | DCBx and ETS | Negotiates per-priority behaviour and bandwidth allocation | Mismatched negotiation gives asymmetric or silently absent lossless | | Oversubscription | Sets the worst-case queue growth on an uplink | Higher ratios mean more pausing and more spreading under incast | ## The failure modes that matter The most common failure is not a deadlock. It is head-of-line blocking that looks like a performance problem. One host stops draining its receive queue, its leaf starts pausing the spine, the spine starts pausing other leaves, and every flow that shares the lossless priority on that path slows down together. The offending host may be a single GPU server with a slow memory path or a misconfigured NIC; the blast radius is the whole priority class. The reason is structural: PFC pauses a queue, not a flow, so a shared priority means shared fate. This is the trade-off you accept for losslessness, and it is acceptable only if the lossless priority is reserved for RDMA and nothing else rides on it. The second failure is a genuine deadlock. Pause frames stop traffic in the lossless priority when a buffer crosses a threshold, and if the topology contains a cycle, or if the buffer dependency graph contains one, then each hop can end up paused by the next with no hop able to make progress. In a well-designed spine-leaf fabric the graph is acyclic and deadlock should be impossible, but "should" is doing a lot of work when there is an accidental L2 loop, a misconfigured link aggregation, or a multi-stage design with a shared buffer between stages. PFC watchdog exists for this: when pause persists beyond a configured duration, it drops packets for a period to break the cycle. The trap is that disabling the watchdog to avoid false positives converts a recoverable stall into a hard one. The third failure is ECN inconsistency. A fabric where some switches mark and others do not, or where thresholds differ by an order of magnitude, gives senders a signal that does not reflect the real bottleneck. The symptom is either congestion collapse, because the last hop had no ECN and dropped, or permanent under-utilisation, because one switch marked everything and the sender never recovered its rate. The reason is that DCQCN is a feedback controller: it is only as good as the feedback path, and the feedback path is every switch in the fabric. The fourth is the unglamorous plumbing. Optics with marginal bit error rates produce CRC errors, FEC corrections and link flaps, and a flapping link removes capacity from a path that was sized for it, which produces pause waves that look like a congestion problem. Speed mismatch between a 400G leaf uplink and a 100G host port creates step-down behaviour that is easy to miss. MTU inconsistent end to end forces fragmentation of large RDMA messages and destroys the performance the fabric was built for. None of these are exotic; all of them show up as "the cluster is slow" and none of them are visible in a packet-drop counter. ## How I debug a stall Start with the counters that tell you who paused whom, in which direction, on which priority. The commands below are illustrative shapes, not vendor-verified output; every platform names these differently. ``` show interface priority-flow-control show interface priority-flow-control counters show interface counters queue show qos queue watermarks show interface counters errors ``` The order I use: first, confirm that the lossless priority is actually negotiated on both ends of every link in the path, because DCBx can silently fall back. Second, find the port that is generating pause frames and the port that is receiving them; pause transmit on a leaf toward a spine means that leaf is the one asking for room, not the one that is full. Third, look for a single host or a single port pair that appears every time. Fourth, check whether the pause correlates with a link error, a flap or a speed mismatch. Fifth, reproduce with a workload the cluster actually runs, because synthetic ping-based tests will never generate the incast pattern that exposes the problem. The boundary: counters tell you where backpressure is applied, not why the receiver stopped draining. Often the receiver is a NIC or a host-side problem, and the network is only reporting it. An AI cluster's lossless fabric is part of a system that includes the NIC firmware, the driver, the PCIe path and the collective library, and blaming the switch is a habit rather than a diagnosis. ## Designing for predictable behaviour What I would design for, in order of impact. Keep the lossless priority exclusive to RDMA. Keep the fabric as non-oversubscribed as the budget allows, because every extra ratio becomes worst-case queue growth under incast. Keep ECN thresholds consistent across the fabric and treat an inconsistent threshold as a defect, not a tuning choice. Size headroom on the receiving side rather than trusting the pause to arrive in time. Reserve buffer for the lossless priority so that lossy traffic cannot starve it. Make PFC, ECN and queue-drop counters first-class monitoring signals, not something you look at during an incident. And test with the real collective pattern before accepting the cluster, because a fabric that passes a bandwidth test can still deadlock under all-reduce. One honest comparison: InfiniBand is still easier to run for this job, because credit-based flow control and adaptive routing are inherent to the fabric rather than a layer of tuning on top of Ethernet. Ethernet is winning on cost, ecosystem and operational familiarity, and the industry is actively working on the gap through efforts such as the Ultra Ethernet Consortium. Neither fact makes the failure modes above disappear. They make them an engineering cost you choose to pay. What I check before a cluster goes into service: - Is the lossless priority explicitly mapped and reserved for RDMA only, on every switch and every host? - Does DCBx negotiation succeed on every link, and what happens when it fails? - Are ECN marking thresholds identical across the fabric, and is ECN enabled on every hop? - Is buffer headroom sized for the longest cable and the highest port speed in the design? - Is PFC watchdog enabled, and is its behaviour understood and tested? - Are pause, ECN-marked, queue-drop and error counters alerted on, not just collected? - Has the fabric been tested with the real collective pattern, including incast and all-to-all? - Is the oversubscription ratio known per path, and does the workload fit inside it? - Is MTU consistent end to end, including any overlay encapsulation? - Is there a documented procedure for isolating one paused port without disabling losslessness for the rest? --- # Why Spine-Leaf Broke the Three-Tier Model URL: https://ccie13192.com/notes/spine-leaf-broke-three-tier/ Published: 2026-11-01 Tags: data-center, spine-leaf, evpn, network-architecture I still have the Visio from a three-tier design review in 2010: core, aggregation, access, a spanning tree, a VLAN plan, and an oversubscription ratio that someone had negotiated with a budget. That design was correct for the traffic it was built for. Storage replication and backups ran north to south at night, the data centre was a destination rather than a mesh, and the aggregation layer was a sensible place to put policy. Then the applications changed, the traffic turned sideways, and the model that had been an asset became a tax. ## What the three-tier model assumed The hierarchy assumed that most traffic leaves the data centre or at least crosses the aggregation layer on its way somewhere else. It assumed that access switches are cheap and their uplinks can be shared, that a VLAN spanning a few access switches is a natural unit of segmentation, and that spanning tree is an acceptable way to keep the L2 domain loop-free, because the L2 domain is small enough that the blocked links are a minor cost. Those assumptions were not stupid. A tree gives you a predictable failure domain, a clear place to aggregate policy, and a capacity plan that maps to a budget line per tier. The oversubscription ratio at each tier is a deliberate economic choice: you accept a multiplier because not every port transmits at line rate at the same moment. Where that reasoning holds, three-tier is still efficient. What broke the reasoning was east-west traffic. Once applications were split across many servers, once storage and compute were separated, once replication, batch processing and machine learning moved large flows between racks, the majority of bytes started crossing leaf to leaf. In a tree, a leaf-to-leaf flow goes up to the aggregation layer, through it, and back down, and the aggregation layer is exactly where the oversubscription ratio lives. The hierarchy was optimising for a traffic pattern that no longer dominated. ## Why the fabric moved to two tiers Spine-leaf inverts the assumption. Every leaf connects to every spine, no leaf connects to another leaf, and the path between any two hosts is a fixed two hops, or three with a super-spine layer. All links between leaves and spines carry equal-cost paths, and the fabric uses ECMP rather than a spanning tree. Capacity scales horizontally: add a spine to add bandwidth across the fabric, add a leaf to add ports, and the oversubscription ratio is a property of the uplink count per leaf rather than a per-tier budget decision. The important move is not physical, though. It is that the L2/L3 boundary moved to the leaf, and tenant L2 segments became an overlay instead of a physical VLAN spanning access switches. The underlay is an IP fabric running BGP or an IGP; the overlay is VXLAN with EVPN as the control plane. That split is what makes the design work at scale and it is also what makes operations different, because the network you troubleshoot is no longer the network you can see on a cabling diagram. Why did the overlay become necessary rather than optional? Because workloads need L2 adjacency with mobility and a shared address space, and stretching VLANs across a spine-leaf underlay with STP would reintroduce exactly the problem the fabric was built to remove. EVPN gives you MAC and IP reachability distributed through BGP, with route types that describe MAC/IP bindings, inclusive multicast for broadcast and unknown unicast, and IP prefixes for routing. The consequence is that the control plane now carries host state, and the failure modes move from "the spanning tree blocked a link" to "the EVPN route is missing, stale or pointing at the wrong leaf". ## What the overlay changes in operations The day-to-day tasks barely change their names and change completely in how they are done. The table below is the comparison I use when training a team that is moving from a three-tier estate. | Routine task | Three-tier answer | Spine-leaf answer | | Capacity planning | Oversubscription per tier, chosen to a budget | Uplinks per leaf and ECMP aggregate; hash distribution matters as much as raw bandwidth | | Segmentation | VLANs and SVIs on the aggregation layer | VRFs and EVPN instances across the fabric | | Loop prevention | Spanning tree, with blocked links as the price | No L2 loops by design; EVPN multihoming and anycast gateway do the work | | Host default gateway | An SVI on a pair of aggregation switches | Distributed anycast gateway on every leaf, with ARP and ND suppression | | Broadcast and unknown unicast | Contained within the VLAN and its spanning tree | Underlay multicast or ingress replication; head-end replication limits scale | | MTU | Usually uniform, rarely a first-order concern | End-to-end budget must absorb VXLAN overhead; a 50-byte surprise breaks large flows | | Fault isolation | Follow the physical path and the spanning tree state | Two-layer trace: underlay reachability, then overlay route and tunnel state | MTU deserves its own sentence because it is the most common self-inflicted wound after an overlay deployment. VXLAN adds 50 bytes: 14 for the outer Ethernet header, 20 for the outer IP header, 8 for UDP and 8 for the VXLAN header. An underlay provisioned for 1500-byte frames will silently break any packet that needs a full 1500 bytes inside the tunnel, and the failure appears as an application timeout, not as a network alarm. The fix is a documented underlay MTU, jumbo frames on the fabric links, and a test that sends full-size packets through the overlay rather than pings. The second wound is ECMP hashing. ECMP distributes flows, not packets, and a small number of very large flows can land on the same spine uplink while the other links sit idle. The aggregate bandwidth is there; the distribution is not. This is why carriers and large data centres care about hash entropy and why some newer platforms offer adaptive routing or packet spraying. The boundaries matter: for many small flows, standard hashing is fine; for a handful of elephant flows, the fabric can be simultaneously congested and under-utilised, and no amount of adding spines will fix a hash that keeps choosing the same path. The third is operational split. In three-tier, one team could own the whole stack and reason about it physically. In an overlay fabric, the underlay is a routed IP network with its own convergence and its own change windows, and the overlay is a control plane with route types, tunnel state and MAC/IP scale. If the same small team owns both, the cognitive load is real, and the most common production failure I have seen is a change that was correct in one layer and wrong in the other. ## Where three-tier is still right, and the post-migration checklist Three-tier has not been abolished. Campus networks are still trees, because campus traffic is mostly north to south and the users are attached to a physical building. Small data centres with a handful of racks and predictable traffic do not need a fabric. Environments with strict legacy L2 requirements, or where the budget for a full redesign does not exist, are often better served by a collapsed core than by a half-built spine-leaf. The failure mode is adopting the topology without adopting the operational model: a spine-leaf that is really a tree with extra links, managed with spanning tree and per-tier capacity planning, gets the cost and none of the benefit. Equally, spine-leaf does not fix a bad design. A two-tier fabric with a high oversubscription ratio and a poor hash is still a bottleneck with a fashionable name. The topology buys you a path budget and a segmentation model; it does not buy you the discipline to monitor the underlay and the overlay as two systems. What I would verify after a move to an overlay fabric: - Underlay MTU is documented, consistent, and tested with full-size packets through the tunnel. - ECMP hash configuration is consistent across leaves and spines, and elephant-flow behaviour is known. - Every leaf has a defined role for anycast gateway, ARP and ND suppression, and it matches the design. - EVPN route types in use are documented, and missing-route cases are part of the runbooks. - BUM traffic has an explicit design: multicast underlay or ingress replication, with a scale number. - Failure isolation is drilled as a two-layer exercise, not a single physical path trace. - MAC and IP route scale is measured against platform limits, including the headroom for a site failure. - Underlay and overlay change windows are separate, and nobody changes both at once. - A leaf failure has been tested for its effect on attached dual-homed and single-homed hosts. - The team can explain, without notes, why this topology is the right one for the traffic it carries. --- # Five SD-WAN Migration Failure Modes in the Real Network URL: https://ccie13192.com/notes/sd-wan-migration-failure-modes/ Published: 2026-11-01 Tags: sd-wan, migration, operations, networking Every SD-WAN demo ends with the same slide: three coloured arrows, a green tick on every application, and a claim that the branch is now policy-driven. The migration is the part the slide skips. In production, a branch that had one MPLS circuit and a static default route suddenly has three transports, a controller, and a policy that someone pushed from a central template at 2 a.m. Most of the failures I have seen in that transition come from five places, and they recur across vendors because they are architectural, not product-specific. ## Why migrations fail at the seams An SD-WAN migration changes two things at once. It moves control from distributed edge configuration to a central policy plane, and it moves the underlay from one predictable path to several unpredictable ones. Either change alone is manageable. Together, they create a class of failure where the old mental model and the new tool disagree, and the seam between them is where the incident happens. The demos are run on a clean topology, a single transport, and a handful of applications with well-known signatures. Production is a branch with legacy L2 devices, an internet circuit that was sized for guest Wi-Fi, a data centre behind a stateful firewall, and an application owner who cannot tell you whether their traffic is TCP or UDP. The failures below all show up in that gap. ## Policy, paths and application identity ### Centralised policy and its precedence Moving policy to a controller is the core promise and the first failure point. In a routed network, precedence is written down in configuration order: route maps, ACL sequence numbers, QoS policy nesting. In a central policy plane, precedence is a template model, and the order in which a per-route policy, a per-tunnel policy, a security policy and a QoS policy apply is defined by the vendor's model rather than by the order the operator wrote them. The failure shows up when a new policy is pushed to a site cohort and the traffic does not do what the text says. It usually happens because the old configuration had an implicit behaviour that was never written down, and the new model makes a different implicit choice. The reason this is dangerous is blast radius: a single template error can reach every site at once, and the rollback is another push through the same controller. What makes it workable is treating policy as code, staging by cohort, previewing the effective policy per site, pinning template versions, and rehearsing the rollback before the first push. Where it does not matter: a ten-site estate with one engineer and no template reuse can safely configure each site and skip most of this. ### Asymmetric paths and stateful devices Multiple transports mean forward and return paths can differ. A branch with local internet breakout can send a flow out of the local circuit and receive the reply through the data centre. If a stateful device sits anywhere in that path, a firewall, a NAT function or a load balancer, the return traffic arrives without its session state and is dropped or reset. NAT is the classic case. If the outbound translation happens on one transport and the return arrives on another, the external address differs and the state lookup fails. Dynamic routing makes it worse when unequal-cost paths cause a prefix to flap between transports, taking the return path with it. The fix is flow affinity: pin flows to a transport or tunnel for their lifetime, apply stateful policy and NAT on the same tunnel, and prefer symmetric return for flows that cross stateful devices. Where it does not matter: short-lived DNS, QUIC and most SaaS traffic tolerates asymmetry, so the problem is traffic-class dependent rather than universal. Test with a real TCP session through a stateful device, not with a ping. ### Application identification Application-aware routing depends on classification. The platform can classify by deep packet inspection, by IP and port, by domain name, or through a cloud connector. Encrypted traffic limits DPI, SaaS providers rotate address ranges, and first-packet classification can misparse a connection that later turns out to be something else. The result is an "unknown" bucket that grows quietly and falls into the default policy, which is usually the wrong path or the wrong queue. The failure is rarely total. It is a percentage of sessions classified wrongly, which means the voice or video flow that the design promised to protect gets treated as generic traffic on a lossy internet path. The reason is that application policy is only as good as the classifier, and the classifier is a moving target. What works: a small number of application classes with explicit policy instead of hundreds of signatures, validation with a packet capture at the branch, monitoring the unknown bucket as a first-class metric, and treating signature updates as a change that can reclassify the estate. Where it does not matter: if you steer by subnet and port for a handful of known applications, sophisticated identification is unnecessary. | Failure | First sign in production | Who usually notices | | Policy precedence | The same policy behaves differently at two sites | Service desk, after users complain | | Asymmetric path | Long-lived sessions reset; short ones are fine | Firewall team, from session logs | | Application identity | Protected traffic shares the default path | Application owner, from quality reports | | DNS | Internal names resolve to the wrong site or time out | Branch users, immediately | | Rollback | Nobody can reach the device to undo the change | Everyone, at the worst possible moment | ## DNS and rollback ### DNS is not a side quest DNS is the first thing almost every flow does, and it is often the last thing migrated. Split-horizon DNS, internal zones, resolver reachability per transport, proxy settings and encrypted DNS all interact with path selection. If the policy steers DNS to a central resolver over a transport that has degraded, the branch experiences "the internet is down" while every link is technically up. The specific traps are internal names resolving to a data centre address that is no longer reachable over the chosen path, a branch resolver that caches the wrong answer for the duration of the cutover, and encrypted DNS bypassing the resolver that the design depends on. The reason this belongs in the migration plan rather than the operations guide is that the wrong answer is cached and the symptom outlives the cause. Test split-horizon resolution from the branch, keep TTLs short during cutover, have a fallback resolver, and monitor resolution latency per site. Where it does not matter: a cloud-first estate with no internal zones and no legacy applications will barely notice DNS at all. ### The rollback that was never tested The most expensive failure is the one where the migration works and the rollback does not. A cutover plan is not a change plan. The rollback has to be rehearsed, and it has to work without the thing you just changed, which is the hard part: if the overlay is how you reach the device, you cannot use the overlay to fix the overlay. That is why out-of-band access at critical sites, a controller-independent management path, exported configurations before the change, and a pre-agreed fallback route are not optional extras. It is also why the old circuit should not be decommissioned until a defined stability window has passed, and why the stop/go gate needs a measurable criterion rather than a feeling. Where a simpler approach is acceptable: small sites can often accept "replace the appliance and rejoin the old circuit" as a rollback, because the site is simple enough to rebuild. Large sites and hubs cannot, and those are the ones where a live fallback has to exist. Before a site is cut over, I want these checks to run on the day, not the week before. The commands below are illustrative shapes, not vendor-verified output, and the exact syntax depends on the platform. ``` show sdwan control connections show sdwan bfd sessions show ip route 10.10.10.10 show sdwan policy from-vsmart show logging | include DHCP|DNS ``` What I would put in the per-site cutover runbook: - Record the pre-change state: routes, tunnels, DNS answers, firewall sessions and the current configuration export. - Confirm all transports are healthy before the template is applied, not after. - Verify controller reachability from an independent path, not through the device being changed. - Stage the policy change by cohort and compare behaviour between cohorts before widening. - Test classification with a real capture for the applications that the design claims to protect. - Test split-horizon DNS resolution from the branch and confirm the fallback resolver works. - Prove symmetry with a real TCP session through every stateful device on the path. - Rehearse the rollback on a pilot site, including the case where the controller is unreachable. - Keep the old circuit live until the stability window has passed and the metrics agree. - Define the stop/go criterion in numbers before the window opens, and give one person the authority to call it. ---