Simple Network Management Protocol: SNMP
SNMP: ข้อกำหนดของข้อมูลในการจัดการที่อุปกรณ์เครือข่าย ใช้แลกเปลี่ยนกัน
SNMP: ข้อดีคือ ทำให้ admin จัดการ network ได้อย่างมีประสิทธิภาพและแก้ไขปัญหาได้ง่ายและตรวจสอบสิ่งที่จะเกิดขึ้นในอนาคต
การทำงาน: ประกอบด้วย 3 ส่วนหลักๆ, การจัดการอุปกรณ์ Managed device, agents, network management systems NMSs
Managed device: ก็คือ หน่วยหนึ่งในเน็ตเวิร์คที่ประกอบด้วย SNMP agent คอยทำหน้าที่ในการเก็บและจัดการข้อมูลการจัดการให้เหมาะสมในรูปแบบ SNMP บางท่านเรียก network element อาจเป็นได้ทั้ง router, switch, computer, server, printer
An agent: network management software module ที่อยู่ใน managed device ซึ่งทำหน้าเก็บข้อมูลของการจัดการภายในของตัวอุปกรณ์และจัดรูปแบบให้เหมาะสมกับ SNMP Format
NMSs: Network Management System โปรแกรมที่ทำหน้าที่ควบคุม และตรวจสอบสถานะ Managed device, มันจะให้ ข้อมูลของ processor ทั้งหมดและความต้องการ memory ของ networkเป็นต้น
SNMP Basic Commands
Managed Devices ตรวจสอบสถานะและควบคุมโดยใช้ 4 คำสั่งเบื้องต้น
Read : NMS จะใช้ในการตรวจสอบสถานะของ manage device ,NMS ตรวจสอบค่าต่างๆที่อยู่ใน manage device
Write : NMS จะใช้ในการควบคุมสถานะของ manage device , NMS เปลี่ยนค่าต่างๆที่เก็บใน manage device
Trap : รายงานเหตุการณ์ที่เกิดไปยัง NMS แบบ asynchronously ใช้โดย manage device เมื่อมี event เกิดขึ้น manage device ส่ง trap ไปยัง NMS
TraversalOperation ใช้โดย NMS ในการที่จะกำหนดค่าตัวแปรและเก็บรวบรวมข้อมูลในตารางเช่นค่า Routing table
SNMP Management Information Base MIB การเก็บรวบรวมข้อมูลในรูปแบบลำดับชั้น MIBs ใช้ management protocol เช่น SNMP , MIB คือการประกอบของ manage object และระบุตำแหน่งโดยใช้ object identifiers (Oid)
A manage object ( MIB object, object , MIB ) คือสิ่งหนึ่งที่ใช้ในการบอกคุณสมบัติของ managed device , managed device ประกอบด้วย object instance หลายๆอันที่เป็นค่าของตัวแปร
managed device มีค่าตัวแปร 2 ชนิด คือ scalar and tabular
SNMP and data representation
SNMP account สำหรับปรับข้อมูลทีไม่สัมพันธ์กันระหว่าง manage device แต่ละตัว computer ต่างกันจะให้ข้อมูลที่ไม่เหมือนกัน ซึ่งก็จะให้ข้อมูลพอที่จะนำมาใช้งานได้ ซึ่ง SNMP จะใช้ Abstract Syntax Notation One (ASN1) ในการคุยกันระหว่าง system ที่ต่างกัน
SNMP V1 คือการเริ่มต้นของ SNMP protocol
SNMPV1 ทำงานบน protocol User Datagram Protocol UDP , Internet Protocol IP , Connectionless Network Service CLNS, Apple Talk Datagram, Novell IPX , ซึ่ง SNMP ได้ถูกใช้งานอย่างกว้างขวาง
SNMP V1 and Structure of Management Information
SMI จะใช้กฎของ ASN1 และนิยามอยู่ใน RFC1155 โดยมี specification ดังนี้
ASN.1 data types, SMI-specific data types, and SNMP MIB tables
ASN.1 data types
ข้อมูล 3 ชนิดที่ ASN.1 ต้องการคือ
name , syntax , encoding data
name ก็คือ OID ,
syntax ก็คือ ชนิดของดาต้าของ object (interger or string ) SMI ,
encoding data ก็คือ ชุดของข้อมูลสำหรับส่งบนเน็ตเวิร์ค
SNMPv1 and SMI Specific Data Types
SNMPv1 SMI ระบุใช้ตัวเลขของ SMI-specific data types ซึ่งแบ่งเป็นSimple data type and application wide data types
3 Simple data type ใช้ใน SNMPv1 SMI
Interger , octet string, Object IDs
SNMP MIB Tables
The SNMPv1 SMI defines highly structured tables that are used to group the instances of a tabular object (that is, an object that contains multiple variables). Tables are composed of zero or more rows, which are indexed in a way that allows SNMP to retrieve or alter an entire row with a single Get, GetNext, or Set command.
SNMPv1 Protocol Operation
SNMP network management system ส่งการร้องขอข้อมูล management device จะตอบกลับ การกระทำดังกล่าวใช้ 1 ใน 4 ของ operation ซึ่งมี 4 คำสั่งคือ : Get GetNext Set Trap , Get ใช้โดย NMS รับค่า object instance จาก agent , GetNext ใช้โดย NMS รับค่าถัดไปของ object instance ใน table หรือ list ภายใน agent Set ใช้โดย NMS สำหรับให้ค่า object instance ใน agent , Trap ใช้โดย agent ในการบอก NMS ถึง event สำคัญ
SNMPv1 Message Format Contain 2 parts
SNMPv1 messages contain : Message Header and protocol data unit (PDU)
SNMPv1 message header contain 2 fields,
Vision number: specifies the version of SNMP
Community name: access environment for a group of NMS
เข้าชม : 21352
|