Standards, Models and Language

Slides:



Advertisements
Similar presentations
Network Management9-1 Chapter 9 Network Management Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
Advertisements

1 Pertemuan 05 Model Informasi - SMI Matakuliah: H0372/Manajemen Jaringan Tahun: 2005 Versi: 1/0.
Chapter 9 Network Management Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 24 Network Management: SNMP.
Lecture 16 Network Management CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger slides are modified from Jim Kurose, Keith.
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.
8: Network Management1 Network Management r introduction to network management m motivation m major components r Internet network management framework.
Network Management Network Management. Network Management 9-2 Chapter 9 Network Management Computer Networking: A Top Down Approach Featuring.
Chapter 3 Basic Foundations: Standards, Models, and Language Network Management: Principles and Practice © Mani Subramanian Chapter 3.
COMP4690, by Dr Xiaowen Chu, HKBU
Network Management: SNMP
1 Kyung Hee University Prof. Choong Seon HONG SNMP Management Information.
SNMP (Simple Network Management Protocol) Jon Sevy Geometric and Intelligent Computing Laboratory Department of Mathematics and Computer Science Drexel.
McGraw-Hill The McGraw-Hill Companies, Inc., 2000 SNMP Simple Network Management Protocol.
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.
SNMP Management Information
SNMP: Simple Network Management Protocol
SNMP (Simple Network Management Protocol)
Abstract Syntax Notation One ASN.1
Network Management Computer Networks Natawut Nupairoj, Ph.D.
Chapter 8 Network Management
Network Management8-1 Chapter 8: Network Management Chapter goals: r introduction to network management m motivation m major components r Internet network.
1 © 1999 BMC SOFTWARE, INC. 2/10/00 SNMP Simple Network Management Protocol.
Presentation Services  need for a presentation services  ASN.1  declaring data type  encoding data types  implementation issues  reading: text, section.
ICT 6621 : Advanced NetworkingKhaled Mahbub, IICT, BUET, 2008 Lecture 13 Network Management.
CS 453 Computer Networks Lecture 22 Network Management.
Abstract Syntax Notation ASN.1 Week-5 Ref: “SNMP…” by Stallings (Appendix B)
Chapter 3 Basic Foundations: Standards, Models, and Language Network Management: Principles and Practices © Mani Subramanian 2011 Chapter 3 Basic Foundations:
Prof. Younghee Lee 1 1 Computer Networks u Lecture 14: Network Management Prof. Younghee Lee * Some part of this teaching materials are prepared referencing.
Standards, Models, and Language
Abstract Syntax Notation One ASN.1. Abstract Syntax Notation One  Both the information and communications models need to be specified syntactically and.
Network Management 10-1 Chapter 10 Network Management A note on the use of these ppt slides: We’re making these slides freely available to all (faculty,
SNMP 1. SNMP is an Internet protocol developed by the IETF. It is designed to facilitate the exchange of management information between network elements.
Standards, Models, and Language The Internet Model: Widely used for network management. It is simple scalar model and, hence, easy to implement. The OSI.
Network Management Lecture 2. Basic Foundations: Standards, Models, and Language 3-1 Chapter 3.
Management Information Base for Version 2 of the Simple Network Management Protocol (MIB for SNMPv2)
Chapter 9 Network Management
Chapter 8: Network Management
Ch 9. Network Management Myungchul Kim
 Introduction  Structure of Management Information  Practical Issues  Summary 2.
Chapter 3 Basic Foundations: Standards, Models, and Language.
Lec 2: Infrastructure of Network Management Part1 from : Computer Networking: A Top Down Approach 6 th edition – Chapter 9 1 Organized by: Nada Alhirabi.
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.
Manajemen Jaringan, Sukiswo ST, MT 1 SNMP Management Information Sukiswo
Jaringan Telekomunikasi, Sukiswo ST, MT Sukiswo
Chapter 8 Network Management
Lecture 2: Infrastructure of Network Management Part1
Network management Communication model
Presentation Services
SNMP.
Lec7: SNMP Management Information
Chapter 9: Network Management
Network Management: SNMP
Network Management Information model
Network Management Computer Networks.
Dept. of Computer Science and Engineering
Basic Foundations: Standards, Models, and Language
System and Network Management
Chapter 8 Network Management
Chapter 3 Basic Foundations: Standards, Models, and Language
Chapter 8 Network Management
Chapter 8: Network Management
Chapter 9 Network Management
Chapter 9 Network Management
Chapter 9 Network Management
Simple Network Management Protocol
Standards, Models and Language
Presentation transcript:

Standards, Models and Language Lecture 3 Computer Networks Management Standards, Models and Language Dr. Mostafa H. Dahshan Department of Computer Engineering College of Computer and Information Sciences King Saud University mdahshan@ksu.edu.sa Edited By Maysoon AlDuwais

Overview • SMI Data Definition Language • ASN.1 language • Basic encoding rule • Management application functions

SMI Structure Of Management Information SMI is a data definition language for MIB objects Purpose: well-defined, unambiguous syntax and semantics of mgmt data Base data types: straightforward, boring OBJECT-TYPE standard type of managed info defines data structure, semantics of managed object, including status MODULE-IDENTITY groups related objects into a MIB module Basic Data Types INTEGER Integer32 Unsigned32 OCTET STRING OBJECT IDENTIFIED IpAddress Counter32 Counter64 Gauge32 TimeTicks Opaque

SNMP MIB MIB module specified via SMI MODULE-IDENTITY (100 standardized modules, more vendor-specific) MODULE OBJECT TYPE: OBJECT TYPE: OBJECT TYPE: objects specified via SMI OBJECT-TYPE construct

SNMP MIB Object object ID unique ID and descriptor and name for the object syntax used to model the object access access privilege to a managed object status implementation requirements definition textual description of the semantics of object type

SMI: Object, module examples OBJECT-TYPE: ipInDelivers MODULE-IDENTITY: ipMIB ipInDelivers OBJECT TYPE SYNTAX Counter32 MAX-ACCESS read-only STATUS current DESCRIPTION “The total number of input datagrams successfully delivered to IP user- protocols (including ICMP)” ::= { ip 9} ipMIB MODULE-IDENTITY LAST-UPDATED “941101000Z” ORGANZATION “IETF SNMPv2 Working Group” CONTACT-INFO “ Keith McCloghrie ……” DESCRIPTION “The MIB module for managing IP and ICMP implementations, but excluding their management of IP routes.” REVISION “019331000Z” ……… ::= {mib-2 48}

MIB example: UDP module Object ID Name Type Comments 1.3.6.1.2.1.7.1 UDPInDatagrams Counter32 total # datagrams delivered at this node 1.3.6.1.2.1.7.2 UDPNoPorts Counter32 # underliverable datagrams due to no app at port 1.3.6.1.2.1.7.3 UDInErrors Counter32 # undeliverable datagrams all other reasons 1.3.6.1.2.1.7.4 UDPOutDatagrams Counter32 # datagrams sent 1.3.6.1.2.1.7.5 udpTable SEQUENCE one entry for each port in use by app, gives port # and IP address

Why do we need ASN.1? What is the presentation problem? The Presintation Problem: Q: does perfect memory-to-memory copy solve “the communication problem”? A: not always! struct { char code; int x; } test; test.x = 259; test.code=‘a’ test.code test.x a 00000001 00000011 test.code test.x a 00000011 00000001 host 1 format host 2 format problem: different data format, storage conventions

Solving the presentation problem (The solution: ASN.1) 1. Translate local-host format to host-independent format 2. Transmit data in host-independent format 3. Translate host-independent format to remote-host format aging 60’s hippie grandma 2007 teenager

Abstract Syntax Notation One (ASN.1) ASN.1 is a language that defines the syntax of messages to be exchanged between peer applications independently of local representation. • Addresses both syntax and semantics • Two types of syntax Abstract syntax: set of rules that specify data type and structure for information storage • Transfer syntax: set of rules for communicating information between systems • Makes application layer protocols independent of lower layer protocols • Can generate machine-readable code • Basic Encoding Rules (BER) is used in management modules 34

ASN.1 & BER in the OSI model

Backus-Naur Form (BNF) • Definition: • <name> ::= <definition> • Rules: • <digit> ::= 0|1|2|3|4|5|6|7|8|9 • <number> ::= <digit> | <number> <digit> • <op> ::= +|-|x|/ • <SAE> ::= <number>|<SAE>|<SAE><op><SAE> • Example: • 9 is primitive 9 • 19 is construct of 1 and 9 • 619 is construct of 6 and 19

Backus-Nauer Form (BNF) • BNF is used for ASN.1 constructs • Constructs developed from primitives • The above example illustrates how numbers are constructed from the primitive <digit> • Simple Arithmetic Expression entity (<SAE>) is constructed from the primitives <digit> and <op>

Simple Arithmetic Expression • <SAE> ::= <number> | <SAE><op><number> • Example: 26 = 13 x 2 • Constructs and primitives

Type and Value • Assignments • ASN.1 module is a group of assignments • <BooleanType> ::= BOOLEAN • <BooleanValue> ::= TRUE | FALSE • ASN.1 module is a group of assignments person-name Person-Name::= { first "John", middle “ T", last "Smith“ }

Data Type: Example 1 PersonnelRecord ::= SET { name, title GraphicString, division CHOICE { marketing SEQUENCE {Sector, Country}, research CHOICE { product-based NULL, basic NULL } } } Figure 3.13 ASN.1 Data Type Definition: Example 1

Data Type: Example 1 • Module name starts with capital letters • Data types: • Primitives: NULL, GraphicString • Constructs • Alternatives : CHOICE • List maker: SET, SEQUENCE • Repetition: SET OF, SEQUENCE OF: • Difference between SET and SEQUENCE SET – No order required – Order not important – Data types should all be distinct SEQUENCE – The order in the list is maintained SEQUENCE OF SEQUENCE makes tables of rows

Data Type: Example 2 Trade-message ::= SEQUENCE { invoice-no INTEGER name details GraphicStrig, SEQUENCE OF SEQUENCE { part-no INTEGER quantity INTEGER }, charge REAL, authenticator Security-Type } Security-Type ::= SET { … --SEQUENCE OF SEQUENCE makes table Figure 3.14 ASN.1 Data Type Definition: Example 2 }

ASN.1 Symbols Symbol Meaning ::= | - Defined as or, alternative, options of a list Signed number -- {} [] () .. Following the symbol are comments Start and end of a list Start and end of a tag Start and end of subtype Range

Keyword Examples • CHOICE • SET • SEQUENCE • OF • NULL • Keywords are in all UPPERCASE letters

ASN.1 Data Type Conventions Example

Structure • Simple • Structure / Construct • Tagged • Other types: • PageNumber ::= INTEGER • ChapterNumber ::= INTEGER • Structure / Construct • BookPageNumber ::= SEQUENCE {ChapterNumber, Separator, PageNumber} • Tagged • Derived from another type; given a new ID • Other types: • CHOICE, ANY

Structure • BookPages ::= SEQUENCE OF {BookPageNumber} or SEQUENCE {ChapterNumber, Separator, PageNumber} } • Example: {1-1, 2-3, 3-39}

