Configuring Service Data Flow Filters
Starting in Junos OS Release 19.3R2, PCC rules are also supported if you have enabled Next Gen Services on the MX240, MX480 or MX960 router with the MX-SPC3 card.
A service data flow (SDF) filter is specified as a matching condition in the from clause of a policy and charging control (PCC) rule. Each SDF filter can have one or more flows associated with it; each flow is a five-tuple match.
If you configure an SDF filter without specifying a remote address, port, port range, or protocol , then the SDF filter matches IP packets that have any value configured for the corresponding attribute. If you configure an SDF filter, you must configure at least one of the following attributes: direction, local port or local port range, protocol, remote address, or remote port or remote port range.
You can configure SDF filters for Junos OS Subscriber Aware or for Junos OS Broadband Subscriber Management, but you use a different CLI hierarchy level for each product.
If you are using Junos OS Subscriber Aware, configure SDF filters at the [edit unified-edge pcef] hierarchy level.
If you are using Junos OS Broadband Subscriber Management, configure SDF filters at the [edit services pcef] hierarchy level.
To configure Layer 3 and Layer 4 SDF filters:
- Specify a name for the SDF filter.
For Junos OS Subscriber Aware:
[edit unified-edge pcef]user@host# set flow-descriptions flow-identifierFor Junos OS Broadband Subscriber Management:
[edit services pcef]user@host# set flow-descriptions flow-identifier - Specify the flow direction for the SDF filter.
Note If you do not specify a flow direction, then the SDF filter is applied in both the uplink and downlink directions.
For Junos OS Subscriber Aware:
[edit unified-edge pcef flow-descriptions flow-identifier]user@host# set direction (uplink | downlink | both)For Junos OS Broadband Subscriber Management:
[edit services pcef flow-descriptions flow-identifier]user@host# set direction (uplink | downlink | both) - Specify a remote address (IPv4 or IPv6) for the SDF filter:
Note You can specify an IPv4 subnet or an IPv6 subnet but not both.
Specify an IPv4 address for the SDF filter.
For Junos OS Subscriber Aware:
[edit unified-edge pcef flow-descriptions flow-identifier]user@host# set remote-address ipv4-address ipv4-addressFor Junos OS Broadband Subscriber Management:
[edit services pcef flow-descriptions flow-identifier]user@host# set remote-address ipv4-address ipv4-addressSpecify an IPv6 address for the SDF filter.
For Junos OS Subscriber Aware:
[edit unified-edge pcef flow-descriptions flow-identifier]user@host# set remote-address ipv6-address ipv6-addressFor Junos OS Broadband Subscriber Management:
[edit services pcef flow-descriptions flow-identifier]user@host# set remote-address ipv6-address ipv6-address
- Specify a protocol (using the standard protocol number)
for the SDF filter.
For Junos OS Subscriber Aware:
[edit unified-edge pcef flow-descriptions flow-identifier]user@host# set protocol numberFor Junos OS Broadband Subscriber Management:
[edit services pcef flow-descriptions flow-identifier]user@host# set protocol number - Specify a local port or a list of port numbers for the
SDF filter. To specify a list of port numbers (up to a maximum of
three), enclose the port numbers in square brackets ([]).
Note You can configure a local port or local port range but not both in the same SDF filter.
For Junos OS Subscriber Aware:
edit unified-edge pcef flow-descriptions flow-identifier]user@host# set local-ports numberFor Junos OS Broadband Subscriber Management:
edit services pcef flow-descriptions flow-identifier]user@host# set local-ports number - Specify a local port range for the SDF filter.
For Junos OS Subscriber Aware:
[edit unified-edge pcef flow-descriptions flow-identifier]user@host# set local-port-range low low-value high high-valueFor Junos OS Broadband Subscriber Management:
[edit services pcef flow-descriptions flow-identifier]user@host# set local-port-range low low-value high high-value - Specify a remote port or list of remote ports for the
SDF filter. To specify a list of port numbers (up to a maximum of
three), enclose the port numbers in square brackets ([]).
Note You can configure a remote port or remote port range but not both in the same SDF filter.
For Junos OS Subscriber Aware:
[edit unified-edge pcef flow-descriptions flow-identifier]user@host# set remote-ports numberFor Junos OS Broadband Subscriber Management:
[edit services pcef flow-descriptions flow-identifier]user@host# set remote-ports number - Specify a remote port range for the SDF filter.
For Junos OS Subscriber Aware:
[edit unified-edge pcef flow-descriptions flow-identifier]user@host# set remote-port-range low low-value high high-valueFor Junos OS Broadband Subscriber Management:
[edit services pcef flow-descriptions flow-identifier]user@host# set remote-port-range low low-value high high-value