Wi-Fi

Multiple RSN Overriding (MRSNO) & RSNO in Wi-Fi 7

How the RSN Override (RSNOE), RSN Override 2 (RSNO2E) and RSNXE Override (RSNXOE) elements let one Wi-Fi 7 AP advertise WPA2, WPA3 and SAE-EXT-KEY security from a single BSS, and across every link of an AP MLD, without breaking older clients.

· 13 min read

Circuit

Wi-Fi Antenna Circuits: How They Work and Two You Can Build

What sits between a Wi-Fi chip and the air: the balun, front-end module, filter, matching network and antenna. Covers wavelengths at 2.4, 5 and 6 GHz, 50 Ω, VSWR and return loss, a worked L-match, PCB inverted-F antennas, connectors and coax loss. Then two builds: a quarter-wave ground-plane antenna on an SMA connector and an 11 dBi biquad, plus designing for the 6 GHz band of Wi-Fi 6E and Wi-Fi 7, with tuning, testing and legal limits.

· 27 min read

Tool · Wi-Fi

Wi-Fi Topology Visualizer

Interactive tool: plan a home or office network on a floor plan and see signal through walls, mesh backhaul, client steering, channel reuse and end-to-end throughput.

· Interactive tool

Circuit

Build Your Own Radio Receiver: AM and FM

How AM and FM radio reception work, then three builds you can make at home: a battery-free crystal radio with a hand-wound coil, a one-chip MK484 AM radio driving a speaker through an LM386 amplifier, and a single-chip CXA1691 AM/FM superheterodyne radio tuned by a knob, with no microcontroller. Parts lists, coil winding, alignment and troubleshooting.

· 23 min read

Machine Learning

Large Language Models from Scratch: A Study Guide

A deep, hands-on guide to how LLMs work, following hedy, a small GPT built from scratch in PyTorch: next-token prediction, BPE tokenization, the transformer and attention, RoPE, RMSNorm and SwiGLU, KV-cache and GQA, training at scale, honest evaluation, SFT and LoRA, DPO, online RL with GRPO, and scaling laws, each with the math, the code and a measured experiment.

· 36 min read

Network Protocols

Enterprise Network Architecture

How enterprise campus networks are designed: the hierarchical access, distribution and core model; two-tier and three-tier designs and campus building blocks; Layer 2 versus routed access; the simplified campus with VSS, StackWise Virtual and EtherChannel; and SD-Access fabrics.

· 14 min read

Network Protocols

Overlay Tunnels: GRE, IPsec, LISP and VXLAN

A practical guide to overlay tunnels: underlay and overlay networks, GRE encapsulation, MTU and recursive routing; IPsec AH and ESP, transport and tunnel mode, IKEv1 and IKEv2, GRE over IPsec and VTI on Cisco IOS; LISP EIDs, RLOCs and the mapping system; VXLAN VNIs and VTEPs, with Linux equivalents.

· 28 min read

Wi-Fi

Enterprise Wireless: RF, Architecture, Roaming, Security and Troubleshooting

A practical guide to enterprise Wi-Fi from the CCNP core: RF basics, dB math, EIRP and link budgets, channels, SNR and modulation, 802.11 standards and MIMO; autonomous, centralized, embedded and cloud architectures, CAPWAP and AP join, antennas; intra- and intercontroller roaming and location; Open, PSK, 802.1X/EAP and WebAuth; and troubleshooting clients and APs from the WLC.

· 29 min read

Network Protocols

Border Gateway Protocol (BGP)

A protocol-level guide to BGP: autonomous systems and ASNs, path-vector loop prevention, TCP sessions, eBGP and iBGP, messages and the finite-state machine, path attributes and the RIBs, summarization, MP-BGP for IPv6, multihoming, prefix lists, regex and route maps, communities, the best-path algorithm, with Cisco IOS and FRRouting configuration.

· 28 min read

Network Protocols

IP Services: NTP, First-Hop Redundancy and NAT

A practical guide to three IP services every network relies on: NTP strata, offset and peers; first-hop redundancy with object tracking, HSRP, VRRP and GLBP; and NAT terms, static, pooled and port address translation, with Cisco IOS and Linux configuration.

· 19 min read

Network Protocols

IP Multicast: IGMP, PIM and Rendezvous Points

