Rule-based Forwarding (RBF): Improving Internet's flexibility and security

Lucian Popa, Ion Stoica, Sylvia RatnasamyHotNets 2009

Introduction

The current Internet architecture faces a fundamental "tussle" between flexibility and security. While there is a growing need for features like multi-path routing, multicast, and middlebox chaining, existing solutions often sacrifice one for the other. For instance, "active networks" provide high flexibility but are notoriously difficult to secure, whereas "capability-based" systems offer security at the cost of rigid, single-path forwarding. Rule-based Forwarding (RBF) is proposed as a novel data plane architecture that achieves both high flexibility and robust security by replacing traditional destination-based IP routing with verifiable "packet rules."

Comparison of RBF with other network architectures across security and flexibility metrics.

As shown in the comparative analysis above, RBF stands out by providing comprehensive security features—such as receiver reachability control and host DoS protection—while maintaining the flexibility to support multiple paths and router extensions without requiring routers to maintain per-flow state.

Architecture and Methods

At the core of RBF is the concept of a packet rule: a small, verifiable program carried directly within the packet header. Instead of a simple destination IP address, a host transmits a packet governed by a rule that specifies how it should be handled at each hop.

The Rule Structure

An RBF rule is a simple if-then-else construct. It utilizes packet attributes (e.g., ports, custom tags) and router attributes (e.g., congestion levels, local IP addresses) to determine whether to forward, drop, or update the packet's internal state. This design allows the network to function as a distributed finite state machine where the state is carried in the packet itself, keeping routers stateless.

RBF packet format and an example of stateful forwarding through a router (R1) without per-flow state.

Rule Distribution and Certification

To ensure security and scalability, RBF leverages existing DNS infrastructure for rule distribution; a DNS lookup for a destination returns its associated rule. Crucially, every rule must be certified by a third-party Rule Certification Entity (RCE). The RCE performs static analysis to ensure rules are well-formed (e.g., no infinite loops) and verifies that all involved parties (receivers and middleboxes) have consented to the rule. Routers at trust boundaries verify the RCE’s digital signature and check the rule's "lease" (expiration) before execution.

Security and Flexibility Analysis

RBF adopts a "default-off" security posture. Any packet lacking a valid, certified rule is automatically dropped at the network edge. This inherently mitigates many Denial of Service (DoS) attacks, as attackers cannot flood a destination without a rule explicitly authorized by that destination. Furthermore, by separating policy (handled by RBF) from reachability (handled by the underlying IP layer), RBF allows for complex forwarding logic—such as directing traffic through a specific sequence of middleboxes—without compromising the underlying routing stability.

Evaluation

The authors evaluated RBF using a prototype implemented with the Click modular router on the RouteBricks framework. Key findings include:

  • Performance: The prototype achieved forwarding speeds of up to 23 Gbps on standard server hardware.
  • Overhead: Most common rules are compact (60-70 bytes). While rule interpretation introduces some overhead, it results in less than 30% throughput degradation for small packets and is negligible for packets over 300 bytes.
  • Scalability: By caching signature verification results, routers minimize cryptographic overhead, performing expensive checks only for the initial packet of a flow.

Conclusion

Rule-based Forwarding (RBF) offers a promising path toward a more flexible and secure Internet. By embedding certified, programmable logic into packet headers, it empowers end-users with control over their traffic while providing routers with the tools to maintain network safety without the burden of per-flow state. While deployment requires significant infrastructure updates, the performance and security benefits present a compelling case for reimagining the Internet's data plane.

Summary updated

BibTeX
@inproceedings{popa2009rule,
  author = {Lucian Popa and Ion Stoica and Sylvia Ratnasamy},
  title = {{Rule-based Forwarding (RBF): Improving Internet's flexibility and security}},
  booktitle = {HotNets},
  year = {2009},
}
Figure