Page 126 / 216 Scroll up to view Page 121 - 125
Administrator’s Handbook
126
set filterset name
filterset_name
rule
number
match-dscp [
number
|
diffserv_class_string
]
Matches diffserv class with supplied numerical value, which can be in decimal(ex: 32) or in Hex(ex: 0x20);
Or match the supplied diffserv class. This value may be any of the BE, EF, AFxx or CSx classes. A full list is:
{ "CS0", 0x00 }
{ "CS1", 0x08 }
{ "CS2", 0x10 }
{ "CS3", 0x18 }
{ "CS4", 0x20 }
{ "CS5", 0x28 }
{ "CS6", 0x30 }
{ "CS7", 0x38 }
{ "BE", 0x00 }
{ "AF11", 0x0a }
{ "AF12", 0x0c }
{ "AF13", 0x0e }
{ "AF21", 0x12 }
{ "AF22", 0x14 }
{ "AF23", 0x16 }
{ "AF31", 0x1a }
{ "AF32", 0x1c }
{ "AF33", 0x1e }
{ "AF41", 0x22 }
{ "AF42", 0x24 }
{ "AF43", 0x26 }
{ "EF", 0x2e }
set filterset name
filterset_name
rule
number
match-src-port
number
[
number
]
Matches TCP|UDP source port field or port range.
set filterset name
filterset_name
rule
number
match-dst-port
number
[
number
]
Matches TCP|UDP destination port field or port range.
set filterset name
filterset_name
rule
number
match-tcp-flags
tcp_flag_string
Matches TCP flags in a packet. The flag string is comma-delimited.
set filterset name
filterset_name
rule
number
match-packet-length
number
[
number
]
Matches packet length against value or range.
set filterset name
filterset_name
rule
number
action forward [ pass | drop | reject ]
Executes the named filterset’s default action:
pass
,
drop
, or
reject
.
set filterset name
filterset_name
rule
number
match-qos-marker-enable [ off | on ]
Turns the function of tagging the packet according to the queue marker name on or off. Default is
off
.
Page 127 / 216
127
set filterset name
filterset_name
rule
number
action set-qos-marker
qos_marker_string
Tags the packet according to the queue marker name. See
Queue commands
” on page
128
.
set filterset name
filterset_name
rule
number
action set-tos
number
Sets the packet tos field to the supplied value.
set filterset name
filterset_name
rule
number
action set-dscp [
number
|
diffserv_class_string
]
Sets the dscp field to the supplied value.
set filterset name
filterset_name
rule
number
action set-eth-p-bits
number
Sets vlan priority bits to the supplied value.
set filterset
filterset_name
rule
number
action do-filterset
name
Executes the supplied filterset.
Default actions
If a packet passes through all of a filter's rules without a match, then the filterset's default-actions come into play.
These behave the same way that rule actions behave.
set filterset name
filterset_name
default-action set-qos-marker
qos_marker_string
Tags the packet according to the queue marker name.
set filterset name
filterset_name
default-action set-tos
number
Sets the packet tos field to the supplied value.
set filterset name
filterset_name
default-action set-dscp [
number
|
diffserv_class_string
]
Sets the dscp field to the supplied value.
set filterset name
filterset_name
default-action set-eth-p-bits
number
Sets vlan priority bits to the supplied value.
set filterset name
filterset_name
default-action do-filterset
name
Executes the supplied filterset.
set filterset name
filterset_name
default-action forward
[ pass | drop | reject ]
Executes the named filterset’s default action:
pass
,
drop
, or
reject
.
Page 128 / 216
Administrator’s Handbook
128
Queue commands
Queue configuration typically requires a classification component to set a QoS marker to a packet and a queueing
component to schedule the marked packets to the link. This is accomplished using filtersets (
Filterset com-
mands
” on page
124
).
The
basic queue
's
size
and “
length
” are controls for how many packets and total bytes can be enqueued before
it is considered to be full. Once it is full, any attempts to enqueue another packet will result in a “tail-drop.”
Both constraints are simultaneously used, such that it is full when either packet count OR byte count exceeds the
limit. This allows flexibility in obtaining a balance, where a large number of small packets, but only a small number
of large packets can be enqueued.
If there are no tail-drops – that is, the queue is not blocked from sending and doesn't over-fill and dump packets –
then these queue size/bytes parameters do not affect anything. Their only function is to adjust the threshold at
which the queue is considered full, which dictates when tail drops will occur. So if there are no tail-drops, then
increasing the queue length will have no effect. Increasing the queue length has no effect unless there are tail-
drops.
The maximum size/bytes of a queue balances how much burstiness can be buffered versus having a queue that is
simply too long.
Burstiness smoothing
requires queueing up the buffers. For example, if the upstream line rate is 1mbps, but the
traffic source sends 100mbps bursts for 10ms every second (which coincidentally averages 1mbps) then the
router will have to buffer enough (about a full second worth of traffic) so that the burst of traffic doesn't get tail-
dropped when it arrives and is enqueued at the same time in the same burst.
On the other hand, it is undesirable to buffer too much data in the queue(s) since the packets may be stale by the
time they are sent. It may be desirable to drop the traffic sufficiently that there are queuing disciplines such as
Random Early Discard (
red
) that don't drop from the tail of the queue. Instead,
red
drops packets towards the
front of the queue, so that the congestion is noticed more quickly in order for the sender to scale back bandwidth
usage to avoid drops.
the following types of queue “building blocks” are supported:
basic
queue
ingress
queue
priority
queue
wfq
(weighted fair queue)
Basic queues have three different packet dropping options
byte|packet fifo (bpfifo)
random early discard (
red
)
stochastic fairness queuing (
sfq
)
set queue name
queue_name
type [ basic | ingress | priority | wfq ]
Sets the type of queue.
set queue name
queue_name
options [ off | red | sfq ]
Sets the queue packet dropping options.
set queue name
queue_name
size [ 1... 64 ]
Sets the maximum number of packets that can be enqueued.
Page 129 / 216
129
set queue name
queue_name
bytes [ 2048... 131072 ]
Sets the maximum total number of bytes that can be enqueued.
set queue name
queue_name
perturb [ 0... 100 ]
Sets the interval in seconds for queue algorithm perturbation when queue option is
sfq
.
set queue name
queue_name
police-rate [ 0... 100000000 ]
Sets the rate in milliseconds that is used for policing traffic when the queue type is
ingress
.
set queue name
queue_name
police-burst [ 0... 100000000 ]
Sets the burst rate in milliseconds that is used for policing traffic when the queue type is
ingress
.
set queue name
queue_name
bw-sharing [ on | off ]
Enables or disables bandwidth sharing, when the queue type is either
priority
or
wfq
.
set queue name
queue_name
bps-mode [ bps | relative ]
Sets the mode of the weighted fair queue.
bps
indicates that weights are defined as “bits-per-second”.
relative
indicates that weights are defined as a proportion of the sum of the weights of all inputs to the
wfq
.
set queue name
queue_name
entry
number
input
queue_name
Sets the input to a priority or weighted fair queue.
set queue name
queue_name
entry
number
marker
queue_marker
Sets the marker with which packets must be marked to be directed to this queue entry's input queue when the
type is
priority
or
wfq
.
set queue name
queue_name
entry
number
priority [ 0... 255 ]
Sets the priority level of this queue. A lower value indicates a higher priority. All entries of equal priority will be sub-
ject to a round robin algorithm.
for (strict)
priority
queue, the higher priority gets link resource first.
for
wfq
queue, each entry gets reserved bandwidth according to its weight. If different priority is given, any
excess bandwidth is offered to higher priority entry first; otherwise any excess bandwidth is distributed to the
weights ratio.
set queue name
queue_name
entry
number
weight [ 0... 100 ]
Sets the weight level of this weighted fair queue. Weight units are dependent on
bps-mode
setting.
If
bps-mode
is set to
bps
, then setting the weight to 0 will allocate the remaining available bandwidth to the
queue entry.
If no priority specified, excess bandwidth will be distributed proportionately to the weight ratio.
set queue name
queue_name
entry
number
peak [ 0... 100,000,000 ]
Sets the peak level of this weighted fair queue. The
peak
parameter is a number of 0 through 100,000,000 in bits/
second. It must be at least 50,000 for best effect. It is the peak data rate allowed on the queue entry, and usually
Page 130 / 216
Administrator’s Handbook
130
supports bandwidth sharing, that is, if other queues are not busy and there is spare bandwidth, then a busy queue
is allowed to go up to the peak rate.
set queue name
queue_name
default-entry
queue_name
Indicates the input queue which is used if there is no match between the packet queue marker and the configured
markers in any of the queue's inputs when the queue type is
priority
or
wfq
.
IP Gateway commands
set ip gateway enable [ on | off ]
Specifies the
conn
of the gateway. Normally, this would be the WAN connection.
Specifies whether the Motor-
ola Gateway should send packets to a default Gateway if it does not know how to reach the destination
host.
set ip gateway conn-oid
value
Sets the
default Gateway
to point to an associated link specified by the
conn-oid
value.
set ip gateway address
ip_address
Specifies the IP address of a host on a local or remote network in standard dotted-quad format.
IPv6 Commands
set ip6 enable [ on | off ]
Enables/disables IPv6 globally. The default is
off
. When enabled, the following default configuration is created:
set ip6 enable on
set ip6 conn name "WANv6" enable on
set ip6 conn name "WANv6" type rd
set ip6 conn name "WANv6" mtu 1472
set ip6 conn name "WANv6" side wan
set ip6 conn name "WANv6" mcast-forwarding off
set ip6 conn name "WANv6" icmp-echo-drop on
set ip6 conn name "WANv6" traffic-class-clear on
set ip6 conn name "WANv6" 6rd-tunnel type cpe
set ip6 conn name "WANv6" 6rd-tunnel ipv4-conn "WAN"
set ip6 conn name "WANv6" 6rd-tunnel use-dhcp-values off
set ip6 conn name "WANv6" 6rd-tunnel prefix "::"
set ip6 conn name "WANv6" 6rd-tunnel prefix-length 1
set ip6 conn name "WANv6" 6rd-tunnel ipv4-common-bits 0
set ip6 conn name "WANv6" 6rd-tunnel relay-ipv4-addr "0.0.0.0"
set ip6 conn name "WANv6" 6rd-tunnel ipv4-tx-tos-mode off
set ip6 conn name "WANv6" 6rd-tunnel force-tx-to-br on
set ip6 conn name "WANv6" 6rd-tunnel anti-spoof-enable on
set ip6 conn name "WANv6" 6rd-tunnel tx-df-bit-set on
set ip6 conn name "LANv6" enable off
set ip6 gateway enable on
set ip6 gateway conn "WANv6"
set ip6 gateway address "::"
set ip6 dhcp-server enable on

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top