summaryrefslogtreecommitdiff
path: root/templates/qos-policy/random-detect
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-23 08:57:19 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-23 15:19:54 -0700
commit87794a3d5ddb55af9cc298ec97b2892918e657d4 (patch)
treeda72c22470325ba2b891350e7c435a0bad2a2960 /templates/qos-policy/random-detect
parenta7ec99d913b0169b987a4ebdf2d26a36670b20bb (diff)
downloadvyatta-cfg-qos-87794a3d5ddb55af9cc298ec97b2892918e657d4.tar.gz
vyatta-cfg-qos-87794a3d5ddb55af9cc298ec97b2892918e657d4.zip
Reimplementation of WRED
Make a simpler version of WRED that acts more like Cisco. Use Diffserv on Linux paper for example of how to use DSMARK and GRED to achieve similar result.
Diffstat (limited to 'templates/qos-policy/random-detect')
-rw-r--r--templates/qos-policy/random-detect/node.def8
-rw-r--r--templates/qos-policy/random-detect/node.tag/bandwidth/node.def11
-rw-r--r--templates/qos-policy/random-detect/node.tag/description/node.def2
-rw-r--r--templates/qos-policy/random-detect/node.tag/precedence/node.def6
-rw-r--r--templates/qos-policy/random-detect/node.tag/precedence/node.tag/mark-probability/node.def5
-rw-r--r--templates/qos-policy/random-detect/node.tag/precedence/node.tag/maximum-threshold/node.def5
-rw-r--r--templates/qos-policy/random-detect/node.tag/precedence/node.tag/minimum-threshold/node.def5
7 files changed, 42 insertions, 0 deletions
diff --git a/templates/qos-policy/random-detect/node.def b/templates/qos-policy/random-detect/node.def
new file mode 100644
index 0000000..02911a1
--- /dev/null
+++ b/templates/qos-policy/random-detect/node.def
@@ -0,0 +1,8 @@
+tag:
+type: txt
+help: Set Weighted Random Early Detect policy
+syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$"
+ ; "only alpha-numeric policy name allowed"
+create: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)"
+delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)"
+end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy "$VAR(@)"
diff --git a/templates/qos-policy/random-detect/node.tag/bandwidth/node.def b/templates/qos-policy/random-detect/node.tag/bandwidth/node.def
new file mode 100644
index 0000000..76fa6e2
--- /dev/null
+++ b/templates/qos-policy/random-detect/node.tag/bandwidth/node.def
@@ -0,0 +1,11 @@
+type: txt
+help: Set the available bandwidth for this policy
+default: "auto"
+syntax:expression: exec "[[ \"$VAR(@)\" == \"auto\" ]] || \
+ /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$VAR(@)\""
+comp_help: Allowed values:
+ auto Set bandwidth based on interface speed (default)
+ <number> Bandwidth in Kbps
+ <number><suffix> Value with scaling suffix
+ bits per sec (kbit, mbit, gbit)
+ bytes per sec (kbps, mbps, gbps)
diff --git a/templates/qos-policy/random-detect/node.tag/description/node.def b/templates/qos-policy/random-detect/node.tag/description/node.def
new file mode 100644
index 0000000..1e8e64f
--- /dev/null
+++ b/templates/qos-policy/random-detect/node.tag/description/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: Set description for this queuing policy
diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.def
new file mode 100644
index 0000000..ac63dd6
--- /dev/null
+++ b/templates/qos-policy/random-detect/node.tag/precedence/node.def
@@ -0,0 +1,6 @@
+tag:
+type: u32
+help: Set precedence values
+syntax:expression: $VAR(@) >= 0 && $VAR(@) < 8; "IP precedence value must be between 0 and 7"
+comp_help: possible completions
+ <0-7> IP precedence number
diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/mark-probability/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/mark-probability/node.def
new file mode 100644
index 0000000..8ce98a6
--- /dev/null
+++ b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/mark-probability/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: Set the mark probability for this precedence
+syntax:expression: $VAR(@) >= 0 ; "Mark probability must be greater than 0"
+comp_help: Allowed values:
+ <number> Numeric value ( 1 / N )
diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/maximum-threshold/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/maximum-threshold/node.def
new file mode 100644
index 0000000..3032d80
--- /dev/null
+++ b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/maximum-threshold/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: Set the maximum threshold for random detection
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4096; "Threshold must be between 0 and 4096"
+comp_help: Allowed values:
+ <number> Threshold in packets
diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/minimum-threshold/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/minimum-threshold/node.def
new file mode 100644
index 0000000..fe86423
--- /dev/null
+++ b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/minimum-threshold/node.def
@@ -0,0 +1,5 @@
+type: u32
+help: Set the minimum threshold for random detection
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4096; "Threshold must be between 0 and 4096"
+comp_help: Allowed values:
+ <number> Threshold in packets