<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sandeep Ahluwalia</title>
    <description>The latest articles on DEV Community by Sandeep Ahluwalia (@eventhelix).</description>
    <link>https://dev.to/eventhelix</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4025556%2F1159e745-d525-47cd-a214-d922af2a5141.png</url>
      <title>DEV Community: Sandeep Ahluwalia</title>
      <link>https://dev.to/eventhelix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eventhelix"/>
    <language>en</language>
    <item>
      <title>How High Should a Satellite Fly? Latency, Footprint, Dwell, and the Orbit That Isn't There</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Fri, 20 Nov 2026 04:16:46 +0000</pubDate>
      <link>https://dev.to/eventhelix/how-high-should-a-satellite-fly-latency-footprint-dwell-and-the-orbit-that-isnt-there-17ai</link>
      <guid>https://dev.to/eventhelix/how-high-should-a-satellite-fly-latency-footprint-dwell-and-the-orbit-that-isnt-there-17ai</guid>
      <description>&lt;p&gt;Hang a lamp low over a table, and it throws a small, bright circle. Raise it, and the circle grows, but the light spreads thin and arrives from far away. Every satellite constellation negotiates with that lamp.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Terminus&lt;/em&gt; is a series between science fiction and system design: an alien AI asks Earth to design a satellite network for a young civilization on Proxima b. Part 4 surveys every altitude from 300 to 50,000 km before placing a single satellite.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the chapter teaches
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Coverage hits a ceiling; latency does not.&lt;/strong&gt; With a 25° elevation mask, the coverage angle around the point beneath a satellite approaches 90° − 25° = 65° as altitude grows. On this planet, that is 7,228 km of ground radius, and no launch vehicle buys more. Delay keeps climbing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The edge user pays twice.&lt;/strong&gt; At 300 km, the slant path to the footprint's edge is 648 km, 2.16 times the altitude; at 50,000 km, it is only 1.07 times. The same slant range sets the inverse-square loss: the top shelf's edge user catches about one part in 30,000 of the signal the bottom shelf's overhead user gets, a 45 dB gap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Altitude buys dwell twice.&lt;/strong&gt; From 300 to 50,000 km, the period stretches 24.6×, and the coverage angle widens 11.7×. Together, that is 287×, which turns a 2.5-minute pass into about 12 hours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No shelf wins all three.&lt;/strong&gt; At 300 km: 2.2 ms edge latency, a 562 km footprint, a 2.5-minute pass. At 1,800 km: 10.3 ms, 2,228 km, 13.6 minutes. At 50,000 km: 178.1 ms, 6,574 km, 729.1 minutes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The stationary orbit does not exist here.&lt;/strong&gt; Kepler's third law puts the orbit that matches Proxima b's 11.2-day rotation 211,453 km from the planet's center. The planet sits only 0.0485 AU from its star, so its Hill sphere, the bubble where its gravity outweighs the star's, reaches just 146,347 km. Long-lived prograde orbits stop near half that, at 73,173 km. The synchronous radius lies 2.9× beyond that limit: not expensive, unavailable.&lt;/p&gt;

&lt;p&gt;The verdict: low shelves carry the users, at the price of small footprints, dwell measured in minutes, and many satellites. High shelves offer footprints near the ceiling and hours of dwell, at latencies no conversation can use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0h8ucncfc7y5cfnv0n6y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0h8ucncfc7y5cfnv0n6y.jpg" alt="Infographic: six satellites on altitude shelves from 300 to 50,000 km above a planet's twilight belt, with a table of period, footprint, edge latency and longest pass for each shelf, and a panel showing the synchronous radius of 211,453 km lying outside the planet's 146,347 km Hill sphere, so no stationary orbit exists." width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full chapter derives each result step by step (the coverage triangle, the slant-range quadratic, decibels, Kepler's third law, and the Hill radius), with interactive plates for every shelf: &lt;a href="https://www.eventhelix.com/terminus/shelves-of-the-sky/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/terminus/shelves-of-the-sky/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>space</category>
      <category>physics</category>
      <category>systemdesign</category>
      <category>science</category>
    </item>
    <item>
      <title>Two retransmissions, zero losses: RLC-NR acknowledged mode in a real 5G capture</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Tue, 27 Oct 2026 22:54:08 +0000</pubDate>
      <link>https://dev.to/eventhelix/two-retransmissions-zero-losses-rlc-nr-acknowledged-mode-in-a-real-5g-capture-4j5i</link>
      <guid>https://dev.to/eventhelix/two-retransmissions-zero-losses-rlc-nr-acknowledged-mode-in-a-real-5g-capture-4j5i</guid>
      <description>&lt;p&gt;A real 5G NR attach capture shows the radio link sending the same RLC packet twice, on two separate occasions. Not one status report in the trace names a missing packet. The full walkthrough follows RLC acknowledged mode on both bearers, the signaling bearer and the data bearer, and explains why.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the capture shows
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;RLC stays readable on a ciphered link.&lt;/strong&gt; The capture is NEA2-ciphered, but ciphering is a PDCP function, so RLC's sequence numbers, segmentation fields, and poll bit are in the clear on every frame. The payload is not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sequence numbers count SDUs, not transmissions.&lt;/strong&gt; A capability report cut into three segments keeps one sequence number and costs one line in the status report.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The poll bit follows the buffer, not a clock.&lt;/strong&gt; Signaling polls on nearly every PDU, while the data bearer polls only at the end of a burst. One cumulative ACK_SN then closes the whole burst.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Both retransmissions are timer-driven.&lt;/strong&gt; Two polls went unanswered as their connections ended, and each resend followed 44.9 ms later. That interval matches the TS 38.331 default t-PollRetransmit, a value nothing in the trace ever configures.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftaas1ncmiincvwicl4on.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftaas1ncmiincvwicl4on.png" alt="A new walkthrough follows RLC acknowledged mode, the layer that makes the radio link reliable, through a real ciphered attach capture on both the signaling bearer and the data bearer." width="800" height="671"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The walkthrough covers both bearers end to end, including segmentation, cumulative acknowledgment, and the diagnostic habit the retransmissions teach.&lt;/p&gt;

