Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuring Service Data Flow Filters

Note:

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.

Note:

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:

  1. Specify a name for the SDF filter.

    For Junos OS Subscriber Aware:

    For Junos OS Broadband Subscriber Management:

  2. 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:

    For Junos OS Broadband Subscriber Management:

  3. 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:

      For Junos OS Broadband Subscriber Management:

    • Specify an IPv6 address for the SDF filter.

      For Junos OS Subscriber Aware:

      For Junos OS Broadband Subscriber Management:

  4. Specify a protocol (using the standard protocol number) for the SDF filter.

    For Junos OS Subscriber Aware:

    For Junos OS Broadband Subscriber Management:

  5. 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:

    For Junos OS Broadband Subscriber Management:

  6. Specify a local port range for the SDF filter.

    For Junos OS Subscriber Aware:

    For Junos OS Broadband Subscriber Management:

  7. 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:

    For Junos OS Broadband Subscriber Management:

  8. Specify a remote port range for the SDF filter.

    For Junos OS Subscriber Aware:

    For Junos OS Broadband Subscriber Management: