SNMP ASN.1 BER Utility

SNMP BER/OID Decoder

Decode SNMP and ASN.1 BER hexadecimal data, inspect TLV structures and convert BER-encoded OBJECT IDENTIFIER values into dotted-decimal OIDs.

✓ BER TLV ✓ OBJECT IDENTIFIER ✓ INTEGER ✓ OCTET STRING ✓ SNMP PDU ✓ Counter / TimeTicks
BER
SNMP BER / OID Decode
● Ready
Paste BER TLV bytes or an SNMP message. Spaces, commas, colons, hyphens, line breaks, continuous hex and 0x-prefixed bytes are accepted.
Enter OBJECT IDENTIFIER value bytes without the 06 tag/length, or enter a dotted OID such as 1.3.6.1.2.1.1.1.0.
BER format: ASN.1 Basic Encoding Rules normally store each value as Tag → Length → Value. OBJECT IDENTIFIER values use base-128 subidentifier encoding, while SNMP messages are built from nested BER structures.
Decode Result Decoded
Primary Result
Input Mode
Root Tag
Root Length
Total Bytes
OID
SNMP Version
Community
PDU Type
Decoded Structure
Value Interpretation
Validation

What Is an SNMP BER Decoder?

An SNMP BER decoder interprets the ASN.1 Basic Encoding Rules used to serialize SNMP messages. BER represents data as a sequence of tag, length and value fields, commonly called TLV encoding.

This decoder can inspect individual BER values as well as nested structures such as an SNMP message, PDU and VarBind list.

ASN.1 BER Tag-Length-Value Format

06 08 2B 06 01 02 01 01 01 00 06 Tag = OBJECT IDENTIFIER 08 Length = 8 bytes 2B 06 01 02 01 01 01 00 Value = 1.3.6.1.2.1.1.1.0

Common BER Tags Used by SNMP

TagASN.1 TypePurpose
0x02INTEGERSigned integer value
0x04OCTET STRINGText or arbitrary octets
0x05NULLNull value
0x06OBJECT IDENTIFIEROID value
0x30SEQUENCEConstructed sequence
0x40IpAddressIPv4 address in SNMP
0x41Counter3232-bit counter
0x42Gauge32 / Unsigned32Unsigned gauge
0x43TimeTicksHundredths of a second
0x46Counter6464-bit counter

How BER Length Encoding Works

For lengths below 128 bytes, BER normally uses one length byte. If bit 7 of the first length byte is set, the lower seven bits specify how many subsequent bytes contain the actual length.

04 05 48 65 6C 6C 6F 04 = OCTET STRING 05 = length 5 48 65 6C 6C 6F = "Hello"

How SNMP OID BER Encoding Works

An OBJECT IDENTIFIER is a sequence of integer arcs such as 1.3.6.1.2.1.1.1.0. BER combines the first two arcs and encodes later subidentifiers using base-128 groups.

OID: 1.3.6.1.2.1.1.1.0 BER value: 2B 06 01 02 01 01 01 00 2B = 43 43 = (1 × 40) + 3

SNMP PDU Tags

TagPDU
0xA0GetRequest-PDU
0xA1GetNextRequest-PDU
0xA2Response-PDU
0xA3SetRequest-PDU
0xA4Trap-PDU (SNMPv1)
0xA5GetBulkRequest-PDU
0xA6InformRequest-PDU
0xA7SNMPv2-Trap-PDU
0xA8Report-PDU

SNMP Message Structure

SEQUENCE ├── version ├── community └── PDU ├── request-id ├── error-status ├── error-index └── VarBindList └── VarBind ├── OBJECT IDENTIFIER └── value

SNMPv1 and SNMPv2c messages commonly contain a version INTEGER, community OCTET STRING and context-specific PDU inside the outer SEQUENCE.

TimeTicks Conversion

SNMP TimeTicks represent hundredths of a second. A raw value of 12345 therefore represents 123.45 seconds.

TimeTicks = 12345 Seconds: 12345 / 100 = 123.45 Approximate duration: 2 minutes 3.45 seconds

SNMP BER/OID Decoder FAQs

What does BER mean in SNMP?
BER means Basic Encoding Rules. SNMP uses ASN.1 BER to encode message fields into binary tag-length-value structures.
What does BER tag 0x06 mean?
Universal BER tag 0x06 identifies an OBJECT IDENTIFIER.
What does BER tag 0x30 mean?
0x30 normally represents a constructed universal SEQUENCE.
What is an SNMP OID?
An OID is an Object Identifier used to identify managed objects in the SNMP management information hierarchy.
Can this tool decode nested SNMP packets?
Yes. The recursive mode walks through constructed BER SEQUENCE and recognized SNMP PDU values and displays their nested TLV fields.
Does this replace a MIB browser?
No. This tool decodes BER and numeric OIDs. A MIB browser additionally maps numeric OIDs to names and definitions supplied by specific MIB modules.
Scroll to Top