<?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"><channel><title><![CDATA[Sanoc Technical Notes]]></title><description><![CDATA[Technical notes on optical connectivity, networking, data centers, and UAV communications.]]></description><link>https://sanoc.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 21:05:59 GMT</lastBuildDate><atom:link href="https://sanoc.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Why Does tcpdump Show Packets Bigger Than the MTU?]]></title><description><![CDATA[A VM capture shows 28,960 bytes of TCP payload on an interface with a 1500-byte MTU. Before changing the MTU, check where you took the capture and which…]]></description><link>https://sanoc.hashnode.dev/why-does-tcpdump-show-packets-bigger-than-the-mtu</link><guid isPermaLink="true">https://sanoc.hashnode.dev/why-does-tcpdump-show-packets-bigger-than-the-mtu</guid><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Tue, 17 Nov 2026 04:16:32 GMT</pubDate><content:encoded><![CDATA[<p>A VM capture shows 28,960 bytes of TCP payload on an interface with a 1500-byte MTU. Before changing the MTU, check where you took the capture and which way the data was moving. You may have caught a large buffer before Linux or the NIC split it, or several incoming segments after Linux joined them.</p>
<h2>Check which length you’re reading</h2>
<p>On Linux, the interface MTU counts the network-layer packet, including its IP header. Ethernet headers and VLAN tags are outside that count. In <code>tcpdump</code>’s decoded TCP output, <code>length</code> counts TCP payload bytes. For ordinary IPv4 packets, <code>-v</code> also shows the IP header’s total length, which is the field to compare with the link MTU. <a href="https://docs.kernel.org/networking/netdevices.html#mtu">Linux network device MTU</a> · <a href="https://github.com/the-tcpdump-group/tcpdump/blob/master/tcpdump.1.in">tcpdump manual</a></p>
<h2>Look at which way the data was going</h2>
<p>On transmit, Linux can queue a large TCP buffer along with the segment size. When the NIC splits it, that’s TCP Segmentation Offload (TSO). Generic Segmentation Offload (GSO) lets the kernel do the split in software when needed. Even a capture on the sender’s physical interface can see the buffer before it reaches the driver. <a href="https://docs.kernel.org/networking/segmentation-offloads.html">Linux segmentation offloads</a> · <a href="https://github.com/torvalds/linux/blob/v7.0/net/core/dev.c#L3878-L3890">Linux transmit path</a></p>
<p>On receive, Generic Receive Offload (GRO) can join several incoming segments into one buffer. A capture taken after that step can show a single large record. On Proxmox, captures inside the VM, on its host TAP interface, and at the physical port show different points along the same path. <a href="https://docs.kernel.org/networking/segmentation-offloads.html#generic-receive-offload">Linux receive offload</a> · <a href="https://github.com/proxmox/pve-docs/blob/master/pve-network.adoc">Proxmox network configuration</a></p>
<h2>Follow the same TCP bytes to the physical link</h2>
<p>Start with a short capture on the interface where you saw the large record. Replace <code>eno1</code> and the example IP address with your interface and TCP peer. Run <code>tcpdump</code> with capture privileges.</p>
<pre><code class="language-sh">ip link show dev eno1
ethtool -k eno1
tcpdump -i eno1 -p -nn -s 128 -c 40 -v -S 'ip and host 198.51.100.20 and tcp port 443'
</code></pre>
<p><code>ethtool -k</code> lists the interface’s offload settings. The capture example keeps up to 128 bytes per record, stops after 40 matches and prints absolute TCP sequence numbers. If the transfer stops before then, end the capture with Ctrl+C. <a href="https://man7.org/linux/man-pages/man8/ethtool.8.html">ethtool manual</a> · <a href="https://github.com/the-tcpdump-group/tcpdump/blob/master/tcpdump.1.in">tcpdump manual</a></p>
<p>If you need to know what crossed the physical link, use a network tap or switch mirror you’re authorized to access. On a dedicated capture interface, check that receive coalescing such as GRO or LRO is off, so the capture preserves individual frames. The <code>-p</code> option above is for the host capture. Omit it on the collector if you need promiscuous mode to receive the mirrored frames. If the mirror presents VLAN tags, account for the tags in the capture filter. <a href="https://man7.org/linux/man-pages/man7/pcap-filter.7.html">pcap filter syntax</a></p>
<p>Line up the same TCP flow and sequence range at both capture points. If one large sender record covers the same bytes as several packets within the MTU on the mirror, the mirror shows how those bytes actually crossed the link. You can make that comparison with your production interface settings as they are.</p>
]]></content:encoded></item><item><title><![CDATA[Before You Use a Long-Reach BiDi Spare on a Short Fiber]]></title><description><![CDATA[Check wavelength pairing and receiver power limits before using a long-reach 25G BiDi spare on a short single-fiber link.]]></description><link>https://sanoc.hashnode.dev/before-you-use-a-long-reach-bidi-spare-on-a-short-fiber</link><guid isPermaLink="true">https://sanoc.hashnode.dev/before-you-use-a-long-reach-bidi-spare-on-a-short-fiber</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Fri, 13 Nov 2026 02:04:51 GMT</pubDate><content:encoded><![CDATA[<p>A single-fiber uplink goes down and the only spare in the rack is marked 25G BiDi. The plug fits. The spare also claims longer reach. Before inserting it, check the label on the module at the far end. You need to know what wavelength that module sends and what wavelength it expects back.</p>
<h2>Write down both directions</h2>
<p>For a wavelength-paired BiDi link, the transmitter at A has to land inside the receiver's wavelength range at B. The transmitter at B has to fit the receiver at A. The two checks matter even though both signals travel on the same strand. Cisco's 10 km dual-rate BiDi pair uses nominal wavelengths of 1270 and 1330 nm. Its 25G BR40 pair uses 1289 and 1314 nm. Both families can run at 25G, but the nominal wavelengths and receive bands differ. Check the exact part numbers and the documented pairing, then verify the port speed, host support, fiber type and connector polish. <a href="https://www.cisco.com/c/en/us/products/collateral/interfaces-modules/transceiver-modules/datasheet-c78-736950.html">Cisco SFP28 data sheet</a> · <a href="https://www.cisco.com/c/en/us/support/docs/switches/catalyst-9200-switch-stack/222738-troubleshoot-fiber-links-on-catalyst-900.html">Cisco fiber and connector guide</a></p>
<h2>Check the short path before patching it in</h2>
<p>Use the maximum launch power and the minimum expected path loss to check the brightest signal that could arrive. In Cisco's BR40 example, maximum transmit power is +6 dBm and maximum receive power is -4 dBm. The difference is 10 dB. At exactly 10 dB of loss, the receiver would be at its upper limit in that worst case, so the arithmetic leaves no headroom. At the other end of the range, subtract the highest expected path loss from the weakest specified launch power and compare with receiver sensitivity. Do both checks for each direction at its transmit wavelength. Use the module's channel limits and measured path loss to select attenuation rather than copying the example. <a href="https://www.cisco.com/c/en/us/products/collateral/interfaces-modules/transceiver-modules/datasheet-c78-736950.html">Cisco SFP28 data sheet, optical specifications</a> · <a href="https://www.cisco.com/c/en/us/support/docs/optical/synchronous-digital-hierarchy-sdh/29000-db-29000.html">Cisco optical loss calculation guide</a></p>
<p>After patching in the verified pair, record each module's transmit and receive readings where the host exposes them. Verify that the receiver reports average power before comparing its reading with the peer's transmit power. Some modules report optical modulation amplitude (OMA) for receive power. If an average-power reading is close to its limit, check it with an optical power meter set to the relevant wavelength. Keeping the two part numbers and both readings in the handover gives the next person enough information to pull the right spare. <a href="https://members.snia.org/document/dl/25916">SNIA SFF-8472, optical diagnostics</a></p>
<p><em>AI disclosure: OpenAI Codex assisted with drafting. The technical references are linked in the article.</em></p>
]]></content:encoded></item><item><title><![CDATA[What to Check Before Changing FEC on a 25G Link]]></title><description><![CDATA[Troubleshoot rising errors on a 25G optical link by checking active FEC at both ends and comparing counters before changing the optical path.]]></description><link>https://sanoc.hashnode.dev/what-to-check-before-changing-fec-on-a-25g-link</link><guid isPermaLink="true">https://sanoc.hashnode.dev/what-to-check-before-changing-fec-on-a-25g-link</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Fri, 13 Nov 2026 01:19:56 GMT</pubDate><content:encoded><![CDATA[<p>A server moves to a new switch port. The 25G optical link comes up, but the receive error counters keep climbing. Before toggling forward error correction (FEC), save the state on both ends. If you change the mode first, it becomes harder to tell whether the original problem was the port configuration or the path carrying the signal.</p>
<h2>Read the mode the port is actually using</h2>
<p>Write down the exact optic and host port at each end, along with the configured and active FEC modes. On Cumulus Linux, <code>nv show interface swp1 link</code> shows the applied and operational settings separately. When a port is set to Auto, use the active mode for the comparison if the platform reports it. If the two ports report different active modes, first check that both readings describe the same part of the link. For host-side FEC on a supported 25G optical pairing, check that the modes are compatible and satisfy the optics' documented requirements. <a href="https://docs.nvidia.com/networking-ethernet-software/cumulus-linux-516/Layer-1-and-Switch-Ports/Interface-Configuration-and-Management/Switch-Port-Attributes/">NVIDIA Cumulus Linux switch port guide</a></p>
<p>Cisco's SFP-25G-SR-S, for example, requires RS-FEC on the host ports. Its dual-rate SFP-10/25G-CSR-S has different reach limits at 25G depending on whether the host uses RS-FEC, BASE-R FEC, or no FEC. Check the exact part and host documentation before carrying over a setting from another port. <a href="https://www.cisco.com/c/en/us/products/collateral/interfaces-modules/transceiver-modules/datasheet-c78-736950.html">Cisco 25G SFP28 datasheet</a></p>
<h2>Keep the mode fixed while you test the path</h2>
<p>Once both ends use a supported mode, take two readings over the same interval. An increase in corrected blocks shows that the decoder repaired errors. Uncorrectable blocks show where it failed to repair them. Track receive CRC errors separately. They count frames, while FEC counters count blocks. Missing counters can reflect limited driver or hardware reporting, and a zero corrected count with FEC disabled tells you nothing about the signal. <a href="https://www.kernel.org/doc/html/latest/networking/ethtool-netlink.html#fec-get">Linux FEC statistics</a> · <a href="https://docs.kernel.org/networking/statistics.html">Linux interface statistics</a></p>
<p>If errors rise mainly at one receiver, check its receive power and the peer's transmit power. Record any lane-level counters the platform provides. In a maintenance window, keep the same ports, optics, and supported FEC mode, then repeat the measurement over a known-good spare path of the correct fiber type. If the errors stop, the original path is worth investigating. If they persist, the next test is a compatible spare optic, one end at a time.</p>
<p><em>AI disclosure: OpenAI Codex assisted with drafting. The technical references are linked in the article.</em></p>
]]></content:encoded></item><item><title><![CDATA[The VM Can Ping. Why Does the HTTPS Transfer Stall?]]></title><description><![CDATA[Diagnose HTTPS transfers that stall despite a working ping. Compare packet sizes, TCP retransmissions, and ICMP feedback across an overlay.]]></description><link>https://sanoc.hashnode.dev/the-vm-can-ping-why-does-the-https-transfer-stall</link><guid isPermaLink="true">https://sanoc.hashnode.dev/the-vm-can-ping-why-does-the-https-transfer-stall</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Thu, 12 Nov 2026 07:05:19 GMT</pubDate><content:encoded><![CDATA[<p>After a VM moves to another rack, its usual ping still gets replies and small HTTPS requests finish. A larger upload starts, then hangs. When the new route crosses an overlay, check the packet size before blaming TLS. Small probes can fit through a link that drops larger packets. A path MTU black hole occurs when those larger packets disappear and the sender gets no usable size feedback. <a href="https://www.rfc-editor.org/rfc/rfc2923.html">RFC 2923 §2.1 on TCP black holes</a></p>
<h2>Find the size at which the behavior changes</h2>
<p>From the affected Linux VM, send a few IPv4 probes to the HTTPS endpoint if it answers ICMP and you manage it. Replace <code>SERVER_IPV4</code> with its address.</p>
<pre><code class="language-sh">ping -4 -c 3 -M do -s 1400 SERVER_IPV4
ping -4 -c 3 -M do -s 1472 SERVER_IPV4
</code></pre>
<p>The <code>-s</code> value counts ICMP payload bytes. With a standard 20-byte IPv4 header and an 8-byte ICMP Echo header, these test 1,428-byte and 1,500-byte IP packets. <code>-M do</code> sets Don't Fragment and still respects the kernel's path MTU checks. An immediate local error such as <code>message too long</code> can mean the kernel rejected the probe before it left the VM. If small probes pass and larger ones time out, compare the same sizes on a known-good path. Echo traffic can take a different path from TCP or be filtered separately, so verify the failing HTTPS flow as well. <a href="https://man7.org/linux/man-pages/man8/ping.8.html">iputils ping manual</a></p>
<h2>Follow the feedback toward the sender</h2>
<p>Capture only the affected flow and relevant ICMP traffic while reproducing the stall. At both ends, look for the same TCP sequence range leaving the sender repeatedly and failing to arrive at the receiver. Then check whether a size error reaches the sender. For an IPv4 packet with Don't Fragment set, a router that cannot forward it because of the next-hop MTU should send ICMP Fragmentation Needed. IPv6 uses ICMPv6 Packet Too Big. If a size error appears near the bottleneck and never reaches the sender, trace its return path. <a href="https://www.rfc-editor.org/rfc/rfc1191.html#section-4">IPv4 Path MTU Discovery</a> · <a href="https://www.rfc-editor.org/rfc/rfc8201.html#section-3">IPv6 Path MTU Discovery</a></p>
<p>With VXLAN, check the guest-facing path and the network between the tunnel endpoints. Encapsulation adds headers, and an error for the outer packet can return to a tunnel endpoint. Compare the expected encapsulated size with what that path supports before changing guest MTUs. Once you locate the mismatch or missing feedback, make a scoped fix and repeat the original HTTPS transfer. <a href="https://www.rfc-editor.org/rfc/rfc7348.html#section-4.3">VXLAN infrastructure requirements</a></p>
<p><em>AI disclosure: OpenAI Codex assisted with drafting. The technical references are linked in the article.</em></p>
]]></content:encoded></item><item><title><![CDATA[When Can a 100G QSFP28 Break Out to Four 25G Links?]]></title><description><![CDATA[See when a 100G QSFP28 can split into four 25G links, how SR4 differs from CWDM4, and what to verify on the switch and fiber harness.]]></description><link>https://sanoc.hashnode.dev/when-can-a-100g-qsfp28-break-out-to-four-25g-links</link><guid isPermaLink="true">https://sanoc.hashnode.dev/when-can-a-100g-qsfp28-break-out-to-four-25g-links</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Thu, 12 Nov 2026 05:33:54 GMT</pubDate><content:encoded><![CDATA[<p>A 100G uplink works between two switches. During a rack migration, you want to reuse the port for four 25G hosts. The switch offers a 4×25G setting, but the optic you pulled from the old link has just a duplex LC connector. Before ordering a fanout, read the optic's part number. The port setting and the optical path both have to support the change.</p>
<h2>Follow the lanes out of the module</h2>
<p>A 100GBASE-SR4 optic carries four optical lanes over parallel multimode fiber. Its MPO-12 interface uses eight fiber positions, one transmit and one receive fiber for each lane. A correctly wired MPO-to-four-duplex-LC harness can route those pairs to four endpoints. Arista, for example, lists its QSFP-100G-SR4 for 4×25G operation with 25GBASE-SR peers. Check the interoperability documentation for the modules and platform you actually have. <a href="https://www.juniper.net/documentation/us/en/hardware/100g-optics-cables-guide/100g-optics-cables-guide.pdf">Juniper's 100G transceiver guide</a> · <a href="https://www.arista.com/assets/data/pdf/Datasheets/Arista-100G_Optics_FAQ.pdf">Arista's 100G optics Q&amp;A</a></p>
<p>A 100G CWDM4 module sends four wavelengths together down one transmit strand and receives them on the other strand of the single-mode pair. An ordinary fiber fanout routes individual strands. Separating wavelengths on one strand takes a wavelength-selective demultiplexer. Even separating those wavelengths leaves a separate question of whether the host and optics support four independent Ethernet links. <a href="https://www.cwdm4-msa.org/wp-content/uploads/2015/12/CWDM4-MSA-Technical-Spec-1p1-1.pdf">CWDM4 MSA specification, section 1.3 and Figure 1-1</a></p>
<h2>Start with one known-good leg</h2>
<p>Look up the switch model, software release and exact port number. Confirm that the port supports 4×25G with the intended module, and check whether the mode affects neighboring ports. After setting the mode in a lab or maintenance window, verify that the switch shows four 25G interfaces. <a href="https://docs.nvidia.com/networking-ethernet-software/cumulus-linux-514/Layer-1-and-Switch-Ports/Interface-Configuration-and-Management/Switch-Port-Attributes/">NVIDIA's platform-specific breakout tables</a></p>
<p>On a supported SR4 setup, start with one compatible 25GBASE-SR endpoint. Check the harness map against the module pinout so each transmitter reaches the receiver on the matching leg in both directions. Verify that both ends of that leg use the FEC mode documented for the combination. <a href="https://www.cisco.com/c/en/us/products/collateral/interfaces-modules/transceiver-modules/whitepaper-c11-744077.html">Cisco's MPO breakout diagrams, Figures 6 and 7</a> · <a href="https://www.arista.com/assets/data/pdf/Datasheets/Arista-100G_Optics_FAQ.pdf">Arista's breakout and FEC guidance</a></p>
<p>Once the first link comes up, test the remaining legs against the same known-good endpoint one at a time. If one leg stays down, record which child interface and harness label went with it. That gives you a specific lane to trace before swapping the whole assembly.</p>
<p><em>OpenAI Codex assisted with drafting this article. The technical references are linked alongside the relevant guidance.</em></p>
]]></content:encoded></item><item><title><![CDATA[The Drone Video Froze. Why Is Telemetry Still Coming In?]]></title><description><![CDATA[Trace a frozen drone video stream while MAVLink telemetry still arrives. Compare RTP captures on the bench to find where the video stalls.]]></description><link>https://sanoc.hashnode.dev/the-drone-video-froze-why-is-telemetry-still-coming-in</link><guid isPermaLink="true">https://sanoc.hashnode.dev/the-drone-video-froze-why-is-telemetry-still-coming-in</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Thu, 12 Nov 2026 04:58:52 GMT</pubDate><content:encoded><![CDATA[<p>On the bench, the ground station still receives fresh MAVLink telemetry, but the camera view is stuck on one frame. Before touching the radio settings, find out whether video packets kept arriving during the freeze. The answer tells you where to look next.</p>
<h2>A heartbeat tells you who is still talking</h2>
<p>A MAVLink <code>HEARTBEAT</code> announces the presence of the component that sent it. The protocol leaves the heartbeat rate and timeout to the implementation and channel. Seeing fresh messages from the expected component confirms that those messages arrived. Even when telemetry and video share a radio, a steady trickle of telemetry says little about whether the link is delivering the video stream on time. <a href="https://mavlink.io/en/services/heartbeat.html">MAVLink Heartbeat/Connection Protocol</a></p>
<p>Check what the video receiver actually expects. In QGroundControl 5.0, the video settings distinguish a UDP H.264 input from an RTSP input and use an address or port appropriate to the source. The same settings can suppress video while the vehicle is disarmed. Check that option before treating a blank picture on the bench as a network fault. Keep the vehicle disarmed throughout the test. <a href="https://docs.qgroundcontrol.com/Stable_V5.0/en/qgc-user-guide/settings_view/general.html#video">QGroundControl 5.0 video settings</a></p>
<h2>Follow the video through the freeze</h2>
<p>For H.264 carried as RTP over UDP, capture the video flow near the encoder's network output and at the ground station's network input. Note when the picture stops and starts moving again. In Wireshark's RTP Stream Analysis, look at packet arrival gaps and sequence numbers for the same RTP source. A gap in sequence numbers can fill in if packets arrive out of order. Check that the capture itself kept up, and compare the same interval at both ends. <a href="https://www.rfc-editor.org/rfc/rfc3550.html#section-5.1">RFC 3550, RTP header fields</a> · <a href="https://www.wireshark.org/docs/wsug_html_chunked/ChTelRTP.html#ChTelRTPAnalysis">Wireshark RTP Stream Analysis</a></p>
<p>If RTP stops leaving the encoder, start with the camera, encoder, or stream configuration. If packets leave the encoder but are missing at the ground station, investigate the path between those capture points, including where the video is being sent. If packets keep arriving during the freeze, look at their timing and the receiver logs before blaming the decoder. A GStreamer RTP jitter buffer can discard packets that arrive too late for its configured latency, even when a packet capture shows that those packets reached the host. <a href="https://gstreamer.freedesktop.org/documentation/rtpmanager/rtpjitterbuffer.html">GStreamer RTP jitter buffer</a></p>
<p>Leave the incident note with the stream address and port, the freeze interval, what each capture saw, and any receiver errors from that window. Then change one thing and repeat the same bench test. That gives the next person something more specific to work from than “telemetry looked fine.”</p>
<p><em>OpenAI Codex assisted with drafting this article. The technical references are linked alongside the relevant guidance.</em></p>
]]></content:encoded></item><item><title><![CDATA[Two 25 GbE Links, One Slow Backup]]></title><description><![CDATA[Why a single TCP flow can stay on one 25 GbE link, and how to verify LACP traffic distribution with per-port counters and iperf3.]]></description><link>https://sanoc.hashnode.dev/two-25-gbe-links-one-slow-backup</link><guid isPermaLink="true">https://sanoc.hashnode.dev/two-25-gbe-links-one-slow-backup</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Thu, 12 Nov 2026 03:19:37 GMT</pubDate><content:encoded><![CDATA[<p>A server gets a second 25 GbE uplink. Both ports join the LACP bundle, but the overnight backup takes just as long. Before changing the switch, check whether the backup uses one TCP connection and which physical port carried its bytes. That tells you whether the second link even had a chance to help.</p>
<h2>See which port the sender chose</h2>
<p>On a bundle that uses per-flow hashing, the sender picks an outgoing member using fields such as MAC addresses, IP addresses, or TCP and UDP ports. A steady TCP flow with the same hash inputs stays on one member while the bundle is stable. Two 25 GbE members can carry up to 50 Gb/s of aggregate line rate in one direction when traffic is spread across both. One flow assigned to a single member has that member's 25 Gb/s line rate as its ceiling, with less available for TCP payload. <a href="https://www.cisco.com/c/en/us/td/docs/dcn/nx-os/nexus9000/105x/configuration/interfaces/cisco-nexus-9000-series-nx-os-interfaces-configuration-guide-release-105x/m_configuring_port_channels_93x.html">Cisco Nexus 9000 port-channel guide</a></p>
<p>Check the direction that carries the backup data. For a Linux host sending on an 802.3ad bond, the host's <code>xmit_hash_policy</code> selects the outgoing member. On the way back, the switch applies its own transmit policy to traffic it sends toward the host. If that policy sees only the same pair of IP addresses, adding TCP connections between those addresses gives it no new input to hash. Even when the policy includes TCP ports, different connections can still land on the same member. <a href="https://docs.kernel.org/networking/bonding.html#bonding-module-parameters">Linux bonding driver HOWTO</a></p>
<h2>Put the member counters next to the test</h2>
<p>First verify that both ports are in the same active aggregate and are forwarding. A port can have physical link without carrying traffic for the bundle. On Linux, <code>cat /proc/net/bonding/bond0</code> shows bond and member status. Take a before-and-after snapshot of RX and TX bytes on each physical interface with <code>ip -s link show dev INTERFACE</code>, replacing <code>INTERFACE</code> with its actual name. The total on <code>bond0</code> cannot tell you which cable carried the test. <a href="https://docs.kernel.org/networking/bonding.html#bonding-configuration">Linux bonding status</a> · <a href="https://docs.kernel.org/networking/statistics.html#standard-interface-statistics">Linux interface statistics</a></p>
<p>Use a test path with enough capacity beyond the bundle, and run the test in a lab or maintenance window. Start <code>iperf3 -s</code> on the test peer. On the bonded host, replace <code>SERVER_IP</code> with the peer's address and run these separately.</p>
<pre><code class="language-sh">iperf3 -c SERVER_IP -P 1
iperf3 -c SERVER_IP -P 4
</code></pre>
<p>Compare the TX byte increases on both members for each run. To test the opposite direction, repeat the commands with <code>-R</code> and compare RX byte increases on the bonded host. Keep background traffic low enough to distinguish it from the test. A higher result with four streams is only part of the evidence. Since version 3.16, iperf3 uses a thread per test stream, so extra CPU capacity can also raise throughput. The member counters tell you whether traffic actually spread across both ports. <a href="https://software.es.net/iperf/invoking.html">ESnet iperf3 manual</a></p>
<p>If four streams move more bytes across both members but the backup still uses one connection, check whether the backup software can open parallel connections. If a single stream falls well short of one member's capacity, check the test hosts and the rest of the path before attributing the shortfall to the bundle. An unchanged backup window can still have a storage bottleneck, even after a network-only test shows both links working.</p>
<p><em>OpenAI Codex assisted with drafting this article. The technical references are linked alongside the relevant guidance.</em></p>
]]></content:encoded></item><item><title><![CDATA[Rx Power Looks Fine. Why Does the Fiber Link Still Flap?]]></title><description><![CDATA[Troubleshoot fiber link flaps by correlating DOM receive power, link events, CRC/FCS and FEC counters at both ends.]]></description><link>https://sanoc.hashnode.dev/rx-power-looks-fine-why-does-the-fiber-link-still-flap</link><guid isPermaLink="true">https://sanoc.hashnode.dev/rx-power-looks-fine-why-does-the-fiber-link-still-flap</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[方士軒]]></dc:creator><pubDate>Thu, 12 Nov 2026 02:35:10 GMT</pubDate><content:encoded><![CDATA[<p>The port goes down, comes back, and the next diagnostics poll shows Rx power inside the module's warning thresholds. That reading tells you what the receiver reported after the link recovered. The more useful evidence is what both ends recorded around the drop.</p>
<h2>Read the two directions separately</h2>
<p>On a duplex fiber link, A's transmit power belongs with B's receive power. B's transmit power belongs with A's receive power. If B logs loss of signal, look at A's transmit status and the A-to-B path alongside B's receive reading. On hardware that exposes lane-level diagnostics, save the individual lane readings as well. <a href="https://www.cisco.com/c/en/us/support/docs/routers/network-convergence-system-5500-series/220452-troubleshoot-interface-down-or-flap-issu.html">Cisco's NCS link troubleshooting guide</a> shows how to correlate receive alarms with transmit alarms at the peer.</p>
<p>Digital optical monitoring (DOM), also called digital diagnostic monitoring (DDM), provides measurements such as optical power and module temperature. For SFF-8472 modules, the reported receive power can represent average input optical power or optical modulation amplitude (OMA). Check which quantity the module reports before comparing it with a datasheet limit. Use the alarm and warning thresholds for the installed module, and use its datasheet for the specified operating limits. <a href="https://members.snia.org/document/dl/25916">SNIA SFF-8472, sections 8.8 and 9.4</a></p>
<h2>Put the measurements next to the link events</h2>
<p>Save the physical link up/down events from both switches, with timestamps in the same time zone. Take a second reading of the interface counters over a known interval so you can see which errors are increasing. Where available, capture loss-of-signal or loss-of-lock events and receive CRC/FCS or symbol errors. If the physical interface stayed up while traffic stopped, include forwarding or protocol state in the investigation. <a href="https://www.cisco.com/c/en/us/support/docs/switches/catalyst-9500-series-switches/218397-troubleshoot-port-flaps-on-catalyst-9000.html">Cisco's Catalyst port-flap troubleshooting guide</a></p>
<p>For a link using forward error correction (FEC), track corrected and uncorrected codewords separately. Corrections can accumulate while traffic continues to pass. An increase in uncorrected codewords near the incident gives you another symptom to investigate. Compare intervals of similar length and check for a restart or counter reset before interpreting the difference. <a href="https://anta.arista.com/main/api/tests/interfaces/#verifyfecstatus">Arista's FEC counter definitions and checks</a></p>
<h2>Test the part of the path the evidence points to</h2>
<p>If the optical reading stays steady around the fault, check the port configuration and the supported module combination. Record the exact module part number and host software at both ends. Confirm that the selected speed, lane or breakout mode, and FEC mode are compatible for that link. For optics, check the fiber type and each transmitter's wavelength against the peer's receiver specification. For wavelength-paired single-fiber bidirectional optics, verify that each module's transmit wavelength matches the peer's receive specification. <a href="https://www.cisco.com/c/en/us/support/docs/switches/catalyst-9500-series-switches/218397-troubleshoot-port-flaps-on-catalyst-9000.html">Cisco's port-flap guide</a> · <a href="https://www.cisco.com/c/en/us/products/collateral/interfaces-modules/transceiver-modules/data_sheet_c78-455693.html">Cisco's SFP+ datasheet, including BiDi examples</a></p>
<p>If the evidence points to the fiber path, plan a maintenance window before disconnecting anything. With the laser sources disabled and the link isolated according to site procedures, inspect the connector end faces, clean them if needed, and inspect again before mating. Change one component at a time and collect the same measurements over another interval. <a href="https://www.cisco.com/c/en/us/support/docs/optical/synchronous-digital-hierarchy-sdh/51834-cleanfiber2.html">Cisco's fiber inspection and cleaning procedure</a></p>
<p>A practical incident note fits in a few lines. Record the event time, port and module at each end, the receive reading for each direction, the counter changes, and the one thing you changed. The next person can then compare evidence from the same interval instead of starting over with a fresh power reading.</p>
<p><em>OpenAI Codex assisted with drafting this article. The technical references are linked alongside the relevant guidance.</em></p>
]]></content:encoded></item></channel></rss>