25
SNMP Ye Joo Park / 3 Dec 2014 Simple Network Management Protocol

SNMP Overview (SNMP 소개)

Embed Size (px)

Citation preview

Page 1: SNMP Overview (SNMP 소개)

SNMP

Ye Joo Park / 3 Dec 2014

Simple Network Management Protocol

Page 2: SNMP Overview (SNMP 소개)

1970s 1980 1990 2000 Now

70 년대 / 네트워크는 극 소수의 사람들만이 사용

살아있니 ?

응 , 살아있어 .

Page 3: SNMP Overview (SNMP 소개)

1970s 1980 1990 2000 Now

‘ 어떤 목적지까지 데이터가 갈 수 있다 혹은 없다’ 정도면 충분

ping 52.32.141.55

pong

Page 4: SNMP Overview (SNMP 소개)

1970 1980s 1990s 2000 Now

80 년대 ~90 년대 / 인터넷의 사용 인구가 폭발적으로 증가

Need for a way to gather information from very dif -ferent systems in a consistent manner arises

Page 5: SNMP Overview (SNMP 소개)

1970 1980s 2000 Now

SGMP (Simple Gateway Monitoring Protocol) 이 생겨남

More features than pingPing 보다 더 많은 기능

Intuitive, easy to spot network problems직관적이고 쉽게 네트워크 문제를 찾을 수 있음

Standardized protocol표준화된 프로토콜

1990s

Page 6: SNMP Overview (SNMP 소개)

Simple set of operations that gives administrators the ability to change/retrieve the state of some SNMP-based device

SNMP

Page 7: SNMP Overview (SNMP 소개)

Manager Agent

Request

Response /Notification

MIB

SNMP FLOW

Page 8: SNMP Overview (SNMP 소개)

Request

Response /

Notification

지배인Manager

웨이트리스Agent

A RESTAURANT

주방MIB

Page 9: SNMP Overview (SNMP 소개)

“ 미영씨 , 시원한 물좀 갔다주세요”

물 전달

지배인Manager

웨이트리스Agent

손님Customer

주방MIB

A RESTAURANT

“Could I get a cup of water?”

Page 10: SNMP Overview (SNMP 소개)

A machine that is configured to poll SNMP agent for information

MANAGER

Page 11: SNMP Overview (SNMP 소개)

Responsible for gathering information about the local system and storing them in a format that can be queried

AGENT

Page 12: SNMP Overview (SNMP 소개)

Database of managed objects and their behavior

MANAGEMENT INFORMATION BASE (MIBs)

Page 13: SNMP Overview (SNMP 소개)

Example MIBs

DNS Server

RDBMS

PRINTER

(RFC 1611) Domain Nameserver 를 관리하기 위한 MIB

(RFC 1697) 관계형 데이터베이스를 위한 MIB

프린터과 관련된 MIB, RFC 3805 (Printer MIBv2) 가 현재 표준

Vendors and individuals are allowed to de-fine MIB variables for their own use.

+

Page 14: SNMP Overview (SNMP 소개)

“ 주방장님이 쓰러지셨어요 !”

지배인Manager

웨이트리스Agent

TRAP주방장이 과로로 쓰러짐

Trap

Page 15: SNMP Overview (SNMP 소개)

Change-of-state (COS) message that could be an alarm, or a status message

TRAP

Page 16: SNMP Overview (SNMP 소개)

Physical Layer

Network Access

Internet Layer

Transport Layer

Application Layer

Modem USART Ethernet

PPP SLIP ARP

IP ICMP

UDP TCP

SNMP SMTP Telnet HTTP FTP

TCP/IP Protocol Stack

Page 17: SNMP Overview (SNMP 소개)

Physical Layer

Network Access

Internet Layer

Transport Layer

Application Layer

Modem USART Ethernet

PPP SLIP ARP

IP ICMP

UDP TCP

SNMP SMTP Telnet HTTP FTP

TCP/IP Protocol Stack

Page 18: SNMP Overview (SNMP 소개)

MIB STRUCTURE

Root-Node

iso(1) joint(2)ccitt(0)

org(3)

dod(6)

internet(1)

directory(1) mgmt(2) experimental(3) private(4)

mib-2(1)

system(1) interfaces(2) at(3) ip(4) icmp(5) tcp(6) udp(7)

Every device that supports SNMP must also support MIB-II

Page 19: SNMP Overview (SNMP 소개)

5 Basic Commands

trap

getresponse

set

getnext

get

get 에 대응하여 agent 가 manager 에게 보내는 패킷

특정 값을 변경하고 싶을 때 사용

내가 요청한 object id 에서 가장 근접한 instance id 와 instance value 를 가져옴

요청한 object id 의 instance value 를 가져옴

특정 이벤트가 발생했을 때 manager 에게 알려주는 패킷

Page 20: SNMP Overview (SNMP 소개)

What can SNMP do for you?

Page 21: SNMP Overview (SNMP 소개)

한 예로 , 프린터에 잉크가 얼마나 남아있는지 확인하고 싶을 때 사용할 수 있습니다 .

SNMP USAGE

$ snmpget –c public {your-printer-ip} “.1.3.6.1.2.1.43.11.1.1.9”

종이 , 토너 , 용지걸림 , Output Tray missing 등 다양한 정보+

public 은 community string 이고 “ .1.3.6.1.2.1.43.11.1.9” 는 prt-

MarkerSuppliesLevel 의 Obejct ID 입니다 .

Page 22: SNMP Overview (SNMP 소개)

“It may be time to switch vendors”

Page 23: SNMP Overview (SNMP 소개)

1. SNMP 는 관리자들이 네트워크 장비들을 효율적으로 관리할 수 있게 해줍니다 .

2. 프린터에선 용지 정보 , 토너 정보 , 용지 걸림 , 유지보수 필요 여부 , job status, 하드웨어 정보 등 다양한 정보를 관리자에게 제공합니다 .

3. SNMP 가 큰 인기를 얻을 수 있었던 것은 프로토콜의 간단함 (simplicity) 에 있습니다 .

4. MIB 은 각 용도에 맞는 표준 규격 ( 프린터의 경우 RFC 3805) 을 쉽게 확장할 수 있습니다 .

THINGS TO TAKE AWAY

Page 24: SNMP Overview (SNMP 소개)

Q & A

Page 25: SNMP Overview (SNMP 소개)

감사합니다