&lt;p&gt;Full walk-through: &lt;a href="https://www.eventhelix.com/5G/nr-attach-air-interface/rlc-nr-acknowledged-mode/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/nr-attach-air-interface/rlc-nr-acknowledged-mode/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>5g</category>
      <category>networking</category>
      <category>wireshark</category>
      <category>telecom</category>
    </item>
    <item>
      <title>A 5G NSA phone never attaches to 5G: reading an EN-DC attach from a real capture</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Tue, 27 Oct 2026 22:51:51 +0000</pubDate>
      <link>https://dev.to/eventhelix/a-5g-nsa-phone-never-attaches-to-5g-reading-an-en-dc-attach-from-a-real-capture-3o9p</link>
      <guid>https://dev.to/eventhelix/a-5g-nsa-phone-never-attaches-to-5g-reading-an-en-dc-attach-from-a-real-capture-3o9p</guid>
      <description>&lt;p&gt;In 5G Non-Standalone (Option 3, or EN-DC), there is no 5G core. The UE attaches to the 4G EPC through an LTE anchor eNB, and 5G arrives later as a secondary leg that the eNB asks a nearby gNB to add. A new walkthrough reads that whole flow from a real 40-frame capture taken on the LTE leg of an open5gs test network.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the capture shows
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;EN-DC is negotiated during the attach, long before it is used.&lt;/strong&gt; The UE sets the DCNR bit in its first Attach Request (frame 7). The core answers with NR security capabilities in the InitialContextSetupRequest (frame 13) and marks dual connectivity with NR "Not restricted" in the Attach Accept.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One reconfiguration arms the flow.&lt;/strong&gt; Frame 19 delivers the Attach Accept, builds the bearers, and installs seven measurement identities. Only measId 7 is bound to the NR measurement object (band n78), with event B1-NR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A measurement triggers 5G, not the attach.&lt;/strong&gt; The first measId-7 report (frame 24) carries NR PCI 0 at −91 to −90 dBm SS-RSRP. The eNB sends the X2 SgNB Addition Request in the very next frame, and the gNB's Acknowledge returns the NR configuration for the UE.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The bearer moves to NR in two steps.&lt;/strong&gt; An RRC Reconfiguration releases LTE DRB 1 and re-adds it on the NR secondary cell group, so PDCP relocates to the gNB. The S1AP E-RAB Modification (frames 31–32) then points the S1-U downlink at the gNB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only measId-7 reports carry NR.&lt;/strong&gt; Frame 24 and the periodic bundles in frames 33–40 include an NR neighbor list; the measId 1 and 2 reports never mention NR.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4xc7ppr3yjexzv2wg233.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4xc7ppr3yjexzv2wg233.png" alt="A VisualEther annotated sequence diagram with four lifelines, MME, eNB, SgNB, and UE, and a plain-English commentary column on the right. Frame 24, an RRC Measurement Report from the UE to the eNB, lists measId 7, LTE RSRP between -77 and -76 dBm, NR PCI 0, NR SS-RSRP between -91 and -90 dBm, and NR SS-RSRQ between -11.0 and -10.5 dB; its commentary calls it the 5G trigger, the first measurement report carrying NR. Frame 25, an X2 SgNB Addition Request from the eNB to the SgNB, lists MeNB-UE-X2AP-ID 0, E-RAB-ID 5, DRB-ID 1, and PDCP at SgNB (SCG bearer). Frame 26, the SgNB Addition Request Acknowledge back to the eNB, lists MeNB-UE-X2AP-ID 0 and SgNB-UE-X2AP-ID 1779; its commentary notes that the gNB mints its own X2AP ID, pairing the two nodes for this UE." width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is a lab capture: AS security uses the EEA0 null cipher with EIA2 integrity, there is no NAS authentication, and the B1 threshold sits at the RSRP floor, so EN-DC comes up on any detected NR cell. The NR radio leg itself is not in this LTE-side trace.&lt;/p&gt;

&lt;p&gt;The walkthrough goes frame by frame through all six phases, including the EN-DC X2 Setup, the Dual Connectivity Power Headroom Report, and a close read of the measurement configuration.&lt;/p&gt;

