<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi,It's always first match. in Application Networking</title>
    <link>https://community.cisco.com/t5/application-networking/duplicate-class-names-under-different-multi-match-policies/m-p/2597441#M42507</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's always first match. If if the first one satisfies the condition, we don't even look at the second. We would move on to another type. I guess below explanation would answer all your doubts.&lt;/P&gt;&lt;P&gt;The term "multi-match" refers to execution semantics of the policy; In other&amp;nbsp;words it depicts how the actions are executed for a given flow that matches the classifications in the policy.&lt;/P&gt;&lt;P&gt;The policy has multi-match semantics because the policy allows configuring &amp;nbsp;multiple types of features like loadbalancing, NAT inspect etc; so potentially&amp;nbsp;this policy can result in taking multiple actions (if multiple features are&amp;nbsp;configured) for a given matching flow.&lt;/P&gt;&lt;P&gt;Now given that there can be multiple classifications configured for the same&amp;nbsp;feature type within the policy, the rule is that we always execute *only* the&amp;nbsp;first matching action for a given feature type;&lt;/P&gt;&lt;P&gt;for .eg consider the below;; just for brevity I am ommiting the exact syntax&amp;nbsp;&lt;BR /&gt;of the cmds&lt;/P&gt;&lt;P&gt;--------------------&lt;BR /&gt;policy-map multi-match MYPOLICY&lt;BR /&gt;&amp;nbsp; class LB1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp; class NAT1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 100 vlan 20&lt;BR /&gt;&amp;nbsp; class INSP1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; inspect http&lt;BR /&gt;&amp;nbsp; class LB2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp; class NAT2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 200 vlan 30&lt;/P&gt;&lt;P&gt;interface vlan 10&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input MYPOLICY&lt;BR /&gt;-------------------&lt;/P&gt;&lt;P&gt;please note above that there are 2 classes each with features loadbalance and&amp;nbsp;&lt;BR /&gt;NAT configured and one class with inspect action;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For an incoming flow, we try to match and *execute* *ONLY* the action specified&amp;nbsp;&lt;BR /&gt;against first matching class per feature. In otherwords, if flow matches class&amp;nbsp;&lt;BR /&gt;LB1 then we will execute "loadbalance action L7-1" and we wont even try to see&amp;nbsp;&lt;BR /&gt;if class LB2 matches as it is of the same feature type. Only if class LB1 does&amp;nbsp;&lt;BR /&gt;not match we look at LB2. &amp;nbsp;However we continue matching other class'es since&amp;nbsp;&lt;BR /&gt;they have different feature types;&lt;/P&gt;&lt;P&gt;This happens for each feature type; Essentially between the class-maps of same&amp;nbsp;&lt;BR /&gt;feature type think of this as first-match and across features its multiple match.&lt;/P&gt;&lt;P&gt;potentially for above policy the flow can match the below possible classes:&lt;BR /&gt;LB1, NAT1, INSP1&lt;BR /&gt;LB2, NAT1, INSP1&lt;BR /&gt;LB2, NAT2, INSP1&lt;BR /&gt;LB1, NAT2, INSP1&lt;/P&gt;&lt;P&gt;but the below is not possible;&lt;BR /&gt;LB1, LB2, NAT1, INSP1&lt;BR /&gt;LB2, NAT1, NAT2, INSP1&lt;/P&gt;&lt;P&gt;you can visualize the above multi-match policy like below; (pls note that below&amp;nbsp;&lt;BR /&gt;syntax is not supported and is strictly for illustration purposes only) below has&amp;nbsp;&lt;BR /&gt;policy types per FEATURE and each such policy can result in ONLY ONE match/action&amp;nbsp;&lt;BR /&gt;being executed;&lt;/P&gt;&lt;P&gt;-------------&lt;BR /&gt;policy-map type SLB first-match LBPOLICY&lt;BR /&gt;&amp;nbsp; class LB1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp; class LB2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;/P&gt;&lt;P&gt;policy-map type NAT first-match NATPOLICY&lt;BR /&gt;&amp;nbsp; class NAT1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 100 vlan 20&lt;BR /&gt;&amp;nbsp; class NAT2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 200 vlan 30&lt;/P&gt;&lt;P&gt;policy-map type inspect first-match INSPECTPOLICY&lt;BR /&gt;&amp;nbsp; class INSP1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; inspect http&lt;/P&gt;&lt;P&gt;interface vlan 10&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input LBPOLICY&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input NATPOLICY&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input INSPECTPOLICY&lt;BR /&gt;-------------&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kanwal&lt;/P&gt;&lt;P&gt;Note: Please mark answers if they are helpful.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jan 2015 18:41:40 GMT</pubDate>
    <dc:creator>Kanwaljeet Singh</dc:creator>
    <dc:date>2015-01-23T18:41:40Z</dc:date>
    <item>
      <title>duplicate class names under different multi match policies</title>
      <link>https://community.cisco.com/t5/application-networking/duplicate-class-names-under-different-multi-match-policies/m-p/2597440#M42506</link>
      <description>&lt;P&gt;We've inherited an ACE SM 3.0 (A5.1a) config, where we noticed duplicate class names under different multi match policies, similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;policy-map multi-match&amp;nbsp;POLICY1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; class&amp;nbsp;CLASS1-cm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance policy&amp;nbsp;CLASS1-pm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance vip icmp-reply active&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;policy-map multi-match&amp;nbsp;POLICY2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; class&amp;nbsp;CLASS1-cm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance policy&amp;nbsp;CLASS1-pm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; loadbalance vip icmp-reply active&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; appl-parameter http advanced-options HTTP-8K-HEADER&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would the ACE know which multi match policy to use?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 15:05:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/duplicate-class-names-under-different-multi-match-policies/m-p/2597440#M42506</guid>
      <dc:creator>axfalk</dc:creator>
      <dc:date>2015-01-23T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Hi,It's always first match.</title>
      <link>https://community.cisco.com/t5/application-networking/duplicate-class-names-under-different-multi-match-policies/m-p/2597441#M42507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's always first match. If if the first one satisfies the condition, we don't even look at the second. We would move on to another type. I guess below explanation would answer all your doubts.&lt;/P&gt;&lt;P&gt;The term "multi-match" refers to execution semantics of the policy; In other&amp;nbsp;words it depicts how the actions are executed for a given flow that matches the classifications in the policy.&lt;/P&gt;&lt;P&gt;The policy has multi-match semantics because the policy allows configuring &amp;nbsp;multiple types of features like loadbalancing, NAT inspect etc; so potentially&amp;nbsp;this policy can result in taking multiple actions (if multiple features are&amp;nbsp;configured) for a given matching flow.&lt;/P&gt;&lt;P&gt;Now given that there can be multiple classifications configured for the same&amp;nbsp;feature type within the policy, the rule is that we always execute *only* the&amp;nbsp;first matching action for a given feature type;&lt;/P&gt;&lt;P&gt;for .eg consider the below;; just for brevity I am ommiting the exact syntax&amp;nbsp;&lt;BR /&gt;of the cmds&lt;/P&gt;&lt;P&gt;--------------------&lt;BR /&gt;policy-map multi-match MYPOLICY&lt;BR /&gt;&amp;nbsp; class LB1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp; class NAT1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 100 vlan 20&lt;BR /&gt;&amp;nbsp; class INSP1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; inspect http&lt;BR /&gt;&amp;nbsp; class LB2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp; class NAT2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 200 vlan 30&lt;/P&gt;&lt;P&gt;interface vlan 10&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input MYPOLICY&lt;BR /&gt;-------------------&lt;/P&gt;&lt;P&gt;please note above that there are 2 classes each with features loadbalance and&amp;nbsp;&lt;BR /&gt;NAT configured and one class with inspect action;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For an incoming flow, we try to match and *execute* *ONLY* the action specified&amp;nbsp;&lt;BR /&gt;against first matching class per feature. In otherwords, if flow matches class&amp;nbsp;&lt;BR /&gt;LB1 then we will execute "loadbalance action L7-1" and we wont even try to see&amp;nbsp;&lt;BR /&gt;if class LB2 matches as it is of the same feature type. Only if class LB1 does&amp;nbsp;&lt;BR /&gt;not match we look at LB2. &amp;nbsp;However we continue matching other class'es since&amp;nbsp;&lt;BR /&gt;they have different feature types;&lt;/P&gt;&lt;P&gt;This happens for each feature type; Essentially between the class-maps of same&amp;nbsp;&lt;BR /&gt;feature type think of this as first-match and across features its multiple match.&lt;/P&gt;&lt;P&gt;potentially for above policy the flow can match the below possible classes:&lt;BR /&gt;LB1, NAT1, INSP1&lt;BR /&gt;LB2, NAT1, INSP1&lt;BR /&gt;LB2, NAT2, INSP1&lt;BR /&gt;LB1, NAT2, INSP1&lt;/P&gt;&lt;P&gt;but the below is not possible;&lt;BR /&gt;LB1, LB2, NAT1, INSP1&lt;BR /&gt;LB2, NAT1, NAT2, INSP1&lt;/P&gt;&lt;P&gt;you can visualize the above multi-match policy like below; (pls note that below&amp;nbsp;&lt;BR /&gt;syntax is not supported and is strictly for illustration purposes only) below has&amp;nbsp;&lt;BR /&gt;policy types per FEATURE and each such policy can result in ONLY ONE match/action&amp;nbsp;&lt;BR /&gt;being executed;&lt;/P&gt;&lt;P&gt;-------------&lt;BR /&gt;policy-map type SLB first-match LBPOLICY&lt;BR /&gt;&amp;nbsp; class LB1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;BR /&gt;&amp;nbsp; class LB2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance policy L7-2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; loadbalance vip inservice&lt;/P&gt;&lt;P&gt;policy-map type NAT first-match NATPOLICY&lt;BR /&gt;&amp;nbsp; class NAT1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 100 vlan 20&lt;BR /&gt;&amp;nbsp; class NAT2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; nat dynamic 200 vlan 30&lt;/P&gt;&lt;P&gt;policy-map type inspect first-match INSPECTPOLICY&lt;BR /&gt;&amp;nbsp; class INSP1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; inspect http&lt;/P&gt;&lt;P&gt;interface vlan 10&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input LBPOLICY&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input NATPOLICY&lt;BR /&gt;&amp;nbsp; &amp;nbsp;service-policy input INSPECTPOLICY&lt;BR /&gt;-------------&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kanwal&lt;/P&gt;&lt;P&gt;Note: Please mark answers if they are helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:41:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/application-networking/duplicate-class-names-under-different-multi-match-policies/m-p/2597441#M42507</guid>
      <dc:creator>Kanwaljeet Singh</dc:creator>
      <dc:date>2015-01-23T18:41:40Z</dc:date>
    </item>
  </channel>
</rss>

