<?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 Disabling Ports using Inbound Rate Limiters on the N-Series in FAQs</title>
    <link>https://community.extremenetworks.com/t5/faqs/disabling-ports-using-inbound-rate-limiters-on-the-n-series/m-p/42006#M83</link>
    <description>Article ID: 11731 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
Matrix N-Series DFE &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
This document provides a sample configuration using packets per second rate limiting to trigger a port disable. A policy-rule-based action will disable on the &lt;I&gt;first&lt;/I&gt; packet seen, but this policy-cos-based action will disable upon reaching the threshold of packets per second. &lt;BR /&gt;
&lt;BR /&gt;
If using anything other than packets per second configurations (only supported on the Platinum and Diamond series), then one-minute intervals are used for the calculations. &lt;BR /&gt;
&lt;BR /&gt;
The real-world purpose of this configuration was originally to disable a port when registering a certain quantity of a specific type of traffic, expected on an edge port but seen entering an Inter-Switch Link (ISL) port - helping to assist in locating and disabling a flooding path in the network. Other applications and/or classifications may be used. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
The policy rule drops packets destined to HTTP port 80 at IP address 10.16.19.163, and associates them with Class of Service (CoS) table entry# 8, used to feed traffic to the rate limiter. The specific traffic targeted in this manner, and the decision to drop this traffic, is purely at the discretion of the user.# policy&lt;BR /&gt;
set policy profile 3 name CB2 cos-status enable&lt;BR /&gt;
set policy rule admin-profile port ge.5.30 mask 16 port-string ge.5.30 admin-pid 3&lt;BR /&gt;
set policy rule 3 tcpdestportIP 80:10.16.19.163 mask 48 drop cos 8Set cos 8 so that it maps to 802.1p priority 0 and Inbound Rate Limiter logical reference# 9.# cos settings&lt;BR /&gt;
set cos settings 8 priority 0 irl-reference 9Map the group/index# (0.0 and 0.1 to cover both default hardware types) and reference# (9) to the hardware-based Inbound Rate Limiter (2) to be used.# cos reference&lt;BR /&gt;
set cos reference irl 0.0 9 rate-limit 2&lt;BR /&gt;
set cos reference irl 0.1 9 rate-limit 2Instruct that the group/index# (0.0 and 0.1) and hardware Inbound Rate Limiter (2) combo not reach or exceed 20 Packets per Second (the specified range must be within 1-100 pps), and to syslog and disable the port when the limit is violated. The determination of this rate is purely at the discretion of the user. &lt;BR /&gt;
&lt;BR /&gt;
The 'disable-port enable' parameter is what makes the rate limiting action disable the port rather than just drop violating traffic as configured in &lt;A href="http://bit.ly/1a1waga" target="_blank" rel="nofollow noreferrer noopener"&gt;7537&lt;/A&gt;.# cos port-resource&lt;BR /&gt;
set cos port-resource irl 0.0 2 unit pps rate 20 syslog enable disable-port enable&lt;BR /&gt;
set cos port-resource irl 0.1 2 unit pps rate 20 syslog enable disable-port enableEnabling the cos state alllows all the issued 'set cos' commands to become active.# cos state&lt;BR /&gt;
set cos state enableIt is important to see log messages when a rate limiter has been hit. Policy/cos messages generate at level 7, though by default they are only displayed at level 6 and lower.# logging&lt;BR /&gt;
set logging application UPN level 7After exposing port ge.5.30 to at least 20 pps of the targeted traffic, here are some results. &lt;BR /&gt;
&lt;BR /&gt;
Example of resulting syslog messages:&amp;lt;166&amp;gt;Mar  6 16:12:11 10.26.156.19 UPN[5]CosTable Inbound Rate Limiter 1 was violated on ge.5.30&lt;BR /&gt;
&amp;lt;166&amp;gt;Mar  6 16:12:11 10.26.156.19 UPN[5]ge.5.30 disabled by Inbound Rate Limiter 1 violationA 'show port status' command will now show the port as operstatus down (and the Link LED remains on), and a 'show port operstatuscause' will show why.Matrix N5 Platinum(su)-&amp;gt;show port status ge.5.30&lt;BR /&gt;
 &lt;BR /&gt;
