Marcio Cunha

Dynamic Traffic Routing and Link Redundancy in Industrial SD-WAN Networks with OpenWRT

Learn how to design resilient industrial networks combining dynamic routing and OpenWRT to ensure high availability in critical manufacturing automation environments.

Marcio Cunha•5 min
Also available in:EspañolPortuguês
Summary
  • Industrial environments require severe fault tolerance that conventional internet connections simply cannot handle on their own.
  • Using OpenWRT turns low-cost routers into enterprise gateways capable of running advanced routing protocols.
  • SD-WAN technology abstracts physical infrastructure, enabling automated management of multiple simultaneous communication links.
  • Protocols like BGP manage real-time route exchanges, redirecting traffic instantly when a link drops.
  • Network segmentation protects programmable logic controllers against malicious access without sacrificing operational speed.

The Connectivity Challenge in Industrial Networks

Keeping machines running on a production line requires a network infrastructure that cannot fail under any circumstances. In practice, this means that if an internet cable is severed by a forklift, control systems must not lose connection with central computers. In factory environments, losing a data packet can halt a robotic arm or corrupt records of critical measurements. Dynamic routing solves this problem by teaching routers to automatically find alternative paths when the primary route stops working.

Modern industrial networks mix old and new technologies, ranging from serial cables to satellite connections and 5G cellular networks. The major obstacle is making this entire ecosystem work in harmony without manual human intervention during every minor fluctuation. When a primary link experiences high latency — which is the delay in delivering data —, the system needs to divert traffic before human operators notice any slowdown in control panels.

SD-WAN Architecture Applied to the Factory Floor

SD-WAN stands for Software-Defined Wide Area Networks, a technology that separates control intelligence from physical cables and routers. In practice, it works like an intelligent GPS for factory data, constantly evaluating which path is fastest and safest. Instead of relying on rigid manual configurations, the system manages fiber optic, radio, and 4G links as if they were a single flexible and giant pipe.

Implementing this approach in industry drastically reduces operational costs by eliminating exclusive reliance on dedicated data circuits that tend to be expensive. With policy-based routing, security camera video traffic can use cheap consumer internet connections, while critical machine commands travel obligatorily over the main fiber. If the fiber drops, commands instantly migrate to a satellite backup link without corrupting data.

The Role of OpenWRT as an Edge Gateway

OpenWRT is a Linux-based operating system designed for routers, known for its lightweight footprint and massive customization capability. In practice, it turns affordable hardware equipment into a powerful enterprise router capable of running advanced network protocols. In industrial environments where budgets are tight and space in electrical panels is minimal, using compact hardware boards with OpenWRT is a highly economical and reliable alternative.

Unlike closed software that comes pre-installed on commercial routers, OpenWRT allows you to install specific encryption, tunneling, and monitoring packages. Engineers can audit all code running on the equipment, ensuring there are no backdoors or hidden vulnerabilities. This perfectly meets the rigorous security standards required in power plants, chemical industries, and automotive factories.

Configuring Dynamic Routing with BGP and OSPF

For redundancy to actually work, routers need to talk to each other and discover the best path on their own. This is where dynamic routing protocols come in, such as OSPF for the factory's internal network and BGP for connection to headquarters or the cloud. OSPF stands for Open Shortest Path First, a protocol that constantly calculates the shortest and fastest route between local devices.

Below is an example of a basic configuration for the FRRouting routing daemon on OpenWRT to activate the OSPF protocol, allowing the network to heal itself if a cable is disconnected:

router ospf
 network 192.168.10.0/24 area 0
 passive-interface default
 no passive-interface br-lan
!

In practice, this code snippet instructs the router to announce its presence to other equipment on the internal automation network. If a neighbor router stops responding for a few seconds, the others update their internal tables and send data through another path. This continuous exchange of messages ensures that the factory network remains resilient to unexpected physical failures.

Failover and Load Balancing Strategies

Load balancing distributes the flow of data among several available internet links, optimizing bandwidth usage. However, in industrial networks, randomly splitting packets can cause packet-arrival order issues, harming protocols that require real-time responses. Therefore, the safest approach is active-passive failover or application-based steering, where the secondary link remains idle waiting for a primary connection outage.

When we configure OpenWRT to monitor link health through continuous ping tests to external servers, the system detects drops within seconds. If the test server fails three consecutive times, the routing table is rewritten automatically. Industrial traffic is instantly redirected to the redundant link, keeping machinery connected to the supervisory center without manual intervention.

Segmentation and Security in Mixed Industrial Networks

Mixing office data with industrial machine data is a severe security mistake that facilitates cyber attacks. Network segmentation divides infrastructure into isolated zones through virtual local area networks called VLANs. With OpenWRT, we can create strict firewall rules that prevent any unwanted traffic from coming from the administrative computer network to the factory floor.

Furthermore, the use of encrypted virtual private networks ensures data travels securely even when passing through public internet connections. This protects company intellectual property and prevents external intruders from sabotaging production processes. Security goes beyond physical barriers, incorporating robust logical checkpoints at every edge connection point. To complement this implementation in production environments, see our related technical analyses on Traffic Engineering in Industrial Mesh Networks with Dynamic Routing Based on Link Availability and Implementing Dynamic Routing in Industrial Networks with OSPF and Ring Media Redundancy.

Final Thoughts on Operational Resilience

Investing in dynamic routing and redundancy with OpenWRT in industrial environments transforms a company's operational stability. The combination of flexible hardware with mature open-source software reduces dependence on expensive proprietary vendors. In practice, engineers gain total control over data flow, ensuring production never stops due to connectivity failures.

Careful planning of network topology, combined with regular simulated failure testing, ensures the system responds exactly as expected in emergency situations. As Industry 4.0 advances, having a flexible and intelligent network infrastructure is no longer a differentiator but a fundamental pillar for any competitive business.