Network Management Information model

Slides:



Advertisements
Similar presentations
The Binary Numbering Systems
Advertisements

1 Pertemuan 05 Model Informasi - SMI Matakuliah: H0372/Manajemen Jaringan Tahun: 2005 Versi: 1/0.
Second part needs improvement (encoding, Compilers)
TCP/IP Protocol Suite 1 Chapter 21 Upon completion you will be able to: Network Management: SNMP Understand the SNMP manager and the SNMP agent Understand.
Using Objects and Properties
Chapter 3 Program translation1 Chapt. 3 Language Translation Syntax and Semantics Translation phases Formal translation models.
Data types and variables
PZ04A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ04A - Scalar and composite data Programming Language.
Jump to first page PKI2001 (TIFR, Mumbai) ASN.1 Abstract Syntax Notation One ASN.1 is a standard way to describe a message(a unit application data) that.
COMP4690, by Dr Xiaowen Chu, HKBU
Chapter 3 Basic Foundations: Standards, Models, and Language.
SNMP: Simple Network Management Protocol
Abstract Syntax Notation One ASN.1
ASN.1 CNS 4650 Fall 2004 Rev. 2.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
Abstract Syntax Notation Computer Networks courses Villanova University.
Network Management Computer Networks Natawut Nupairoj, Ph.D.
Input & Output: Console
Presentation Services  need for a presentation services  ASN.1  declaring data type  encoding data types  implementation issues  reading: text, section.
Information and Programs. Foundations of Computing Information –Binary numbers –Integers and Floating Point –Booleans (True, False) –Characters –Variables.
Abstract Syntax Notation ASN.1 Week-5 Ref: “SNMP…” by Stallings (Appendix B)
Abstract Syntax Notation One ASN.1. Abstract Syntax Notation One  Both the information and communications models need to be specified syntactically and.
An Introduction to Abstract Syntax Notation 1 (ASN.1)
Standards, Models, and Language The Internet Model: Widely used for network management. It is simple scalar model and, hence, easy to implement. The OSI.
Data TypestMyn1 Data Types The type of a variable is not set by the programmer; rather, it is decided at runtime by PHP depending on the context in which.
ISBN Chapter 6 Data Types Introduction Primitive Data Types User-Defined Ordinal Types.
Copyright © – Curt Hill Types What they do.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
Chapter 3 Basic Foundations: Standards, Models, and Language.
Application support functions Chapter Introduction ASN.1 Security Data encryption Nonrepudiation Authentication Public key certification authorities.
BER ENCODING Basic Encoding Rules. Basic Encoding Rules What is it?  BER is the original rules laid out by the ASN.1 standard for encoding information.
1 Scalar and composite data Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Scalar and composite data Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Chapter 27 Network Management Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
9/21/2016 Presentation layer Abstract Syntax Notation #1 Basic Encoding Rules.
Jaringan Telekomunikasi, Sukiswo ST, MT Sukiswo
Presentation Services
ITM 352 Data types, Variables
ASN.1: Introduction Zdeněk Říha.
Lecture No. 4 Number Systems
Type Checking Generalizes the concept of operands and operators to include subprograms and assignments Type checking is the activity of ensuring that the.
Dept. of Computer Science and Engineering
Scope, Objects, Strings, Numbers
ASN.1 소개 건아정보기술 SW개발팀 김강민 주임연구원.
Basic Foundations: Standards, Models, and Language
System and Network Management
Data Structures Mohammed Thajeel To the second year students
DAYS OF THE WEEK.
IDENTIFIERS CSC 111.
Chapter 3 Basic Foundations: Standards, Models, and Language
Variables ICS2O.
Variables in C Topics Naming Variables Declaring Variables
Beginning C Lecture 2 Lecturer: Dr. Zhao Qinpei
PHP.
C++ Data Types Data Type
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Chapter 2: Introduction to C++.
ECE 103 Engineering Programming Chapter 8 Data Types and Constants
COMS/CSEE 4140 Networking Laboratory Lecture 10
Generating QR Codes from Oracle Database - Appendix
Chap 2. Identifiers, Keywords, and Types
Variables in C Topics Naming Variables Declaring Variables
Variables in C Topics Naming Variables Declaring Variables
EECE.2160 ECE Application Programming
Variables in C Topics Naming Variables Declaring Variables
Simple Network Management Protocol
Chapter 3 - Binary Numbering System
Variables in C Topics Naming Variables Declaring Variables
Section 6 Primitive Data Types
Standards, Models and Language
Presentation transcript:

Network Management Information model Zeinab MOVAHEDI

SMI I data types

SMI I data types

Subtypes subtype will limit the set of allowed values to only a subset of the allowed values of the parent type. OddSingleDigitPrimes ::= INTEGER ( 3 | 5 | 7 ) SingleDigitPrimes ::= INTEGER ( 2 | INCLUDES OddSingleDigitPrimes) PositiveNumber ::= INTEGER ( 1 .. MAX) Month ::= (1 .. 12) Month ::= (1 .. <13)

Exemples What is the difference between these 3 declarations? ① Characteristics ::= BIT STRING {gender(0), adult(1), blueEyed(2), caucasian(3) } ② Characteristics ::= BIT STRING {gender(0), adult(1), blueEyed(2), caucasian(3) }(SIZE (0 .. 4)) ③ Characteristics ::= BIT STRING {gender(0), adult(1), blueEyed(2), caucasian(3) }(SIZE (4))

Exemple A store holds paper in the formats A3, A4, A5 and A6. A user wants to know if sheets are available in each of these four formats. Specify a data type to report this to the user. Solution: InStore ::= BIT STRING { a3 (0), a4 (1), a5 (2), a6 (3) } (SIZE(4))

Exercice What is the difference between these two types, and what does Monday mean for each of them? DayOfTheWeek ::= ENUMERATED { monday(0), tuesday(1), wednesday(2), thursday(3), friday(4), saturday(5), sunday(6) } DaysOpen ::= BIT STRING { monday(0), tuesday(1), wednesday(2), thursday(3), friday(4), saturday(5), sunday(6) } (SIZE(7)) Solution: DayOfTheWeek can have as value one of the seven days, and the value monday designates that single day. DaysOpen can have as value a bit string, which specifies for each day, whether a shop is open or not on that day. monday is the name of the first bit, which is true if the shop is open on mondays, and false if it is closed on mondays.

Exemple In an opinion poll, made at the exit door from the election rooms, every voter is asked to indicate which party they voted for. Allowed values are Labour, Liberals, Conservatives or other. The age of each voter is also registered as a positive integer above the voting age of 18 years, and the gender is registered. Define a data type to transfer this information from the poll station to a server. Solution: Voter ::= SEQUENCE { vote Vote, age Age, gender Gender } Age ::= INTEGER ( 18 .. MAX ) Gender ::= BOOLEAN Vote ::= INTEGER { labour(0), liberals (1), conservatives (2), other (3) } (0 .. 3)

Structure of Management Information (SMI) An object possesses: A name (Descriptor + Object identifier) A syntaxe based on ASN.1 (Abstract Syntaxe Notation) A definition which is a textual description of the semantics of object type An access mode specifying the access privilege to that object (read only, read-write or not accessibe) A status which specifies if the object is current (mondatory ou optional) ou obsolete. A BER (Basic Encoding Rules) coding scheme

Structure of Management Information (SMI) The characteristics of an object are grouped in the definition of a macro that defines the structure of an object type: OBJECT-TYPE MACRO ::= BEGIN TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax) "ACCESS" Access "STATUS" Status VALUE NOTATION ::= value (VALUE ObjectName) Access ::= "read-only" |"read-write" |"write-only" |"not-accessible“ Status ::= "mandatory" |"optional" |"obsolete" |"deprecated" END

Structure of Management Information (SMI)

Structure of Management Information (SMI) The structure of ASN.1 data types for SNMP:

BER Encoding Rules The ASN.1 syntax written in text format is encoded using BER to make the binary information to be transferred between the Manager and Agent. BER is based on the tag-length-value.

BER Encoding rules Class: P/C: designate a type Universal - always true (00) Application - only in the application used (01) Context-specific - specific context in application (10) Private - used extensively by commercial vendors (11) P/C: designate a type primitive (0) constructed (1) Tag number: is a number or code specified for a type.

BER Encoding rules Tag number > 30 (Multiple-Octet-Variant) 0 <= tag number <= 30 (One-Octet-Variant) Tag number contains one element and it is encoded in the remaining 5 bits Tag number > 30 (Multiple-Octet-Variant) Remaining five bits are all 1-s Tag number value is encoded in the last 7 bits of one or more succeeding octets. The first bit of each such succeeding octet is 1 for all octet except the last octet.

