1 / 14

ASN.1

ASN.1. Abstract Syntax Notation One. Student: Traila Stefan Bogdan Coordonator: Prof. Dr. Ing. Stefan Stancescu Facultatea de Electronica, Telecomunicatii si Tehnologia Informatiei, Universitatea Politehnica Bucuresti, 2014. Introducere.

maylin
Download Presentation

ASN.1

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. ASN.1 Abstract Syntax Notation One Student: Traila Stefan Bogdan Coordonator: Prof. Dr. Ing. Stefan Stancescu Facultatea de Electronica, Telecomunicatii si Tehnologia Informatiei, Universitatea Politehnica Bucuresti, 2014

  2. Introducere • Abstract Syntax Notation One este un limbaj utilizat pentru a descrie informatia structurata, de obicei intentionata de a fi transferata printr-o interfata sau un mediu de comunicare. • ASN.1 este un standard international. • Este foarte des folosit in protocoalele de comunicatie.

  3. ASN.1 • Limbaj care defineste informatie structurata • Utilizat in special pentru interfete si medii de comunicare • Standardizat • Similar cu un limbaj de programare high level

  4. Avantaje • High level • Ideal pentru aplicatii complexe • Nu necesita ca utilizatorul sa stie ordinea bitilor dintr-un sir • Compilatoarele se ocupa de codarea si decodarea mesajelor

  5. Sintaxa abstracta • Tipuri de date: • Alte tipuri pot fi create utilizand constructori: • SET {} si SEQUENCE {}

  6. Sintaxa de transfer • Exista mai multe seturi de codare: • 1. BER – Basic Encoding Rules • 2. CER – Canonical Encoding Rules • 3. DER – Distinguished Encoding Rules • 4. PER – Packed Encoding Rules

  7. Tipuri de date si Valori • Simple • Flag BOOLEAN • Structurate • ProcesVerbal ::=SEQUENCE • { • Data UTCTime • Viteza INTEGER (50..350) • Nume REAL • NrInmatriculare REAL • }

  8. Subtipuri • Tipuri de date cu anumite constrangeri • Weekend ::= DaysOfTheWeek (sambata | duminica)

  9. Nume • Tipurile de date pot avea ca referinta nume • In componenta numelor pot intra: • Litere mari: ABCD... • Litere mici: abcd... • Cifre: 1234... • Cratima: - • Constrangeri: • Numele trebuie sa inceapa cu o litera • Nu pot fi identice cu cele rezervate pentru sistem: ex. BOOLEAN • Nu au limita de lungime

  10. MODULE • Grupeaza un set de definitii. • DocumenteAmenzi {1 7 543 23 1} DEFINITIONS ::= • BEGIN • ProcesVerbal ::= SEQUENCE {...} • exempluProcesVerbal ProcesVerbal ::= {...} • END

  11. MACRO • Permite definirea de obiecte cu anumite atribute. • Baiat ::= SEQUENCE • { • Inaltime INTEGER • Greutate INTEGER • Varsta INTEGER • }

  12. Reguli de codare • BER – Basic Encoding Rules • IDENTIFIER – LENGTH - CONTENTS

  13. Standarde Aplicatii: SNMP

  14. Aplicatii - SNMP • Simple Network Management Protocol • Administrator • Agent • Baza de date • MIB (Management Information BASE

More Related