&lt;p&gt;Full walk-through: &lt;a href="https://www.eventhelix.com/5G/nsa-en-dc-attach/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/nsa-en-dc-attach/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>5g</category>
      <category>networking</category>
      <category>wireshark</category>
      <category>telecom</category>
    </item>
    <item>
      <title>Tidally Locked Does Not Mean Motionless: Designing Orbits Around Proxima b</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Wed, 14 Oct 2026 23:00:45 +0000</pubDate>
      <link>https://dev.to/eventhelix/tidally-locked-does-not-mean-motionless-designing-orbits-around-proxima-b-2i8k</link>
      <guid>https://dev.to/eventhelix/tidally-locked-does-not-mean-motionless-designing-orbits-around-proxima-b-2i8k</guid>
      <description>&lt;p&gt;Stand in the inhabited belt of Proxima b, and the star rests on the horizon. It does not rise or set. Noon and midnight are not times here; they are places.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Terminus&lt;/em&gt; is a series that sits between science fiction and system design: an alien AI asks Earth to design a satellite network that serves a large language model to a young civilization on this planet. Part 2 studies the planet before any satellite goes up, because it breaks most of what a satellite engineer brings from Earth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the chapter establishes
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A locked planet still rotates.&lt;/strong&gt; Tidal locking means the rotation period equals the orbital period, 11.2 Earth days here. That matched turn holds the star still in the sky. A planet with no spin at all would see a sunrise every orbit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Moving air makes the habitable band.&lt;/strong&gt; A single convection cell rises under the star, crosses to the night side 7 to 10 km up, sinks over the ice, and returns along the ground. The return leg keeps the twilight band temperate and gives it a dayward wind that never reverses. Stall the loop and the night side becomes a cold trap that freezes the atmosphere out of the sky.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demand is a ribbon.&lt;/strong&gt; Every user lives within about 20° of the terminator, the line between day and night, and that line never moves across the ground.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fixed to the ground is not fixed in space.&lt;/strong&gt; Orbits hold their orientation relative to the distant stars, while the terminator turns 32° per day in that frame. A ring placed over the band today will be gone by tomorrow. Every constellation in the series shows this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Slow rotation shrinks J2; the lock adds C22.&lt;/strong&gt; Oblateness goes as the square of the spin rate, so the planet is about 50 times rounder than Earth. The star's permanent tide adds a second degree-2 term, C22: an equator stretched toward the star.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mercury is a false analog.&lt;/strong&gt; Its 3:2 spin-orbit resonance gives it a 176-day solar day, and its terminator crawls along the equator at about 1 m/s. A twilight city there would have to walk.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0pi4yilly4rbxd7ao3er.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0pi4yilly4rbxd7ao3er.jpg" alt="A small red dwarf star and its tidally locked planet: one face lit forever, the other forever dark" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full chapter derives the planet's J2 from Earth's own measured figure, animates the three spin rules and the wind loop, and shows what a 0.1° launch error costs a polar ring over a decade:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.eventhelix.com/terminus/know-your-planet/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/terminus/know-your-planet/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>space</category>
      <category>astronomy</category>
      <category>systemdesign</category>
      <category>science</category>
    </item>
    <item>
      <title>An Alien AI's RFP: an LLM in Orbit for a Pre-Printing-Press World</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Thu, 01 Oct 2026 18:45:15 +0000</pubDate>
      <link>https://dev.to/eventhelix/an-alien-ais-rfp-an-llm-in-orbit-for-a-pre-printing-press-world-5agl</link>
      <guid>https://dev.to/eventhelix/an-alien-ais-rfp-an-llm-in-orbit-for-a-pre-printing-press-world-5agl</guid>
      <description>&lt;p&gt;An artificial intelligence has been watching a young civilization on Proxima b, a planet that always shows the same face to its star. The people are curious and careful, and about 400 years from inventing the printing press. The AI wants to give them a shortcut: continuous access to a large language model, available to every settlement, from orbit.&lt;/p&gt;

&lt;p&gt;It can build spacecraft and drop terminals by parachute. By policy, it cannot land, teach, or intervene. So it has written a request for proposals and sent it to Earth.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Terminus&lt;/em&gt; is a series that sits between science fiction and system design. The RFP is part 1; every post after it is one chapter of the engineering proposal that answers it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the RFP asks for
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A planet with one habitable line.&lt;/strong&gt; Proxima b is tidally locked: one side always faces the star, and life clusters in a band within 20° of the terminator, where day meets night.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A star that jams the obvious radios.&lt;/strong&gt; The red dwarf emits radio bursts between roughly 1 and 3 GHz, the L and S bands a terrestrial engineer reaches for first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terminals nobody will ever touch.&lt;/strong&gt; They arrive by parachute, must work for ten years untouched, and must reach service within 15 minutes of waking with no almanac, clock, or position.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A service with a real latency budget.&lt;/strong&gt; First token within 300 ms at the 95th percentile when nothing has failed, 99.9% availability per settlement, and a satellite handover that interrupts a conversation for 100 ms at most.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A scorecard that ignores headcount.&lt;/strong&gt; The AI builds whatever is designed, so satellite count matters less than total mass, power, latency margin, robustness, and a credible path from 10,000 terminals to a million.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Earth, and why bother
&lt;/h2&gt;

&lt;p&gt;The AI's charter forbids it from designing a project of this scale alone; a biological intelligence has to be present through requirements, trades, and construction. At 4.24 light-years, Earth is the nearest one it knows of.&lt;/p&gt;

