coqos_add.1.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. coqos_add.1
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='config2cfg.1.html' title=' config2cfg.1 '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='coqos_info.1.html' title=' coqos_info.1 '>NEXT</a>]
  19. </div>
  20. <pre>
  21. coqos_add(1) Qualcomm Atheros Open Powerline Toolkit coqos_add(1)
  22. NAME
  23. coqos_add - Add a managed data stream
  24. SYNOPSIS
  25. coqos_add action priority rate ttl operand condition [condition] [...] [device] [...]
  26. DESCRIPTION
  27. This page is under construction.
  28. Add a managed stream to one or more powerline devices using the VS_CONN_ADD message. Consult the Qualcomm Atheros
  29. Firmware Technical Reference Manual for a description of this vendor specific message type.
  30. This program is part of the Qualcomm Atheros Powerline Toolkit. See the plc man page for an overview and installation
  31. instructions.
  32. BACKGROUND
  33. Bandwidth management prioritizes streams so that data from lowest priority stream is dropped first whenever one of the
  34. following conditions is detected. This ensures that the remaining streams continue operate at their full pontential.
  35. Degraded line condition
  36. The channel degrades to the point where the available PHY rate from the transmitter to the receiver is too low due
  37. to the variability of the power line.s characteristics.
  38. Over subscription
  39. Too much data is being sent per second, resulting in packet loss due to excessive collisions due to excessive
  40. channel oversubscription.
  41. Lack of channel Capacity
  42. On starting new source there is not enough channel capacity to support it.
  43. OPTIONS
  44. -e Redirects stderr messages to stdout. By convention progress messages and error messages are printed on stderr
  45. while primary program output is printed on stdout. This option prints all output on stdout in cases where this is
  46. desired.
  47. -i interface
  48. Select the host Ethernet interface. All requests are sent via this host interface and only reponses received via
  49. this host interface are recognized. The default interface is eth1 because most people use eth0 as their principle
  50. network connection; however, if environment string &quot;PLC&quot; is defined then it takes precedence over the default
  51. interface. This option then takes precedence over either default.
  52. -q Suppresses status messages on stderr.
  53. -r Display relative memory offsets on output. This option is the default.
  54. -v Prints additional information on stdout. In particular, this option dumps outgoing Ethernet packets on stdout.
  55. -?,--help
  56. Displays program help information on stderr. This option takes precedence over all other options on the command
  57. line except version information.
  58. -!,--version
  59. Displays program version information on stderr. This option takes precedence over all other options on the com‐
  60. mand line except help information. Use this option when sending screen dumps to Atheros technical staff.
  61. ARGUMENTS
  62. action The action taken for frames that satisfy the selection criteria. Valid actions are &quot;CAP0&quot;, &quot;CAP1&quot;, &quot;CAP2&quot;, &quot;CAP3&quot;
  63. to specify the channel access priority queue. CAP0 and CAP1 are for best effort data. CAP2 is for video and non
  64. urgent MMEs. CAP3 is for voice, urgent MMEs and control messages such as IGMP and MLD.
  65. priority
  66. The relative priority of this stream. Valid values are 0 through 15 where 0 is the lowest priority and 15 is the
  67. highest.
  68. destination
  69. The destination MAC address.
  70. rate The average expected data rate for this stream. Valid values are 1 to 9000 where units are in 10kbps so the mini‐
  71. mum rate is 10kbps and the maximum rate is 90mbps.
  72. ttl The time to live for this stream. Valid values are 10000 to 2000000 where units are in microseconds so the mini‐
  73. mum is time is 10 milliseconds and the maximum time is 2 seconds.
  74. operand
  75. The operand specifies the logical relationship between conditions before the action to be taken. Valid operands
  76. are listed and described under OPERANDS.
  77. condition
  78. A conditional expression consisting of a field, operator and value. See CONDITIONS for more information.
  79. device The MAC address of some powerline device. More than one address may be specified on the command line. If more
  80. than one address is specified then operations are performed on each device in turn. The default address is
  81. &quot;local&quot;. See DEVICES for more information.
  82. CONDITIONS
  83. A condition consists of a field, an operator and a value. One condition is required but three are permitted. Condition
  84. order is not important but all conditions must appear after the operand and before the control.
  85. field The field is the part of the Ethernet frame to be examined. Some fields are not valid for some actions but this
  86. program does not enforce such rules since validation is performed by runtime firmware on each device. Recognized
  87. fields are listed and described under FIELDS.
  88. operator
  89. The operator specifies the relationsip that must exist between the field and value in order for the condition to
  90. evaluate True. Currently, only equality operators are supported. Valid operators are listed and described under
  91. OPERATORS.
  92. value The value must be appropriate to the field type. Some fields are MAC or IP addresses, some are integers, some are
  93. bitmaps and others are states. Integers and bitmaps may be expressed in binary, decimal or hexadecimal format.
  94. Binary values staRt with 0b. Hexadecimal values start with 0x. States are expressed using keywords. Users are
  95. responsible for knowing how many bits are significant for each type of value. Valid values are described along
  96. with fields under FIELDS.
  97. OPERANDS
  98. The operand indicates the logical relationship that must exist between conditions in the rule set before the action is
  99. applied to a frame. Operands are expressed as discrete alphanumeric strings entered in upper, lower or mixed character
  100. case. Failure to enter a known operand will result in an error message that lists all possible operands. They are posi‐
  101. ton sensitive. One operand is allowed and it must appear after the action and before any condition.
  102. Any Apply the action to frames that satisfy any of the conditions. This is equivalent to the logical or operation.
  103. All Apply the action to frames that satisfy all of the conditions. This is equivalent to the logical and operation.
  104. Always Apply the action to all frames, regardless of any and all conditions that may be specified.
  105. FIELDS
  106. Fields indicate the portion of the frame that is inspected during selection and the size and format of the value permited
  107. in the condition statement. They are expressed as discrete alphanumeric strings entered in upper, lower or mixed charac‐
  108. ter case. Failure to enter a known field will result in an error message that lists all possible fields.
  109. ET A 16-bit Ethertype expressed in decimal, hexadecimal or binary. The format is described in IEEE Standard 802-2001
  110. [4].
  111. EthDA A 48-bit Ethernet destination address expressed in hexadecimal. The format is described in IEEE Standard 802-2001
  112. [4].
  113. EthSA A 48-bit Ethernet source address expressed in hexadecimal. The format is described in IEEE Standard 802-2001 [4].
  114. VLANUP An 8-bit Ethernet VLAN tag where the lower 3 bits are the User Priority sub-field of a VLAN Tag defined in IEEE
  115. Std 802.1Q-1998 (Virtual Bridged Local Area Networks) [11]. The upper 5 bits should be zero.
  116. VLANID A 16-bit VLAN identifier where the lower 12 bits are the VLAN Identifier (VID) defined in IEEE Std 802.1Q-1998
  117. (Virtual Bridged Local Area Networks) [11]. The upper 4 bits should be zero.
  118. IPV4TOS
  119. An 8-bit Type-of-Service code where the format is defined in the RFC 791 (Internet Protocol) [14].
  120. IPV4PROT
  121. An 8-bit Ethernet Protocol identifier. The format is defined in the RFC 791 (Internet Protocol) [14].
  122. IPV4SA A 32-bit Internet Protocol source address expressed in dotted-decimal notation. The official format is defined in
  123. RFC 791 (Internet Protocol) [14]. Our implementation permits empty octets and leading zeros within fields. For
  124. example, &quot;...&quot; is equivalent to &quot;0.0.0.0 and &quot;127..000.001&quot; is equivalent to &quot;127.0.0.1&quot;.
  125. IPV4DA A 32-bit Internet Protocol destination address expressed in dotted-decimal notation. The official format is
  126. defined in RFC 791 (internet Protocol) [14]. Our implementation permits empty octets and leading zeros within
  127. fields. For example, &quot;...&quot; is equivalent to &quot;0.0.0.0 and &quot;127..000.001&quot; is equivalent to &quot;127.0.0.1&quot;.
  128. IPV6TC An 8-bit Internet Protocol V6 traffic class expressed as defined in RFC 2460 (Internet Protocol Version 6) [17].
  129. IPV6FL A 24-bit IPV6 flow label where the lower 20 bits are the IPv6 Flow Label defined in RFC 2460 (Internat Protocol
  130. Version 6) [17]. The upper 4 bits should be zero. The value can be entered either as a decimal, binary or hex
  131. integer.
  132. IPV6SA A 128-bit IPV6 source address expressed as colon-separated hexadecmial quartets (octet pairs). The official for‐
  133. mat is defined in RFC 2460 (Internet Protocol Version 6) [17]. Our implementation permits multiple empty fields,
  134. abreviated fields and leading zeros within fields. When multiple empty fields appear, only the right-most occu‐
  135. rance expands to zeros. For example, &quot;FFFF::DDDD::BBBB::AAAA&quot; is equivalent to
  136. &quot;FFFF:0000:DDDD:0000:BBBB:0000:0000:AAAA&quot;.
  137. IPV6DA A 128-bit IPV6 destination address expressed as colon-separated hexadecimal quartets (octet pairs). The official
  138. format is defined in RFC 2460 (Internet Protocol Version 6) [17]. Our implementation permits multiple empty
  139. fields, abbreviated fields and leading zeros within fields. When multiple empty fields appear, only the right-
  140. most occurance expands to zeros. For example, &quot;AAAA::BBBB::CCCC::DDDD&quot; is equivalent to
  141. &quot;AAAA:0000:BBBB:0000:CCCC:0000:0000:DDDD&quot;.
  142. TCPSP A 16-bit TCP source port as a decimal integer. The format is defined in RFC 793 (Transmission Control Protocol
  143. [15]).
  144. TCPDP A 16-bit TCP destination port expressed as a decimal integer. The format is defined in RFC 793 (Transmission Con‐
  145. trol Protocol [15]).
  146. UDPSP A 16-bit UDP source port expressed as a decimal integer. The format is defined in RFC 768 (User Datagram Protocol
  147. [13]).
  148. UDPDP A 16-bit UDP destination port expressed as a decimal integer. The format is defined in RFC 768 (User Datagram
  149. Protocol [13]).
  150. IPSP A 16-bit IP source port expressed as a decimal integer. This condition applies to either TCP or UDP packets,
  151. depending on the protocol used, and is valid only for actions &quot;CAP0&quot;, &quot;CAP1&quot;, &quot;CAP2&quot;, &quot;CAP3&quot; and &quot;Drop&quot;.
  152. IPDP A 16-bit IP destination port expressed as a decimal integer. This condition applies to either TCP or UDP packets,
  153. depending on the protocol used, and is valid only for actions &quot;CAP0&quot;, &quot;CAP1&quot;, &quot;CAP2&quot;, &quot;CAP3&quot; and &quot;Drop&quot;.
  154. MME A 24-bit Atheros HomePlugAV Management Message type expressed in hexadecimal. The first byte is the MMV and the
  155. next two bytes are the MMTYPE for a HomePlug AV frame as defined in the HomePlug AV Specification. The MMTYPE
  156. will match any MME sub-type (Request; Confirm; Indicate; Response). This field is only valid for action &quot;Boost&quot;.
  157. OPERATORS
  158. An operator indicates an equality between a field and a value. An operator is an alphanumeric string entered in upper,
  159. lower or mixed character case. Failure to enter a known operator will result in an error message that lists all possible
  160. operators. Operators are position sensitive and must appear between each field and value.
  161. Is Indicates that the frame field must equal the associated value for the condition to evaluate true.
  162. Not Indicates that the frame field must not equal the associated value for the condition to true true.
  163. STATES
  164. A state is a special case of value.
  165. True,On,Yes,Present
  166. Indicates a positive state or presence of some entity. All are equivalent and can be used interchangeably. Dou‐
  167. ble negatives are permitted so &quot;Is True&quot; is equvalent to &quot;Not False&quot;.
  168. False,Off,No,Missing
  169. Indicates a negative state or absence of some entity. ALl are equivalent and can be used interchangeably. Double
  170. negatives are permitted so &quot;Is False&quot; is equvalent to &quot;Not True&quot;.
  171. DEVICES
  172. Powerline devices use Ethernet Media Access Control (MAC) addresses. A MAC address is a 48-bit value entered as 12 hexa‐
  173. decimal digits in upper, lower or mixed character case. Octets may be separated with colons for clarity. For example,
  174. &quot;00b052000001&quot;, &quot;00:b0:52:00:00:01&quot; and &quot;00b052:000001&quot; are valid and equivalent.
  175. The following MAC addresses are common or special and may be entered by name instead of number.
  176. all Same as &quot;broadcast&quot;.
  177. broadcast
  178. A synonym for the Ethernet broadcast address, FF:FF:FF:FF:FF:FF. All devices, whether local, remote or foreign
  179. recognize messages sent to this address. A remote device is any device at the far end of a powerline connection.
  180. A foreign device is any device not manufactured by Atheros.
  181. local A synonym for the Qualcomm Atheros vendor specific Local Management Address (LMA), 00:B0:52:00:00:01. All local
  182. Atheros devices recognize this address but remote and foreign devices do not. A remote device is any device at
  183. the far end of a powerline connection. A foreign device is any device not manufactured by Atheros. See the Qual‐
  184. comm Atheros HomePlug AV Firmware Technical Reference Manual for more information.
  185. DISCLAIMER
  186. Atheros HomePlug AV Vendor Specific Management Message structure and content is proprietary to Qualcomm Atheros, Ocala FL
  187. USA. Consequently, public information may not be available. Qualcomm Atheros reserves the right to modify message
  188. structure and content in future firmware releases without any obligation to notify or compensate users of this program.
  189. EXAMPLES
  190. The following example adds a temporary stream to device 00:b0:52:BA:BE:01 which will then manage the bandwidth for that
  191. stream until removed with program coqos_rel.
  192. # coqos_add CAP2 15 5000 200000 any ethda is 192.168.105 00:B0:52:BA:BE:01
  193. This adds a stream to the bandwidth manager that sets all traffic to destination address of 192.168.0.105 as priority 15
  194. (the highest priority). This would then need to also be sent to each device on the network. Refer to int6krule for more
  195. details on how to specify conditions.
  196. SEE ALSO
  197. coqos_info(1), coqos_man(1), coqos_mod(1), coqos_rel(1)
  198. CREDITS
  199. Bill Wike &lt;bill.wike@qca.qualcomm.com&gt;
  200. Nathaniel Houghton &lt;nhoughto@qca.qualcomm.com&gt;
  201. Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  202. open-plc-utils-0.0.3 Mar 2014 coqos_add(1)
  203. </pre>
  204. <div class='footerlink'>
  205. [<a href='config2cfg.1.html' title=' config2cfg.1 '>PREV</a>]
  206. [<a href='toolkit.html' title=' Index '>HOME</a>]
  207. [<a href='coqos_info.1.html' title=' coqos_info.1 '>NEXT</a>]
  208. </div>
  209. </body>
  210. </html>