index.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <title>docsis Documentation</title>
  7. </head>
  8. <body>
  9. <h1>General Information</h1>
  10. <p>This software is © 1999,2000,2001,2002 Cornel Ciocirlan and ©
  11. 2002,2003 Evvolve Media SRL</p>
  12. <p>General questions about this software can be sent to <a href=
  13. "mailto:docsis-users@sourceforge.net">docsis-users@sourceforge.net.</a>.</p>
  14. <p>Visit <a href=
  15. "http://docsis.sourceforge.net">http://docsis.sourceforge.net</a> for
  16. the latest news on this program.</p>
  17. <h1>Description</h1>
  18. <p>This program encodes text configuration files which contain
  19. Configuration File Settings into binary configuration files, as
  20. specified by the DOCSIS RFI 1.1 Specification, Appendix C.</p>
  21. <p>It supports most DOCSIS 1.1 Configuration Settings. Not supported
  22. (currently):</p>
  23. <ul>
  24. <li>Telephony Settings</li>
  25. <li>Modem Capabilities</li>
  26. <li>TFTP server timestamp</li>
  27. <li>TFTP server provisioned modem address</li>
  28. <li>SNMPv3 settings (partial support provided)</li>
  29. </ul>
  30. <p>See DOCSIS 2.0 Radio Frequency Interface Specification, Appendix C
  31. for a description of these settings.</p>
  32. <h1>DOCSIS 1.0 considerations</h1>
  33. <p>More than one (up to 16) ClassOfService statements can appear in the
  34. configuration file. Only one BaselinePrivacy (BPI) statement can
  35. appear. The program does not check for the number of ClassOfService
  36. statements that appear, you have to make sure not to include more than
  37. 16 or unexpected results will occur (modems /CMTSes may reset).</p>
  38. <p>DOCSIS BPI Specification clearly states that the BPI settings MUST
  39. NOT be present if Privacy is not enabled in [at least one of] the
  40. ClassOfService parameters (for example if PrivacyEnable is 0 for all
  41. classes of service, BPI statement should not appear).</p>
  42. <p>The program is not yet as "intelligent" as to detect these problems
  43. automatically.</p>
  44. <h1>Usage</h1>
  45. <p>There are three modes of operation:</p>
  46. <h2>Encoding CM configuration files</h2>
  47. <p>To encode a CM configuration file, run:<br />
  48. <code>$ docsis -e cm_config_file.cfg my_key_file
  49. cm_config_file.bin</code></p>
  50. <p>The format of the text configuration file is described <a href=
  51. "config-format.html">here</a>. As sometimes an example is more useful
  52. than a truckload of documentation, we've included a few configuration
  53. files (see examples/*.cfg).</p>
  54. <p>In this mode of operation (triggered by the "-e" switch), the
  55. program will need a keyfile; this is the so-called "shared secret" or
  56. "authentication string". The program uses the string in the keyfile to
  57. calculate the CMTS MIC. This string has to be configured on the CMTS as
  58. well, otherwise the cable modem will not be able to register.</p>
  59. <p>An example key is provided in file examples/keyfile. The key is only
  60. a string of characters. Any trailing newline (\n) or carriage return
  61. (\r) characters are chopped to avoid confusion.</p>
  62. <h2>Encoding PacketCable MTA configuration files</h2>
  63. <p>To encode a CM configuration file, run:<br />
  64. <code>$ docsis -p mta_config_file.cfg mta_config_file.bin</code></p>
  65. <p>PacketCable MTA config files MUST start with the "MtaConfigDelimiter
  66. 1" configuration setting and MUST end with "MtaConfigDelimiter 255".
  67. All other configuration settings must be either SnmpMibObject or
  68. VendorSpecific. The program does not enforce this policy so you must
  69. make sure you abide by it or the MTA will reject the file.</p>
  70. <h2>Decoding CM or MTA binary configuration files</h2>
  71. <p>To decode a binary file, run:<br />
  72. <code>$ docsis -d my_binary_file.bin</code></p>
  73. <h1>Adding new configuration settings</h1>
  74. <p>To add new configuration settings, in most cases the only thing you
  75. need to do is add them to the docsis_symtable.h (make sure you select
  76. the correct type-functions for encoding and decoding).</p>
  77. <p>Because of the way the encoder works, the symbol_name must determine
  78. all other values in the table with the exception of id and parent. Thus
  79. if two symbols share the same name they must also share the same
  80. docsis_code, type-functions, limits etc. Only the id and parent can be
  81. different.</p>
  82. </body>
  83. </html>