Web Service based network management system SNMP ... - LIA/UFC

insidiousbehaviorΑσφάλεια

3 Νοε 2013 (πριν από 3 χρόνια και 10 μήνες)

101 εμφανίσεις

Implementation and
Bandwidth Consumption
Evaluation of SNMP to Web
Services Gateways

Ricardo Neisse

Ricardo Vianna

Lisandro Zambenedetti Granville

Maria Janilce Bosquiroli Almeida

Liane Margarida Rockenback Tarouco


Federal University of Rio Grande do Sul, Brazil

Informática

UFRGS

2


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Outline


Introduction


Web Services based management
architecture


Type of gateways


Bandwidth consumption analysis


Conclusions and future work

3


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil


Introduction


SNMP x new management challenges


XML applied in network management


NETConf


SNMP to XML gateways


Web Services





4


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Network

administrator

Look up

WS based network

management system

UDDI

Publish

(WSDL)

Web Services Based

Management Architecture

WS based network

managemend system

SNMP to WS

gateway

Invoke

(SOAP)

SNMP

5


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Web Services Gateways


Provide access to device information through
Web Services


Two types:


Protocol
-
level


Object
-
level

6


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Protocol Level Gateways


Map SNMP operations (Get, GetNext, Set)
into Web Service calls


E.g.

function Get ($ip, $community, $oid)

function GetNext ($ip, $community, $oid)

function Set ($ip, $community, $oid, $newvalue)

7


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Object Level Gateways


Map each MIB object to a WS operation


E.g.

function GetSysLocation ($ip, $community)

function SetSysLocation ($ip, $community, $newvalue)

function GetIfAdminStatus ($ip, $community, $index=
-
1)

function SetIfAdminStatus ($ip, $community, $index, $newvalue)

8


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Protocol x Object Level


Protocol level:


Similar to SNMP


Manager is forced to
know the MIB structure


New MIBs are supported
without modifications in
the gateway


Dynamic creation is not
required to protocol
level gateways


Object level:


Operations and bindings
are described in WSDL


Changes in the MIB
reflect in the gateway


Gateway dynamic
creation


9


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

System for Gateway Dynamic
Creation


Implemented in PHP


Generates object level gateways and WSDL
descriptions from SMI MIB definitions


Uses LIBSMI to parse SMI files and NuSOAP
to support Web Services

10


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

SNMP to Web Service Gateway:


require_once('nusoap.php');

$server = new soap_server();

...

$server
-
>register('ifOutOctets');

function ifOutOctets($ip, $str_com, $index=
-
1){


if($ip=='' or $str_com=='') return new
soap_fault(‘1','client',‘Invalid Parameters');


else {


$res = snmpwalk($ip, $str_com, '.1.3.6.1.2.1.2.2.1.16');


if($index>
-
1) return $res[$index];


else return $res; }

}

...

$server
-
>service($HTTP_RAW_POST_DATA);

Gateway Dynamic Creation

Web server

SMIDUMP

(LIBSMI)

Instrumentation

(PHP SAX parser)

Web
-
based network
management station

New gateway

(PHP Script)

11


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Bandwidth Consumption Evaluation


SNMP versus WS protocol
-
level and object
-
level gateways


Web Service gateways over:


HTTP and HTTPS


With and without
Compression

(zlib)

12


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Test Scenario

Web Service based network

management system

SNMP to WS

Gateway

SOAP

SNMP

Points of
measurement

Linux
(NetSNMP)

Linux

(Apache)

13


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

SNMP Test Agent


Configure the number
of objects to return in
wsTableRows


SNMP data:

oid.1 (integer 1)

oid.2 (integer 2)

...

oid.n (integer n)

14


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Results (1): GetNext Operation of
Protocol Based Gateway

0
20
40
60
80
100
120
140
160
180
200
0
20
40
60
80
Retrieved instances
Kilobytes
WS GetNext over HTTPS
WS GetNext over HTTP
SNMP
15


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Results (2): GetWSColumn Operation
of Object Based Gateway

0
2
4
6
8
10
12
14
0
20
40
60
80
Retrieved instances
Kilobytes
GetWSColumn over HTTPS
GetWSColumn over HTTP
SNMP
16


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Results (3): GetNext Operation of
Protocol
-
Level Gateway with
Compression

0
20
40
60
80
100
120
140
160
180
200
0
20
40
60
80
Retrieved instances
Kilobytes
WS GetNext over HTTPS
Compressed WS GetNext over
HTTPS
WS GetNext over HTTP
Compressed WS GetNext over
HTTP
SNMP
17


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Results (4): GetWSColumn Operation of
Object Based Gateway with
Compression

0
2
4
6
8
10
12
14
0
20
40
60
80
Retrieved instances
Kilobytes
GetWSColumn over HTTPS
Compressed GetWSColumn
over HTTPS
GetWSColumn over HTTP
Compressed GetWSColumn
over HTTP
SNMP
18


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Conclusions


SNMP to Web Services gateways implementation


Object
-
level gateways do not require previous knowledge
about object definitions


Object
-
level gateways always perform better than protocol
-
level gateways and perform better than SNMP when return:


Number of object instances

With Compression

With Security

+10

X

+17

+28

X

X

+39

X

19


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Future Work


Analysis of performance and memory
required by gateways


Web Services Management Architecture


Configuration (NetConf)


Delegation (Script MIB)

20


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Thank you!



Q&A?


Contact information:

Ricardo Neisse

neisse@inf.ufrgs.br



21


Ricardo Neisse

Institute of Informatics, Federal University of Rio Grande do Sul, Brazil

Web Services Background

UDDI

Client

Publish

Look up

Invoke

SOAP

WSDL described service

Web Service