Routing

last person joined: 4 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  QoS Hierarchical question please help...

    Posted 05-15-2015 10:03
    In this config you will see the original config atr top then where I re inserted it. But my question is with the top config does it matter the hierachal position it is in or will it still work? If I remember rigth there is a hierarchal position it would have to be in and I thought the hogher the value it would need to be placed at top.

    Can someone confirm this for me please?


    abrandt@router# show firewall family inet filter fe-3/3/10.0-inet-i term MCAST-BE { from { destination-address { 224.0.0.0/4; } } then { count MCAST-BE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class VPN-BE; } } term EF_DSCP { from { dscp [ 40 46 ]; } then { count EF.rx-fe-3/3/10.0-inet-i; loss-priority low; forwarding-class EF; } } term EF-DE_DSCP { from { dscp [ 32 34 36 38 ]; } then { count EF-DE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class EF; } } term AF_DSCP { from { dscp [ 24 26 28 30 48 56 ]; } then { count AF.rx-fe-3/3/10.0-inet-i; loss-priority low; forwarding-class AF; } } term AF-DE_DSCP { from { dscp [ 16 18 20 22 ]; } then { count AF-DE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class AF; } } term BE-DE_DSCP { from { dscp [ 8 10 12 14 ]; } then { count BE-DE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class BE; } } term BE { then { count BE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class VPN-BE; } } term EF_DSCP_BFD { from { dscp 48; } then { count EF-BFD.rx-fe-3/3/10.0-inet-i; loss-priority low; forwarding-class EF; } } [edit firewall family inet filter fe-3/3/10.0-inet-i] abrandt@router# insert term EF_DSCP_BFD before term EF_DSCP [edit firewall family inet filter fe-3/3/10.0-inet-i]
    abrandt@router# noc1-rw@hr1.hou1# show term MCAST-BE { from { destination-address { 224.0.0.0/4; } } then { count MCAST-BE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class VPN-BE; } } term EF_DSCP_BFD { from { dscp 48; } then { count EF-BFD.rx-fe-3/3/10.0-inet-i; loss-priority low; forwarding-class EF; } } term EF_DSCP { from { dscp [ 40 46 ]; } then { count EF.rx-fe-3/3/10.0-inet-i; loss-priority low; forwarding-class EF; } } term EF-DE_DSCP { from { dscp [ 32 34 36 38 ]; } then { count EF-DE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class EF; } } term AF_DSCP { from { dscp [ 24 26 28 30 48 56 ]; } then { count AF.rx-fe-3/3/10.0-inet-i; loss-priority low; forwarding-class AF; } } term AF-DE_DSCP { from { dscp [ 16 18 20 22 ]; } then { count AF-DE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class AF; } } term BE-DE_DSCP { from { dscp [ 8 10 12 14 ]; } then { count BE-DE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class BE; } } term BE { then { count BE.rx-fe-3/3/10.0-inet-i; loss-priority high; forwarding-class VPN-BE; } }


  • 2.  RE: QoS Hierarchical question please help...

     
    Posted 05-16-2015 06:40
    As per Junos design filters are evaluated in hierarchal order. So if a packet matches the first term on filter it will not be evaluated against second term.

    Packets are evaluated till it matches a condition, if nothing is matching default rule applies.

    I hope this helps.


  • 3.  RE: QoS Hierarchical question please help...

    Posted 05-16-2015 08:24

    So the answer is it doesnt really matter the order they are in. It will just start from the top to bottom and will match if there is an instance till the filter completes.

     

    I thought I had seen somewhere that they had to be checked in a certain order..



  • 4.  RE: QoS Hierarchical question please help...
    Best Answer

     
    Posted 05-16-2015 09:17
    Order matters,lets say the first term is to match 0/0, no other term after that will be checked. All packets will match the first term.
    As you mentioned initially more specific term should be on top


  • 5.  RE: QoS Hierarchical question please help...

    Posted 05-17-2015 02:05

    Ahh I totally understand now.. Thank you for your information it really helped..