A protocol-level guide to IP multicast: why one-to-many delivery saves bandwidth, group addressing and the IP-to-MAC mapping, IGMPv2 and IGMPv3, IGMP snooping, distribution trees and RPF, PIM dense, sparse, SSM and bidirectional modes, rendezvous points with static RP, Auto-RP and BSR, with Cisco IOS and Linux configuration.

· 25 min read

Network Protocols

Open Shortest Path First (OSPF)

A protocol-level guide to OSPF: link-state flooding and SPF, packet types, neighbor states and adjacency rules, DR and BDR, network types, areas and LSA types, path selection, summarization and filtering, default routes, OSPFv3 for IPv6 and IPv4, with Cisco IOS and FRRouting configuration.

· 25 min read

Network Protocols

Quality of Service (QoS)

A practical guide to QoS: bandwidth, delay, jitter and loss; best effort, IntServ and DiffServ; classification, CoS and DSCP marking, per-hop behaviors and trust boundaries; Wi-Fi QoS; policing, shaping and token buckets; CBWFQ, LLQ, WRED and ECN, with Cisco MQC and Linux tc examples.

· 22 min read

Network Protocols

Spanning Tree Protocol

A protocol-level guide to the Spanning Tree Protocol family: why Layer 2 loops are fatal, how bridges elect a root and assign port roles, the BPDU format, STP timers and states, RSTP rapid transitions, MSTP instances and region boundaries, root placement and tuning, protection features, Cisco IOS configuration and the Linux bridge.

· 28 min read

Circuit

Circuit Theory

Ohm’s law, Kirchhoff’s laws, mesh and node analysis, and the network theorems used to work out the current and voltage anywhere in a circuit.

· 10 min read

Wi-Fi

Wi-Fi Captive Portal

A captive portal is a Layer-3 gateway policy, not a Wi-Fi feature. The client associates and gets an address normally, and a stateful enforcement point blocks forwarding…

· 38 min read

Wi-Fi

Hostapd Architecture

How hostapd really works inside an AP: design, code paths, and lessons from 15 years of shipping Wi-Fi

· 13 min read

Wi-Fi

Wireless Distributed System (WDS)

How WDS links two access points over the air: the 4-address frame format, static and dynamic WDS, the connection flow, and the Linux hostapd / nl80211 implementation down to the firmware.

· 9 min read

Wi-Fi

802.11r Fast Roaming

On a WLAN, when a STA moves between different APs, the service continuity and data transmission stability must be ensured. In traditional roaming technologies, when a STA…

· 8 min read

Wi-Fi Mesh

PrplMesh Architecture

A deep-dive into the prplMesh architecture: WFA EasyMesh fundamentals, the BeeRocks component stack, deployment modes, IPC mechanisms, and a practical usage guide.

· 19 min read

Software Architecture

Software Architecture and Technology of Large Scale Systems

A software leader's guide to large scale systems: how to move from developer to architect, how to evaluate an architecture, the core techniques for scalability, reliability, performance, data and security, and a layered router platform as a worked example.

· 22 min read

OpenWrt

Build Package in OpenWrt

When working with OpenWrt, one of the most common tasks is integrating an external feed into the build tree, then building it into .ipk packages or embedding it directly…

· 4 min read

OpenWrt

Network Configuration in OpenWrt

From UCI to netifd, from bridge/VLAN/DSA to firewall and Wi-Fi: how a single option line in /etc/config/network becomes packets moving through the kernel.

· 49 min read

Embedded Linux

Bootloader In The Embedded Linux

How an embedded Linux system boots: BootROM, SPL, U-Boot, device tree, storage layouts, secure boot, and how to debug a board that does not start.

· 20 min read

Linux Networking

Linux Network Stack

The Linux network stack is the most complex subsystem within the Linux kernel, responsible for the entire packet processing workflow from the moment the NIC receives data…

· 14 min read

Personal

The Engineering Bookshelf

A curated reading list for engineers: software design, algorithms, Linux and operating systems, programming, networking and RF, electronics, and a few classics on strategy, with a suggested reading path.

· 5 min read

Personal

My Poetry

CatBa, HaiPhong, 2026-04-27

· 1 min read

Linux Networking

Linux Netfilter and Traffic Control

Netfilter is a framework inside the Linux kernel which offers flexibility for various networking-related operations to be implemented in form of customized handlers.…

· 3 min read

Personal

Cloudy Sky on Samu Mountain Peak