Port         Alias            Oper     Admin   Speed  Duplex  Type&lt;BR /&gt;
             (truncated)      Status   Status  (bps)&lt;BR /&gt;
------------ ---------------- -------- ------- ------ ------- ------------------&lt;BR /&gt;
ge.5.30                       down     up        1.0G full    1000-t       rj45&lt;BR /&gt;
1 of 1 ports displayed, 0 port(s) with oper status 'up' or 'dormant'.&lt;BR /&gt;
 &lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;show port operstatuscause ge.5.30&lt;BR /&gt;
          +------------------------------+&lt;BR /&gt;
          | A  L  L                 D    |&lt;BR /&gt;
          | D  L  F  S  I  F        O    |&lt;BR /&gt;
          | M  O  L  E  N  L  P  C  T  L |&lt;BR /&gt;
          | I  S  A  L  I  O  O  O  1  A |&lt;BR /&gt;
Port      | N  S  P  F  T  W  L  S  X  G |&lt;BR /&gt;
----------+------------------------------+&lt;BR /&gt;
ge.5.30   | .  .  .  .  .  .  .  X  .  . |&lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;Use 'clear port operstatuscause' to regain use of this port.Matrix N5 Platinum(su)-&amp;gt;clear port operstatuscause&lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;show port status ge.5.30&lt;BR /&gt;
 &lt;BR /&gt;
Port         Alias            Oper     Admin   Speed  Duplex  Type&lt;BR /&gt;
             (truncated)      Status   Status  (bps)&lt;BR /&gt;
------------ ---------------- -------- ------- ------ ------- ------------------&lt;BR /&gt;
ge.5.30                       up       up        1.0G full    1000-t       rj45&lt;BR /&gt;
1 of 1 ports displayed, 1 port(s) with oper status 'up' or 'dormant'.&lt;BR /&gt;
 &lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;</description>
    <pubDate>Wed, 27 Nov 2013 04:23:00 GMT</pubDate>
    <dc:creator>FAQ_User</dc:creator>
    <dc:date>2013-11-27T04:23:00Z</dc:date>
    <item>
      <title>Disabling Ports using Inbound Rate Limiters on the N-Series</title>
      <link>https://community.extremenetworks.com/t5/faqs/disabling-ports-using-inbound-rate-limiters-on-the-n-series/m-p/42006#M83</link>
      <description>Article ID: 11731 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