&lt;p&gt;And the problem is not exotic. Roughly three of every four stars in the galaxy are red dwarfs, so twilight worlds are the common case. The AI wants a reusable reference architecture, not a one-off.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fezcymdwhkzweeq43iyne.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fezcymdwhkzweeq43iyne.jpg" alt="Mission overview: satellites ring a tidally locked planet beside its red dwarf star while ground terminals descend by parachute toward the habitable twilight band" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full RFP, with all sixteen requirements, the planet's one-way wind, and the amendment issued mid-proposal, is here: &lt;a href="https://www.eventhelix.com/terminus/rfp/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/terminus/rfp/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>systemdesign</category>
      <category>space</category>
      <category>ai</category>
      <category>scifi</category>
    </item>
    <item>
      <title>One prompt, 33 captioned packets — AI-annotating a DNS capture</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Tue, 29 Sep 2026 22:56:25 +0000</pubDate>
      <link>https://dev.to/eventhelix/one-prompt-33-captioned-packets-ai-annotating-a-dns-capture-5aic</link>
      <guid>https://dev.to/eventhelix/one-prompt-33-captioned-packets-ai-annotating-a-dns-capture-5aic</guid>
      <description>&lt;p&gt;A recursive DNS lookup captured behind the resolver is 33 frames in Wireshark. The story in it, a resolver that asks for DNSSEC records with a 512-byte buffer and pays for it with two TCP connections, sits in header bits you read one frame at a time.&lt;/p&gt;

&lt;p&gt;VisualEther 9.1 adds AI annotation: Claude Code, working through VisualEther's MCP server, writes a plain-English caption onto every arrow of the sequence diagram. We tested the simplest form. A folder held one file, Chris Greer's &lt;code&gt;dns_full_recursion.pcapng&lt;/code&gt; from his video "How DNS Works Under the Hood (Packet by Packet)", and the whole prompt was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;annotate dns_full_recursion.pcapng
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the run did
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;It built its own template.&lt;/strong&gt; No bundled sample covers DNS over TCP, so Claude started from the TCP sample, added five DNS templates (one for truncated replies), and validated them: 33 of 33 frames matched.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It read the flow before writing.&lt;/strong&gt; It rendered the diagram with every packet's field tree and read all 33 frames before writing a caption.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It checked its claims against the packets.&lt;/strong&gt; Field queries confirmed the 512-byte EDNS buffer with DO=1 in frames 2, 3, 21, and 24, and the truncation flag in frames 4 and 5. One check caught its own slip: the 392 bytes it first wrote for frame 23 is the UDP length, and the DNS message is 384.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It named the servers from evidence.&lt;/strong&gt; The lanes read g.root-servers.net, g.gtld-servers.net, and ns5.infoblox.com because the capture's own glue records tie those names to the addresses in frames 15, 19, and 23.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It found the story.&lt;/strong&gt; Its caption on the client's answer breaks the 159 ms lookup down by step: the truncation and TCP retry at the root cost about 56 ms, more than a third of the total.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F49zilfdb63ebwqu8sdfy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F49zilfdb63ebwqu8sdfy.png" alt="A dark slide titled " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzhkhgnw14wgdly6qd3tu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzhkhgnw14wgdly6qd3tu.png" alt="A slide titled " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The session took about six minutes and 14 VisualEther tool calls. It produced an annotated PDF, an interactive viewer that opens each packet's full field tree, and the captions as a Markdown file with one section per frame. Edit one and re-render.&lt;/p&gt;

&lt;p&gt;The captions are an AI draft. Each claim was checked against the packets, but the result still deserves an expert read before anyone publishes it.&lt;/p&gt;

&lt;p&gt;A reviewed walkthrough of the same capture: &lt;a href="https://www.eventhelix.com/networking/dns-recursive-resolution/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/networking/dns-recursive-resolution/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To annotate your own capture, Track 3 of the getting-started guide covers it: &lt;a href="https://www.eventhelix.com/visualether/getting-started/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/visualether/getting-started/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wireshark</category>
      <category>networking</category>
      <category>dns</category>
      <category>ai</category>
    </item>
    <item>
      <title>The uplink wasted 30,955 bytes, and the downlink wasted none — reading MAC-NR in a 5G capture</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Wed, 16 Sep 2026 22:15:43 +0000</pubDate>
      <link>https://dev.to/eventhelix/the-uplink-wasted-30955-bytes-and-the-downlink-wasted-none-reading-mac-nr-in-a-5g-capture-4i2h</link>
      <guid>https://dev.to/eventhelix/the-uplink-wasted-30955-bytes-and-the-downlink-wasted-none-reading-mac-nr-in-a-5g-capture-4i2h</guid>
      <description>&lt;p&gt;Same link, same rules, same capture: over 144 frames of one 5G NR MAC session, the uplink threw away 30,955 bytes on padding, and the downlink threw away none. That asymmetry is the whole MAC layer explaining itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the capture shows
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;MAC runs one entity per UE, not one per bearer.&lt;/strong&gt; PDCP and RLC genuinely run one entity per bearer, each with its own sequence-number space. Both chains end at a single scheduler, keyed here on C-RNTI &lt;code&gt;0x8000&lt;/code&gt;, which tells them apart only by the LCID on each subheader — so signaling and user data ride the same transport blocks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Contention resolution is an identity echo, not an identifier change.&lt;/strong&gt; Msg3 goes out anonymous on &lt;code&gt;LCID 52&lt;/code&gt;; 0.708 ms later Msg4 replays the same six bytes back. The UE that recognizes them wins; every UE that sent a different Msg3 loses and starts again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One transport block carries MAC's entire repertoire.&lt;/strong&gt; Frame 4 holds a 108-byte signaling SDU, a Buffer Status Report, a Power Headroom Report, and 508 bytes of padding — four subheaders, four independent things, one transmission.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Direction decides both the ordering and the meaning.&lt;/strong&gt; Uplink puts control elements after the SDUs and downlink before them, and both orders hold across all 144 frames without one exception. &lt;code&gt;LCID 61&lt;/code&gt; is a Short BSR going up and a Timing Advance Command coming down.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A BSR reports the leftovers, not the payload.&lt;/strong&gt; 55 of the 66 reports here read zero, because the grant that carried the report also carried the data it would have described.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Padding measures the scheduler's uncertainty.&lt;/strong&gt; The gNB sizes a downlink block against a buffer it owns and can read directly, and an uplink grant from a report describing the past. One side guesses, and that side wastes 30,955 bytes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi2do8uhbsievkjrgaoqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi2do8uhbsievkjrgaoqh.png" alt="Wireshark 5G-NR MAC call flow" width="800" height="730"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Worth being precise about why any of this is legible: ciphering is a PDCP function that begins below the PDCP header, so LCIDs, lengths, control elements, and padding are read without keys even though this capture is genuinely NEA2-ciphered. That applies to the MAC layer. The payloads above it are a separate question.&lt;/p&gt;

