CT1305 Computer Network Management Dr. Mostafa H. Dahshan

Slides:



Advertisements
Similar presentations
Chapter 5 SNMPv1: Communication and Functional Models.
Advertisements

Communication and Functional Models
SNMP Operations * * Mani Subramanian “Network Management: Principles and practice”, Addison-Wesley, 2000.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 24 Network Management: SNMP.
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.
CSEE W4140 Networking Laboratory Lecture 11: SNMP Jong Yul Kim
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
1 Pertemuan 07 Model Komunikasi Matakuliah: H0372/Manajemen Jaringan Tahun: 2005 Versi: 1/0.
MJ04/07041 Session 04 Arsitektur SNMP Organization Model Adapted from Network Management: Principles and Practice © Mani Subramanian 2000 and solely used.
Pertemuan 10 Perbedaan antar versi SNMP
MJ08/07041 Session 08 SNMPv2 Adapted from Network Management: Principles and Practice © Mani Subramanian 2000 and solely used for Network Management course.
COMP4690, by Dr Xiaowen Chu, HKBU
SNMP PROTOCOL Copyright © 2001 by Aiko Pras These sheets may be used for educational purposes.
SNMP Simple Network Management Protocol
Chapter 5 SNMPv1: Communication and Functional Models.
Network Management: SNMP
SNMPv1 Communication and Functional Models
1 Network Management Computer Networks. 2 OSI Network Management Model Performance Management e.g. utilization Fault Management e.g. SNMP traps Configuration.
Simple Network Management Protocol Week 6.  MIB data is input in encoded form.  Information is then compiled into the central MIB in the NCS.
Chapter 6 Overview Simple Network Management Protocol
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 Communication and Functional Models
SNMP (Simple Network Management Protocol)
Network Protocols UNIT IV – NETWORK MANAGEMENT FUNDAMENTALS.
Lec8: SNMP v1.
SNMPv1 (cont’d) & SNMPv2 (II) * * Mani Subramanian “Network Management: Principles and practice”, Addison-Wesley, 2000.
Communication and Functional Models
1 Network Management Security Behzad Akbari Fall 2009 In the Name of the Most High.
SNMP Simple Network Management Protocol. SNMP and UDP Uses UDP as transport protocol Connectionless Connectionless Port 161 for sending and receiving.
Lec 3: Infrastructure of Network Management Part2 Organized by: Nada Alhirabi NET 311.
SNMP n Where did it come from ? –Internet Engineering Task Force »Network Management Area –SNMP V1 –MIB definitions –SNMPV2.
1 Network Management: SNMP The roots of education are bitter, but the fruit is sweet. - Aristotle.
1 Chapter 8 Network Management Security. 2 Outline Basic Concepts of SNMP SNMPv1 Community Facility SNMPv3 Recommended Reading and WEB Sites.
Network Management Security
POSTECH DP&NM Lab 1 Simple Network Management Protocol (SNMP) Mi-Jung Choi Dept. of Computer Science KNU
Simple Network Management Protocol (SNMP) SNMP v1 (RFC 1157) UDP Port 161 Operation supported by SNMP – Get: retrieves a scalar object value – Set: updates.
1 Based on Behzad Akbari Fall 2011 Network Management lectures.
Network Management: Principles and Practice
CITA 440 Week 6 SNMPv1. Internet SNMP Management Internet Engineering Task Force (IETF) –1990SNMPv1 –1996SNMPv2 –1998SNMPv3 Internet documents: –Request.
1 Kyung Hee University Prof. Choong Seon HONG SNMP Management Information.
Dept. of Computer Science and Engineering
Common Management Protocol W.lilakiatsakun. Topics SNMP (Widely used) SNMP (Widely used) Command Line Interface (CLI) Command Line Interface (CLI) Syslog.
Lec 3: Infrastructure of Network Management Part2 Organized by: Nada Alhirabi NET 311.
Extra Lecture and examples
Network Management Security in distributed and remote network management protocols.
Jaringan Telekomunikasi, Sukiswo ST, MT Sukiswo
Computer and Information Security
Network management Communication model
Simple Network Management Protocol (SNMP)
Simple Network Management Protocol (SNMP)
Karl Quinn 23rd November 2004 NDS M.Sc.
Network Management: SNMP
SNMPv1 Network Management: Communication and Functional Models
SNMP M Clements ENS.
SNMP M Clements ENS.
Network Management Computer Networks.
SNMPv1 (cont’d) & SNMPv2 (II)*
Introduction to Internet Network Management
SNMPv1 Network Management: Communication and Functional Models
Chapter 6 SNMPv2 6-1 Network Management: Principles and Practice
Fundamentals of Network Management
SNMP Management Information
SNMP (Simple Network Management Protocol) based Network Management
SNMPv2 OVERVIEW: LIMITATIONS OF SNMPv1 HISTORY OF SNMPv2 • HIERARCHIES
Chapter 5 SNMP Management
Chapter 5 SNMP Management
Network Management Security
Standards, Models and Language
Presentation transcript:

CT1305 Computer Network Management Dr. Mostafa H. Dahshan Department of Computer Engineering College of Computer and Information Sciences King Saud University mdahshan@ksu.edu.sa 1

Chapter 5 SNMPv1 Network Management: SNMPv1 Network Management: Communication and Functional Models Chapter 5 SNMPv1 Network Management: Communication and Functional Models 2 Network Management: Principles and Practice © Mani Subramanian 2010

Objectives • Communication model: Administrative and messages Chapter 5 SNMPv1 Network Management: Communication and Functional Models Objectives • Communication model: Administrative and messages • Administrative structure • Community-based model • Access policy • MIB view • Message PDU • SNMP protocol specifications • SNMP operations • SNMP MIB • SNMP functional model 3 Network Management: Principles and Practice © Mani Subramanian 2010

SNMP Architecture Notes • Truly simple network management protocol Chapter 5 SNMPv1 Network Management: Communication and Functional Models SNMP Architecture SNMP Manager SNMP Agent Manage- ment Data SNMP Manager Application SNMP Agent Application SNMP SNMP UDP IP UDP IP DLC PHY DLC PHY Physical Medium Figure 4.9 SNMP Network Management Architecture Notes • Truly simple network management protocol • Five messages, 3 from manager and 2 from agent 4 Network Management: Principles and Practice © Mani Subramanian 2010

SNMP Messages Notes • Get-Request Chapter 4 SNMPv1 Network Management: Organization and Information Models SNMP Messages • Get-Request • Sent by manager requesting data from agent • Get-Next-Request • Sent by manager requesting data on the next MO to the one specified • Set-Request • Initializes or changes the value of network element • Get-Response • Agent responds with data for get and set requests from the manager • Trap • Alarm generated by an agent Notes 5 Network Management: Principles and Practice © Mani Subramanian 2010

SNMP Messages Notes • Get-Request • Get-Next-Request • Set-Request Chapter 5 SNMPv1 Network Management: Communication and Functional Models SNMP Messages • Get-Request • Get-Next-Request • Set-Request • Get-Response • Trap • Generic trap • Specific trap • Time stamp Notes • Generic trap • coldStart • warmStart • linkDown • linkUp • authenticationfailure • egpNeighborLoss • enterpriseSpecific • Specific trap • For special measurements such as statistics • Time stamp: Time since last initialization 6 Network Management: Principles and Practice © Mani Subramanian 2010

Administrative Model Notes • Based on community profile and policy Chapter 5 SNMPv1 Network Management: Communication and Functional Models Administrative Model • Based on community profile and policy • SNMP Entities: • SNMP application entities - Reside in management stations and network elements - Manager and agent • SNMP protocol entities - Communication processes (PDU handlers) - Peer processes that support application entities Notes 7 Network Management: Principles and Practice © Mani Subramanian 2010

SNMP Community Notes • Security in SNMPv1 is community based Chapter 5 SNMPv1 Network Management: Communication and Functional Models SNMP Community SNMP Manager SNMP Manager SNMP Manager Authentication Scheme Authentication Scheme Authentication Scheme Authentic Messages Authentication Scheme SNMP Agent Figure 5.1 SNMP Community Notes • Security in SNMPv1 is community based • Authentication scheme in manager and agent • Community: Pairing of two application entities • Community name: String of octets • Two applications in the same community communicate with each other • Application could have multiple community names • Communication is not secured in SNMPv1 - no encryption 8 Network Management: Principles and Practice © Mani Subramanian 2010

Community Profile Notes • MIB view Chapter 5 SNMPv1 Network Management: Communication and Functional Models Community Profile SNMP Agent READ- ONLY READ- W RITE SNMP Access Mode not-accessible Object 1 read-only Object 2 write-only Object 3 read-write Object 4 MIB Access SNMP MIB View Figure 5.2 SNMP Community Profile Notes • MIB view • An agent is programmed to view only a subset of managed objects of a network element • Access mode • Each community name is assigned an access mode: read-only and read-write • Community profile: MIB view + SNMP access mode • Operations on an object determined by community profile and the access mode of the object • Total of four access privileges • Some objects, such as table and table entry are non-accessible 9 Network Management: Principles and Practice © Mani Subramanian 2010