Table 3.5. Universal Class Tag Assignments Type Name Set of Values Universal 1 BOOLEAN TRUE or FALSE Universal 2 INTEGER 0, Positive and negative numbers Universal 3 BIT STRING A string of binary digits or null set Universal 4 OCTET STRING A string of octets or null set Universal 5 NULL Null, single-valued Universal 6 OBJECT IDENTIFIER Set of values associated with the object Universal 7 Object description Human readable text describing the object Universal 8 EXTERNAL The type is external to the standard Universal 9 REAL Real numbers, expressed in scientific notation Mantissa × Baseexponent Universal 10 ENUMERATED Specified list of integers Universal 11 ENCRYPTED Encrypted information Universal 12–15 Reserved for future use   Universal 16 SEQUENCE and SEQUENCE OF Ordered list of types Universal 17 SET and SET OF Unordered list of types Universal 18 NumericString Digits 0–9, space Universal 19 PrintableString Printable characters Universal 20 TeletexString Character set specified by CCITT Recommendation T.61 Universal 21 VideotexString Character set specified by CCITT Recommendation T.100 and T.101 Universal 22 IA5String International Alphabet 5, which is equivalent to ASCII Universal 23 UTCTime Time format YYMMDDHHMM[SS][local time differential from universal standard time] Universal 24 GeneralizedTime Time format YYYYMMDDHHMM[SS][local time differential from universal standard time] Universal 25 GraphicString Graphic character set specified by ISO 8824 Universal 26 VisibleString Character set specified by ISO 646, equivalent to ASCII Universal 27 GeneralString General character string Universal 28 CharacterString Character set Universal 29–

BER encoding - examples OCTET STRING is a primitive and universal type, with a tag value of 4 (type = 00000100) Example 2 INTEGER is a primitive and universal type, with a tag value of 2 (type = 00000010)

BER Encoding - exemple Length field specifies the length of value field in number of octets Short or one-octet form (0 <= length value <= 127) Most significant bit is set to 0 Remaining 7 bits indicating the length of the value Long or multiple-octet form (length value > 127) Most significant bit is set to 1 Remaining 7 bits of the first octet indicates how many octets follow to specify the length The length is then encoded as a binary number in the rest of octets.

Example Example 1 Example 2 Length = 128 Length is encoded as 10000001 10000000 Example 2 What is the BER encoding of octet string of «0C1B»H (in hexadecimal) 00000100 00000010 00001100 00011011

Encoding rules – tagged values Default tag (universal tag) Explicit tag Add the new tag in front of the existing tag. B ::= [2] EXPLICIT INTEGER Implicit tag Replace the existing tag by the new one. B ::= [2] IMPLICIT INTEGER

Encoding rules – tagged values examples B ::= [2] EXPLICIT INTEGER Instance of B = 260 B ::= [2] IMPLICIT INTEGER Instance of B = 117 C ::= IA5String Instance of C = « FRED » C ::= [7] IA5String C ::= [7] EXPLICIT IA5String C ::= [7] IMPLICIT IA5String

BER Encoding Rules Constructed type The value of a constructed type is itself split into a series of TLV objects.

BER Encoding Rules Constructed type Given the ASN.1 definition. Show its coding in BER. Surname ::= [APPLICATION 1] IA5String hername Surname ::= "Mary“ Given the ASN.1 definitions below. Give a BER encoding of this value. Light ::= ENUMERATED { dark (0), parkingLight (1), halfLight (2), fullLight (3) } daylight Light ::= halflight

BER Encoding Rules Constructed type You are to define a protocol for communication between an automatic scale and a packing machine. The scale measures the weight in grams as a floating point number and the code number of the merchandise as an integer. Define a data type ScaleReading which the scale can use to report this to the packing machine. Some countries use, as an alternative to the metric system, a measurement system based on inches, feet and yeards. Define a data type Measurement which gives one value in this system, and Box which gives the height, length and width of an object in this measurement system. Feet and yards are integers, inches is a decimal value (=floating point value with the base 10).

BER encoding – object identifier Z0.Z1…..Zn Object identifier: universal 6, primitive Z0 and Z1 are both encoded on a single octet: Z0*40+Z1 To reduce the size of value, the first and second part of value is merged together. Other Zi are each encoded on a separate octet if Zi>127 BER encoding of an object with object identifier of 1.3.6.1 is 00000110 00000011 00101011 00000110 00000001