&lt;p&gt;The full walkthrough follows every MAC-NR subheader and control element on one UE, from Msg3 to the last scheduled transmission, and closes on the &lt;code&gt;mac-CellGroupConfig&lt;/code&gt; in frame 3 that turns out to explain the rest of the session.&lt;/p&gt;

&lt;p&gt;Full walk-through: &lt;a href="https://www.eventhelix.com/5G/nr-attach-air-interface/mac-nr-scheduling-and-multiplexing/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/nr-attach-air-interface/mac-nr-scheduling-and-multiplexing/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>5g</category>
      <category>networking</category>
      <category>wireshark</category>
      <category>telecom</category>
    </item>
    <item>
      <title>One 5G frame, two security contexts — reading a decrypted NR attach</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Tue, 15 Sep 2026 21:25:13 +0000</pubDate>
      <link>https://dev.to/eventhelix/one-5g-frame-two-security-contexts-reading-a-decrypted-nr-attach-43gk</link>
      <guid>https://dev.to/eventhelix/one-5g-frame-two-security-contexts-reading-a-decrypted-nr-attach-43gk</guid>
      <description>&lt;p&gt;A 5G radio capture can be encrypted twice over, by two separate networks holding two different sets of keys. Wireshark work-item 19757 published a 5G NR trace together with the UE's keys, which makes it an unusually honest capture to learn from: 151 frames over about 49 seconds, taken at the MAC layer of a single cell, with radio security genuinely switched on — NEA2 (AES) ciphering and NIA2 (AES-CMAC) integrity, not the NEA0 null cipher most lab traces run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the capture shows
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;5G secures the core and the radio separately, and the two procedures run side by side.&lt;/strong&gt; Frames 11–16 carry the NAS (core) Security Mode procedure between the UE and the AMF, and it runs twice. The commands carry NAS security-header type 3; the responses come back as type 4, "integrity protected and ciphered" — the moment the NAS bodies go dark. Frames 17–18 then carry the AS (radio) Security Mode Command from the gNB, selecting NEA2/NIA2: a different peer, different keys, its own procedure, the same shape.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The published keys are the Access-Stratum keys.&lt;/strong&gt; So the radio stack opens, and the core stays shut. Frame 38 holds both states in a single packet: an RRC Reconfiguration readable because the AS keys deciphered PDCP, carrying a NAS PDU marked security-header type 2 that stays an opaque blob.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That same frame builds the data bearer.&lt;/strong&gt; DRB 1 on LCID 4, an sdap-Config with the uplink SDAP header present and the downlink header absent, QFI 2, PDCP with an 18-bit sequence number, RLC-AM with t-PollRetransmit 80 ms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A third context sits underneath.&lt;/strong&gt; Once PDCP gives up the user plane, the IMS signaling inside it turns out to be protected by IPsec, so it re-seals on its own terms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The rest reads the way a healthy connection should.&lt;/strong&gt; An SDAP user plane stamped QFI 2, ACK_SN climbing to 18, not one NACK anywhere. Then an RRC Release the UE never acknowledges — PDCP SN 7, MAC-I 0xa48652fc, poll bit set — which RLC repeats once when t-PollRetransmit expires. The identical SN and MAC-I are the signature that says retransmission, not a second command.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fotxzbayj02oayt190sg0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fotxzbayj02oayt190sg0.png" alt="5G Attach" width="799" height="631"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Worth being clear about what makes this legible: the keys shipped with the capture. Without them, the RRC Reconfiguration and the entire user plane are opaque PDCP blobs, and NEA2 stays NEA2.&lt;/p&gt;

&lt;p&gt;The full walkthrough runs all six phases frame by frame, and six companion articles take the same capture one layer at a time — MAC-NR, RLC-NR, PDCP-NR, SDAP, NR-RRC, and NAS-5GS.&lt;/p&gt;

&lt;p&gt;Full walk-through: &lt;a href="https://www.eventhelix.com/5G/nr-attach-air-interface/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/nr-attach-air-interface/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>5g</category>
      <category>networking</category>
      <category>wireshark</category>
      <category>security</category>
    </item>
    <item>
      <title>Reading an IMS voice call out of a GTP-only 5G capture</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Mon, 14 Sep 2026 23:31:26 +0000</pubDate>
      <link>https://dev.to/eventhelix/reading-an-ims-voice-call-out-of-a-gtp-only-5g-capture-iek</link>
      <guid>https://dev.to/eventhelix/reading-an-ims-voice-call-out-of-a-gtp-only-5g-capture-iek</guid>
      <description>&lt;p&gt;An srsRAN bug report describes a capture taken on a 5G base station's F1-U interface that decodes as nothing but GTP. The SIP signaling and the RTP voice are simply not there — Wireshark shows GTP tunnels and stops.&lt;/p&gt;