In the last days of November 2025, as the weather grew colder, bringing with it the increasingly evident atmosphere of winter, I suddenly felt the need to take a trip to…

· 4 min read

Wi-Fi

Wi-Fi 7 (802.11be)

Continuous innovation in Wi-Fi technology aims to meet the increasing demands of customers, fueled by the digitalization of homes, enterprises, and hotspot areas. As such…

· 8 min read

Programming & Tools

C and Rust

Preprocessing is the first pass of any C compilation. It removes comments, expands include-files and macros, and processes conditional compilation instructions. This can…

· 5 min read

Programming & Tools

Logging and Log Management

What a good log message looks like, how to choose log levels, how syslog, journald and logread move logs on Linux and embedded devices, and how to decide what to collect, keep and alert on.

· 9 min read

Network Protocols

Virtual Private Network

VPN stands for the Virtual Private Network. A virtual private network (VPN) is a technology that creates a safe and encrypted connection over a less secure network, such…

· 9 min read

Network Protocols

Link Layer Discovery Protocol (LLDP)

How LLDP (IEEE 802.1AB) lets neighbouring devices advertise who they are and which port they are on: frame and TLV formats, timers, the transmit and receive state machines, and how to use it on Linux, switches and access points.

· 14 min read

System Design

Access Point System

What it takes to design a production Wi-Fi access point: SoC and RF hardware, embedded Linux, the Wi-Fi software stack, management, security, testing, certification and manufacturing, and how the pieces constrain each other.

· 13 min read

Wi-Fi

Co-Channel Interference

What co-channel interference is and how it differs from adjacent-channel and non-Wi-Fi interference: CCA thresholds, deferral and airtime, how channel occupancy limits throughput, how to measure it, and how channel planning, power control, BSS coloring, coordinated channel selection and MLO reduce it.

· 9 min read

Wi-Fi

802.11k and 802.11v

How 802.11k (Radio Resource Measurement) and 802.11v (BSS Transition Management) help clients find and choose the next AP: Neighbor Reports, Beacon Reports, BTM Request and Response, the frame formats, the status codes, how to capture and debug them, and how they combine with 802.11r.

· 17 min read

Wi-Fi

Wi-Fi Protected Access 3 (WPA3)

In June 2018, the Wi-Fi Alliance officially announced WPA3 (Wi-Fi Protected Access 3), the most significant overhaul of wireless security in over a decade. The…

· 9 min read

Wi-Fi

Block Ack

How Block Ack works in 802.11: agreement setup with ADDBA, the Block Ack bitmap, immediate and delayed modes, A-MPDU, teardown and troubleshooting.

· 9 min read

Wi-Fi

Multiple Input Multiple Output (MIMO)

How Wi-Fi gets faster with wider channels and more antennas: channel bonding, primary and secondary channels and dynamic bandwidth; SISO, SIMO, MISO and MIMO; diversity, spatial multiplexing and spatial streams; transmit beamforming and channel sounding; SU-MIMO and MU-MIMO from 802.11n to Wi-Fi 7.

· 11 min read

Wi-Fi Mesh

EasyMesh System

WiFi Mesh network (wireless mesh network), also known as “multi-hop” network, is a new wireless networking solution developed based on WiFi technology. Unlike traditional…

· 22 min read

Programming & Tools

GNU Debugger

Debuggers are just tools that allow you to find the false assumption. Your program runs under the debugger's control, allowing you to stop your program and examine memory…

· 22 min read

Wi-Fi

Wi-Fi Overview

A practical overview of 802.11 frame types, WPA2/WPA3 security, the connection flow, 4-way handshake troubleshooting, DFS, MCS and CCA.

· 12 min read

Embedded Linux

Out Of Memory

It has one simple task, check if there is enough available memory to satisfy, verify that the system is truely out of memory and if so, select a process to kill

· 15 min read

Embedded Linux

Inter-Process Communication

IPC is a mechanism using which two or more process running on the same machine exchange their personal data with each other. Communication between processes running on…

· 11 min read

Embedded Linux

In-Memory Layout of a Program (Process)

In this post, I will explain how a program is laid out in main memory for execution. We assume a 32-bit x86 architecture running a multitasking Linux OS. (Some details…

· 7 min read

Programming & Tools

Vi & Vim: A Practical Guide

A comprehensive reference for editing text efficiently with vi and Vim

· 6 min read