networkingcryptography

Kept in this browser · My desk

Stands for: object identifier

An object identifier: a globally unique name written as a sequence of non-negative integers, each a branch of a tree administered from three roots (0 ITU-T, 1 ISO, 2 joint), as in 1.3.6.1.2.1.1.1 for sysDescr.

OIDs come from ASN.1 and name things in SNMP MIBs, X.509 certificates (algorithms, extensions, policies), LDAP (Lightweight Directory Access Protocol) schemas and more. Anyone who owns a node can create children, so no central list is needed below it; IANA's Private Enterprise Numbers give each organization a node under 1.3.6.1.4.1. On the wire BER packs the first two arcs into one number (40X+Y, so 1.3 becomes 2B) and writes the rest in base 128, high bit set on all but the last octet: 2636 becomes 94 4C.

What it is. An object identifier is a path through a tree whose nodes are numbered. The tree has three roots, 0 (ITU-T), 1 (ISO) and 2 (joint ISO/ITU-T), and every node is administered by whoever owns its parent. RFC 2578 states the constraints SNMP lives with: an OID is "an ordered list of non-negative numbers", each a sub-identifier, "at most 128 sub-identifiers in a value", each at most 2^32-1, and the first always 0, 1 or 2. The Internet's branch is 1.3.6.1, iso(1).org(3).dod(6).internet(1), set out in RFC 1155 in May 1990; under it, mgmt.mib-2 (1.3.6.1.2.1) holds the standard MIBs and private.enterprises (1.3.6.1.4.1) holds one node for each organization that asks IANA for a Private Enterprise Number. The registry, updated on 23 November 2026, runs from 0 to 67,764; 9 is ciscoSystems, 2011 Huawei, 2636 Juniper Networks.

How it is encoded. In BER and DER (ITU-T X.690, clause 8.19) the first two arcs are packed into one number, (X*40)+Y, which works because the roots have at most 39 children under 0 and 1; every SNMP OID therefore begins with the octet 2B (1*40+3 = 43). Every sub-identifier is then written in base 128, most significant group first, using "the fewest possible octets": bit 8 is 1 on every octet except the last of each sub-identifier. Numbers below 128 take one octet and look like themselves; 2636 is 20*128+76, written 94 4C; the whole 1.3.6.1.4.1.2636 is 06 07 2B 06 01 04 01 94 4C. X.690's own test vector is {2 100 3}, encoded 06 03 81 34 03, because 2*40+100 = 180 = 1*128+52: under arc 2 the packed first sub-identifier can exceed 127 and take two octets, which naive decoders get wrong.

Where it shows up. In SNMP, every managed object and every instance is an OID: sysDescr is 1.3.6.1.2.1.1.1 and its single instance 1.3.6.1.2.1.1.1.0; table cells append the row index, so ifDescr for ifIndex 5 is 1.3.6.1.2.1.2.2.1.2.5; traps are identified by OIDs such as 1.3.6.1.6.3.1.1.5.3 (linkDown). In X.509 certificates, OIDs name signature algorithms, extensions (subjectAltName, basicConstraints) and certificate policies. IPFIX reuses the same enterprise numbers to scope vendor-specific information elements.

Who assigns what. Below 1.3.6.1 the Internet's arcs are fixed by the SMI: directory 1, mgmt 2, experimental 3, private 4, security 5 and snmpV2 6, where the SNMP framework keeps snmpDomains, snmpProxys and snmpModules (RFC 2578). IANA keeps the registries that hand out numbers inside them: its SMI Network Management MGMT Codes registry, the mib-2 subtree 1.3.6.1.2.1 with RFC 1213 as reference, lists for example 31 as ifMIB (RFC 2863) and 47 as entityMIB (RFC 4133); its SNMP modules registry lists snmpMIB (RFC 3418) as 1 under snmpModules, which is why the trap OIDs of RFC 3418 begin 1.3.6.1.6.3.1. A vendor needs only its enterprise number; everything below it is the vendor's to allocate, as RFC 1155 illustrated with Flintstones, Inc. at 1.3.6.1.4.1.42 numbering its Fred Router 1.3.6.1.4.1.42.1.1.

Ordering. SNMP's GetNext returns the next OID in lexicographic order, compared arc by arc as numbers. RFC 1157's example walks a routing table indexed by destination and returns 9.1.2.3 before 10.0.0.51 before 10.0.0.99: as text, "10..." would sort before "9..."; as arcs, 9 is less than 10. A walk ends when the returned OID no longer begins with the starting prefix, or, from SNMPv2 on, when the agent returns endOfMibView.

What goes wrong. Decoders that assume one octet per sub-identifier fail on enterprise numbers and on the 2.x arcs. Tools that sort OIDs as strings produce walks and reports in the wrong order. Variable-length encodings invite parser bugs, and X.690 closes one door explicitly: a sub-identifier must use the fewest possible octets, so "the leading octet of the subidentifier shall not have the value 80" (hexadecimal); a strict decoder rejects such padded encodings instead of accepting two spellings of one OID. And OIDs leak information: sysObjectID names the vendor and model of a device to anyone who can read it, which is why reconnaissance starts there.

Neighbours. The tree of SNMP objects is the MIB; the encoding is BER (DER for certificates); the registry of enterprise numbers is kept by IANA; the same identifiers appear in X.509 and IPFIX.

Also known as: object identifier, oid, asn.1 object identifier, dotted oid

← Back to O Back to the glossary