&lt;p&gt;They are there. F1-U carries PDCP PDUs inside GTP-U tunnels, and in this lab build, PDCP runs the NEA0 null cipher with no SDAP header, so the inner IP packet starts at a fixed 3-byte offset in every T-PDU. Delete those three bytes, re-frame the result as LINKTYPE_RAW, and 2,960 inner IPv4 packets appear underneath: a two-party VoNR call.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the reconstructed capture shows
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The encryption boundary is one byte you can read by hand.&lt;/strong&gt; Byte 0 of the T-PDU is 0x80 — a PDCP-NR data PDU with an 18-bit sequence number, so a 3-byte header. Byte 3 is 0x45: an IPv4 packet beginning immediately, no SDAP header in between. That 0x45 is the tell that the payload is in the clear.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The inner trace is a different problem from the one you started with.&lt;/strong&gt; 1,670 RTP frames, 273 TLS, 208 IPsec ESP, 59 DNS, 14 RTCP — and six SIP messages. New endpoints, new sessions, new failure modes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Those six SIP messages are the whole readable signaling.&lt;/strong&gt; A REGISTER with an empty Authorization digest, a 100 Trying, then a 401 whose status line reads "Challenging the UE". Its WWW-Authenticate header carries algorithm=AKAv1-MD5 — the nonce packs the RAND and AUTN the UE feeds its USIM — and its Security-Server header hands over the IPsec parameters to establish: spi-s=4111, alg=hmac-md5-96, ealg=aes-cbc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The 401 tells you which tunnel to expect.&lt;/strong&gt; About 0.4 s later, the first ESP packet appears on SPI 0x0000100f — decimal 4111, exactly the spi-s the P-CSCF advertised. That match ties an IMS-AKA challenge to the security association answering it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1,670 RTP frames flow, and no INVITE appears anywhere in the capture.&lt;/strong&gt; It is inside the ESP. Under TS 33.203, every SIP message after registration rides inside IPsec; the media plane does not. So RTP stays readable, and the signaling that negotiated it stays opaque. Visible media with no visible INVITE is IMS working as specified, not a broken call — if you are debugging VoNR and the INVITE seems missing, check this first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvj3wh6q56ewaeufthfes.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvj3wh6q56ewaeufthfes.png" alt="IMS voice capture" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One requirement is worth stating plainly: NEA0. Strip-and-replay works because the payload is unciphered, which is a test-rig choice. On a commercial network running NEA1 or NEA2, you would need the UE's keys, and none of this is recoverable.&lt;/p&gt;

&lt;p&gt;The full walkthrough carries the reconstruction script, a five-phase read of the call, and a silent DNS resolver found along the way.&lt;/p&gt;

&lt;p&gt;Full walkthrough: &lt;a href="https://www.eventhelix.com/5G/reconstructing-vonr-from-f1u/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/reconstructing-vonr-from-f1u/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>5g</category>
      <category>networking</category>
      <category>wireshark</category>
      <category>voip</category>
    </item>
    <item>
      <title>F1-U flow control: how a 5G base station's two halves stay in step</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Thu, 03 Sep 2026 19:24:30 +0000</pubDate>
      <link>https://dev.to/eventhelix/f1-u-flow-control-how-a-5g-base-stations-two-halves-stay-in-step-3bi</link>
      <guid>https://dev.to/eventhelix/f1-u-flow-control-how-a-5g-base-stations-two-halves-stay-in-step-3bi</guid>
      <description>&lt;p&gt;In 5G, the gNB is not a single box. Under the 3GPP higher-layer split (TS 38.401), a Central Unit owns the upper radio-protocol layers, and one or more Distributed Units own the real-time lower ones — RLC, MAC, and PHY. F1-U is the user-plane leg between them, and it carries GTP-U tunnels running the NR User Plane Protocol (NR-U / NRUP, TS 38.425). The CU-UP pushes downlink data toward a radio it cannot see; the DU reports back what it managed to send.&lt;/p&gt;