Matrix N-Series DFE &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
This document provides a sample configuration using packets per second rate limiting to trigger a port disable. A policy-rule-based action will disable on the &lt;I&gt;first&lt;/I&gt; packet seen, but this policy-cos-based action will disable upon reaching the threshold of packets per second. &lt;BR /&gt;
&lt;BR /&gt;
If using anything other than packets per second configurations (only supported on the Platinum and Diamond series), then one-minute intervals are used for the calculations. &lt;BR /&gt;
&lt;BR /&gt;
The real-world purpose of this configuration was originally to disable a port when registering a certain quantity of a specific type of traffic, expected on an edge port but seen entering an Inter-Switch Link (ISL) port - helping to assist in locating and disabling a flooding path in the network. Other applications and/or classifications may be used. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
The policy rule drops packets destined to HTTP port 80 at IP address 10.16.19.163, and associates them with Class of Service (CoS) table entry# 8, used to feed traffic to the rate limiter. The specific traffic targeted in this manner, and the decision to drop this traffic, is purely at the discretion of the user.# policy&lt;BR /&gt;
set policy profile 3 name CB2 cos-status enable&lt;BR /&gt;
set policy rule admin-profile port ge.5.30 mask 16 port-string ge.5.30 admin-pid 3&lt;BR /&gt;
set policy rule 3 tcpdestportIP 80:10.16.19.163 mask 48 drop cos 8Set cos 8 so that it maps to 802.1p priority 0 and Inbound Rate Limiter logical reference# 9.# cos settings&lt;BR /&gt;
set cos settings 8 priority 0 irl-reference 9Map the group/index# (0.0 and 0.1 to cover both default hardware types) and reference# (9) to the hardware-based Inbound Rate Limiter (2) to be used.# cos reference&lt;BR /&gt;
set cos reference irl 0.0 9 rate-limit 2&lt;BR /&gt;
set cos reference irl 0.1 9 rate-limit 2Instruct that the group/index# (0.0 and 0.1) and hardware Inbound Rate Limiter (2) combo not reach or exceed 20 Packets per Second (the specified range must be within 1-100 pps), and to syslog and disable the port when the limit is violated. The determination of this rate is purely at the discretion of the user. &lt;BR /&gt;
&lt;BR /&gt;
The 'disable-port enable' parameter is what makes the rate limiting action disable the port rather than just drop violating traffic as configured in &lt;A href="http://bit.ly/1a1waga" target="_blank" rel="nofollow noreferrer noopener"&gt;7537&lt;/A&gt;.# cos port-resource&lt;BR /&gt;
set cos port-resource irl 0.0 2 unit pps rate 20 syslog enable disable-port enable&lt;BR /&gt;
set cos port-resource irl 0.1 2 unit pps rate 20 syslog enable disable-port enableEnabling the cos state alllows all the issued 'set cos' commands to become active.# cos state&lt;BR /&gt;
set cos state enableIt is important to see log messages when a rate limiter has been hit. Policy/cos messages generate at level 7, though by default they are only displayed at level 6 and lower.# logging&lt;BR /&gt;
set logging application UPN level 7After exposing port ge.5.30 to at least 20 pps of the targeted traffic, here are some results. &lt;BR /&gt;
&lt;BR /&gt;
Example of resulting syslog messages:&amp;lt;166&amp;gt;Mar  6 16:12:11 10.26.156.19 UPN[5]CosTable Inbound Rate Limiter 1 was violated on ge.5.30&lt;BR /&gt;
&amp;lt;166&amp;gt;Mar  6 16:12:11 10.26.156.19 UPN[5]ge.5.30 disabled by Inbound Rate Limiter 1 violationA 'show port status' command will now show the port as operstatus down (and the Link LED remains on), and a 'show port operstatuscause' will show why.Matrix N5 Platinum(su)-&amp;gt;show port status ge.5.30&lt;BR /&gt;
 &lt;BR /&gt;
Port         Alias            Oper     Admin   Speed  Duplex  Type&lt;BR /&gt;
             (truncated)      Status   Status  (bps)&lt;BR /&gt;
------------ ---------------- -------- ------- ------ ------- ------------------&lt;BR /&gt;
ge.5.30                       down     up        1.0G full    1000-t       rj45&lt;BR /&gt;
1 of 1 ports displayed, 0 port(s) with oper status 'up' or 'dormant'.&lt;BR /&gt;
 &lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;show port operstatuscause ge.5.30&lt;BR /&gt;
          +------------------------------+&lt;BR /&gt;
          | A  L  L                 D    |&lt;BR /&gt;
          | D  L  F  S  I  F        O    |&lt;BR /&gt;
          | M  O  L  E  N  L  P  C  T  L |&lt;BR /&gt;
          | I  S  A  L  I  O  O  O  1  A |&lt;BR /&gt;
Port      | N  S  P  F  T  W  L  S  X  G |&lt;BR /&gt;
----------+------------------------------+&lt;BR /&gt;
ge.5.30   | .  .  .  .  .  .  .  X  .  . |&lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;Use 'clear port operstatuscause' to regain use of this port.Matrix N5 Platinum(su)-&amp;gt;clear port operstatuscause&lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;show port status ge.5.30&lt;BR /&gt;
 &lt;BR /&gt;
Port         Alias            Oper     Admin   Speed  Duplex  Type&lt;BR /&gt;
             (truncated)      Status   Status  (bps)&lt;BR /&gt;
------------ ---------------- -------- ------- ------ ------- ------------------&lt;BR /&gt;
ge.5.30                       up       up        1.0G full    1000-t       rj45&lt;BR /&gt;
1 of 1 ports displayed, 1 port(s) with oper status 'up' or 'dormant'.&lt;BR /&gt;
 &lt;BR /&gt;
Matrix N5 Platinum(su)-&amp;gt;</description>
      <pubDate>Wed, 27 Nov 2013 04:23:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/faqs/disabling-ports-using-inbound-rate-limiters-on-the-n-series/m-p/42006#M83</guid>
      <dc:creator>FAQ_User</dc:creator>
      <dc:date>2013-11-27T04:23:00Z</dc:date>
    </item>
  </channel>
</rss>