Administrative Model Notes Chapter 5 SNMPv1 Network Management: Communication and Functional Models Administrative Model • Administrative model is SNMP access policy • SNMP community paired with SNMP community profile is SNMP access policy Notes Parameters: • Community / communities • Agent / Agents • Manager / Managers 10 Network Management: Principles and Practice © Mani Subramanian 2010

Access Policy Notes • Manager manages Community 1 and 2 network Chapter 5 SNMPv1 Network Management: Communication and Functional Models Access Policy Manager Community Community Profile 1 Agent 1 Community Profile 2 Agent 2 Notes • Manager manages Community 1 and 2 network components via Agents 1 and 2 • Agent 1 has only view of Community Profile 1, e.g., Cisco components • Agent 2 has only view of Community Profile 2, e.g., 3Com components • Manager has total view of both Cisco and 3Com components 11 Network Management: Principles and Practice © Mani Subramanian 2010

Generalized Administrative Model Chapter 5 SNMPv1 Network Management: Communication and Functional Models Generalized Administrative Model Manager 1 (Community 1) Community 1 Community Profile 1 Agent 1 Community Profile 2 Agent 2 Manager 3 (Community 1, Community 2) Community 2 Community Profile 3 Community Profile 4 Agent 3 Agent 4 Manager 2 (Community 2) Figure 5.3 SNMP Access Policy Notes • Manager 1 manages community 1, manager 2 community 2, and manager 3 (MoM) both communities 1 and 2 12 Network Management: Principles and Practice © Mani Subramanian 2010

Proxy Access Policy Notes • Proxy agent enables non-SNMP community Chapter 5 SNMPv1 Network Management: Communication and Functional Models Proxy Access Policy SNMP Manager (Community 1) SNMP Agent Proxy Agent SNMP Community non-SNMP Community Figure 5.4 SNMP Proxy Access Policy Notes • Proxy agent enables non-SNMP community elements to be managed by an SNMP manager. • An SNMP MIB is created to handle the non-SNMP objects. 13 Network Management: Principles and Practice © Mani Subramanian 2010

Protocol Entities Notes Chapter 5 SNMPv1 Network Management: Communication and Functional Models Protocol Entities SNMP Data PDU Application PDU Application Header Version Community SNMP PDU Transport PDU UDP Header Application PDU Network PDU IP Header Transport PDU Network PDU Data Link PDU DLC Header Figure 5.5 Encapsulated SNMP Message Notes • Protocol entities support application entities • Communication between remote peer processes • Message consists of: • Version identifier • Community name • Protocol Data Unit • Message encapsulated and transmitted 14 Network Management: Principles and Practice © Mani Subramanian 2010

Chapter 5 SNMPv1 Network Management: Communication and Functional Models Get and Set PDU PDU Ty pe Error Status Error Index VarBind 1 VarBind 1 name value VarBind n VarBind n name value RequestID ... Figure 5.8 Get and Set Type PDUs Notes • VarBindList: multiple instances of VarBind pairs PDUs ::= CHOICE { get-request GetRequest-PDU, GetNextRequest-PDU, GetResponse-PDU, SetRequest-PDU, get-next-request get-response set-request trap } Trap-PDU PDU Types: enumerated INTEGER get-request get-next-request set-request get-response trap [0] [1] [2] [3] [4] 15 Network Management: Principles and Practice © Mani Subramanian 2010