&lt;p&gt;This walkthrough reads a real srsRAN F1-U capture — 37,871 frames over about 82 seconds — and zooms in on a 29-frame window following one voice bearer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the capture shows
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;NR-U is a two-way loop, and the PDU type carries the direction.&lt;/strong&gt; Type 0, DL User Data, flows CU-UP to DU with a downlink PDCP PDU to put on the air. Type 1, DL Data Delivery Status, flows DU to CU-UP with no user data at all — only the highest transmitted PDCP SN, a desired buffer size, and a final-frame flag.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There is no IP layer to key on.&lt;/strong&gt; srsRAN writes each frame as a bare GTP-U packet under a Wireshark DLT_USER link type: no Ethernet, IP, or UDP header. Direction comes from the PDU type, never from an address.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The delivery status is timer-driven.&lt;/strong&gt; The DU repeats the same report roughly every 10 ms even when it has delivered nothing new. On this lightly loaded voice bearer, the status reports vastly outnumber the data frames — a property of this bearer at this load, not of F1-U in general.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Desired Buffer Size is the flow-control knob.&lt;/strong&gt; Here it holds constant at 6,172,672 bytes (about 5.9 MiB), effectively bottomless for a low-rate voice bearer, so flow control never throttles. On a congested bearer, a shrinking desired buffer is the DU asking the CU-UP to slow down, and it is the first field to check when downlink throughput stalls between CU and DU.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The PDCP SN is the sequence that matters here.&lt;/strong&gt; This srsRAN build leaves the NR-U sequence number at 0 on every frame, so delivery tracking rides entirely on the PDCP SN the DU echoes back. Correlating those numbers is what pairs a bearer's two tunnels, and it is what identified TEID 0x06 and TEID 0x18 as one DRB.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy8tsgkf1no9fd8yojx41.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy8tsgkf1no9fd8yojx41.jpg" alt="how a 5G base station's two halves stay in step" width="800" height="514"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full walkthrough follows the window in four beats: the first downlink burst, the delivery-status feedback and its heartbeat, the loop repeating as the sequence number climbs, and the resume after a roughly 90 ms gap. Underneath the PDCP layer sits a second capture entirely — a VoNR call, read in a companion article.&lt;/p&gt;

&lt;p&gt;Full walk-through: &lt;a href="https://www.eventhelix.com/5G/f1u-nr-u-flow-control/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/f1u-nr-u-flow-control/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;VisualEther decoded and captioned every arrow in the diagram straight from the raw Wireshark PCAP—no manual diagramming. VisualEther turns a PCAP into a sequence diagram and ships an MCP server so an AI agent can analyze a capture directly. Free Community edition: &lt;a href="https://www.eventhelix.com/visualether/download" rel="noopener noreferrer"&gt;https://www.eventhelix.com/visualether/download&lt;/a&gt; — Live interactive output: &lt;a href="https://diagrams.eventhelix.com/visualether/5g-nr-radio/" rel="noopener noreferrer"&gt;https://diagrams.eventhelix.com/visualether/5g-nr-radio/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>5g</category>
      <category>networking</category>
      <category>wireshark</category>
      <category>telecom</category>
    </item>
    <item>
      <title>Reading a 5G CU/DU registration frame by frame, over F1AP</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Wed, 12 Aug 2026 20:13:43 +0000</pubDate>
      <link>https://dev.to/eventhelix/reading-a-5g-cudu-registration-frame-by-frame-over-f1ap-2447</link>
      <guid>https://dev.to/eventhelix/reading-a-5g-cudu-registration-frame-by-frame-over-f1ap-2447</guid>
      <description>&lt;p&gt;In 5G, the gNB is not a single box. Under the 3GPP higher-layer split (TS 38.401), it divides into a Central Unit (CU) that owns the upper radio-protocol layers and one or more Distributed Units (DU) that own the real-time lower layers — RLC, MAC, and PHY. The interface between them is F1, and its control plane, F1-C, runs the F1 Application Protocol (F1AP, TS 38.473) over SCTP.&lt;/p&gt;

&lt;p&gt;This capture is a complete F1AP conversation from a real OCUDU (srsRAN-based) CU + DU — 32 frames that walk the entire arc: bring the interface up, register one UE, push a cell broadcast, then tear it all down.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the capture showed
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;One UE's whole registration is relayed across F1.&lt;/strong&gt; RRC connection setup, NAS authentication and security, access-stratum security, capability exchange, and the data radio bearer are all carried between CU and DU. The CU is the UE's RRC endpoint (and a NAS pipe to the AMF behind it); the DU relays transparently to the air and never interprets the RRC or NAS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There is no IP layer.&lt;/strong&gt; This is a Wireshark "Export PDUs" dump: each frame carries the raw F1AP PDU, with no Ethernet, IP, or SCTP header. You cannot read a message's direction from a 4-tuple — it comes from the 3GPP-defined originator of each F1AP procedure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security activates in two ordered layers.&lt;/strong&gt; NAS security first (Security Mode Command and Complete, under a new 5G security context), then access-stratum security via an RRC SecurityModeCommand embedded inside UE Context Setup. Once NAS security is on, a control-plane trace can no longer decode the NAS bodies — the walkthrough names them by role, from their position in the flow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The data radio bearer is added at Modification, not Setup.&lt;/strong&gt; UE Context Setup establishes the signaling radio bearers; the DRB (DRB 1, 5QI 9) arrives at UE Context Modification, paired with the RRCReconfiguration that activates it on the UE.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fni8rpy6sbgs7eq84vzjs.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fni8rpy6sbgs7eq84vzjs.jpg" alt="The VisualEther annotated viewer for an F1AP capture of a 5G CU/DU registration. Left: a sequence diagram between gNB-DU and gNB-CU lifelines with captioned F1AP arrows (F1 Setup, Initial UL RRC Transfer, DL/UL RRC Transfers, UE Context Setup). Right: a message-details pane for Frame 1, F1 Setup Request, with a plain-English remark and a decoded parameters table (gNB-DU-ID, PLMN, NR-CGI, NR-PCI, 5GS-TAC)." width="800" height="545"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full walkthrough goes phase by phase through all 32 frames — F1 Setup, RRC setup carrying the initial NAS Registration Request, authentication, the two security activations, the DRB addition, a Public Warning System broadcast, and the UE Context Release and F1 Removal that tear it down.&lt;/p&gt;

