SNMP OID 中允许使用哪些字符?

Which characters are allowed in an SNMP OID?

我正在编写自定义 MIB 文件,想知道我可以在文本对象标识符 (OID) 中使用哪些字符,即。在构成标识符的字符串中,例如 iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.

似乎只允许使用字母数字字符和连字符。此外,两个连续的连字符也是被禁止的(因为它们在 MIB 文件中开始注释)。但是确切的规则是什么,标准中在哪里规定的?

SMI 的 RFC 文档包含对此类实体的明确描述,例如

For the purposes of this specification, an ASN.1 module name begins with an upper-case letter and continues with zero or more letters, digits, or hyphens, except that a hyphen can not be the last character, nor can there be two consecutive hyphens.

Reference