Error in Response Notes ErrorStatus ::= INTEGER { noError(0) tooBig(1) Chapter 5 SNMPv1 Network Management: Communication and Functional Models Error in Response ErrorStatus ::= INTEGER { noError(0) tooBig(1) noSuchName(2) bad value(3) readOnly(4) genErr(5) } Error Index: No. of VarBind that the first error occurred Notes 16 Network Management: Principles and Practice © Mani Subramanian 2010

Trap PDU Notes • Enterprise and agent address pertain to the system Chapter 5 Enterprise SNMPv1 Network Management: Communication and Functional Models Trap PDU PDU Type Agent Generic Specific VarBind 1 VarBind 1 VarBind n VarBind n Timestamp ... Address Trap Type Trap Type name value name value Figure 5.8 Get and Set Type PDUs Table 5.1 Generic Traps Generic Trap Type coldStart(0) Description (brief) Sending protocol entity is reinitializing itself; agent's configuration or protocol entity implementation may be altered agent configuration or protocol entity implementation not altered warmStart(1) linkDown(2) linkUp(3) Failure of one of the communication links One of the links has come up authenticationFailure(4) egpNeighborLoss(5) enterpriseSpecific(6) Authentication failure Loss of EGP neighbor Enterprise-specific trap Notes • Enterprise and agent address pertain to the system generating the trap • Seven generic traps specified by enumerated INTEGER • Specific trap is a trap not covered by enterprise specific trap • Timestamp indicates elapsed time since last re- initialization 17 Network Management: Principles and Practice © Mani Subramanian 2010

SNMP Operations Notes 18 Chapter 5 SNMPv1 Network Management: Communication and Functional Models SNMP Operations GetRequest (sysDescr.0) GetResponse (sysDescr .0= "SunOS" ) Agent Process Manager Process GetRequest (sysObjectID.0) GetResponse ( sysObjectID.0=enterprises.11.2.3.10.1 .2 ) GetRequest (sysUpTime.0) GetResponse (sysUpTime.0=2247349530) GetResponse (sysContact.0=" ") GetResponse (sysName.0="noc1 ") GetResponse (sysLocation.0=" ") GetResponse (sysServices.0=72) GetRequest (sysContact.0) GetRequest (sysName.0) GetRequest (sysLocation.0) GetRequest (sysServices.0) Figure 5.10 Get-Request Operation for System Group Notes 18 Network Management: Principles and Practice © Mani Subramanian 2010

MIB for Get-Next-Request Chapter 5 SNMPv1 Network Management: Communication and Functional Models MIB for Get-Next-Request A B T E Z 1.1 2.1 2.2 3.1 3.2 1.2 Figure 5.12 MIB for Operation Examples in Figures 5.13 and 5.15 Notes 19 Network Management: Principles and Practice © Mani Subramanian 2010

Lexicographic Order Notes • Procedure for ordering: Chapter 5 SNMPv1 Network Management: Communication and Functional Models Lexicographic Order Table 5.2 Lexicographic-Order Number Example Numerical Order Lexicographic order 1 1 2 3 9 15 1118 115 126 15 22 2 34 22 115 126 250 321 1118 2509 250 2509 3 321 34 9 Notes • Procedure for ordering: • Start with leftmost digit as first position • Before increasing the order in the first position, select the lowest digit in the second position • Continue the process till the lowest digit in the last position is captured • Increase the order in the last position until all the digits in the last position are captured • Move back to the last but one position and repeat the process • Continue advancing to the first position until all the numbers are ordered • Tree structure for the above process 20 Network Management: Principles and Practice © Mani Subramanian 2010

MIB Lexicographic Order Chapter 5 SNMPv1 Network Management: Communication and Functional Models MIB Lexicographic Order A B T E Z 1.1 2.1 2.2 3.1 3.2 1.2 Figure 5.12 MIB for Operation Examples in Figures 5.13 and 5.15 Notes A 3.1 3.2 Z B T E 1.1 1.2 2.1 2.2 21 Network Management: Principles and Practice © Mani Subramanian 2010

A More Complex MIB Example Chapter 5 SNMPv1 Network Management: Communication and Functional Models A More Complex MIB Example 1 2 3 9 1 2 2 10 9 4 21 5 18 6 Figure 5.14 MIB Example for Lexicographic Ordering Notes 1 1.1 1.1.5 1.1.18 1.2 1.2.6 2 2.2 2.10 2.10.9 3 3.4 3.21 9 22 Network Management: Principles and Practice © Mani Subramanian 2010

Get-Next-Request Operation Chapter 5 SNMPv1 Network Management: Communication and Functional Models Get-Next-Request Operation A Manager Process GetRequest ( A ) Agent Process GetResponse ( A ) GetResponse ( B ) GetNextRequest ( A ) B T E GetNextRequest ( B ) GetResponse ( T.E.1.1 ) GetResponse ( T.E.1.2 ) GetResponse ( T.E.2.1 ) GetResponse ( T.E.2.2 ) GetResponse ( T.E.3.1 ) GetResponse ( T.E.3.2 ) GetResponse ( Z ) GetNextRequest (T.E.1.1 ) GetNextRequest (T.E.1.2 ) GetNextRequest (T.E.2.1 ) GetNextRequest (T.E.2.2 ) GetNextRequest (T.E.3.1 ) GetNextRequest (T.E.3.2 ) GetNextRequest ( Z ) T.E.1.1 T.E.1.2 T.E.2.1 T.E.2.2 T.E.3.1 T.E.3.2 Z GetResponse ( noSuchName ) Figure 5.15 Get-Next-Request Operation for MIB in Figure 5.12 Notes 23 Network Management: Principles and Practice © Mani Subramanian 2010

Get-Next-Request Operation Chapter 5 SNMPv1 Network Management: Communication and Functional Models Get-Next-Request Operation Manager Process Agent Process GetNextRequest (sysObjId, atPhysAddress) GetResponse( (sysUpTime.0 = "315131795"), (atPhysAddress.13.172.16.46.1 = "0000000C3920AC")) GetNextRequest (sysObjId, atPhysAddress.13.172.16.46.1) atIfIndex atPhysAddress 0000000C3920B4 0000000C3920AC 0000000C3920AF atNetAddress 192.168.3.1 172.16.46.1 172.16.49.1 23 13 16 GetResponse( (sysUpTime.0 = "315131800"), (atPhysAddress.16.172.16.49.1 = "0000000C3920AF") ) GetNextRequest (sysObjId, atPhysAddress.16.172.16.49.1) GetResponse( (sysUpTime.0 = "315131805"), (atPhysAddress.23.192.168.3.1 = "0000000C3920B4") ) GetNextRequest (sysObjId, atPhysAddress.23.192.168.3.1) GetResponse( (sysUpTime.0 = "315131810"), (ipForwarding.0 = "1") ) Figure 5.16 GetNextRequest Example with Indices Notes 24 Network Management: Principles and Practice © Mani Subramanian 2010

Sniffer Data 14:03:36.788270 noc3.btc.gatech.edu.164 > Chapter 5 SNMPv1 Network Management: Communication and Functional Models Sniffer Data 14:03:36.788270 noc3.btc.gatech.edu.164 > noc1.btc.gatech.edu.snmp: Community = public GetRequest(111) Request ID = 4 system.sysDescr.0 system.sysObjectID.0 system.sysUpTime.0 system.sysContact.0 system.sysName.0 system.sysLocation.0 system.sysServices.0 Figure 5.17(a) Get-Request Message from Manager-to-Agent 14:03:36.798269 noc1.btc.gatech.edu.snmp > noc3.btc.gatech.edu.164: Community = public GetResponse(196) Request ID = 4 system.sysDescr.0 = "SunOS noc1 5.5.1 Generic_103640-08 sun4u" system.sysObjectID.0 = E:hp.2.3.10.1.2 system.sysUpTime.0 = 247396453 system.sysContact.0 = "Brandon Rhodes" system.sysName.0 = "noc1" system.sysLocation.0 = "BTC NM Lab" system.sysServices.0 = 72 Figure 5.17(b) Get-Response Message from Agent-to- Manager (After) 25 Network Management: Principles and Practice © Mani Subramanian 2010

SNMP MIB Notes • SNMPv1 MIB has too many objects that are not used Chapter 5 SNMPv1 Network Management: Communication and Functional Models SNMP MIB snmp (mib-2 11) snmpInPkts(1) snmpEnableAuthenTraps (30) snmpOutTraps (29) snmpOutPkts (2) snmpInBadVersions (3) snmpOutGetResponses (28) snmpInCommunityNames (4) snmpInBadCommunityUses (5) snmpInASNParseErrors (6) -- not used (7) snmpOutSetRequests (27) snmpOutGetNexts (26) snmpOutGetRequests (25) snmpOutGenErrs (24) snmpInTooBigs (8) -- not used (23) snmpInNoSuchNames (9) snmpInBadValues (10) snmpInReadOnlys (11) snmpInGenErrs (12) snmpOutBadValues (22) snmpOutNoSuchNames (21) snmpOutTooBigs (20) snmpInTraps (19) snmpInGetResponses snmpInTotalReqVars (13) snmpInTotalSetVars (14) snmpInGetRequests (15) (18) snmpInSetRequests (17) snmpInGetNexts (16) Figure 5.21 SNMP Group Notes • SNMPv1 MIB has too many objects that are not used • SNMPv2 obsoleted a large number of them Note: Most of the MIB objects were not used and hence deprecated in SNMPv2 26 Network Management: Principles and Practice © Mani Subramanian 2010