Abstract
Rule-Based Forwarding (RBF) is a novel networking architecture that replaces traditional destination-based IP routing with "packet rules"—compact, certified programs carried within each packet. By decoupling high-level steering logic from hop-by-hop delivery, RBF enables flexible, policy-compliant network behaviors such as middlebox steering and robust DDoS protection.
Introduction
The modern Internet relies on a "best-effort" forwarding model where senders specify only a destination address. This rigid structure complicates the implementation of advanced networking requirements, including routing through specific security middleboxes, performance-based path selection, or mitigating distributed denial-of-service (DDoS) attacks. While previous "Active Networks" initiatives sought to add flexibility, they often introduced security risks or excessive complexity. Rule-Based Forwarding (RBF) addresses these challenges by providing a flexible yet secure framework where all parties—sources, destinations, and ISPs—can cryptographically verify and enforce routing policies.
System Architecture and Methods
RBF is built upon a layered architecture designed to complement existing IP infrastructure. It introduces a "Rule Forwarding" layer that operates above the standard IP layer, handling high-level steering while IP manages hop-by-hop delivery.
The system relies on four core pillars:
- Packet Rules: Packets carry a "rule"—a restricted if-then-else program. These rules can query packet headers and router attributes (e.g., congestion) to determine the next action, such as forwarding, dropping, or invoking a specialized function like an IDS.
- Rule Certification Entities (RCEs): To ensure security, rules must be certified by a trusted third party. An RCE only signs a rule if all involved entities (routers, middleboxes) have agreed to the specified behavior.
- In-Packet Distribution: Rules are embedded directly in packet headers, eliminating the need for complex out-of-band signaling to maintain state in routers.
- Layered Integration: As shown in the architecture, RBF allows for the seamless invocation of specialized forwarding functions (e.g., caching, multicast) based on the evaluated rules.
Key Insights: Policy-Driven Flexibility
A fundamental insight of RBF is that network flexibility must be balanced with policy enforcement. Users can choose paths, but ISPs and destinations maintain the power to constrain those choices through rule certification.
RBF enables several powerful use cases:
- DDoS Protection: By extending DNS to return a destination's rule instead of just an IP, destinations can implement "default-off" policies. Traffic is only accepted if it carries a rule authorized by the destination and certified by an RCE.
- Middlebox Steering: RBF treats middleboxes as first-class citizens. Rules can explicitly mandate that traffic pass through a firewall or scrubber before reaching its final destination.
- Safe Execution: The rule language is intentionally limited (e.g., no backward jumps) to ensure termination and prevent memory corruption, making it a safe form of active networking.
Evaluation and Results
The RBF prototype was evaluated using real-world Abilene backbone traces and malicious traffic simulations. Key findings include:
- Performance: RBF forwarding on software routers (Click/RouteBricks) is less than 15% slower than standard IP for small packets, with negligible overhead for large packets. Rule execution typically requires only 120 to 600 CPU cycles.
- Overhead: Rules add an average of 85 bytes to packet headers, representing a 13% overhead for a standard 630-byte packet.
- Scalability: A single RCE server can certify over 16,000 rules per second, indicating that a cluster could support large-scale ISP deployments.
Limitations and Future Outlook
While promising, RBF faces several deployment challenges. It assumes that source IP addresses cannot be spoofed, which requires widespread ingress filtering. Additionally, the system necessitates a global Public Key Infrastructure (PKI) for RCEs and routers. The increased header size may also lead to packet fragmentation if it exceeds the network's Maximum Transmission Unit (MTU). Future work will focus on incremental deployment strategies and optimizing the PKI overhead for global-scale networks.
Summary updated