&lt;p&gt;Full walk-through: &lt;a href="https://www.eventhelix.com/5G/f1ap-cu-du-registration/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/f1ap-cu-du-registration/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every arrow in the diagram was decoded and captioned by VisualEther straight from the raw Wireshark PCAP — no manual diagramming. VisualEther turns a PCAP into a sequence diagram and ships an MCP server so an AI agent can analyze a capture directly. Free Community edition: &lt;a href="https://www.eventhelix.com/visualether/download" rel="noopener noreferrer"&gt;https://www.eventhelix.com/visualether/download&lt;/a&gt;&lt;/p&gt;

</description>
      <category>5g</category>
      <category>networking</category>
      <category>wireshark</category>
      <category>telecom</category>
    </item>
    <item>
      <title>The Xn procedure that fetches a sleeping UE from another gNB</title>
      <dc:creator>Sandeep Ahluwalia</dc:creator>
      <pubDate>Thu, 30 Jul 2026 15:08:46 +0000</pubDate>
      <link>https://dev.to/eventhelix/the-xn-procedure-that-fetches-a-sleeping-ue-from-another-gnb-145a</link>
      <guid>https://dev.to/eventhelix/the-xn-procedure-that-fetches-a-sleeping-ue-from-another-gnb-145a</guid>
      <description>&lt;p&gt;5G gave the RRC state machine a third state. Between &lt;code&gt;IDLE&lt;/code&gt; and &lt;code&gt;CONNECTED&lt;/code&gt; sits &lt;code&gt;RRC_INACTIVE&lt;/code&gt;: a UE with no traffic gets &lt;em&gt;suspended&lt;/em&gt; rather than released, the gNB keeps its access-stratum context, and the UE walks away with an &lt;strong&gt;I-RNTI&lt;/strong&gt; — a token naming that stored context.&lt;/p&gt;

&lt;p&gt;Then mobility happens. The UE wakes up with data to send, but at a cell served by a &lt;em&gt;different&lt;/em&gt; gNB. The new node has no idea who this UE is. Resolving that is a small, tidy Xn procedure called &lt;strong&gt;Retrieve UE Context&lt;/strong&gt;, and a five-frame XnAP-over-SCTP capture holds all of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the capture shows
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The interface comes up first (frames 1-2).&lt;/strong&gt; Xn Setup Request and Response, non-UE-associated, each gNB advertising its served-cell configuration — PLMN, gNB ID, NR-PCI, TAC, slice. Nothing UE-specific can travel until this is done.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The I-RNTI is a pointer; the shortResumeMAC-I is a signature (frame 3).&lt;/strong&gt; The UE's &lt;code&gt;RRCResumeRequest&lt;/code&gt; carried both. The I-RNTI tells the target gNB &lt;em&gt;which node&lt;/em&gt; holds the context and &lt;em&gt;which context&lt;/em&gt; it is. The UE computes shortResumeMAC-I from its stored keys, so the anchor can verify the resume request is genuine before releasing anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Resuming forward-secures the keys (frame 4).&lt;/strong&gt; The context comes back with a NextHopChainingCount (&lt;code&gt;NCC = 2&lt;/code&gt;) and a 32-byte &lt;code&gt;K_NG-RAN*&lt;/code&gt; next-hop key. The target derives fresh AS keys from those — vertical key derivation — so the new cell cannot read traffic the UE exchanged before the resume. Riding along: UE-AMBR, and one PDU session with its QoS flow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Both ends get cross-referenced (frame 5).&lt;/strong&gt; The Confirm quotes both UE XnAP IDs, binding the two nodes' identifiers to the same UE-associated Xn connection.&lt;/p&gt;

&lt;p&gt;And the distinction that trips people up: this is &lt;strong&gt;not&lt;/strong&gt; Handover Preparation. Handover is source-driven — the serving gNB decides to move a connected UE and pushes the context to a target it chose. Retrieve UE Context is target-driven — the UE arrives, asks to resume, and the new gNB &lt;em&gt;pulls&lt;/em&gt;. Same outcome, opposite trigger.&lt;/p&gt;

&lt;p&gt;One caveat the write-up states plainly: it's a single-machine loopback capture with some trivial field values, so read it for the shape of the procedure rather than for realistic numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full walk-through, frame by frame:&lt;/strong&gt; &lt;a href="https://www.eventhelix.com/5G/xn-ue-context-retrieval/" rel="noopener noreferrer"&gt;https://www.eventhelix.com/5G/xn-ue-context-retrieval/&lt;/a&gt; — every field value, the decoded packet trees, and where the Xn leg sits in the end-to-end resume across Uu and NG.&lt;/p&gt;

&lt;p&gt;The sequence diagrams were generated from the PCAP with &lt;a href="https://www.eventhelix.com/visualether/" rel="noopener noreferrer"&gt;VisualEther&lt;/a&gt;, which turns a Wireshark capture into an annotated sequence diagram; there's a &lt;a href="https://www.eventhelix.com/visualether/download" rel="noopener noreferrer"&gt;free Community edition&lt;/a&gt;, and the &lt;a href="https://diagrams.eventhelix.com/call-flows/html/5g/xn-ue-context-retrieval/" rel="noopener noreferrer"&gt;interactive diagram&lt;/a&gt; for this capture opens each message's full Wireshark field tree on click.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>5g</category>
      <category>wireshark</category>
      <category>telecom</category>
    </item>
  </channel>
</rss>
