Network and Service Management and Control (EEEM023 / EEM.nsm)

联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981

EEEM023 / EEM.nsm Lab-Based Assignment
The assignment consists of practical computer laboratory work, with the aim of helping you to
gain familiarity with SNMP in a manager role. Software is to be developed and submitted,
together with a brief report covering the areas addressed in the practical work. Every student
will also give in the laboratory a demonstration of the software that he or she has built.
All the programming required should be done in Java.
The following two small systems should be developed:
A manager program that retrieves via the Advent SNMP low level API all the TCP
connections in a remote machine. The TCP connection objects should be as defined
in the SNMP MIB-II.
A manager program that is given as parameters a counter attribute (i.e. a SNMP
“object”) that models real traffic to be monitored, e.g. ifInOctets / ifOutOctets of the
SNMP MIB-II Interface group, ipInDelivers / ipOutRequests of the IP group, tcpInSegs
/ tcpOutSegs of the TCP group, etc., a polling period in seconds, the number of periods
N to be used for averaging, and the network node in which to access that object. The
program should poll the object periodically and should calculate the throughput, in
bits/sec or packets/sec, using a uniformly weighted moving average algorithm (the latter
is explained in the course notes).
Please avoid printing documentation, and instead read it online. Support laboratory sessions are
run between Weeks 4 and 9 to help you with the work. Please refer to your timetable. You
should start working before then so that you have meaningful questions and interaction during
the sessions. Finally, lab guidelines with useful information and resources are provided in
Appendixes I.
Deliverables
There are two deliverables:
1. You must show your software to one of the demonstrators at one of the lab sessions in
Week 9. In case of remote labs please send your software through SurreyLearn. If
necessary you will be asked to have an online session to explain your code together with
other Q&As.
2. You must submit via SurreyLearn a brief report on your work by the Week 12 deadline
given on the front of this sheet, jointly with other assignment assessment components.
Report structure
The report should be brief, of the order of 4-5 pages, and consist of the following:
An outline of your program design, in the form of pseudo-code or a flowchart; together
with brief notes on any key features of the software; and on any issues encountered
during your work together with their resolution;
Relevant screenshots of your program’s output;
Validation of the UWMA results you have obtained;
Concluding comments.
Do not include your software source code in the report
Assessment criteria
Software:
Functions implemented correctly
Quality of output display (correct output of TCP connection table; correct display of
UWMA parameters and calculation of UWMA)
Code clarity and appropriate commenting
Your ability to discuss your design and implementation of your code
Report:
Quality of SNMP discussion
Quality of software description
Results / screenshots
Quality of English

Appendix – For Java developer
Below are some guidelines that would be useful in the coursework. Note that the lab
demonstrators will show you step by step of the following processes in the first lab session.
Eclipse:
Eclipse is an IDE (Integrated Developing Environment) that you will use to develop
your Java programs. To run Eclipse, go to “Applications” → “Programming” →
“Eclipse”. Use the default workspace. Basically, the steps are:
Create new Java project → Create new .java file under “src” directory → Start
programming → Compile → Run (if successful) or debug (if unsuccessful).
Another thing you need to know is how to pass command-line arguments in Eclipse.
Firstly, open the .java file you want to run. Then, select “Run” in the menu bar → “Run
configurations”. Now, check whether the name of your class appears under “Java
Application” on the left. If no, then you need to double-click on “Java Application” to
see it appear. Normally you only need to do this once. After this is done, select
“Arguments” tab on the right. Enter the command-line arguments you want to input
under “Program arguments”, each separated by a space.
AdventNet SNMP Package:
With Java itself, we cannot perform SNMP network operations. Therefore, we need an
external package as a complement to Java to do this coursework, which is “AdventNet
SNMP” package. This package contains many Java classes which are capable of sending
SNMP requests, retrieving SNMP entries, displaying information etc.
We need to link this package to out Java project via Eclipse. The steps to link the
package are:
Download the AdventNetSnmp package here → Right click on your Java project folder
→ “Build Path” → “Select external archives” → Select the AdventNetSnmp.jar file,
then “OK”.
Example Java Programmes:
Two example Java programmes are provided to illustrate how one can use
AdventNetSnmp package to perform SNMP operations:
1) Send a GET request for a specified OID value: SnmpGet.java
2) Send a GETNEXT request for a specified OID value: SnmpGetNext.java
More explanations on these two programs can be found by going here, and select
“Tutorials -> Low Level API Tutorials -> SNMP Get and Get Next”. Also, we will
explain SnmpGetNext.java step by step in the first lab session.
Hosts used in this lab:
If we want to get an SNMP response, we need to send the requests to a host that runs an SNMP
agent on it. The current host which has an SNMP agent installed is:
Host: feps-teach01
Community: teachinglabs
OIDs used in this lab:
First of all, make sure that you understand what an OID is, and why it looks like this.
For the first part, the following five OIDs will be used:
.1.3.6.1.2.1.6.13.1.1
.1.3.6.1.2.1.6.13.1.2
.1.3.6.1.2.1.6.13.1.3
.1.3.6.1.2.1.6.13.1.4
.1.3.6.1.2.1.6.13.1.5
For the second part, the following OID pairs should be used:
.1.3.6.1.2.1.6.10 and .1.3.6.1.2.1.6.11 (tcpInSegs and tcpOutSegs)
.1.3.6.1.2.1.2.2.1.10 and .1.3.6.1.2.1.2.2.1.16 (ifInOctets and ifOutOctets)
.1.3.6.1.2.1.4.9 and .1.3.6.1.2.1.4.10 (ipInDelivers and ipOutRequests)

发表回复