Professional Documents
Culture Documents
Design of Management
Application
Filip Mestanov, Marcelline Wilson,
Yatish Bathla
Spring semester 2010-2011
Barcelona
network management must ensure that the network and applications are upand-running smoothly and efficiently.
configuration of a network
physical and logical arrangement of the nodes that form the network.
Logical Topology :
Physical topology :
mapping of the network nodes
Signal topology :
Physical Topology
BUS :
all the nodes are connected to a common transmission medium.
Phisical Topology
Ring :
every node is connected to two other. Data transmitted over the network pass
through each of the nodes in the ring until they reach the destination node
Phisical Topology
Tree :
central root node is connected to one or more nodes of a lower hierarchy.
Phisical Topology
Star :
each node of the network is connected to a central node, transmitted passes
across the central node
Phisical Topology
Mesh
Each network node is connected to every other node in the network.
Physical Topology
Interconexion of Network
More complex networks can be built as hybrids of two or more of the above basic
topologies.
Centralised
Distributed
M
M
Both
M
10
SNMP Engine
Dispatcher
Security Subsystem
11
Application Types:
3. Notification originators initiate
asynchronous messages
12
SNMP Manager
A SNMP entity, containing
one or more Command
Generators and/or
Notification Receiver
applications
13
SNMP Agent
A SNMP entity, containing
one or more Command
Responder and/or
Notification Originator
application
14
Management of devices
if some devices experience havoc, then we have to keep log of the wrecks of
incidents.
With the use of SNMP-MIB we can keep log of the events occurred in the system,
which would help in identifying the exact cause of the problems, and would help
the administrator in recovery of system.
SNMP allows the standardization of the system and homogeneous interface to the
administrator for the management of SNMP and UPnP based devices.
UPnP (Universal Plug and Play Protocol) enables discovery and control of
networked devices and services, such consumer electronic equipments. UPnP
encompasses two main objects, control point and a device, and use XML,SOAP
as the communication protocol.
Communications-Network Management Technologies
15
DESCRIPTION
16
IMPLEMENTATION
In order to analyze the performance of our system we have emulated our
system using the following simple scenario. We considered a Single Person
apartment and we can control following devices:
Main door sensor, TV, air conditioner, Tube lights
Wash room Bulbs, Fridge. Microwave oven and PC.
We divided the time into 4 parts to simulate the peak hour usage or no usage
breakfast and wakeup timings (6 to 10) and dinner and relaxation time (6 to
11). : Maximum Usage of Managed device
office timings (10 to 6) and sleeping time (11 to 6): Almost No use
So we design four different Pseudo codes, Set clock so that manager monitor
the agent depending how frequently user used the Managed device.
17
Pseudo Codes
Step 1: Ps_code[n] = Computer clock time;
Step 1.1: 1 n 4 // Set four pseudo codes according to Usage of Managed
device//
Step 2: Ps_code[1] = 6:00 : 10:00 //Maximum Usage//
Step 2.1: Set clock = 0:10 //After 10 Minutes Communication between
Manager and agent Via SNMP and Translate codes//
Step 2.2 : If MIB[n]== Error_occured
step 2.2.1: Set Alarm[n]//Different alarm tune is set for different Managed
device//
Step 3: Ps_code[2] = 10:00 : 18:00 //Almost no Usage Office timing//
Step 3.1: Set clock = 0:30 //After 30 Minutes Communication between
Manager and agent Via SNMP and Translate codes as managed device is
less used//
Step 3.2 : If MIB[n]== Error_occured
Communications-Network Management Technologies
18
Pseudo Codes
step 3.2.1: Call user_mobile and User_office//Call by manager to user with
Pre-recorded message(done by softwares like Rynga,Smsdiscount) //
Step 4: Ps_code[3] = 18:00 : 23:00 //Maximum Usage//
Step 4.1: Set clock = 0:05 //After 05 Minutes Communication between
Manager and agent Via SNMP and Translate codes//
Step 4.2 : If MIB[n]== Error_occured
step 4.2.1: Set Alarm[n]//Different alarm tune is set for different Managed
device//
Step 5: Ps_code[4] = 23:00 : 06:00 //Almost no Usage//
Step 5.1: Set clock = 0:20 //After 20 Minutes Communication between
Manager and agent Via SNMP and Translate codes//
Step 5.2 : If MIB[n]== Error_occured
step 5.2.1: Set Alarm[n]//Different alarm tune is set for different Managed
device//
Communications-Network Management Technologies
19
Yatish Bathla
20
TRANSLATE CODE
Receive-getRequest:
step 1: ResponseId=LookupMIB_DB(object Identifier)//Validate the object
identifier by look into the MIB database//
Step 2:If ResponseId is null or other error occur
Step 2.1: Issue getResponse(genErr(ResponseId).objectIdentifier)
Step 3: else
Step 3.1:Issue getResponse(Value, Objectidentifier)
Receive-getnext-Request:
Step 1:ObjectIdentifier= NextIdentifier(ObjectIdentifier)//Calculate OID number of
Next Identifier//
step 1.1: ResponseId=LookupMIB_DB(object Identifier)//Validate the object
identifier by look into the MIB database//
Communications-Network Management Technologies
21
TRANSLATE CODE
Step 2:If ResponseId is null or other error occur
Step 2.1: Issue getResponse(genErr(ResponseId).objectIdentifier)
Step 3: else
Step 3.1: Issue getResponse(Value, Objectidentifier)
Receive-SetRequest:
step 1: ResponseId=LookupMIB_DB(object Identifier)//Validate the object
identifier by look into the MIB database//
Step 2:If ResponseId is null or other error occur
Step 2.1: Issue getResponse(genErr(ResponseId).objectIdentifier)
Step 3: else
Step 3.1: ResponseId=UPnPHandler(ObjectIdentifier)// Call the Control
Point Handler//
Step 3.2: If ResponseId==TRUE
Communications-Network Management Technologies
22
TRANSLATE CODE
Step 3.2.1:Issue getResponse(Value, Objectidentifier)//Send to the Manager//
Step 3.2.2: Issue setupMIB_DB(Objectidentifier,Value)//Save in DB//
Step 3.3: Issue getResponse(genErr(ResponseId), Objectidentifier)
UPnP Handler:
Parameter: ObjectIdentifier
Step 1:UPnP_Record= LookUpMIB_DB(objectIdentifier,UPNP)
Step 2:If UPnP_Record==NULL return NULL
Step 3:If(UPnPRecord.deviceservice.ServiceId.Issubscribe==FALSE)
Step 3.1:If(Subscribe_To_Device(UPnP_Record)==True)
Step 3.1.1:Return TRUE
Step 3.1.2:Return FALSE
Step 4:else Return NULL
Communications-Network Management Technologies
23
TRANSLATE CODE
OnModifiedStateVar
Description: Call Back Function
Step 1: SetUpMIB_DB(UPnPRecord,UPnP)//Again Overload Function to save
UPnP Record in MIB DB//
Step 2: If(UPnPRecord.Deviceservice.ServiceId.Trap)==TRUE//If Trap Field is
Set, Send the Response to Manager//
Step 2.1:Issue getResponse(Value, Objectidentifier)
Step 2.2:Else return Null
24
It includes both UPnP control point and SNMP agent, thus acting as a gateway between
UPnP environment and SNMP manager.
The translation code is demonstrated. It is quite simple for both Receive-get Request
and Receive-getNext Request.
In case of Receive-set Request, after validating the OID , control is transferred to the
Control Point (UPnP Handler), where it retrieves the UPnP record related to that OID
and subscribe to the corresponding service.
The Control is then transferred back to the Receive-set Request, where appropriate
entry is done in the MIB_DB. But, if control point couldnt subscribe to the device, then
error message is sent to the manager.
In this function UPnP Record is saved in the MIB Db and if the trap value is set for the
corresponding OID by the manager, then a response message is sent to the manager.,
25
SAMPLE APPLICATION
Figure shows our SNMP manager, which
could load MIB files and listen to SNMP traps
and perform different SNMP commands and
operations. It stores the listened data in a
database and helps in performing different
type of analysis.
26
GRAPH REPRESENTATION
27
CONCLUSION
The power consumption graph for a single day for 4 different devices is shown in the
above figure and the hourly power consumption of the system in a whole day is shown in
the figure, along with the cost of electricity incurred in a day. The scattered plot for
showing the power consumption in thirty days
Using this data we could estimate the future power consumptions. The above data can
be extrapolated further to estimate the electricity bills of whole year and if any of the
actual billing cost deviate from our estimated one then by using this we can detect
abnormality or fault in devices like extra power consumption and can take steps to
reduce the cost and consumption
We have observed that UPnP control point with the SNMP agent works quite well, but it
consumes more memory, which is not suitable for small devices. In order to demonstrate
the viability of our system we demonstrated the simple scenario, but we are yet to
analyze its result in a highly complicated environment, where many services move to
and fro, in and out of the systems. Using SNMP for management of UPnP based
devices, we could easily manage heterogeneous UPnP and SNMP based devices from
one single platform, particularly in environments with large number of devices,
Communications-Network Management Technologies
28
All devices on
the network are
SNMP enabled
29
1) Manager
2) Agent
3) Manager/Agent
if localTime=20:00:00 {
if interface.Eth0=UP {
GET (prAcMacAddress);
GET (system.sysDescr.0);
if (prAcMacAddress!=allowed_MAC) {
if (system.sys.Descr.0 = NULL) {
if (coDot11CCQ<CCQ_threshold) {
SET (Alarm_unidentified_client=ON);
return ERR;
SET (flag_user[i]=ERR);
GET (coDot11CCQ);
SET (Alarm_link_failure=ON);
SET (Bandwidth_limit=BW_primary);
}
}
else {
SET Stat_user[i]=system.sys.Descr.0);
}
}
}
30
ss = snmp_open(&session);
if (!ss) {
snmp_sess_perror("ack", &session);
SOCK_CLEANUP;
exit(1);
}
pdu = snmp_pdu_create(SNMP_MSG_GET);
anOID_len = MAX_OID_LEN;
if (!snmp_parse_oid(".1.3.6.1.2.1.1.1.0", anOID,
&anOID_len)) {
snmp_perror(".1.3.6.1.2.1.1.1.0");
SOCK_CLEANUP;
exit(1);
}
}
}
if (response)
snmp_free_pdu(response);
snmp_close(ss);
SOCK_CLEANUP;
return (0);
31
The END
32