Junos OS

Expand all | Collapse all

mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

Jump to Best Answer
  • 1.  mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

    Posted 05-15-2019 00:02

    Model: mx480
    Junos: 15.1F6.9

    MPC-3D-16XGE-SFPP

     

    I use these below configuration limit queue 1 bandwidth no more than 1m, but failed. anyone help me figure out the problem thanks so much

     

    set interfaces ae1 per-unit-scheduler
    set interfaces ae1 flexible-vlan-tagging

     

    set class-of-service forwarding-classes class fc_CN queue-num 1
    set class-of-service forwarding-classes class fc_CN priority low
    set class-of-service traffic-control-profiles tcp-10m scheduler-map sm-10m
    set class-of-service traffic-control-profiles tcp-10m shaping-rate 10m
    set class-of-service scheduler-maps sm-10m forwarding-class fc_CN scheduler 10m
    set class-of-service schedulers 10m shaping-rate 1m
    set class-of-service schedulers 10m shaping-rate burst-size 150k
    set class-of-service schedulers 10m buffer-size temporal 5

    set class-of-service interfaces ae1 unit 2374 output-traffic-control-profile tcp-10m

     



  • 2.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

     
    Posted 05-15-2019 01:32

    Hello Xinhui,

     

    I believe you should configure shaping for fc_CN in a bit different way:

    delete class-of-service schedulers 10m
    set class-of-service schedulers 10m transmit-rate 1m exact

    Please try it and let us know the results.

     

    The following article contains a very good overview of Juniper class of service:

    https://www.saidvandeklundert.nl/qos.php


    Best regards,
    Sergii
    -------------------------------------------------------------------
    Please accept the solution if your problem is resolved Smiley Happy
    -------------------------------------------------------------------



  • 3.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

    Posted 05-15-2019 01:42

    Hi xinhui,

     

    output-traffic-control-profile feature is not supported on MPC-3D-16XGE-SFPP,  it requires specific HW. 

    Quote:

    The statement is supported on the following interfaces:

    • Enhanced Queuing DPC, MIC, and MPC interfaces on MX Series routers

     

    Thanks,

    Alex

     



  • 4.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

     
    Posted 05-15-2019 02:04

    I believe it's a doc error - output-traffic-control-profile is mentioned in Scaling of Per-VLAN Queuing on Non-Queuing MPCs:

    "To enable logical interface scheduling, you include the per-unit-scheduler statement at the [edit interfaces interface name] hierarchy level. When per-unit schedulers are enabled, you can define dedicated schedulers for logical interfaces by including the scheduler-map statement at the [edit class-of-service interfaces interface name unit logical unit number] hierarchy level. Alternatively, you can include the scheduler-map statement at the [edit class-of-service traffic-control-profiles traffic control profile name] hierarchy level and then include the output-traffic-control-profile statement at the [edit class-of-service interfaces interface name unit logical unit number] hierarchy level."


    Best regards,
    Sergii
    -------------------------------------------------------------------
    Please accept the solution if your problem is resolved Smiley Happy
    -------------------------------------------------------------------



  • 5.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

    Posted 05-15-2019 04:01

    Hi, I enable it, but it doesn't work. any ideas?

    set interfaces ae1 per-unit-scheduler



  • 6.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

    Posted 05-15-2019 04:03


  • 7.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

     
    Posted 05-15-2019 04:08

    Hi Xinhui,

     

    Can you please try the following configuration and let us know if bandwidth for fc_CN is limited to 1m or not:

    set interfaces ae1 per-unit-scheduler
    set interfaces ae1 flexible-vlan-tagging
    
    set class-of-service forwarding-classes class fc_CN queue-num 1
    set class-of-service forwarding-classes class fc_CN priority low
    set class-of-service traffic-control-profiles tcp-10m scheduler-map sm-10m
    set class-of-service traffic-control-profiles tcp-10m shaping-rate 10m
    set class-of-service scheduler-maps sm-10m forwarding-class fc_CN scheduler 10m
    set class-of-service schedulers 10m transmit-rate 1m exact
    
    set class-of-service interfaces ae1 unit 2374 output-traffic-control-profile tcp-10m


    Best regards,
    Sergii
    -------------------------------------------------------------------
    Please accept the solution if your problem is resolved Smiley Happy
    -------------------------------------------------------------------



  • 8.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

    Posted 05-15-2019 05:15

    I use these configurations, use iperf testing unfortunately, it does not work. queue 1 bandwidth more than 10m.

     

    iperf testing result below

    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
    [ 4] 0.00-100.00 sec 179 MBytes 15.0 Mbits/sec 0.081 ms 0/22866 (0%)
    [ 4] Sent 22866 datagrams

     

     

    # run show configuration class-of-service
    forwarding-classes {
    class fc_CN queue-num 1 priority low;
    }
    traffic-control-profiles {
    tcp-10m {
    scheduler-map sm-10m;
    shaping-rate 10m;
    }
    }
    interfaces {
    ae1 {
    unit 2374 {
    output-traffic-control-profile tcp-10m;
    }
    }
    }
    scheduler-maps {
    sm-10m {
    forwarding-class fc_CN scheduler 10m;
    }
    }
    schedulers {
    10m {
    transmit-rate {
    1m;
    exact;
    }
    }
    }

     

     

    run show interfaces queue ae1.2374
    Logical interface ae1.2374 (Index 594) (SNMP ifIndex 6618)
    Description: 00-HKSRV2374
    Flags: Up SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.2374 ] Encapsulation: ENET2
    Statistics Packets pps Bytes bps
    Bundle:
    Input : 37766953 4 2274559423 4152
    Output: 166306107 1376 231777486719 15244832
    Adaptive Statistics:
    Adaptive Adjusts: 0
    Adaptive Scans : 0
    Adaptive Updates: 0
    Forwarding classes: 16 supported, 4 in use
    Egress queues: 8 supported, 4 in use
    Burst size: 0
    Queue: 0, Forwarding classes: best-effort
    Queued:
    Packets : 8272530915 4516 pps
    Bytes : 4033876175797 28134912 bps
    Transmitted:
    Packets : 8272530915 4516 pps
    Bytes : 4033876175797 28134912 bps
    Tail-dropped packets : 0 0 pps
    RL-dropped packets : 0 0 pps
    RL-dropped bytes : 0 0 bps
    RED-dropped packets : 0 0 pps
    Low : 0 0 pps
    Medium-low : 0 0 pps
    Medium-high : 0 0 pps
    High : 0 0 pps
    RED-dropped bytes : 0 0 bps
    Low : 0 0 bps
    Medium-low : 0 0 bps
    Medium-high : 0 0 bps
    High : 0 0 bps
    Queue: 1, Forwarding classes: fc_CN
    Queued:
    Packets : 2790158556 3967 pps
    Bytes : 1243854600894 27112704 bps
    Transmitted:
    Packets : 2790117466 3967 pps
    Bytes : 1243811699411 27112704 bps



  • 9.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

     
    Posted 05-15-2019 06:05

    I don't see any issues with your configuration - it should work. Policer should definitely work - can you please check:

    delete class-of-service schedulers 10m transmit-rate 1m exact
    set class-of-service schedulers 10m transmit-rate 1m rate-limit

     

    Best regards,
    Sergii
    -------------------------------------------------------------------
    Please accept the solution if your problem is resolved Smiley Happy
    -------------------------------------------------------------------



  • 10.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

    Posted 05-15-2019 16:53

    thanks for an answer.it doesn't work either. I have not any idea, that's the problem.

     

    set class-of-service forwarding-classes class fc_CN queue-num 1
    set class-of-service forwarding-classes class fc_CN priority low
    set class-of-service traffic-control-profiles tcp-10m scheduler-map sm-10m
    set class-of-service traffic-control-profiles tcp-10m shaping-rate 10m
    set class-of-service interfaces ae1 unit 2374 output-traffic-control-profile tcp-10m
    set class-of-service scheduler-maps sm-10m forwarding-class fc_CN scheduler 10m
    set class-of-service schedulers 10m transmit-rate 1m
    set class-of-service schedulers 10m transmit-rate rate-limit

     

     

    run show interfaces queue ae1.2374
    Logical interface ae1.2374 (Index 594) (SNMP ifIndex 6618)
    Description: 00-HKSRV2374
    Flags: Up SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.2374 ] Encapsulation: ENET2
    Statistics Packets pps Bytes bps
    Bundle:
    Input : 37830591 1 2282082485 1136
    Output: 166817375 1375 232334458842 15242584
    Adaptive Statistics:
    Adaptive Adjusts: 0
    Adaptive Scans : 0
    Adaptive Updates: 0
    Forwarding classes: 16 supported, 4 in use
    Egress queues: 8 supported, 4 in use
    Burst size: 0
    Queue: 0, Forwarding classes: best-effort
    Queued:
    Packets : 8419177259 2953 pps
    Bytes : 4143823689563 15752448 bps
    Transmitted:
    Packets : 8419177259 2953 pps
    Bytes : 4143823689563 15752448 bps
    Tail-dropped packets : 0 0 pps
    RL-dropped packets : 0 0 pps
    RL-dropped bytes : 0 0 bps
    RED-dropped packets : 0 0 pps
    Low : 0 0 pps
    Medium-low : 0 0 pps
    Medium-high : 0 0 pps
    High : 0 0 pps
    RED-dropped bytes : 0 0 bps
    Low : 0 0 bps
    Medium-low : 0 0 bps
    Medium-high : 0 0 bps
    High : 0 0 bps
    Queue: 1, Forwarding classes: fc_CN
    Queued:
    Packets : 2872677444 3524 pps
    Bytes : 1277347661707 24923264 bps
    Transmitted:
    Packets : 2872636354 3524 pps
    Bytes : 1277304760224 24923264 bps



  • 11.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail
    Best Answer

     
    Posted 05-22-2019 05:17

    Hello Xinhui,

     

    For me both configurations work:

    user@mx> show version | match os:
    Junos: 15.1F6.9
    
    user@mx> show chassis hardware models | match "FPC 11"
    FPC 11           REV 51   750-062581   CAKG8606          MPC-3D-16XGE-SFPP

    user@mx> show configuration interfaces ae1 | display set
    set interfaces ae1 per-unit-scheduler
    set interfaces ae1 flexible-vlan-tagging
    set interfaces ae1 unit 2777 vlan-id 77
    set interfaces ae1 unit 2777 family inet address 10.77.1.1/24

     

    set class-of-service scheduler-maps sm-10m forwarding-class FC_BEST_EFFORT scheduler 10m
    set class-of-service traffic-control-profiles tcp-10m scheduler-map sm-10m
    set class-of-service traffic-control-profiles tcp-10m shaping-rate 10m
    set class-of-service interfaces ae1 unit 2777 output-traffic-control-profile tcp-10m
    set class-of-service schedulers 10m transmit-rate 1m
    set class-of-service schedulers 10m transmit-rate rate-limit
    user@mx> show interfaces queue ae1.2777 Logical interface ae1.2777 (Index 358) (SNMP ifIndex 785) Flags: Up SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.77 ] Encapsulation: ENET2 Statistics Packets pps Bytes bps Bundle: Input : 19546810 74996 9343374762 286787952 Output: 17700137 237 8531465162 917720 Adaptive Statistics: Adaptive Adjusts: 0 Adaptive Scans : 0 Adaptive Updates: 0 Forwarding classes: 16 supported, 6 in use Egress queues: 8 supported, 6 in use Burst size: 0 Queue: 0, Forwarding classes: FC_BEST_EFFORT Queued: Packets : 17700141 239 pps Bytes : 9274873430 1003904 bps Transmitted: Packets : 17700141 239 pps Bytes : 9274873430 1003904 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 1899065 74761 pps RL-dropped bytes : 957128760 301436928 bps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps

    And

    set class-of-service scheduler-maps sm-10m forwarding-class FC_BEST_EFFORT scheduler 10m
    set class-of-service traffic-control-profiles tcp-10m scheduler-map sm-10m
    set class-of-service traffic-control-profiles tcp-10m shaping-rate 10m
    set class-of-service interfaces ae1 unit 2777 output-traffic-control-profile tcp-10m
    set class-of-service schedulers 10m shaping-rate 1m
    
    user@mx> show interfaces queue ae1.2777
      Logical interface ae1.2777 (Index 358) (SNMP ifIndex 785)
        Flags: Up SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.77 ]  Encapsulation: ENET2
        Statistics        Packets        pps         Bytes          bps
        Bundle:
            Input :      36796810      74998   17588874762    286795744
            Output:      21106820        237   10173486368       917720
        Adaptive Statistics:
            Adaptive Adjusts:          0
            Adaptive Scans  :          0
            Adaptive Updates:          0
    Forwarding classes: 16 supported, 6 in use
    Egress queues: 8 supported, 6 in use
    Burst size: 0
    Queue: 0, Forwarding classes: FC_BEST_EFFORT
      Queued:
        Packets              :              22370128                 75001 pps
        Bytes                :           11721946618             314406144 bps
      Transmitted:
        Packets              :              21106826                   238 pps
        Bytes                :           11059976370                997632 bps
        Tail-dropped packets :                   991                     0 pps
        RL-dropped packets   :                     0                     0 pps
        RL-dropped bytes     :                     0                     0 bps
        RED-dropped packets  :               1262311                 74763 pps
         Low                 :               1262311                 74763 pps
         Medium-low          :                     0                     0 pps
         Medium-high         :                     0                     0 pps
         High                :                     0                     0 pps
        RED-dropped bytes    :             661450964             313408512 bps
         Low                 :             661450964             313408512 bps
         Medium-low          :                     0                     0 bps
         Medium-high         :                     0                     0 bps
         High                :                     0                     0 bps

    Can you please provide the following outputs:

    user@mx> show class-of-service scheduler-hierarchy interface ae1.2777
    Interface/                    Shaping Guarnteed  Guaranteed/   Queue   Excess
    Resource name                    rate      rate       Excess  weight   weight
                                    kbits     kbits     priority          high/low
      xe-11/0/0.2777                10000     10000                         62   62
        FC_BEST_EFFORT               1000      1000     Low  Low     125
    
    user@mx> show class-of-service scheduler-map sm-10m
    Scheduler map: sm-10m, Index: 41643
    
      Scheduler: 10m, Forwarding class: FC_BEST_EFFORT, Index: 49773
        Transmit rate: unspecified, Rate Limit: none, Buffer size: remainder, Buffer Limit: none, Priority: low
        Excess Priority: unspecified
        Shaping rate: 1000000 bps
        Drop profiles:
          Loss priority   Protocol    Index    Name
          Low             any             1    <default-drop-profile>
          Medium low      any             1    <default-drop-profile>
          Medium high     any             1    <default-drop-profile>
          High            any             1    <default-drop-profile>


    Best regards,
    Sergii
    -------------------------------------------------------------------
    Please accept the solution if your problem is resolved Smiley Happy
    -------------------------------------------------------------------



  • 12.  RE: mx480 MPC-3D-16XGE-SFPP per unit scheduler , queue bandwidth limit fail

    Posted 05-22-2019 23:21

    OK, thanks very much. I think maybe I set hierarchical-scheduler in the interface before. makes now setting not work. maybe I need reboot the FPC to resolved this issue. there is service with the router. I can't reboot for testing it.