Enumerated Integer RainbowColors ::= ENUMERATED { violet (0) indigo (1) blue (2) green (3) yellow (4) orange (5) red (6) } • ENUMERATED is a special case of INTEGER • Example: RainbowColors(5) is orange

ASN.1 Module Example IpNetMediaEntry ::=SEQUENCE{ ipNetToMediaIfIndex INTEGER ipNetToMediaPhysAddress PhysAddress ipNetToMediaNetAddress IpAddress ipNetToMediaType INTEGER }

Object Name internet OBJECT IDENTIFIER ::= itu iso 1 iso-itu 2 org 3 dod 6 internet 1 private 4 enterprise 1 internet OBJECT IDENTIFIER ::= {iso(1) org(3) dod(6) internet(1)} IBM 2

Basic Encoding Rules (BER) ASN.1 syntax containing management info is encoded using the BER (Basic Encoding Rules) → defined for the transfer syntax. ASCII text data is converted to bit-oriented data. TLV: Type, Length, and Value are components of the structure. Length: of the Value field in number of octets. Value: is encoded based on the data type. 50

Type Length Value(TLV) Encoding P/C bit: 0: primitive 1: construct

Basic Encoding Rules (BER) Tag Value Type 1 2 3 4 5 6 9 BOOLEAN INTEGER BIT STRING OCTET STRING NULL OBJECT IDENTIFIER REAL 51

TLV Encoding Example Value, 259 Length, 2 bytes Type=2, integer lastname ::= OCTET STRING weight ::= INTEGER {weight, 259} {lastname, “smith”} TLV Encoding Example module of data type declarations written in ASN.1 instances of data type specified in module Basic Encoding Rules (BER) 03 01 02 ‘h’ ‘t’ Value, 259 Length, 2 bytes Type=2, integer transmitted byte stream Value, 5 octets (chars) ‘i’ ‘m’ ‘s’ 05 04 Length, 5 bytes Type=4, octet string 52