rfc-5017

MIB Textual Conventions for Uniform Resource Identifiers (URIs)

D. McWalter (Editor)
date2007-09 streamIETF wgnon working group statusPROPOSED STANDARD pages7 canonicalhttps://www.rfc-editor.org/rfc/rfc5017 doi10.17487/RFC5017
This MIB module defines textual conventions to represent STD 66 Uniform Resource Identifiers (URIs). The intent is that these textual conventions will be imported and used in MIB modules that would otherwise define their own representation(s). [STANDARDS-TRACK]

Extracted elements (12)

design-rationale §4

A zero-length URI is not a valid URI per STD 66, but the convention explicitly allows SIZE 0 to express 'URI absent' where required, for example when used as an index field.

snmp

design-rationale §1

Three textual conventions at different length limits are provided to improve compatibility between MIB modules that require restricted-length URIs, rather than having each MIB module define its own representation.

snmp

design-rationale §4

URI normalization (removing unnecessary percent-encoding, lowercasing case-insensitive characters, uppercasing hex digits) is mandated to help provide unique URIs in MIB objects, though the document notes this normalization alone is not sufficient to guarantee uniqueness.

snmp

interoperability-note §1

The purpose of defining standard restricted-length textual conventions (Uri255, Uri1024) is to improve compatibility between MIB modules that require restricted-length URIs, avoiding a proliferation of incompatible per-module URI representations.

snmp

normative-requirement §1 SHOULD

If a URI needs to be used as an index object, then the 'Uri' TEXTUAL-CONVENTION SHOULD be subtyped to a length appropriate for the OID of which it is part.

snmp

normative-requirement §4 MUST

Objects using the Uri, Uri255, or Uri1024 textual conventions MUST be in US-ASCII encoding and MUST be normalized as described by RFC 3986 Sections 6.2.1, 6.2.2.1, and 6.2.2.2.

snmp

normative-requirement §4 SHOULD

Where no length restriction is required, objects SHOULD use the 'Uri' TEXTUAL-CONVENTION instead of Uri255 or Uri1024; objects used as indices SHOULD subtype the 'Uri' TEXTUAL-CONVENTION.

snmp

normative-requirement §4 MUST

Where the Uri TEXTUAL-CONVENTION is used for an index field, it MUST be subtyped to restrict its length, due to the absolute limit of 128 subids for an OID.

snmp

protocol-element §4

The URI-TC-MIB module defines three textual conventions for representing URIs in MIB modules: 'Uri' (unrestricted length), 'Uri255' (0..255 octets), and 'Uri1024' (0..1024 octets), all based on OCTET STRING syntax with DISPLAY-HINT indicating ASCII representation.

snmp, registry

registry §6

IANA assigned OID { mib-2 164 } to the URI-TC-MIB module defined in this document.

registry, snmp

security-consideration §5

This MIB module defines only textual conventions and no management objects; meaningful security considerations can only be written in MIB modules that define management objects using these conventions. Implementers should also consult the Security Considerations of STD 66 (RFC 3986).

security, snmp

wire-format §4

The Uri textual convention uses OCTET STRING syntax with DISPLAY-HINT '1a', representing an ASCII URI of unrestricted length. Uri255 is OCTET STRING SIZE(0..255) with DISPLAY-HINT '255a', and Uri1024 is OCTET STRING SIZE(0..1024) with DISPLAY-HINT '1024a'.

snmp