Calix EXA - Configure Rate Limiting on E7 Ethernet Port
Background
In some cases a subscriber may be connected directly to an E7 Ethernet port.
In general this is not our recommendation! In this scenario it is not possible to protect from a subscriber using the wrong IP address or even spoofing the gateway. Using an ONT is preferred in most instances to avoid this.
However, if a subscribe does directly connect it's important to be able to limit the subscriber to the specified bandwidth. Use these steps to configure rate limiting on the port.
The overall steps are as follows:
- Upstream (inbound) Rate Limiting
- Create a Class Map to match any traffic
- Create a a Policy Map using the Class Map and set the upload speed in the Policy Map
- Apply the Policy Map to an interface
- Downstream (outbound) Rate Limiting
- Create a COS profile with the desired download speed on the shaper
- Apply the COS profile as the COS Config on the Ethernet Port
Create Class Map to Match any/all Traffic
Navigate to POLICES->CLASS MAP, then click CREATE

Name the class map ANY and set type to any. You should then be taken to the class map screen.

Then add a class rule by clicking CREATE. Fill in the Class Rule with an index of 1 and leave the rest of the options as default. Then click CREATE.

You should now have a Class map that looks like the following:

Create a Policy Map to limit traffic to a certain Upload speed
Navigate to POLICES->POLICY MAP and click CREATE
Give the Policy map a name such as "100M_UP"

Double click on the Policy Map to edit it. Then Click CREATE to add an entry.
Fill in the data as follows:
-
Seq Num: 1
-
Class Map: ANY (the one you just created)
-
Rate Limit: The desired speed plus some padding in Mbps. For example, I chose 105 for a 100 Mbps plan
-
Max Burst Size: 256 is a good number
Apply the Upstream Rate Limit to a port
Navigate to the port, then go to the Interface page. On the Interface page select the profile you created from the list. This will apply that profile to incoming (upload) traffic.

Create a COS profile for Downstream (Download) Rate Limiting
Go to PROFILES->COS->ETHERNET

Click CREATE to make a new COS profile. Fill in the following:
-
Name: Descriptive Name such as "100M_DOWN"
-
Port Shaping Rate: Desired speed plus some padding such as 105 for a 100 Mbps plan
-
Port Burst Size: 256 is a general good value

Apply the COS Profile to an Eth-Port
Navigate to the Eth-Port and select the created profile for the COS Config on the port. The click APPLY.
