Skip to content
Contents
GuidesOpenWrt

What do the CPU, switch chip and NPU each do in a router?

Trace the traffic before comparing routers. A file transfer between LAN ports, traffic routed to another subnet, VPN decryption and a DNS request can take four different paths through the same box. A switch port rate, CPU clock speed or NPU specification explains only part of each path.

Trace the traffic before comparing routers. A file transfer between LAN ports, traffic routed to another subnet, VPN decryption and a DNS request can take four different paths through the same box. A switch port rate, CPU clock speed or NPU specification explains only part of each path.

Follow each path to identify which component handles the work and what evidence shows that acceleration is active. Throughput figures require a measurement on the actual device.

First, clarify what a CPU is, and what comprises a SoC.

The CPU is the processor core responsible for executing general-purpose programs. System management, certain network protocol processing, and native applications on a router utilize the CPU; however, it does not follow that every data packet must be fully forwarded by the CPU.

SoC is a system-on-chip that integrates multiple functions into a single chip. It may include a CPU, memory controller, network interface, and dedicated acceleration modules; the specific combination varies across different SoC designs. Switching and wireless chips may be located outside the SoC. Therefore, the "CPU model" and "full network capability" listed in the specifications refer to different pieces of information.

When reading the block diagram, look inward from the external ports: determine which PHY or switch module each port connects to, how the switch module connects to the CPU, and where the other side of the port connects. Only when these connections are explicitly labeled can we discuss whether multiple ports share the same link. If the diagram is missing such connections, treat the relationships as unknown; do not assume each port has independent bandwidth based on port count.

Four common services, each corresponding to a different issue

Your operation First, it's necessary to clarify the path. This result cannot directly replace what?
Two computers on the same network segment transfer files via LAN ports. Does the frame get forwarded by switch hardware, or does it require a software bridging path? WAN routing, NAT, or VPN performance
LAN client accesses a different subnet or the Internet Three-layer routing, rule processing, and offload path when conditions are met The processing speed of router's on-board application
Client requests DNS, proxy, or file services from the router The connection terminates in a process running on the router. The maximum throughput for forwarding traffic from one interface to another interface
Router as a VPN endpoint Encryption, decryption, encapsulation, routing, and actual software implementation jointly participate Ordinary plaintext forwarding performance

The Linux DSA Architecture Documentation distinguishes user-facing switch ports from the CPU or management port. Seeing a LAN interface in Linux does not prove the CPU handles every frame between ports. Check the chip, driver, bridge and VLAN configuration to establish whether frames are switched in hardware.

If the test program runs directly on the router, the router also serves as a communication endpoint. To study forwarding behavior between two end hosts, adopt the layout "Host A → Router → Host B" and verify that traffic from A and B indeed passes through the test routing path. Simply connecting the two machines to the same switched network may yield a different result.iperf3 official documentation Define it as a throughput measurement tool between client and server; the tool name itself does not guarantee the correctness of the test path.

NPU: first check the full name, then see what tasks it receives

In network equipment, NPU can mean Network Processing Unit. MediaTek uses that term on its Filogic 880 Product Page and lists the network processor separately from the general-purpose CPU. The product description identifies the hardware block. Check the board and OpenWrt driver separately to find out which functions are enabled.

In AI documentation, NPU generally means Neural Processing Unit. The Linux Rockchip Rocket Driver Documentation describes the RK3588 accelerator and how its driver serves user-space compute jobs. That information does not establish support for NAT, PPPoE or VPN offload.

Evaluate based on three fields: the full name as written by the vendor, the input task, and the accompanying software. Is the input data packets and forwarding rules, or neural network models and tensors? Does the documentation point to network drivers, or to model runtime? The AI computing TOPS cannot be converted to network PPS or throughput; similarly, the presence of a network acceleration module does not prove it can run AI models. For product pages that only list "NPU" without further explanation, continue to refer to the original chip documentation; do not include this item in the performance scoring at this time.

Hardware present, firmware usable, current traffic in use—three checks required

Step 1: Verify hardware identity. Record the overall device model, board revision, complete SoC model, and port connections. Similar product names or same-series chips are insufficient to prove identical layout.

Step 2: Verify software implementation. Record firmware source, version, kernel, relevant drivers, and required features. The upstream Linux documentation describes mechanisms and cannot substitute the feature support list of the target OpenWrt image. Mark a module as "not verified" if it has not been reviewed; only specific versions with verifiable evidence shall be listed under their respective version constraints.

Step 3: Verify actual traffic. Linux flowtable document Distinguish between software fast path and hardware offload, and explain that traffic is routed through different paths based on whether it matches or does not match a lookup. In applicable implementations, the connection state flags OFFLOAD and HW_OFFLOAD have distinct meanings. A reduction in CPU utilization, or the presence of a toggle switch in the interface, alone is insufficient to conclusively prove that a specific flow is being forwarded in hardware; further validation must be combined with the implementation's state, counters, and end-to-end behavior.

If hardware exists but driver information is unclear, the next step is to supplement software evidence; if software support is present but the specified connection does not match, the next step is to verify the protocol, rules, and path; if the match is valid but the application remains slow, return to the endpoints, links, and the application itself to identify bottlenecks. Do not skip steps among these three scenarios.

Use a path card to determine the next step

What is the business?
Who initiates and receives the traffic?
Which ports are involved in the flow?
On which device does the traffic terminate?
What result must be verified to confirm proper operation?

After completing the card, state the conclusion in a constrained statement: "The path is confirmed under this configuration," "The software support for this module has not been verified," or "Additional forwarding measurements under the same conditions are required." Only on the basis of such a statement can the next step be determined—whether to inspect port topology, evaluate application compatibility, or schedule a performance comparison in an isolated environment.

Measure router device capacity with packets per second and connection counts

Reference

Explore hardware

Comments