第八章簡易網路管理協定 8-1SNMP簡介 8-2SNMP協定 秦8-3SNMP運作程序 燕8-4SMI管理訊息結構 燕8-5MIB訊息資料庫 8-6MIB管理物件群組 秦8-7ASN-1資料型態
1 第八章 簡易網路管理協定 8-1 SNMP 簡介 8-2 SNMP 協定 8-3 SNMP 運作程序 8-4 SMI 管理訊息結構 8-5 MIB 訊息資料庫 8-6 MIB 管理物件群組 8-7 ASN-1 資料型態
8-1SNMP簡介 簡易網路管理協定簡介( Simple Network Management Protocol,SNMP 版本 SNMPvI SNMPv2 SNMPv3 ◆SNMP成員 SNMP管理者 SNMP Manager) SNMP代理者( SNMP Agen 被管理物件 Managed object:管理訊息寳料庫(MIB) 管理模式 要求回應( Request/Response)模式 網路管理系統 SNMP通訊協定 SNMP通訊協定 (SMNP Manager) lollooooool ool 工作站 路由器 橋接器 集線器 MIB K MIB MIB MIB 管理物件( Managed Object,被管理設備( SMNP Agent)
2 8-1 SNMP 簡介 簡易網路管理協定簡介(Simple Network Management Protocol, SNMP) 版本 • SNMPv1, SNMPv2, SNMPv3 SNMP 成員 • SNMP 管理者(SNMP Manager) • SNMP 代理者(SNMP Agent) • 被管理物件(Managed Object):管理訊息資料庫(MIB) 管理模式: • 要求/回應(Request/Response) 模式 • SNMP 通訊協定 MIB 路由器 MIB 橋接器 MIB 集線器 MIB 網路管理系統 (SMNP Manager) 被管理設備 (SMNP Agent) SNMP 通訊協定 管理物件(Managed Object) 工作站 A B
8-2SNMP協定() SNMP協定堆叠 ◆傅輸埠口 SNMP Agent: UDP161 NMP Manager: UDP 162 Abstract Syntax Notation-One(ASN-1) 管理系統 被管理設備 管理應用MB(管理訊息)了管理物件 系統 OSI Ref SNMP訊息 Application Layer SNMP Manager K+ SNMP Agent Presentation Layer ASN. 1 ASN. 1 Session layer Transport Layer UDP UDP Network laye
3 8-2 SNMP 協定 (一) SNMP 協定堆疊 傳輸埠口 • SNMP Agent : UDP 161 • SNMP Manager : UDP 162 Abstract Syntax Notation - One (ASN-1) SNMP Manager UDP IP 管理應用 系統 管理物件 SNMP Agent UDP IP SNMP 訊息 MIB ( 管理訊息) 網 路 管理系統 被管理設備 ASN.1 Transport Layer Network Layer Session Layer Presentation Layer Application Layer ASN.1 OSI Ref
8-2SNMP協定(二) 秦 SNMP協定資料單元(1) ◆IP/UDP封包包裝 Version (ver) Community(共同體): public (a) SNMPy1與 SNMPy2訊息格式 IP Packet UDP Packet SNMP Message Message header SNMP PDU IP UDP Header SNMP PDU 4
4 8-2 SNMP 協定 (二) SNMP 協定資料單元(1) IP/UDP 封包包裝 • Version (Ver) • Community (共同體 ) : public IP Header UDP Header Ver Comm Name SNMP PDU Message Header SNMP PDU SNMP Message UDP Packet IP Packet (a) SNMPv1 與 SNMPv2 訊息格式
8-2SNMP協定(三) 秦SNMP協定資料單元(2) ◆ SNMP PDU訊息格式 (b) SNMPvI Get, GetNext, Response, Set PDU PDU Request Error Error Object 1 Object 2 Object n Type Status Index Value 1 Value 2 Value n Variable bindings (c) SNMPvI Trap PDu PDU Enterprise Trap Type Trap Type Stamp Value lValue 2 Generic Specific Time Object 1 Object 2 Object n ype Value n Variable bindings (d) sNMPv2 Get, GetNext, Inform, Response, Set, Trap PDU PDU Request ErrorError Object 1 Object 2 Object n Status Index Value 1 Value 2 Value n k Variable Bindings (e) sNMPv2 GetBulk PDU Request Non- Max- Object 1 Object 2 ID repeaters repetitions Value 1 Value 2 Valy n ▲急 Variable Bindings-
5 8-2 SNMP 協定 (三) SNMP 協定資料單元(2) SNMP PDU 訊息格式 PDU Type Request ID Error Status Error Index Object 1 Value 1 Object 2 Value 2 Object n Value n Variable Bindings (b) SNMPv1 Get, GetNext, Response, Set PDU PDU Type Enterprise Generic Trap Type Time Stamp Object 1 Value 1 Object 2 Value 2 Object n Value n Variable Bindings Specific Trap Type (c) SNMPv1 Trap PDU PDU Type Request ID Error Status Error Index Object 1 Value 1 Object 2 Value 2 Object n Value n Variable Bindings (d) SNMPv2 Get, GetNext, Inform, Response, Set, Trap PDU PDU Type Request ID Nonrepeaters Maxrepetitions Object 1 Value 1 Object 2 Value 2 Object n Value n Variable Bindings (e) SNMPv2 GetBulk PDU