<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tomar Praneet on Medium]]></title>
        <description><![CDATA[Stories by Tomar Praneet on Medium]]></description>
        <link>https://medium.com/@tomar.praneet?source=rss-273b0c2aa238------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eNagWcnoSypSyHo46SroFg.png</url>
            <title>Stories by Tomar Praneet on Medium</title>
            <link>https://medium.com/@tomar.praneet?source=rss-273b0c2aa238------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:32:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomar.praneet/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Code Review at Scale- What Changes When You’re Reviewing for a Team, Not Just Yourself]]></title>
            <link>https://medium.com/@tomar.praneet/code-review-at-scale-what-changes-when-youre-reviewing-for-a-team-not-just-yourself-1e093d68c5de?source=rss-273b0c2aa238------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e093d68c5de</guid>
            <category><![CDATA[peer-review]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[mentorship]]></category>
            <dc:creator><![CDATA[Tomar Praneet]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 13:04:09 GMT</pubDate>
            <atom:updated>2026-08-06T13:04:09.743Z</atom:updated>
            <content:encoded><![CDATA[<p>Reviewing your own code and reviewing a team’s code are not the same skill wearing different clothes. They feel similar from the outside, both involve reading code and deciding whether it is good enough, but the actual judgment being exercised changes substantially once your review has to account for more than just your own work. I learned most of this while owning features on carrier-grade networking systems, and a few of these shifts took longer to internalize than I expected.</p><h3>From Correctness to Maintainability</h3><p>When you review your own code, you are mostly asking one question, is this correct. When you review code for a team, that question is still there, but it is joined by a second one that matters just as much, can someone other than the author understand and safely change this later. On a codebase multiple engineers touch over years, code that works but that only its original author can confidently modify is a liability, even if it passes every test today.</p><h3>Consistency Becomes Something You Actively Protect</h3><p>Multiple engineers writing to different personal styles is not a minor cosmetic issue on a carrier-grade codebase. Inconsistent patterns, particularly around things like error handling or resource cleanup, can quietly hide real bugs, because reviewers and future maintainers stop being able to rely on the code following any single predictable shape. Part of owning a feature became actively pushing toward shared convention across the code that touched it, not simply approving whatever technically worked.</p><h3>Reviewing Across Team Boundaries, in Parallel</h3><p>One of the more demanding parts of this work had nothing to do with reading code line by line. Features I owned often had dependencies on other teams’ components, and theirs depended on mine in return. That meant review frequently had to happen in parallel across teams rather than sequentially within one, with both sides needing to understand how their changes would actually interact once integrated, not just whether each side’s code was individually correct. Coordinating that timing, and making sure both teams were reviewing against the same shared understanding of the interface between their components, was as much a part of the job as the review itself.</p><h3>Upgrade and Downgrade, Not Just the Current State</h3><p>A change that looks correct for the system as it exists today is not automatically correct once you account for upgrades and downgrades. On carrier-grade platforms, a device might be running an older software version today and get upgraded later, or a customer might need to roll back to a previous version after already running the new one. Reviewing with that in mind meant asking questions the author had not always considered on their own, does this change behave correctly for a device coming from an older version, and does rolling back after this change actually leave the system in a valid state, rather than a corrupted or inconsistent one. This is not something correctness on its own captures. It requires deliberately reviewing for a dimension of time the code itself does not show you.</p><h3>Documentation as Part of the Review, Not an Afterthought</h3><p>I made a habit of pushing for documentation as part of the review itself, not something to circle back to later, and making sure it actually lived somewhere the team would find it again, tools like Confluence, rather than staying buried in a comment thread or a commit message nobody would think to search. Undocumented reasoning behind a design decision has a short shelf life. Six months later, neither the original author nor anyone else reviewing that code again has any reliable way to recover why a particular tradeoff was made, and that gap tends to get filled with guessing rather than fact. Treating documentation as part of what gets reviewed, not a separate task, and making sure it landed in a shared, searchable place, meant that reasoning stayed attached to the code instead of living only in someone’s memory.</p><h3>Calibrating What’s Actually Worth Blocking On</h3><p>Not every disagreement in a review is worth holding up a merge over. Learning to separate “this will cause a real problem” from “I would have written this differently” is its own skill, and getting it wrong in either direction has a real cost. Blocking on every stylistic preference slows a team down and teaches people to dread review rather than value it. Waving through real issues to avoid friction creates the opposite problem, letting real defects into a codebase other people now depend on.</p><h3>Feedback as a Learning Opportunity, Not a Verdict</h3><p>The tone of review matters as much as its content. I tried to stay away from being overly critical, because a review is a learning opportunity for everyone involved, not just the person whose code is being reviewed. A comment phrased as a verdict tends to shut a conversation down. A comment phrased as a question, or an explanation of why a particular pattern matters, tends to open one up, and it is far more likely to actually change how someone approaches the next piece of code they write, rather than just fixing the one line in front of you.</p><h3>What This Actually Adds Up To</h3><p>None of these shifts are really about reading code more carefully. They are about carrying a wider set of responsibilities into the same review: whether the code is maintainable by people who did not write it, whether it stays consistent with everything around it, whether it correctly accounts for versions of the system that are not the one currently running, whether the reasoning behind it survives past the moment it was written, and whether the way you deliver feedback helps someone actually grow. Reviewing your own code only ever asks you to get one thing right. Reviewing for a team asks you to hold all of these at once, for people who are not you, on a system none of you can fully see the whole of alone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e093d68c5de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OTN: What Actually Happens to Your Data Before It Crosses an Ocean]]></title>
            <link>https://medium.com/@tomar.praneet/otn-what-actually-happens-to-your-data-before-it-crosses-an-ocean-b12ca3c83068?source=rss-273b0c2aa238------2</link>
            <guid isPermaLink="false">https://medium.com/p/b12ca3c83068</guid>
            <category><![CDATA[opera]]></category>
            <category><![CDATA[odu]]></category>
            <category><![CDATA[networking-protocols]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[otn]]></category>
            <dc:creator><![CDATA[Tomar Praneet]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 20:14:19 GMT</pubDate>
            <atom:updated>2026-08-04T20:14:19.997Z</atom:updated>
            <content:encoded><![CDATA[<p>Every video call, financial transaction, cloud request or streamed movie that crosses an ocean travels through optical transport equipment that people never think about. Before that data reaches another continent, it is encapsulated, protected against transmission errors and carried across thousands of kilometers of optical fiber by a transport technology called the Optical Transport Network or OTN.</p><p>I spent time working directly on the optics interface in carrier-grade networking systems, implementing backend support for OpenConfig YANG models, including openconfig-interfaces (oc-if), to fix bugs and build new features. That work is what made OTN concrete for me. Reading the standard explains what the transport frame contains. Working on the interface that configures and reports on it explains why those fields exist at all.</p><p>OTN is not a new standard. It has been the backbone of long-distance optical transport for more than two decades and a significant share of the world’s long-haul data quietly depends on it.</p><h3>The Problem OTN Was Built to Solve</h3><p>Long before OTN, carriers already had SONET and SDH, standards that provided reliable transport along with strong operations and management capabilities. As optical networking evolved toward Dense Wavelength Division Multiplexing or DWDM, a single strand of fiber could carry dozens and eventually hundreds, of independent wavelengths simultaneously. Each wavelength transported its own stream of traffic.</p><p>SONET and SDH could operate over optical systems, but they were designed for an earlier generation of transport architectures rather than modern wavelength-switched DWDM networks. Carriers needed a transport technology that preserved the operational visibility they relied on while supporting a far more scalable optical infrastructure.</p><p>OTN, standardized by the ITU-T as G.709 and first approved in 2001, was designed to solve exactly that problem.</p><h3>The Digital Wrapper</h3><p>The core concept behind OTN is what the ITU calls a <em>digital wrapper</em>.</p><p>An incoming client signal, whether it is Ethernet, Fibre Channel or another supported protocol, is first mapped into an Optical Payload Unit (OPU). It is then encapsulated within an Optical Data Unit (ODU), which carries path-level overhead, before finally becoming an Optical Transport Unit (OTU), where transport overhead and Forward Error Correction (FEC) are added for transmission across the optical network.</p><p>That standardized transport frame provides several critical capabilities.</p><p><strong>Forward Error Correction (FEC)</strong> adds carefully calculated redundancy that allows the receiver to detect and correct many transmission errors without retransmission. This dramatically extends the distance an optical signal can travel while maintaining reliable communication.</p><p>This becomes particularly important on submarine cable systems, where a single optical path may extend for several thousand kilometers. Over those distances, even small signal impairments accumulate. FEC allows the receiving equipment to recover corrupted bits without requiring the sender to transmit the data again.</p><p><strong>Operations, Administration, and Maintenance (OAM) overhead</strong> provides structured information that allows operators to monitor the health of each transport path, detect failures and isolate faults throughout the network.</p><p><strong>A standardized framing structure</strong> allows equipment from different vendors to interoperate because every device understands the same transport format instead of relying on proprietary implementations.</p><p>A useful way to think about OTN is as an international shipping container. The application data is the cargo. OTN provides the standardized container, complete with labels, tracking information, and protection mechanisms. Every device along the journey knows how to handle the container regardless of what it carries.</p><h3>Where My Own Work Sat: The Optics Interface</h3><p>I worked directly on the software responsible for managing the physical optics interface, implementing backend support for OpenConfig models such as openconfig-interfaces and openconfig-terminal-device.</p><p>These models define how engineers configure and monitor physical interfaces, logical channels, optical channels, transceivers, output power, modulation formats, central frequency and operational state. My work involved ensuring that the device’s actual behaviour matched what these models reported through the management interface.</p><p>Although these models do not perform the OTN encapsulation themselves, they configure and monitor the hardware responsible for applying and terminating the transport framing. That is also where engineers obtain much of the operational data needed to understand the health of an optical link.</p><p>I spent a considerable amount of time working with this layer, fixing defects and implementing new functionality. It is often where the most valuable diagnostic information exists when something goes wrong hundreds or even thousands of kilometers away.</p><p>Imagine a customer reporting intermittent packet loss between two cities. The routers may appear completely healthy, yet increasing FEC error counts on an optical channel can reveal that signal quality has been degrading long before applications begin to fail. The transport layer often provides the first structured indication that something is wrong.</p><h3>Why the Wrapper Matters More Than It Sounds Like It Should</h3><p>It is easy to think of the digital wrapper as a minor implementation detail. In reality, it is one of the reasons large optical transport networks can operate reliably at global scale.</p><p>Without a standardized transport frame carrying error correction and management information, achieving reliable interoperability across equipment from multiple vendors would become significantly more difficult. Operators would also lose much of the visibility they depend on to diagnose problems before customers notice service degradation.</p><p>The wrapper also makes OTN largely protocol agnostic. Ethernet, Fibre Channel, SDH and many other client signals remain unchanged. OTN simply transports them inside a common framework while providing monitoring, management and error correction throughout the journey.</p><h3>The Part That Only Becomes Obvious When Something Breaks</h3><p>Most of the time, none of this is visible. Data enters one end of a long-haul optical network and emerges at the other exactly as expected. When everything is working correctly, nobody thinks about the transport layer underneath.</p><p>That changes when something fails.</p><p>At that point, the overhead fields, transport alarms, performance counters, and optics telemetry become the evidence engineers use to determine where a problem began. Without those structured diagnostics, troubleshooting could quickly become a process of searching through thousands of kilometers of fiber with little indication of where the fault actually exists.</p><p>Working on the software that exposes this information gave me a much greater appreciation for how much of the global Internet depends on systems that most people never see.</p><p>The farther data travels, the less people think about the transport layer carrying it. Yet it is often the quiet engineering inside OTN that makes global connectivity appear effortless.</p><h3>Further Reading</h3><ul><li><a href="https://www.itu.int/rec/T-REC-G.709">ITU-T G.709 — Interfaces for the Optical Transport Network (OTN)</a> — The official standard</li><li><a href="https://github.com/openconfig/public/blob/master/release/models/interfaces/openconfig-interfaces.yang">openconfig-interfaces.yang</a> — The base OpenConfig interfaces model</li><li><a href="https://github.com/openconfig/public/blob/master/release/models/optical-transport/openconfig-terminal-device.yang">openconfig-terminal-device.yang</a> — The OpenConfig model for terminal optics devices</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b12ca3c83068" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Coverity Actually Catches Before Code Ever Runs]]></title>
            <link>https://medium.com/@tomar.praneet/what-coverity-actually-catches-before-code-ever-runs-1124fd91570d?source=rss-273b0c2aa238------2</link>
            <guid isPermaLink="false">https://medium.com/p/1124fd91570d</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[static-code-analysis]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[coverity]]></category>
            <dc:creator><![CDATA[Tomar Praneet]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 17:27:52 GMT</pubDate>
            <atom:updated>2026-08-04T17:27:52.397Z</atom:updated>
            <content:encoded><![CDATA[<p>Coverity is a static analysis tool. It reads source code and identifies potential defects without ever executing the program. That took some getting used to when I first started using it, a tool pointing out a bug I had not triggered yet, in a code path I hadn’t even tested, felt strange the first time I saw it work.</p><h3>Static, Not Dynamic: Reading Code Instead of Running It</h3><p>Tools like Valgrind or AddressSanitizer are examples of <strong>dynamic analysis</strong>. They observe a program while it is running and detect problems that occur during execution.</p><p>Coverity works differently. Instead of watching the program run, it analyzes the source code itself, reasoning about possible control flow and data flow without executing the program even once.</p><p>In practice, Coverity builds a model of the program’s possible execution paths and checks whether they can lead to known classes of defects.</p><p>Imagine a function that allocates memory using malloc. Coverity can follow each possible path through that function to determine whether the allocated memory is eventually released. If one path exits without calling free, it can report a potential resource leak—even if that particular path has never been exercised by a test.</p><p>That is the key difference between static and dynamic analysis.</p><p>Dynamic analysis finds problems that occurred during the executions you actually performed. Static analysis identifies problems that could occur across execution paths that may never have been tested.</p><h3>What It Actually Flags</h3><p>Coverity detects a wide range of defect classes, including:</p><ul><li><strong>Resource leaks</strong>, such as memory, file handles or other resources that are acquired but not released on every execution path.</li><li><strong>Null pointer dereferences</strong>, where a pointer may be used without first verifying that it is valid.</li><li><strong>Use-after-free</strong>, where memory may be accessed after it has already been released.</li><li><strong>Unchecked return values</strong>, where code ignores an error returned by a function and continues execution as though the operation succeeded.</li><li><strong>Dead code</strong>, where certain code paths can never execute.</li><li><strong>Potential buffer overflows and uninitialized variables.</strong></li></ul><p>The unchecked return value check is one of the findings I found particularly useful.</p><p>In C, many library and system calls indicate failure through return values rather than exceptions. Forgetting to check one of those values is easy, especially in a large codebase. Static analysis is well suited to finding these omissions because they often don’t produce an immediate failure, allowing them to remain unnoticed until much later.</p><h3>Why This Matters in Practice</h3><p>Because Coverity analyzes source code rather than executing the application, it fits naturally into the build process.</p><p>It is worth making one distinction clear. Coverity still needs the project to be built because it observes the compilation process to understand types, include files, compiler options, and how the source code fits together. What it does <strong>not</strong> do is run the resulting executable or depend on test inputs.</p><p>That means analysis can be performed long before a particular code path is ever exercised by a test. This complements dynamic analysis rather than replacing it.</p><p>Static analysis helps identify defects before the program runs.<br>Dynamic analysis helps identify defects that occur while the program is running.<br>Together, they provide two different views of the same codebase.</p><h3>The Challenges: What Makes This Harder in Practice</h3><p>Static analysis is not a perfect solution.</p><p>One challenge is <strong>false positives</strong>. Because the analysis reasons about possible execution paths rather than observing actual execution, some reported issues turn out not to be real defects. Reviewing findings and determining which ones represent genuine bugs is a normal part of using any static analysis tool.</p><p>Another challenge appears when the reported issue is in <strong>third-party code</strong>.</p><p>The analyzer does not distinguish between code your team owns and code supplied by a vendor. If a defect is found in external code, you often cannot fix it yourself. Instead, the issue has to be reported to the vendor, and your team becomes dependent on their release schedule. Until then, those findings continue appearing in analysis reports even though they’re outside your direct control.</p><p>It is also important to remember that static analysis does not understand what the software is intended to do. It analyzes patterns, control flow and data flow rather than business intent. That means it can miss real defects that do not match known patterns, just as it can report issues that turn out to be safe after closer inspection.</p><p>None of this makes the tool less valuable.</p><p>It simply means the analysis is the beginning of an investigation, not the end of one. Every reported issue still needs engineering judgement to determine whether it is a real defect, how serious it is, and what action should be taken.</p><h3>Further Reading</h3><ul><li><strong>Coverity Scan</strong><br><a href="https://scan.coverity.com/">https://scan.coverity.com/</a><br>Free static analysis service for open-source projects using the commercial Coverity analysis engine.</li><li><strong>Coverity SAST Overview — Black Duck</strong><br><a href="https://www.blackduck.com/static-analysis-tools-sast/coverity.html">https://www.blackduck.com/static-analysis-tools-sast/coverity.html</a><br>Official overview of Coverity’s static application security testing capabilities.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1124fd91570d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Valgrind and ASAN Actually Catch (and Why you would reach for either)]]></title>
            <link>https://medium.com/@tomar.praneet/what-valgrind-and-asan-actually-catch-and-why-you-would-reach-for-either-691411cc2a91?source=rss-273b0c2aa238------2</link>
            <guid isPermaLink="false">https://medium.com/p/691411cc2a91</guid>
            <category><![CDATA[c]]></category>
            <category><![CDATA[memory-leak]]></category>
            <category><![CDATA[valgrind]]></category>
            <category><![CDATA[asan]]></category>
            <category><![CDATA[crash]]></category>
            <dc:creator><![CDATA[Tomar Praneet]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 15:56:41 GMT</pubDate>
            <atom:updated>2026-07-31T15:56:41.259Z</atom:updated>
            <content:encoded><![CDATA[<p>Memory bugs in C and C++ are some of the hardest defects to track down because the program often continues running long after the actual mistake has happened. You write past the end of an array and the crash shows up ten function calls later, somewhere that looks completely unrelated to the real problem.</p><p>Valgrind and AddressSanitizer (ASAN) both exist to close that gap, but they do it in fundamentally different ways. Knowing which one to reach for, and when, can save hours of debugging.</p><h3>The Problem: A Crash Rarely Points to Its Own Cause</h3><p>In most languages with built-in memory safety, an out-of-bounds access simply is not possible because the runtime stops it. C and C++ leave that responsibility to the programmer. That gives you speed and control, but it also means the program often has no immediate way to detect when memory has been corrupted.<br>That is what makes memory bugs different from many other software defects. The point where the mistake occurs and the point where the program eventually fails are often far apart. A buffer overrun might silently corrupt an unrelated variable, and the application only crashes much later when that corrupted value is finally used.<br>Without a tool designed to detect the original mistake, you are often debugging the symptom rather than the cause.</p><h3>Valgrind: Watching Every Memory Access, After the Fact</h3><p>Valgrind is a dynamic binary instrumentation framework, and its most widely used tool is <strong>Memcheck</strong>. Memcheck runs your program in an instrumented environment, allowing it to examine memory reads, writes, allocations, and deallocations as the program executes.<br>One advantage of this approach is that the program does not need to be rebuilt with sanitizer instrumentation. You can run Valgrind against a normally compiled binary, although compiling with debugging symbols (-g) makes the reports significantly more useful.</p><p>Memcheck is designed to detect several classes of problems, including:</p><ul><li><strong>Invalid memory accesses</strong>, such as reading or writing outside allocated memory and use-after-free errors.</li><li><strong>Use of uninitialised values</strong> when those values influence the program’s behaviour.</li><li><strong>Memory leaks</strong>, reported in categories such as <strong>definitely lost</strong>, <strong>indirectly lost</strong>, and <strong>still reachable</strong>, making it easier to distinguish genuine leaks from memory that remains reachable when the program exits.</li></ul><p>The trade-off is performance. Because Valgrind instruments every memory operation, programs commonly run 10–30 times slower than normal, sometimes even more. That is why it is typically used during dedicated debugging sessions or targeted testing rather than as part of every development build.</p><h3>AddressSanitizer: Instrumenting Memory Accesses at Compile Time</h3><p>AddressSanitizer takes a different approach.<br>Instead of instrumenting an existing binary at runtime, the compiler inserts additional checks while building the program. Those checks work together with a runtime library and a technique known as <strong>shadow memory</strong>, which keeps track of which regions of memory are valid to access.</p><p>Although the instrumentation is added during compilation, the actual detection happens while the program is running.</p><p>Because the instrumentation is built directly into the executable, ASAN is significantly faster than Valgrind. In practice, the runtime overhead is typically around 2×, making it practical to use during everyday development and continuous integration.</p><p>The trade-off is that the application must be rebuilt with the sanitizer enabled, for example by compiling with -fsanitize=address using GCC or Clang.</p><p>AddressSanitizer detects a well-defined set of memory safety issues, including:</p><ul><li>Heap, stack, and global buffer overflows.</li><li>Use-after-free.</li><li>Use-after-return and use-after-scope.</li><li>Memory leaks when LeakSanitizer (LSan) is enabled or integrated on supported platforms.</li></ul><p>The Clang documentation notes that AddressSanitizer is designed to avoid false positives. If ASAN reports a memory error, the expectation is that a genuine memory safety issue has occurred.</p><h3>So Which One Do You Actually Use?</h3><p>Neither tool replaces the other. They solve similar problems using different techniques and naturally fit into different stages of development.</p><p>ASAN’s relatively low runtime overhead makes it practical to use during everyday development and CI, helping catch memory safety issues soon after they’re introduced.</p><p>Valgrind’s ability to analyse a normally compiled binary without sanitizer instrumentation, together with its detailed leak reporting, makes it particularly useful for focused debugging sessions where runtime performance is less important than obtaining as much diagnostic information as possible.</p><p>In practice, many teams use both.</p><p>ASAN helps catch memory errors early during development, while Valgrind is often used when investigating more complex problems that require deeper analysis.</p><p>Neither tool fixes memory bugs. They simply make them visible much closer to the point where they occur. In C and C++, that difference can turn hours of debugging into minutes of investigation.</p><h3>Further Reading</h3><ul><li><strong>Valgrind — Memcheck Manual</strong><br><a href="https://valgrind.org/docs/manual/mc-manual.html">https://valgrind.org/docs/manual/mc-manual.html</a></li><li><strong>Clang AddressSanitizer Documentation</strong><br><a href="https://clang.llvm.org/docs/AddressSanitizer.html">https://clang.llvm.org/docs/AddressSanitizer.html</a></li><li><strong>AddressSanitizer GitHub Wiki</strong><br><a href="https://github.com/google/sanitizers/wiki/AddressSanitizer">https://github.com/google/sanitizers/wiki/AddressSanitizer</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=691411cc2a91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Makes Root-Cause Analysis Hard on a Carrier Network ??]]></title>
            <link>https://medium.com/@tomar.praneet/what-makes-root-cause-analysis-hard-on-a-carrier-network-ba77eb1ac86d?source=rss-273b0c2aa238------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba77eb1ac86d</guid>
            <category><![CDATA[rca]]></category>
            <category><![CDATA[tacit-knowledge]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Tomar Praneet]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 04:53:36 GMT</pubDate>
            <atom:updated>2026-07-31T15:44:09.948Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What Makes Root-Cause Analysis Hard on a Carrier Network ??</strong></p><p>Finding the actual root cause of a failure is difficult in any complex system, whether it is distributed software, cloud infrastructure or carrier networks. What makes carrier networks different is the combination of scale, availability requirements and operational constraints. A single fault can affect many customers simultaneously, the network cannot simply be taken offline for investigation and systems are engineered for extremely high availability. That leaves very little room for fixes based on assumptions rather than verified causes.</p><p>This is what that investigation actually looks like, and why “just find the bug” rarely reflects what happens in practice.</p><p><strong>Why “Just Debug It” Undersells the Problem<br></strong>Debugging a single application usually means reproducing a failure, stepping through code and fixing what is broken. Root-cause analysis on production network infrastructure starts from a much harder position.</p><p><strong>The failure often is not reproducible on demand.<br></strong>A live issue may have occurred under a specific combination of traffic, timing, software state and hardware conditions that no longer exist by the time the investigation begins. Often, you are working backwards from a single occurrence, with no reliable way to recreate it. The evidence you have already collected may be the only evidence you will ever have.</p><p><strong>You cannot simply attach a debugger to a production router.<br></strong>These systems are carrying live customer traffic, so investigations have to be performed without disrupting service.</p><p><strong>One root cause can produce multiple, seemingly unrelated symptoms.<br></strong>A single software defect or edge-case condition can surface differently across customers, sites or protocols. What initially looks like several independent issues may eventually trace back to the same underlying cause.</p><p>This is one reason Mean Time to Resolution (MTTR), the average time from when an incident starts to when it is fully fixed, is a standard metric used to track incident response. While applying a fix is often straightforward once the cause is known, identifying the actual cause is usually where most of the investigation time is spent.</p><p><strong>The Toolkit: Logs, Packet Traces and Core Dumps<br></strong>Every investigation starts with evidence, but no single source tells the whole story.</p><p><strong>Logs </strong>are usually the first place to look. They record state transitions, configuration changes, warnings, and errors, helping establish when something started going wrong and providing the first clues toward a hypothesis.<br>However, logs only capture what the software was designed to report. If the failure occurs somewhere outside that visibility, the logs may tell only part of the story. It is also worth remembering that the logging mechanism is software itself. A missing log entry does not always mean nothing happened, sometimes the logging path failed to record it.</p><p><strong>Packet traces</strong> provide a different perspective. Tools such as Wireshark or tcpdump capture the traffic actually moving across the network. They allow engineers to verify what was transmitted and received, independent of what any individual device believes happened.<br>That distinction is important because software can be wrong about its own state. Packet captures reveal what actually happened on the wire.</p><p><strong>Core dumps</strong> go one step deeper. When a process crashes, a core dump preserves the application’s memory at the moment of failure. It allows engineers to inspect stack traces, variable values, and execution state long after the incident has ended.<br>For intermittent crashes that cannot be reproduced, a core dump is often the only opportunity to determine exactly what the software was doing when it failed.</p><p>None of these sources is usually sufficient on its own. Logs explain what the software reported. Packet traces show what actually crossed the network. Core dumps reveal what the software was doing internally.</p><p>Root-cause analysis is the process of correlating all three into one explanation that accounts for every observed symptom.</p><p><strong>From Evidence to a Provable Cause<br></strong>Collecting evidence is only the beginning. The harder task is connecting scattered signals into a single explanation that fits everything you’ve observed.<br>That usually involves:<br><strong>Establishing a timeline</strong> by correlating events across logs, packet captures and other available evidence.</p><p><strong>Forming and testing hypotheses</strong> until one explanation consistently matches every piece of evidence, not just the first clue that appeared.</p><p><strong>Separating causes from symptoms.<br></strong>The first anomaly you discover is often the result of another failure occurring much deeper in the system. A dropped session may simply be the visible consequence of resource exhaustion or a software defect elsewhere.</p><p><strong>Verifying that the fix addresses the actual cause. <br></strong>A workaround may remove the visible symptom while leaving the underlying condition untouched, allowing the issue to return later in a different form.<br>The investigation is not complete when the system starts working again. It is complete when the cause is understood well enough that everyone agrees <em>why</em> it failed.</p><p><strong>The Part That is Hard to Write Down: Linux Fluency and Tacit Knowledge<br></strong>Much of this work happens directly on Linux because that is where the systems run.<br>Knowing how to inspect processes, analyze resource utilization, navigate logs efficiently and use standard command-line tools to search, filter and correlate large amounts of data often determines how quickly an investigation progresses. When you are working through gigabytes of logs or large packet captures under time pressure, Linux proficiency is not just helpful, it directly affects how quickly you reach an answer.</p><p>Beyond technical skills, there is another factor that is much harder to teach: <strong>tacit knowledge</strong>.<br>It is recognizing that a particular sequence of log messages usually points toward one subsystem. It is knowing which hypothesis is worth testing first because you have seen a similar failure before. Sometimes it is simply noticing that a symptom “does not look right” long before you can explain why.<br>That knowledge rarely appears in documentation. It develops through repeated exposure to production incidents, gradually building the pattern recognition that helps experienced engineers narrow an investigation far more quickly than someone seeing the same failure for the first time.</p><p>Checklists and runbooks are valuable, but they cannot replace experience.</p><p><strong>Why This Discipline Matters Beyond the Immediate Fix<br></strong>The value of root-cause analysis isn’t simply restoring a service.<br>A verified root cause makes it possible to prevent the same failure from happening again, whether through a software fix, a configuration safeguard, or improved monitoring that detects similar conditions earlier.</p><p>A fix based on assumptions may solve today’s incident while leaving the underlying problem untouched. Eventually, that same issue often returns, sometimes disguised as an entirely different symptom.</p><p>Good root-cause analysis does not just resolve an incident. It improves the system.</p><p><strong>Further Reading<br>Wireshark Documentation: </strong><a href="https://www.wireshark.org/docs/">https://www.wireshark.org/docs/</a><br> Official user guide for packet capture, protocol analysis and troubleshooting.<br><strong>GDB (GNU Debugger) Documentation: </strong><a href="https://sourceware.org/gdb/documentation/">https://sourceware.org/gdb/documentation/</a><br> Official documentation for debugging applications, including working with core dumps and live processes.<br><strong>Better Stack: MTTR and Other Incident Metrics -</strong><a href="https://betterstack.com/community/guides/incident-management/mttr-and-other-incident-metrics/">https://betterstack.com/community/guides/incident-management/mttr-and-other-incident-metrics/</a><br> A practical overview of Mean Time to Resolution (MTTR) and other commonly used incident management metrics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba77eb1ac86d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why NETCONF and YANG Exist (and why CLI was not Enough)]]></title>
            <link>https://medium.com/@tomar.praneet/why-netconf-and-yang-exist-and-why-cli-was-not-enough-0c358685047f?source=rss-273b0c2aa238------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c358685047f</guid>
            <category><![CDATA[openconfig]]></category>
            <category><![CDATA[yang]]></category>
            <category><![CDATA[netconf]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Tomar Praneet]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 19:08:23 GMT</pubDate>
            <atom:updated>2026-07-29T20:01:02.364Z</atom:updated>
            <content:encoded><![CDATA[<p>NETCONF and YANG come up constantly in networking conversations, but they are rarely explained plainly. Most explanations jump straight into XML examples or RFC terminology.</p><p>Once I started writing backend code around this stack , including implementing OpenConfig and native YANG models, and aligning them with our device’s CLI, the concepts stopped being abstract. This is the explanation I wish someone had given me when I first encountered them.</p><h3>The Problem: A CLI Was Never Meant to Be an API</h3><p>Network devices , routers and switches, are traditionally configured through a <strong>CLI (command-line interface)</strong>: you SSH into the device and type commands one at a time.</p><p>That’s a perfectly reasonable design for a human operator.</p><p>It becomes a real problem the moment <em>software</em>, not a person, needs to talk to the device, because:</p><ul><li>Every vendor’s CLI syntax is different, so a script written for one platform usually does not work on another.</li><li>Reading CLI output to verify a change means parsing text designed for humans rather than software, and that output can change between software versions.</li><li>There is no standard, machine-readable way to verify configuration changes through the CLI itself.</li></ul><p>NETCONF and YANG were designed to solve this. Together, they provide a standardised programmatic interface, much closer to an API than a terminal, allowing software to configure devices, retrieve operational data, invoke management operations and receive structured responses reliably.</p><p>More importantly, that interface is not limited to configuration. The same mechanisms are used for retrieving operational state, invoking device-specific operations, and receiving event notifications when something changes.</p><h3>NETCONF: The Transport, Not the Data</h3><p><strong>NETCONF</strong> stands for <strong>Network Configuration Protocol</strong>. It is an IETF standard, originally published as <strong>RFC 4741</strong> and later revised by <strong>RFC 6241</strong>, defining a protocol for installing, modifying, retrieving and deleting configuration on network devices through a structured API rather than free-form CLI commands.</p><p>A few important details about how it works:</p><ul><li>NETCONF is transport-independent by design, but <strong>SSH is the mandatory-to-implement transport</strong> (RFC 6242), so in practice almost every NETCONF session runs authenticated and encrypted over SSH.</li><li>Every request and reply is encoded in <strong>XML</strong>.</li><li>Communication follows a <strong>remote procedure call (RPC)</strong> model: the client requests a specific operation, and the device returns a structured response indicating either success or a precise error.</li><li>The base protocol defines standard operations including get, get-config, edit-config, copy-config, delete-config, lock, unlock, close-session, and kill-session. Devices can also expose additional RPCs and actions defined by their YANG modules.</li><li>NETCONF distinguishes between <strong>configuration</strong> and <strong>operational state</strong>. Depending on the device’s capabilities, configuration may exist in multiple datastores, such as a <strong>running</strong> datastore and an optional <strong>candidate</strong> datastore that can be validated before being committed.</li></ul><p>In short, <strong>NETCONF defines how information moves between a client and a device. </strong>It does <strong>not</strong> define what that information looks like.</p><h3>YANG: The Model Behind the Data</h3><p>That is where <strong>YANG</strong> comes in.</p><p><strong>YANG</strong> stands for <strong>Yet Another Next Generation</strong>. It is a data modeling language originally standardized in <strong>RFC 6020</strong> and later updated by <strong>RFC 7950 (YANG 1.1)</strong>.</p><p>A YANG module describes a hierarchy of nodes using a small set of building blocks:</p><ul><li><strong>leaf : </strong>A single value, such as an interface’s administrative state or MTU.</li><li><strong>leaf-list</strong> : Multiple values of the same type, such as a list of DNS server addresses.</li><li><strong>container</strong> : Groups related configuration or state data, such as all settings for an interface.</li><li><strong>list</strong> : Multiple instances of the same structured object, such as all interfaces on a device.</li></ul><p>Think of a YANG model as a form rather than a filing cabinet.</p><p>Before anyone fills it in, the form already defines:</p><ul><li>which fields exist,</li><li>what type of data each field accepts,</li><li>and which values are considered valid.</li></ul><p>Together, the responsibilities are clear:</p><ul><li><strong>NETCONF transports the request.</strong></li><li><strong>YANG defines the structure and meaning of the data inside it.</strong></li></ul><p>Without a YANG model, an edit-config request is simply XML. The model gives those XML elements defined meaning, data types, and constraints so both the client and the device interpret them consistently.</p><h3>One Feature, Multiple Models</h3><p><strong>This is where the real implementation work begins.</strong></p><p>YANG is a <strong>language</strong>, not a single standard model. Anyone, a vendor or an industry group, can write a YANG model, which means the same underlying feature can be represented in different ways.</p><p>The two models you’ll encounter most often are <strong>native YANG models</strong> and <strong>OpenConfig models</strong>.</p><p>A <strong>native YANG model</strong> is written by the device vendor. It reflects the vendor’s own management model, exposes vendor-specific capabilities, and is designed specifically for that vendor’s devices.</p><p>An <strong>OpenConfig model</strong> is developed by the OpenConfig community to provide a vendor-neutral way of representing commonly used network features. The goal is to make applications behave consistently across different vendors’ devices, although the level of interoperability ultimately depends on how completely each vendor implements the model.</p><p>Because OpenConfig intentionally focuses on common use cases, vendor-specific features often remain available only through native YANG models until equivalent OpenConfig models are developed.</p><h3>Where the Real Work Happens: Making the CLI and OpenConfig Agree</h3><p>This is where my team’s work actually sat.</p><p>The device’s CLI already existed as the authoritative way to configure the system. Adding OpenConfig support did not replace the CLI. It meant ensuring that whichever interface someone used, the device ultimately reached <strong>exactly the same internal state</strong>.</p><p>That involved work such as:</p><ul><li>Determining precisely what a given CLI command changed internally.</li><li>Mapping the equivalent OpenConfig YANG paths onto those same internal configuration objects.</li><li>Verifying that an edit-config request produced exactly the same outcome as the equivalent CLI command.</li><li>Handling the gaps where OpenConfig intentionally did not yet model capabilities already available through the native implementation.</li></ul><p>None of this was a cosmetic exercise.</p><p>If an OpenConfig-driven change did not map correctly onto the device’s real configuration, automation tools and human operators could both believe the device was configured correctly while the underlying state actually differed, on infrastructure carrying live production traffic.</p><p>Getting that mapping right meant understanding both sides in detail: the CLI’s behavior and the YANG model’s structure, and treating any mismatch between them as a defect worth fixing.</p><h3>The Bigger Picture</h3><p>NETCONF and YANG are often introduced as networking technologies.<br>In practice, implementing them is just as much a <strong>software engineering problem</strong> as a networking one.</p><p>The protocol is only one piece. The harder challenge is ensuring that every management interface; CLI, NETCONF, native YANG models and OpenConfig, ultimately represents the same underlying configuration and operational state.</p><p>That is the work most users never see, but it is what makes reliable network automation possible.</p><h3>NETCONF</h3><ul><li><strong>RFC 6241 — Network Configuration Protocol (NETCONF)</strong><br> <a href="https://www.rfc-editor.org/rfc/rfc6241">https://www.rfc-editor.org/rfc/rfc6241</a></li><li><strong>RFC 6242 — Using NETCONF over Secure Shell (SSH)</strong><br> <a href="https://www.rfc-editor.org/rfc/rfc6242">https://www.rfc-editor.org/rfc/rfc6242</a></li></ul><h3>YANG</h3><ul><li><strong>RFC 7950 — The YANG 1.1 Data Modeling Language</strong><br> <a href="https://www.rfc-editor.org/rfc/rfc7950">https://www.rfc-editor.org/rfc/rfc7950</a></li><li><strong>RFC 8342 — Network Management Datastore Architecture (NMDA)</strong> <em>(recommended if you want to learn how modern configuration and operational datastores are organized)</em><br> <a href="https://www.rfc-editor.org/rfc/rfc8342">https://www.rfc-editor.org/rfc/rfc8342</a></li></ul><h3>OpenConfig</h3><ul><li><strong>OpenConfig Project</strong><br> <a href="https://www.openconfig.net/">https://www.openconfig.net/</a></li><li><strong>OpenConfig Public GitHub Repository</strong><br> <a href="https://github.com/openconfig/public">https://github.com/openconfig/public</a></li><li><strong>OpenConfig Models Documentation</strong><br> <a href="https://www.openconfig.net/projects/models/">https://www.openconfig.net/projects/models/</a></li></ul><h3>Useful Background</h3><ul><li><strong>RFC 8040 — RESTCONF Protocol</strong> <em>(REST-based alternative to NETCONF using the same YANG models)</em><br> <a href="https://www.rfc-editor.org/rfc/rfc8040">https://www.rfc-editor.org/rfc/rfc8040</a></li><li><strong>RFC 8525 — YANG Library</strong><br> <a href="https://www.rfc-editor.org/rfc/rfc8525">https://www.rfc-editor.org/rfc/rfc8525</a></li><li><strong>RFC 8639 — Subscription to YANG Notifications</strong><br> <a href="https://www.rfc-editor.org/rfc/rfc8639">https://www.rfc-editor.org/rfc/rfc8639</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c358685047f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>