Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

Configuring CoS to Manage VoIP Traffic When Running MX Series Router Cloud CPE Services

This procedure configures the CoS multifield classifier to classify incoming voice over IP (VoIP) traffic to the corresponding CoS forwarding class. A firewall filter classifies incoming Session Initiation Protocol (SIP) and Real-Time Transport Protocol (RTP) VoIP traffic.

Before you begin, make sure you have completed the steps for the cCPE common configuration. See Configuring the Common Configuration for MX Series Router Cloud CPE Services.

Complete the following tasks to configure the multifield classifier:

  1. Configuring a Firewall Filter to Classify SIP VoIP Traffic
  2. Configuring a Firewall Filter to Classify RTP Traffic for MX Series Router Cloud CPE CoS Services
  3. Applying the SIP and RTP Firewall Filters for MX Series Router Cloud CPE CoS Services

Configuring a Firewall Filter to Classify SIP VoIP Traffic

To configure an IPv4 firewall filter to classify session initiation protocol (SIP) VoIP traffic to a named forwarding class:

  1. Configure an IPv4 firewall filter that checks for packets from the UDP protocol.
    [edit]user@host# edit firewall family inet filter voip-filter term sip fromuser@host# set protocol udp
  2. Configure the same IPv4 firewall filter to check for packets from the TCP protocol.
    [edit firewall family inet filter voip-filter term sip from]user@host# set from protocol tcp
  3. Specify which port is used for UDP and TCP traffic.
    [edit firewall family inet filter voip-filter term sip from]user@host# set port 5060
  4. Classify the UDP and TCP packets to the named forwarding class.
    [edit firewall family inet filter voip-filter term sip from]user@host# up[edit firewall family inet filter voip-filter term sip]user@host# set then forwarding-class cos-voice
  5. Specify that packets matching the filter conditions are accepted.
    [edit firewall family inet filter voip-filter term sip]user@host# set then accept
  6. Verify the configuration.
    user@host# show
    from {
        protocol [ udp tcp ];
        port 5060;
    }
    then {
        forwarding-class cos-voice;
        accept;
    }
    

Configuring a Firewall Filter to Classify RTP Traffic for MX Series Router Cloud CPE CoS Services

This procedure configures an IPv4 firewall filter to classify Real-Time Transport Protocol (RTP) VoIP traffic to a named forwarding class.

  1. Configure an IPv4 firewall filter that checks for packets from the UDP protocol.
    [edit firewall family inet filter voip-filter term sip]user@host# up[edit firewall family inet filter voip-filter]user@host# edit term rtp from user@host# set protocol udp
  2. Specify which port is used for UDP and TCP traffic.
    [edit firewall family inet filter voip-filter term rtp from]user@host# set port 16384-32767
  3. Classify the UDP and TCP packets to the named forwarding class. Specify the same forwarding class you configured for SIP traffic.
    [edit firewall family inet filter voip-filter term rtp from]user@host# up[edit firewall family inet filter voip-filter term rtp]user@host# set then forwarding-class cos-voice
  4. Specify that packets matching the filter conditions are accepted.
    [edit firewall family inet filter voip-filter term rtp]user@host# set then accept
  5. Verify the configuration.
    user@host# show
    from {
        protocol udp;
        port 16384-32767;
    }
    then {
        forwarding-class cos-voice;
        accept;
    }
    

Applying the SIP and RTP Firewall Filters for MX Series Router Cloud CPE CoS Services

This procedure applies the firewall filter for SIP and RTP VoIP traffic to the subscriber’s IRB interface.

  • To apply the firewall filter, specify the logical interface unit-number designated for the subscriber’s IRB interface, and specify the filter name you defined for SIP and RTP.
    [edit]user@host# edit interfaces irb unit 33 family inet filter input user@host# set voip-filter

Modified: 2015-10-29

Supported Platforms

Modified: 2015-10-29