Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2399004ba01b86e

Jump to content

// Workers AI · dad joke modeWhy was policy-based routing popular? It routed for a good cause.

From Wikipedia, the free encyclopedia

In computer networking, policy-based routing (PBR) is a technique used to make routing decisions based on policies set by the network administrator.

When a router receives a packet, it normally decides where to forward it based on the destination address in the packet, which is then used to look up an entry in a routing table. However, in some cases, there may be a need to forward the packet based on other criteria. For example, a network administrator might want to forward a packet based on the source address, not the destination address.[a] This permits routing of packets originating from different sources to different networks even when the destinations are the same and can be useful when interconnecting several private networks.

Policy-based routing may also be based on the size of the packet, the protocol of the payload, or other information available in a packet header or payload.

In the Cisco IOS, PBR is implemented using route maps.[1] Linux supports multiple routing tables since version 2.2.[2] FreeBSD supports PBR using either IPFW, IPFilter or OpenBSD's PF.

Examples

[edit]

PBR can be used to redirect traffic to a proxy server by using a PBR-aware L3-switch (router). In such a deployment, specific source traffic (e.g., HTTP, FTP) can be redirected to a cache engine. This is known as virtual inline deployment.

Notes

[edit]
  1. Source-specific routing, in which forwarding decisions by the network consider the source address, should not be confused with source routing, in which the sender of a packet specifies the path it takes through the network.

References

[edit]
[edit]