User guide
23
This would match a situation where the service provider is offering a 2048/1024 kbps broadband connec-
tion to the Internet. Since the service provider may want to offer VoIP and/or IPTV, these services should
not be counted in the bucket. A Non-Rate Limitation setting for the services can be made with the use of
the VLAN Id’s. In the example VLAN VID 100 is excluded from the buckets, and therefore they do not have
any rate limitations assigned.
The following rate limitation structure for ingress must be followed:
• 64kbps ~ 1Mbps : increments of 64kbps
• 1Mbps ~ 100Mbps : increments of 1Mbps
• 100Mbps ~ 200Mbps : increments of 10Mbps
The valid values are:
• 64, 128, 192, 256, 320, 384,..., 960
• 1000, 2000, 3000, 4000, ..., 100000
• 110000, 120000, 130000, ..., 200000
switch --add-vtu-entry 100:3:1:1:2:2:2:1
# put WAN and LAN port 3 and port 4 into VLAN 100, which could be IPTV. Notice
NRL bit is set, so this VLAN will bypass buckets
switch --add-vtu-entry 200:3:1:1:2:2:2:0
# put WAN and LAN port 3 and port 4 into VLAN, which could be data. Notice NRL
bit is not set, so this VLAN will not bypass buckets
#Uplink rate (DATA port 3 and 4, ingress rates of 1 Mbps)
#
# port=3, bucket=0, rate=1000kb/S, byte counter=layer3, limitation = drop
switch --set-port-ingress-rate-limit 3:0:1000:3:DROP
#Downlink rate (Total for WAN 2Mbps)
#switch --set-port-ingress-rate-limit 0:1:2000:3:DROP
# port=0(WAN), bucket=0, rate=2Mb/S, bytecounter=layer3, limitation=drop
#
# Non-Rate Limitation settings
# Enable NRL for all ports. If a VLAN is defined with “--add-vtu”, see first
command in this example, having NRL bit set, then traffic from this VLAN (VID
100) is not counted inside the bucket
switch --port-enable-vid-nrl=1:1
switch --port-enable-vid-nrl=2:1
switch --port-enable-vid-nrl=3:1
switch --port-enable-vid-nrl=4:1
egress rate limitation
The egress rate can be set by each port. The default is full 1000Mbit access.
The integer part of the value could be used to set the egress rate for a given port:
switch --set-port-egress-rate-limit=0:8192 # set the WAN port to 8Mbit/sec.
switch --set-port-egress-rate-limit=1:256 # set the LAN1 port to 256kbit/sec.
switch --set-port-egress-rate-limit=2: 1024 # set the LAN2 port to 1Mbit/sec.
switch --set-port-egress-rate-limit=3:8192 # set the LAN3 port to 8Mbit/sec.
switch --set-port-egress-rate-limit=4:512 # set the LAN4 port to 512kbit/sec.
# applicable to 7/8 port models only
switch --set-port-egress-rate-limit-ext=1:256 # set the LAN5 port to 256kbit/