290 likes | 303 Views
School of Electrical Engineering and Telecommunications TELE9752: Network Operations and Control. Week 4: MIB/SNMP vs. YANG/ Netconf. Outline. Network management the old way [these slides]: Management Information Base (MIB) Simple Network Management Protocol (SNMP)
E N D
School of Electrical Engineering and Telecommunications TELE9752: Network Operations and Control Week 4: MIB/SNMP vs. YANG/Netconf
Outline • Network management the old way [these slides]: • Management Information Base (MIB) • Simple Network Management Protocol (SNMP) • Network management the new way [from Cisco Live]: • YANG • NETCONF • Project • Mid-session test
Internet Management: SNMP • 1970: Advanced Research Project Agency Network (ARPANET) Internet control Message Protocol (ICMP) • Internet Engineering Task Force (IETF) • 1990 SNMPv1 • 1995 SNMPv2 • 1998 SNMPv3 • Structure of Management Information (SMI): RFC 1155 • Management Information Base (MIB): RFC 1213
Internet Subnodes • directory OBJECT IDENTIFIER ::= {internet 1} • mgmt OBJECT IDENTIFIER ::= {internet 2} • experimental OBJECT IDENTIFIER ::= {internet 3} • private OBJECT IDENTIFIER ::= {internet 4}
Abstract Syntax Notation One (ASN.1) • ASN.1 is more than a syntax; it’s a language • Addresses both syntax and semantics • Two type 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
Primitive Data Types • Sub-types: • INTEGER (0..255) • OCTET STRING (SIZE 0..255) • OCTET STRING (SIZE 8)
Structured Data Type: SEQUENCE OF Example:
Aggregate (Tabular) Object • A group of objects • Also called tabular objects • Can be represented by a table with • Columns of objects • Rows of instances
SNMP Messages • Get-Request • Get-Next-Request • Set-Request • Get-Response • Trap • Generic trap: • coldStart, warmStart, linkDown, linkUp, authenticationfailure, egpNeighborLoss, enterpriseSpecific • Specific trap: for special measurements e.g. statistics • Time stamp: Time since last initialization
SNMP Community and Access Policy • Community name: string of octets (serves as password) • Authentication service: community name serves as password • “public” community allows get (and trap) operations • “private” community for set operations • communication is not secured in SNMPv1 - no encryption
Get and Set PDU • PDU types: enumerated integer • Get-request [0] • Get-next-request [1] • Set-request [2] • Get-response [3] • Trap [4]
Trap PDU • 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 • time stamp indicates elapsed time since last re-initialization