1 / 14

Basic Encoding Rules (BER) for Abstract Information Encoding

Learn about the Basic Encoding Rules (BER) specified by the ASN.1 standard for encoding abstract information into concrete data streams using TLV encodings. Includes examples of BER encoding for two's complement integers and object identifiers.

jeremyd
Download Presentation

Basic Encoding Rules (BER) for Abstract Information Encoding

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CITA 440 Week 4 BER

  2. BER and TLV • The Basic Encoding Rules (BER) were the original rules laid out by the ASN.1 standard for encoding abstract information into a concrete data stream. The rules, collectively referred to as a transfer syntax in ASN.1 parlance, specify the exact octet sequences which are used to encode a given data item. • In BER, each data element is normally encoded as a type identifier (T), a length description (L), and the actual data element content value (V). These types of encodings are commonly called type-length-value or TLV encodings. • The most common BER format is encoding through octet values in hexadecimal.

  3. TLV

  4. Tag (Used in Identifier Field) • Tag uniquely identifies a data type • Comprises class and tag number • Class: • Universal • Application • Context-specific • Private (used extensively by commercial vendors)

  5. Universal Class Tags

  6. Application Class Tags

  7. Identifier Field: Tag Number < 31

  8. Identifier Field: Tag Number >= 31

  9. Length Field

  10. BER Examples

  11. Two’s Complement Integers in BER(Examples)

  12. BER Examples: SEQUENCE

  13. BER Example: OBJECT IDENTIFIER

  14. BER Example: OBJECT IDENTIFIER

More Related