Abstract Syntax Notation One uses a TLV structure, in which each element has a type, length, and value. The type component is a data type that indicates what kind of information is stored in the element and indicates how the value should be encoded. The length component specifies the number of bytes in the value, and the value is the actual data held by the element.
Examples of ASN.1 elements include:
Note that ASN.1 is a general framework for binary encoding, but doesn't actually define how the data should be encoded. There are a number of different kinds of ASN.1 encoding rules:
LDAP uses the Basic Encoding Rules (BER) encoding.
The book ASN.1 Complete (PDF) by Professor John Larmouth, which is an excellent reference on the Abstract Syntax Notation One.
Abstract Syntax Notation One is now a joint standard of the International Telecommunication Union (ITU-T and ISO/IEC, originally defined in 1984 as part of CCITT X.409. In 1988, ASN.1 moved to its own standard, X.208, due to wide applicability. The substantially revised 1995 version X.680 series of recommendations is the 5.0 Edition, published in 2015.