QoS Policy Propagation on BGP (QPPB) is a special Multi-Field (MF) classification application.
The following example uses the network shown in Figure 1 to illustrate how QPPB is introduced. In this networking, the AS 400 is a high priority network. All packets transmitted across AS 400 must be re-marked with an IP precedence for preferential transmission. To meet such requirements, edge nodes (Node-A, Node-B, and Node-C) in AS 100 must be configured to re-mark the IP precedence of packets destined for or sent from AS 400. The edge interface connecting to AS 400 on Node-C must be configured to re-mark packets. Node-A or Node-B must be configured to perform traffic classification for packets destined for an IP address in AS 400. If a large number of IP addresses or address segments are configured in AS 400, Node-A and Node-B encounter excess traffic classification operations. In addition, if the network topology is prone to changes, a large number of configuration modifications are required.
To simplify configuration on Node-A and Node-B, QPPB is introduced. QPPB allows packets to be classified based on AS information or community attributes.
QPPB, as the name implies, applies QoS policies using Border Gateway Protocol (BGP). The primary advantage of QPPB is that BGP route attributes can be set for traffic classification by the route sender and the route receiver must only configure an appropriate policy for receiving routes. The route receiver sets QoS parameters for packets matching the BGP route attributes and then implements corresponding traffic behaviors before data forwarding. When the network topology changes, the BGP route receiver does not modify local configurations if the route attributes of the advertised BGP routes do not change.
As shown in Figure 2, Node-A and Node-C are IBGP peers in AS 100. Node-A is configured to re-mark IP precedence for packets destined for or sent from AS 400. The QPPB implementation is as follows:
The preceding process demonstrates that QPPB does not transmit the QoS policy along with the BGP route information. The route sender sets route attributes for routes to be advertised, and the route receiver sets the QoS policy based on the route attributes of the destination network segment.
As shown in Figure 3, QPPB allows the edge devices in AS 100 to classify inter-AS packets. For example, to configure rate limit on Node-C for packets transmitted between AS 200 and AS 400, perform the following operations:
FIB-based packet forwarding applies to upstream traffic but not downstream traffic. Therefore, QPPB is enabled on the upstream interface of traffic.
As shown in Figure 4, PEs connect to multiple VPNs. A PE can set route attributes, such as community, for a specified VPN instance before advertising any route. After receiving the routing information, the remote peer imports the route and the associated QoS parameters to the FIB table. This enables the traffic from CEs to be forwarded based on the corresponding traffic behaviors. In this manner, different VPNs can be provided with different QoS guarantees.
As shown in Figure 5, QPPB is implemented as follows for user-to-ISP traffic accounting:
As shown in Figure 6, QPPB is implemented as follows for ISP-to-user traffic accounting: