160 likes | 342 Views
MEASUREMENT HANDLER. Measurement Handler: Debjyoti Majumder , Deniz Gurkan University of Houston ERM: Michael Wang, Caroline Lai, Keren Bergman Columbia University IMF Extension to integration with ORCA: Ilia Baldine RENCI - BEN. IMPLEMENTATION & INTEGRATION WITH IMF.
E N D
MEASUREMENT HANDLER Measurement Handler: Debjyoti Majumder, DenizGurkan University of Houston ERM: Michael Wang, Caroline Lai, Keren Bergman Columbia University IMF Extension to integration with ORCA: IliaBaldine RENCI - BEN IMPLEMENTATION & INTEGRATION WITH IMF 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Measurement handler (MH) - server program • Integrated Measurement Framework (IMF) – client program • Respond to requests over XML-RPC protocol: • connectToDevice – logs into Polatis/Infinera • retrieveMeasurement – fetch measurement • disconnectFromDevice – logs out • Support multiple logins and simultaneous retrieval of measurements 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Infinera: • PREFEC-BER • POSTFEC-BER • PORTPOWER (received power) • Polatis • PORTPOWER 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
SERVER PROGRAM • Creates a daemon process that continuously polls a port (currently 8001) for XML-RPC requests. • Calls supporting perl modules to communicate with the network element. 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
SUPPORTING PERL MODULES Extraction of specific measurements from the raw response messages from the network element: • pol_tl1.pm • Infinera_tl1.pm TL1 interface with the network element is done using CPAN Perl module: TL1.pm 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
TL1 Toolkit [SARA 1] Provides general access and parsing functions for TL1 interface. Thread-safe multi-user access: • Unique connection identifier for each login (tl1 object) • Thread-safe response fetch for concurrent requests • Separate termination of response retrieval for each logout 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Call method connectToDevice • Parameters: • deviceIP=<IP address or FQDN of network element> • port=<port number of network element> • username=<username> • password=<pwd> • device=Infinera/Polatis (case-insensitive) Using these parameters, a new tl1 connection is created with the network element and a unique connection identifier is returned to the IMF. 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Call method retrieveMeasurement • Parameters: • connectionObject=ID(Id returned by the connectToDevice method) • chassis=<val> DLMslot=<val> opticalChannel=<val> (for Infinera) port=<val> (for Polatis) • measureType=prefec-ber/postfec-ber/portpower(for Infinera) portPower(for Polatis) 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Call method disconnectFromDevice • Parameters: • connectionObject=ID (Id returned by the connectToDevice method) • deviceIP=<IP address or FQDN of network element> • port=<port of network element> • username=<username> • password=<pwd> • device=Infinera/Polatis 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Timeout: 5 minutes idle time • No response from network element: Server program waits for 200 seconds ( 3min 20 sec) before canceling the request. • For any kind of error, hash value is returned with key ‘ERROR’ and value ‘error-message’. 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
CPAN perl modules to be installed: • threads • threads::shared • Thread::Queue::Any • Net::Telnet • Date::Manip • CGI::Cookie • SOAP::Lite • Thread::Semaphore 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Place the following files in the same folder: • tl1.pm • infinera_tl1.pm • pol_tl1.pm • XMLRPC_API_Server_MH_InfineraPolatis.pl • execute: ./XMLRPC_API_Server_MH_InfineraPolatis.pl or perlXMLRPC_API_Server_MH_InfineraPolatis.pl 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Prints the login, logout, and error details with time-stamps. Example: Contact to XMLRPC server at http://geni-imf-dev:8001/ 2010-03-09 19:11:48: ID1001-Logged into dtn-1.duke.ben Infinera. 2010-03-09 19:11:48: ID1002-Logged into os.duke.benPolatis. 2010-03-09 19:29:53: ID1001-Logged out from dtn-1.duke.ben Infinera. 2010-03-09 19:29:53: ID1002-Logged out from os.duke.benPolatis. • A demo waspresented during the demo session. 03/16/2010GEC7 – ORCA-D. Majumder, LEARN
Investigate further measurements from Infinera DTN to be made available to users • Connection handling without a connection id – more elegant methods • Documentation of measurement handler software – due May 2010 • Measurement handler software options for other network elements in GENI substrates – due September 2010 03/16/2010GEC7 – ORCA-D. Majumder, LEARN