From 09c596b09faf4c85131cc2b44b20c21e05d3396b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 3 Oct 2018 13:04:16 +0200 Subject: QoS: fix build warnings --- docs/ch10-qos.rst | 51 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/docs/ch10-qos.rst b/docs/ch10-qos.rst index 114d64ba..a6faf0c0 100644 --- a/docs/ch10-qos.rst +++ b/docs/ch10-qos.rst @@ -182,8 +182,8 @@ Matching rules ` * Add a description: - :code:`set traffic-policy limiter class match - description ` + :code:`set traffic-policy limiter class match + description ` * Specify the priority of a matching rule to set the order in which the rules are evaluated, the higher the number the lower the priority, range 0...20 @@ -266,11 +266,12 @@ Available commands: :code:`set traffic-policy network-emulator ` * Add a description: - :code:`set traffic-policy network-emulator description ` + :code:`set traffic-policy network-emulator description ` * Specify a bandwidth limit in kbit/s: :code:`set traffic-policy network-emulator bandwidth ` Available suffixes: + * kbit (kilobits per second, default) * mbit (megabits per second) * gbit (gigabits per second) @@ -281,6 +282,7 @@ Available commands: * Set a burst size, the maximum amount of traffic that can be sent, in bytes: :code:`set traffic-policy network-emulator burst ` Available suffixes: + * kb (kilobytes) * mb (megabytes) * gb (gigabytes) @@ -288,13 +290,14 @@ Available commands: * Define a delay between packets: :code:`set traffic-policy network-emulator network-delay ` Available suffixes: + * secs (seconds) * ms (milliseconds, default) * us (microseconds) * Set a percentage of corrupted of packets (one bit flip, unchanged checksum): - :code:`set traffic-policy network-emulator packet-corruption - ` + :code:`set traffic-policy network-emulator packet-corruption + ` * Set a percentage of random packet loss: :code:`set traffic-policy network-emulator packet-loss ` @@ -304,7 +307,7 @@ Available commands: ` * Set a queue length limit in packets, range 0...4294967295, default 127: - :code:`set traffic-policy network-emulator queue-limit ` + :code:`set traffic-policy network-emulator queue-limit ` Priority queue ^^^^^^^^^^^^^^ @@ -318,10 +321,10 @@ transmitted after traffic volume from higher priority queues decreases. Available commands: * Define a priority queue: - :code:`set traffic-policy priority-queue ` + :code:`set traffic-policy priority-queue ` * Add a description: - :code:`set traffic-policy priority-queue description ` + :code:`set traffic-policy priority-queue description ` Traffic classes *************** @@ -338,25 +341,29 @@ Traffic classes queue-limit ` * Specify a queue type for a traffic class, available queue types: + * drop-tail * fair-queue * random-detect + :code:`set traffic-policy priority-queue class queue-type ` **Default class** * Define a default priority queue: - :code:`set traffic-policy priority-queue default` + :code:`set traffic-policy priority-queue default` * Define a maximum queue length for the default traffic class in packets: - :code:`set traffic-policy priority-queue default queue-limit - ` + :code:`set traffic-policy priority-queue default queue-limit + ` * Specify the queuing type for the default traffic class, available queue types: + * drop-tail * fair-queue * random-detect + :code:`set traffic-policy priority-queue default queue-type ` Matching rules @@ -462,6 +469,7 @@ Available commands: * Set a bandwidth limit, default auto: :code:`set traffic-policy random-detect bandwidth ` Available suffixes: + * auto (bandwidth limit based on interface speed, default) * kbit (kilobits per second) * mbit (megabits per second) @@ -584,6 +592,7 @@ Available commands: * Specify a bandwidth limit in kbits/s: :code:`set traffic-policy rate-control bandwidth ` Available suffixes: + * kbit (kilobits per second, default) * mbit (megabits per second) * gbit (gigabits per second) @@ -594,6 +603,7 @@ Available commands: * Specify a burst size in bytes, default 15 kilobytes: :code:`set traffic-policy rate-control burst ` Available suffixes: + * kb (kilobytes) * mb (megabytes) * gb (gigabytes) @@ -602,6 +612,7 @@ Available commands: allowed to wait in the queue, default 50 milliseconds: :code:`set traffic-policy rate-control latency` Available suffixes: + * secs (seconds) * ms (milliseconds, default) * us (microseconds) @@ -615,13 +626,13 @@ classes. Available commands: * Define a round robin policy: - :code:`set traffic-policy round-robin ` + :code:`set traffic-policy round-robin ` * Add a description: - :code:`set traffic-policy round-robin description ` + :code:`set traffic-policy round-robin description ` * Define a traffic class ID, range 2...4095: - :code:`set traffic-policy round-robin class ` + :code:`set traffic-policy round-robin class ` **Default policy:** @@ -635,9 +646,11 @@ Available commands: :code:`set traffic-policy round-robin default queue-limit ` * Specify the queuing type for the default policy, available queue types: + * drop-tail * fair-queue * priority (based on the DSCP values in the ToS byte) + :code:`set traffic-policy round-robin default queue-type ` Matching rules @@ -741,6 +754,7 @@ Avialable commands: default 100%: :code:`set traffic-policy shaper bandwidth ` Available suffixes: + * % (percentage of total bandwidth) * kbit (kilobits per second) * mbit (megabits per second) @@ -750,7 +764,7 @@ Avialable commands: * gbps (gigabytes per second) Traffic classes -*************** +^^^^^^^^^^^^^^^ * Define a traffic class for a shaper policy, range for class ID is 2...4095: :code:`set traffic-policy shaper class ` @@ -762,6 +776,7 @@ Traffic classes * Specify a bandwidth limit for a class, in kbit/s: :code:`set traffic-policy shaper class bandwidth ` Available suffixes: + * kbit (kilobits per second, default) * mbit (megabits per second) * gbit (gigabits per second) @@ -772,6 +787,7 @@ Traffic classes * Set a burst size for a class, the maximum amount of traffic that can be sent, in bytes: :code:`set traffic-policy shaper class burst ` Available suffixes: + * kb (kilobytes) * mb (megabytes) * gb (gigabytes) @@ -779,6 +795,7 @@ Traffic classes * Set a bandwidth ceiling for a class in kbit/s: :code:`set traffic-policy shaper class ceiling ` Available suffixes: + * % (percentage of total bandwidth) * kbit (kilobits per second) * mbit (megabits per second) @@ -795,10 +812,12 @@ Traffic classes * Specify a queue type for a traffic class, default fair-queue. Available queue types: + * drop-tail * fair-queue * random-detect * priority + :code:`set traffic-policy shaper class queue-type ` * Modify DSCP field; the DSCP field value of packets in a class can be @@ -842,7 +861,7 @@ Traffic classes +---------+------------+--------+------------------------------+ Matching rules -************** +^^^^^^^^^^^^^^ * Define a class matching rule: :code:`set traffic-policy shaper class match -- cgit v1.2.3