SNMP. Dr. Hsiang-Fu Yu National Taipei University of Education Original by 台灣培生教育出版股份有限公司. Overview. 組成網路管理系統的元件 SNMP 封包的欄位 SNMP 協定的資料單元 (Protocol Data Unit, PDU) MIB tree 的結構 MIB-2 object 及 object identifier SNMP 指令示範 SNMP 的安全設定.
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
More Related Content
Presentation Transcript
SNMP Dr. Hsiang-Fu Yu National Taipei University of Education Original by 台灣培生教育出版股份有限公司
Overview • 組成網路管理系統的元件 • SNMP 封包的欄位 • SNMP 協定的資料單元 (Protocol Data Unit, PDU) • MIB tree 的結構 • MIB-2 object 及 object identifier • SNMP 指令示範 • SNMP 的安全設定
SNMP 封包 • Version • Management station 及 management agent 所使用的 SNMP 版本 • 本書以 SNMP 代表 SNMPv1,在版本欄位中,以“0”編碼表示 SNMP 第一版
SNMP 封包 (cont.) • Community Name • 是 SNMP 的密碼 • Management station 及 management agent 必須使用相同的 community name,否則訊框會被棄置 • Management agent 可以使用 community name 來管制 management station 存取 MIB 變數值,兩者也必須使用相同的 SNMP 版本,否則訊框會被棄置 • SNMP 的群體名稱沒有加密,所以沒有防止網路入侵的安全措施。SNMPv3 則對此多所改良
SNMP 封包 (cont.) • Protocol Data Unit (PDU) for the SNMP Get-Request, Get-Next-Request and Set-Request • Request ID • 整數,是 management station 送到 agent 的請求識別碼 • Management agent 送出的回覆也使用此欄位,讓 management station 的 SNMP 可以將請求及回覆建立關聯
PDU (cont.) • Error Status • 在“Get-Request”訊息,這個欄位的值是0 • 在“Get-Response”訊息,management agent 使用這個欄位通知 management station,以此得知是否收到正確 PDU • 若發生 錯誤,本欄位將回覆“非0”的值。本欄位有六個可能的值 • noError = 0 • tooBig = 1 = “PDU has too many bytes” • noSuchName = 2 = “there is no object with this name” • badValue = 3 = “integer identifying the PDU type is bad” • readOnly = 4 = “incorrect implementation of SNMP” • genErr = 5 = “unspecified errors of other types”
PDU (cont.) • Error Index • 整數,由1開始 • 在“Get-Response”訊息,當 VarBindList 引起 Error Status 欄位出現錯誤碼時,Error Index 指示 VarBindList 中的第一個錯誤變數 • 對 Management station 請求的 PDU 而言,“Error Status”及“Error Index”的值均為0 • VarBindList • 一連串 Variable ID 與 Variable Value 的組合
VarBindList • Variable ID • Contain the Object Identifier of the variable defined in SMI • The Object Identifier defines the path to the object in the MIB tree • Variable Value 可能是整數、8進位字串或 IP 位址。 • Management station 可以在一個請求封包中請求很多變數值,所以 VarBindList 可以包含若干欄位的組合,每個請求值對應到一欄位
Security (cont.) • Agent 必須維護 a table of SNMP Access Policy, 這個表格映射 community name 到 SNMP Access Policy • 當 agent 收到訊息後,以訊息中的 community name 檢視這個表格。若存在則 management station 依照對應的存取政策來存取 MIB 物件 • MIB Access 與 SNMP Access Mode 不同,MIB Access 被定義在 RFC 1155 (SMI),作為 MIB Object 被存取權限的選項 • MIB Access 和 SNMP Access Mode 的效果如下表
SNMP Access Mode MIB Access Resolution Read-Only Read-Only Object available for Get and Trap operations Read-Write Object available for Get and Trap operations Write-Only Object available for Get and Trap operations but the value is implementation dependent Not-accessible Object is unavailable Read-Write Read-Only Object available for Get and Trap operations Read-Write Object available for Get, Set and Trap operations Write-Only Object available for Get, Set and Trap operations but the value is implementation dependent for Get and Trap operations Not-Accessible Object is unavailable Security (cont.) • Table 6-3: Resolution of SNMP Access Mode and MIB Access