Palo Alto Networks firewall is capable of setting the DSCP value to a BGP keepalive packet sent/exchanged with its BGP neighbor. The keepalive packet is initiated by the Palo Alto Networks firewall participating in BGP with other L3 devices.
The IP DSCP value can be selected under the Other Settings section of the Security Profile > Actions tab. The following example shows how Assured Forwarding 12(001100) for class1 is guaranteed:
A security policy must be configured to match the BGP traffic, and then set the DSCP information in the policy options. The BGP peering is established between 1.1.1.1 and 1.1.1.2 with 1.1.1.2 being the remote peer.
Border Gateway Protocol (BGP) keepalive packets are essential for maintaining the stability of BGP peering sessions. If these packets are delayed or dropped, especially during periods of network congestion, BGP sessions can flap. This leads to:
By marking BGP keepalive packets with an appropriate Differentiated Services Code Point (DSCP) value, network administrators can instruct Quality of Service (QoS) mechanisms on all network devices along the path to prioritize this critical control plane traffic. This helps ensure timely delivery and reduces the likelihood of session failure due to congestion.
While the specific DSCP value can vary based on an organization's QoS policy, common practice for network control traffic, including BGP, is to use high-priority markings.
It's crucial that the DSCP markings applied by the Palo Alto Networks firewall are recognized and honored by downstream devices in the network path for the QoS policy to be effective.