Top Banner
Connect. Communicate. Collaborate Installing and Configuring the perfSONAR Services
176

Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

Mar 07, 2018

Download

Documents

vudang
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

Connect. Communicate. Collaborate

Click to edit Master title styleInstalling and Configuring the perfSONAR Services

Page 2: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

2

COURSE OBJECTIVES

By the end of this course you will be able to:

• Describe key perfSONAR services.

• Install, configure and deploy the following perfSONAR services:

• The Lookup Service

• The BWCTL Measurement Point

• The SSH / Telnet Measurement Point

• The RRD Measurement Archive

• The SQL Measurement Archive

• Identify how to interact with the Service Desk.

Page 3: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

3

THE PERFSONAR ADMINISTRATION GUIDE

Please note that these slides do not contain detailed instructions about how to install the perfSONAR services.

For detailed instructions, please refer to the perfSONAR Administration Guide.

Page 4: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

4

COURSE OUTLINE

Module 1 – perfSONAR Technical Overview

Module 2 – General Installation Considerations

Module 3 – Installing and Configuring the Lookup Service

Module 4 – Installing and Configuring the BWCTL MP

Module 5 – Installing and Configuring the SSH / Telnet MP

Module 6 – The Service Desk

Module 7 – Installing and Configuring the RRD MA

Module 8 – Carrying out an Installation on Debian

Module 9 – Installing and Configuring the SQL MA

Module 10 – Feedback on perfSONAR Installation and Configuration

Page 5: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

Connect. Communicate. Collaborate

Click to edit Master title styleMODULE 1: perfSONAR TECHNICAL

OVERVIEW

Page 6: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

6

WHAT IS PERFSONAR?

perfSONAR is:

• A project consisting of a variety of organisations and individuals

• A set of protocols that:• Assume a set of services based on defined roles.

• Define their communication syntax and semantics.

• Allow anyone to develop an implementation of a service.

• A set of code• Service implementations

Page 7: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

7

WHAT ARE THE PERFSONAR SERVICES?

The perfSONAR services form an interoperable, distributed performance measurement middleware framework.

perfSONAR stands for PERformance Service Oriented Network monitoring Architecture.

Page 8: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

8

DESIGN OBJECTIVES

perfSONAR is designed to be:

• Decentralised and Scaleable• Large number of networks and services, large volume of data

• Each domain can set its own security policy

• Dynamic and ‘Self-Discovering’• Add and remove components during operation

• Components ‘automatically’ become aware of one another

• Secure• Will not put participating networks at risk of attack or congest them

• Modular• Allows discrete module development

Page 9: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

9

THREE-TIER ARCHITECTURE

The perfSONAR framework:• Is middleware.

• Is distributed between domains.

• Facilitates inter-domain performance information sharing.

perfSONAR services ‘wrap’ existing measurement tools.

Page 10: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

10

WHAT IS A SERVICE?

A Service is a tightly defined, independent entity that has a well defined interface and can be accessed directly.

Page 11: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

11

ARCHITECTURAL PRINCIPLES

Postulate: all measurement systems contain a combination of:

• Measurement tools• Data Storage• Security and Policy implementation • Topology information• Visualization

Services have been identified that are:• Based on these ‘roles’• Based on requirement for other

functionality such as• Service discovery, resource protection,

data formatting

Page 12: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

12

THE PERFSONAR SERVICES FRAMEWORK (1)

perfSONAR divides measurement system tools into generic ‘families’ or ‘services’. Each service has a protocol.

Page 13: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

13

THE PERFSONAR SERVICES FRAMEWORK (2)

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClient

Page 14: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

14

THE CLIENT

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClient

For example the perfSONAR Visualisation User Interface

Page 15: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

15

THE LOOKUP SERVICE

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClient

Registers services including their capabilities.

Facilitates complex searches.

Participates in network of LookupServices

Page 16: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

16

THE LOOKUP SERVICE (1)

Purpose: all other services must register with the lookup service in order to participate in the framework.

Page 17: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

17

THE LOOKUP SERVICE (2)

Other services (including measurement points) register their existence with a lookup service, by delivering ‘lookup information’:

• Location

• Type of Service

Each domain has an instance of the lookup service

• These instances (will) communicate with one another

Clients find other services by querying the lookup service.

• All the client needs to know is the URL of a Lookup Service

Page 18: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

18

THE AUTHENTICATION SERVICE

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClient

Provides authentication for clients and protects privacy.

Can be federated.

Page 19: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

19

THE AUTHENTICATION SERVICE

Purpose: ensures client-privacy and domain security by using role-based authentication and authorisation.

Page 20: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

20

THE MEASUREMENT POINT SERVICE

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClient

Exposes measurement tools and publishes their data.

Page 21: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

21

MEASUREMENT POINTS

Measurement Points:

• Belong to domains (domain = a network)

• Each measurement point implementation maps to a tool that provides one or several metrics

• Examples:– One-way-loss

– Jitter

– TCP throughput

– Show commands on routers

Page 22: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

22

THE MEASUREMENT ARCHIVE SERVICE

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClient

Exposes measurement databases and file stores.

Publishes measurement data

Avoids queries to multiple Measurement Point Services

Page 23: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

23

MEASUREMENT ARCHIVES

Purpose: expose measurement data held in databases or file systems.

• Wrapper for any type of storage mechanism (SQL Databases, RRD files, etc)

• Provides access to recent and stored data• Collects information from Measurement Points, Transformation

Services or other Measurement Archives.– i.e. it ‘subscribes’ to these other services

• Can also write to databases and file systems

Page 24: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

24

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClientTransforms data in avariety of ways (e.g.,aggregation, filtering,correlation).

For future development. Precise role needs to be defined.

THE TRANSFORMATION SERVICE

Page 25: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

25

THE RESOURCE PROTECTOR SERVICE

AuthenticationService

AuthenticationService

LookupService

LookupService

ResourceProtector Service

ResourceProtector Service

MeasurementArchive ServiceMeasurement

Archive ServiceMeasurementPoint Service

MeasurementPoint Service

Transformation Service

Transformation Service

ClientClientControls the comsumption of limited resources (e.g. network bandwidth).

Page 26: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

26

THE PERFSONAR SERVICES FRAMEWORK (3)

Each service has a specific function.

Each instance of a service belongs to an administrative domain.

Page 27: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

27

PROTOCOLS

perfSONAR has developed a set of protocols for sharing performance data. These:

• Assume the services set out in the framework.

• Define their communication syntax (schema) and semantics (business logic).

• Allow anyone to develop an implementation of a defined service.

• Are compliant with the Global Grid Forum’s Network Measurement Working Group (NM-WG) schema specification.

• Are based on XML over SOAP.

You can see the protocols as ‘rules and tools’ for participating in the perfSONAR framework.

Page 28: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

28

GENERIC SERVICES AND SERVICE IMPLEMENTATIONS

Implementation: tool-specific functionality

added

RRDMeasurement

Archive serviceimplementation

Round RobinDatabase files

SQLMeasurement

Archive serviceimplementation

SQL database

Implementation: tool-specific functionalityadded

MeasurementArchive Service

Common functionality,common protocol

Implementation: tool-specific functionality

added

BWCTLMeasurementPoint service

implementationBWCTL

measurementtool

SSH / TelnetMeasurementPoint service

implementationSSH / Telnetmeasurement

tool

Implementation: tool-specific functionalityadded

MeasurementPoint ServiceCommon functionality,

common protocol

Page 29: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

29

SERVICE IMPLENTATIONS

The perfSONAR project has also developed a set of service implementations that use the defined protocols.

• Some of these have been developed by JRA1, within the GEANT2 project for the perfSONAR pilot:

• The Lookup Service

• The BWCTL Measurement Point

• The SSH / Telnet Measurement Point

• The RRD Measurement Archive

• The SQL Measurement Archive

Page 30: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

30

DATA COLLECTION, NORMALISATION AND SHARING VIA THE FRAMEWORK

Standardised Syntax

Dat

a no

rmal

izat

ion

/co

nver

sion

to X

ML

Dat

a no

rmal

izat

ion

/co

nver

sion

to X

ML

Tool

-spe

cific

com

man

ds

Mea

sure

men

t Dat

a

Standa

rdise

d Syn

tax

Dat

a no

rmal

izat

ion

/co

nver

sion

to X

ML

Dat

a no

rmal

izat

ion

/co

nver

sion

to X

ML

Tool

-spe

cific

com

man

ds

Mea

sure

men

t Dat

a

Page 31: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

31

FRAMEWORK FACILITATES NORMALISED END-TO-END PERFORMANCE DATA (SIMPLIFIED DEPICTION)

Page 32: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

32

THE PERFSONAR PILOT: MEASUREMENT AND ARCHIVING SERVICES

Page 33: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

33

THE PERFSONAR PILOT

Page 34: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

34

THE ROADMAP

Enhanced Lookup Service:

• Lookup Services (ideally one per domain) peer with one another for increased ease of data discovery.

Authentication Service:

• Collaborating with JRA5 and Edugain to produce an implementation of the service.

• A data subscriber (client) and a data producer (server) can communicate directly across domains provided that they are authorised to do so.

Further service implementations using Netflow information or packet capture features

Page 35: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

35

TECHNICAL OVERVIEW: SUMMARY

perfSONAR will provide an infrastructure to:

• Locate data sources

• Authenticate and authorise clients

• Protect resources and ration their usage

• Retrieve, normalise, transform and share data• Only a partial infrastructure is implemented in the pilot

perfSONAR is a flexible and open framework:

• perfSONAR services can ‘wrap around’ existing data collection tools

Page 36: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

36

THE PERFSONAR SERVICES FRAMEWORK - RECAP

How do we expose measurement tools?

• Measurement point services

How do we expose measurement databases and file stores?

• Measurement archive services

How do we transform data (aggregate, correlate, filter etc.)?

• Transformation services

How do we locate all these services and their capabilities?

• Lookup Services

How do we protect resources?

• Resource Protection Services

How do we ensure a client is allowed to access a service?

• Authorisation and Authentication Services

Page 37: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 2 – GENERAL INSTALLATION CONSIDERATIONS

Page 38: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

38

GENERAL INSTALLATION PREREQUISITES (1)

All of the perfSONAR services require the following:

• Recommended operating system: Redhat Linux / Fedora.• You can install on other platforms, but perfSONAR has not been tested

on these

• Installations on Windows are not supported

• ‘wget’ command must be available on the OS– Required by installers to download software

• Perl module: LWP• Perl version 5.6.1 or higher

These prerequisites must be manually installed before you begin installation of the perfSONAR services.

Page 39: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

39

GENERAL INSTALLATION PREREQUISITES (2)

All of the perfSONAR services except for the BWCTL Measurement Point (a non-Java application) require the following:

• Java Developers’ Kit (JDK) version 1.5 or higher• Already installed for you on the training server

• Note that the RRD MA must have JDK version 1.5 (not any other)

• Apache Ant 1.6.x

• Tomcat application server – Jakarta Tomcat

These prerequisites must be manually installed before you begin installation of the perfSONAR services.

– Note: Tomcat can be automatically installed by the bundle installer, but it recommended that you download Tomcat from the Apache web-site and manually install it before running the bundle installer.

Page 40: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

40

OTHER INSTALLATION PREREQUISITES

In addition to the General Installation prerequisites, each service has one or more prerequisites that are specific to it.

Some must be installed manually by you before you begin to install a service:

• These are listed in subsequent course modules and are also documented in the Installation Manual.

Some can be installed automatically by the perfSONAR Bundle Installer:

• These are documented in the perfSONAR Administration Guide.

Page 41: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

41

THE ROLE OF THE ADMINISTRATION GUIDE

The perfSONAR Administration Guide:

• Lists all pre-requisite software.

• Provides step-by-step instructions explaining how to install the perfSONAR services.

• Will be used extensively during this course.

• Will be handed out to you in hard copy.

• Should be used as your guide when you are installing the services on your own servers.

During the exercises, please point out any inconsistencies or errors in the guide to your trainer.

Page 42: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

42

THE ROLE OF THE SERVICE DESK

The Service Desk is being set up as a single point of contact for all issues relating to perfSONAR installation, configurationand use.

More information about the service desk is provided in module 6 of the course.

Page 43: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

43

INSTALLATION STEPS

To install the perfSONAR services:

• Unzip and untar the bundle installer (perfSONAR-2.0.tar.gz)

• Empty the CLASSPATH variable.

• Execute the bundle installer

• Follow the on-screen dialogue

For detailed instructions, refer to the perfSONAR Administration Guide.

Page 44: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

44

HOW DOES THE BUNDLE INSTALLER WORK?

• The bundle installer will ask you whether you want to:• Install a new service

• Modify or test an existing service

• Give feedback to the perfSONAR team

• If you choose to install a new service:• The installer will ask you to choose from the six available services

• It will then:– Automatically download the appropriate installation files and execute the installation

steps in sequence

– Ask you ‘interactive questions’ about the installation

Page 45: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

45

CONFIGURING THE SERVICES – STITCHING

Before they can be used, several of the perfSONAR service implementations require a type of configuration known as ‘stitching’.

Stitching:

• Is the process of configuring metadata for your service.• Metadata is data that describes other data.

– E.g. data units, interface name, direction of traffic etc.

• Usually involves the creation of a ‘metadata configuration file’.

Page 46: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

46

STITCHING IN CONTEXT (1)

Stitching allows a service to understand the data it is dealing with.

Examples: Which router? Inbound or outbound traffic? What data units? Etc.

Instance ofRRD

MeasurementArchive Service

MRTG

MRTG

Cricket

Cricket

Performance data

Performance data

Performance dataPerformance data

RRD file InOut

InOut

POS-6/0 router

GEO/0 router

RRD file

Page 47: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

47

STITCHING IN CONTEXT (2)

Stitching allows a service to understand the data it is dealing with.

Examples: Which link? Which interfaces? Location of interfaces? Etc.

Page 48: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

48

THE ADVANTAGES OF STITCHING

Ultimately, stitched metadata tells the perfSONAR framework precisely what kind of data your service sends or can receive.

Why this approach?

• The ability to perform stitching makes service implementations flexible.

• E.g. the RRD Measurement Archive can handle data from RRD files in different networks that are structured in different ways.

• Stitching allows service implementations to deal with multiple ‘flavours’ of the same kind of data.

• E.g. a single instance of the SQL Measurement Archive service can deal with both inbound and outbound traffic since you can mark each data source as providing information about either inbound or outbound traffic.

Page 49: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

49

OTHER CONSIDERATIONS

If you are installing multiple services in the same Tomcat instance, using the same eXist XML database (as in training):

• Each service requiring XML database access must have a different username and password

• You must ensure that each service is allocated a unique name for its own collection

• Must be manually created for the Lookup service

Ensure that you only install one instance of ant on your machine

• Putting multiple ant installations in the same path causes problems

Page 50: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

50

BACKUPS

Once you have successfully installed and configured a service, back it up.

• Backup the ‘webapps’ directory related to the service• Located by default within your perfSONAR bundle directory

• Can be used to restore the service

• Backup your metadata configuration files

Page 51: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

51

ACTIVITIES (1)

Installing Tomcat

• Install

• Change ports in Tomcat’s .conf file (Two ports - must be unique for each participant)

• Start up

Installing Ant

• Install

• Change path variable in bash profile to include Ant location

• Start up

Page 52: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

52

ACTIVITIES (2)

Notes:

• Java Developers’ Kit (JDK) is already installed on the server

• A UNIX account has been created for each of you

• In your UNIX account’s home directory you will find:• Tomcat installation files

• Ant installation files

• The perfSONAR bundle installer

Page 53: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 3 – INSTALLING AND CONFIGURING THE LOOKUP SERVICE

Page 54: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

54

THE LOOKUP SERVICE (1)

All other services must register with the lookup service in order to participate in the framework.

Page 55: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

55

THE LOOKUP SERVICE (2)

Other services (including measurement points) register their existence with the lookup service, by delivering ‘lookup information’:

• Location (URL)

• Type of Service

• Service-specific information• For example an Measurement Point will tell the Lookup Service what

kind of measurements it can take

Clients find other services by querying the lookup service.

• All the client needs to know is the URL of the Lookup Service

Page 56: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

56

THE LOOKUP SERVICE (3)

The LS keeps Lookup Information in Lookup Storage (LSSTORE), an XML database.

• Format of information described in NMWG schema.

Page 57: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

57

THE LOOKUP SERVICE (4)

Page 58: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

58

LOOKUP MESSAGES

Other services can interact with the lookup service to:

• Register with it.

• De-register.

• Update registration details.

• Keep-alive registration details.

• Query the lookup store.

Page 59: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

59

LOOKUP SERVICE-SPECIFIC PREREQUISITES

The following prerequisites are necessary for Lookup Service installation:

• Java Developer’s Kit (JDK) version 1.5 or later

• Apache Ant 1.6.x

• eXist XML Database version 1.0.1 or 1.1.1• Can re-use an existing eXist XML database

• Install new eXist XML database as a webapp via Tomcat

• Some configuration is required after installation

• You must set your JAVA_HOME environmental variable to your Java directory

Page 60: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

60

THREE-STAGE INSTALLATION

The Installer will work through three stages:

• Pre-Install• Establishes information required for the rest of the process

– E.g. the application server port and service directory

• Configure• Set important parameters:

– E.g. Service type, name, URL, XML database username and password etc.

• Deploy• Deploys the service on the application server

Page 61: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

61

HINTS AND TIPS

• Change the password for the eXist database admin user after the service installation is complete

• Prevents use of the eXist client application to alter data

• Not necessary in training, but important in a ‘live’ context

• If you change Tomcat’s default port, ensure you configure the Lookup Service to use the amended port number.

• For any installation on Linux:• Recommended that you download Tomcat from the Apache web-site

• Recommended that you do not use the version of Tomcat supplied with the distribution

Page 62: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

62

TESTING

In order to find out whether the service has been successfully set up, perform the following test:

• ant client-echo• This contains an XML Database connectivity test

Subsequently, you can perform the following tests:

• ant client-register

• ant client-query

• ant client-deregister

Note that test results are not printed on the screen, but are put into an XML file.

Page 63: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

63

INTERACTION WITH THE SERVICE DESK (1)

If you encounter problems during or after installation, contact the Service Desk with the following information:

• A description of the problem

• Software versions for the following:• Lookup Service

• eXist XML DB

• Java

• Ant– Continued on next slide…

Page 64: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

64

INTERACTION WITH THE SERVICE DESK (2)

If you encounter problems during deployment of the service or runtime please give the service desk the following information:

• Log files (especially sonar.log)

• Configuration files• service.properties

• const.properties

• log4j.properties

• components.properties

• Request / response files (if run)

• The result of “ant client-echo” (if run)

Page 65: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

65

LOOKUP SERVICE INSTALLATION OVERVIEW

Check that all of the required prerequisite software is installed.

Check that you have the right version of each prerequisite.

Download and install prerequisite software if necessary.

• Java

• Ant

• eXist XML database

• Tomcat application Server

Install the Lookup Service

• Follow the instructions in the perfSONAR Administration Guide

5) Test your installation

Page 66: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

66

ACTIVITIES

Lookup service Installation and Configuration

• Demonstration

• Exercise• Dependency Checks – are all of the Required Prerequisites installed?

• Installing Manual Prerequisites – the eXist XML Database

• Preparing for the Installation

• Carrying out the Installation

• Testing the Installation

• Feedback

Page 67: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 4 – INSTALLING AND CONFIGURING THE BWCTL

MEASUREMENT POINT

Page 68: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

68

MEASUREMENT POINTS (1)

Purpose: expose measurement tools to provide three types of performance measurement data:

• Active measurements

• Passive measurements

• Network state information

Page 69: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

69

MEASUREMENT POINTS (2)

Measurement Points:

• Belong to domains (domain = a network)

• Each measurement point implementation maps to a tool that provides a specific metric

• Examples:– Active delay

– One-way-loss

– Jitter

– Available bandwidth

Page 70: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

70

BWCTL MP SPECIFICS

The BWCTL MP:

• Is implemented as typical UNIX daemon.

• Is a wrapper for the BWCTL tool.

• Receives client requests to trigger BWCTL tests.

• Sends these requests to the BWCTL tool, which executes them.

• Returns test results to the client.

• Implementation could be adapted for use with other command line tools

• Change parsing of input and output parameters as necessary

Page 71: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

71

THE BWCTL MP: USER-ADVANTAGES

Using the BWCTL Measurement point offers you two major advantages:

• You don’t have to be logged on to the machine where the BWCTL tool is installed

• You don’t have to configure BWCTL keys

Additionally, since the BWCTL MP ‘plugs-in’ to the perfSONAR framework, it makes measurements available to the perfSONAR community, subject to local security policies.

Page 72: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

72

FOUR STAGE INSTALLATION

The Installer will work through four stages:

• Pre-Install• Establishes information required for the rest of the process

– E.g. the installation directory

• Configure• Confirms which necessary Perl modules already exist on the server

and which need to be installed.

• Deploy• Asks for the user and group ID the service will be started as

• Test• Offers the opportunity to test your installation

Page 73: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

73

INSTALLATION PREREQUISITES

In addition to the general prerequisites required for all services, the BWCTL MP requires:

• BWCTL Tool version 1.1b or higher.

• Iperf Tool version 2.0.2 or higher.

Page 74: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

74

HINTS AND TIPS

If required Perl Modules are not found in the local Perl installation, then they will be installed into the installation directory of the BWCTL MP.

• You could choose to use a system tool

Check your network connectivity!

Page 75: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

75

TESTING

You can use the supplied test script to check whether the service daemon and the init script have been correctly installed.

• The test script will only work if the init script is installed properly.

• You need root privileges for this.

Page 76: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

76

ISSUES WHEN INSTALLING UNDER DEBIAN

The included init script has been designed for installation on Fedora Linux, but should also work on other LSB compliant systems.

It is known NOT to work on Debian 3.1 and earlier. It was not tested on Debian 4.0.

The test script will not work out of the box on Debian, because it depends on the init script.

Page 77: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

77

ADDING MEASUREMENTS WITH OTHER TOOLS

The BWCTL MP source code is structured in a modular fashion.

This approach makes it relatively easy to link further command-line measurement tools to the service.

• OWAMP functionality has already been added.

Page 78: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

78

INTERACTION WITH THE SERVICE DESK

When things go wrong:

• Typically you will need to supply the service desk with the following information:

• Which operating system you are using, including the version

• Which version of Perl you are using

• Which version of BWCTL / IPERF you are using

• The installation stage at which you began to experience problems

• The log output of the installation scripts

• Whether there is anything unusual about the way in which your system is configured

Page 79: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

79

BWCTL MP INSTALLATION OVERVIEW

1) Check that all of the required prerequisite software is installed.

2) Check that you have the right version of each prerequisite.

3) Download and install prerequisite software if necessary.

• BWCTL Tool

• IPERF

• Perl

4) Install the perfSONAR BWCTL Measurement Point

• Follow the instructions in the perfSONAR Administration Guide

5) Test your installation

Page 80: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

80

ACTIVITIES

BWCTL Measurement Point Installation and Configuration

• Demonstration

• Exercise:• Dependency Checks – are all of the Required Prerequisites Installed?

• Preparing for the Installation

• Carrying out the Installation

• Testing the Installation

• Feedback

Page 81: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 5 – INSTALLING AND CONFIGURING THE SSH / TELNET

MEASUREMENT POINT

Page 82: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

82

SSH / TELNET MP SPECIFICS (1)

The SSH / Telnet Measurement Point acts as a central contact point inside a network. It:

• Is able to retrieve information from routers • uses standard protocols such as SSH or Telnet

• Issues ‘show like’ commands– Discovers configuration information: routing tables, interface configuration etc.

• Can only issue pre-configured commands and parameters• Prevents usage for malicious attacks

Page 83: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

83

SSH / TELNET MP SPECIFICS (2)

The SSH / Telnet MP is the back-end of the Looking Glass user interface

• Similar to existing Looking Glasses on the web (traceroute.org).

Page 84: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

84

SSH / TELNET MP: AVAILABLE COMMANDS

A client can issue the SSH / Telnet MP two types of command:

• MetadataKeyRequest:• client asks the MP what its capabilities are

• SetupDataRequest:• Client issues a command with its parameters through the MP for

execution on a specific device

Page 85: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

85

SSH / TELNET MEASUREMENT POINT USE CASES

Example use cases:

• Retrieval of a routing table entry for a specific network

• Traceroute command

• Ping

What you can do depends upon the commands and parameters that are configured for each instance of the measurement point.

Page 86: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

86

SSH / TELNET MP PREREQUISITES

The SSH / Telnet MP is a Java application that is deployed using Axis and Apache Tomcat.

For communication with routers SSHTools [J2SSH], JSch[JSCH] or Telnet/SSH/Terminal for Java application [JTA] are required.

Page 87: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

87

SUPPORTED NETWORK DEVICES

• Quagga (Telnet)

• Cisco (Telnet)

• Cisco (SSH)

• Juniper (Telnet)

• Juniper (SSH)

Page 88: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

88

THREE STAGE INSTALLATION

The Installer will work through three stages:

• Pre-Install• Establishes information required for the rest of the process

– E.g. installation path, Tomcat path

• Configure• Set important parameters:

– Give path of configuration (stitching) file or create the file interactively

• Deploy• Deploys the service on the application server

Page 89: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

89

STITCHING

For the SSH / TELNET Measurement Point, stitching is the process of defining the available devices and the commands and parameters that users can issue to them through the measurement point.

These settings are held in the service.properties file.

The service.properties file can be:

• Automatically created via a wizard-like script that runs during installation.

or:

• Manually created and then imported during configuration.

Page 90: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

90

AN EXAMPLE OF STITCHING

Devices:

• Cisco1 (10.10.3.24)

• JuniperBerlin (10.10.1.14)

Commands:

• PING• Ping

• 1 parameter

• Syntax (reg exp): ^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+(\\/[0-9]{1,2})?$

Page 91: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

91

HINTS AND TIPS (1)

To complete the installation and configuration you will need to know:

• The routers and other devices that you want to make available via the SSH / Telnet MP.

• The commands that you want to make available for these routers and devices.

Page 92: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

92

HINTS AND TIPS (2)

In order to protect the SSH / Telnet Webservice you should:

• Configure the regular expressions that can be used in requests

• I.e. configure acceptable commands and parameters etc.

• Configure a reasonable access rate for a device.• The access rate is the time between two requests in which no other

request can be handled.

Page 93: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

93

HINTS AND TIPS (3)

For any installation on Linux:

• Recommended that you download Tomcat from the Apache web-site

• Recommended that you do not use the version of Tomcat supplied with the distribution

Page 94: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

94

TESTING

Check in browser at the MP’s URL if the service is running.

If so, run the ant test command.

• creates a SetupDataRequest for every command of every device, and sends it to the MP.

• Results coming back are automatically checked.

Page 95: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

95

ISSUES WHEN INSTALLING UNDER DEBIAN

• No known issues when installing under Debian.

• Service has been deployed and tested completely on a Debian setup.

Page 96: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

96

INTERACTION WITH THE SERVICE DESK

When problems arise during installation, please provide the following information:

• Java Version

• An URL which we can use to test remotely

• The service.properties file

Page 97: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

97

SSH / TELNET MP INSTALLATION OVERVIEW

1) Check that all of the required prerequisite software is installed.

2) Check that you have the right version of each prerequisite.

3) Download and install prerequisite software if necessary.

• Java

• Ant

• Tomcat application Server

4) Install the perfSONAR SSH / Telnet Measurement Point

• Follow the instructions in the perfSONAR Administration Guide

5) Test your installation

Page 98: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

98

ACTIVITIES

SSH / Telnet Measurement Point Installation and Configuration

• Demonstration

• Exercise• Dependency checks – are all of the Prerequisites Installed?

• Preparing for the Installation

• Carrying out the Installation

• Examining the service.configuration file

• Testing the Installation

• Feedback

Page 99: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 6 –THE SERVICE DESK

Page 100: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

100

THE ROLE OF THE SERVICE DESK

The Service Desk is a single Point of Contact for:

• The 5 MDM pilot deployers

• GEANT2 community NOC and PERT users

Through the service desk you can:

• Report incidents about the installation, configuration, operation and utilisation of the web services and visualisation tools.

• Ask questions:• About the MDM service

• About the installation, configuration and operation of perfSONAR web-services and visualisation tools

• Raise enhancement Requests

Page 101: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

101

THE DUTIES OF THE SERVICE DESK (1)

The duties of the service desk will include:

• Logging all calls, events and requests.

• Acting as the ‘first layer’ of incident management.• Taking overall ownership of incidents

• Escalating and re-assigning them until they are resolved

• Monitoring the MDM service, the web-services and the visualisation tools.

Page 102: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

102

INCIDENT MANAGEMENT EXAMPLE – KNOWN ERRORS

Several incidentmanagement processeshave been defined. Thisis one example.

Page 103: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

103

THE DUTIES OF THE SERVICE DESK (2)

The duties of the service desk will include:

• Gathering feedback on the service provided.

• Generating regular reports on:• Incidents.

• Lessons learned.

• Missing pieces (continuous improvement).

• Offering a managed service for FCCN and GEANT2.

Page 104: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

104

SUCCESS FACTORS

Critical success factors are:

• Well defined and efficient support processes

• Trouble ticketing system, CMDB, monitoring tools

• Documentation

• Training

Page 105: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

105

SUPPORTED SOFTWARE

The Service Desk will support the:

• Installation, configuration and operation use of:• SQL MA, RRD MA, SSH / Telnet MP, BWCTL MP, L2 status MP, LS.

• Use and configuration of CNM and E2EMON.

• Installation and use of the perfSONAR UI and of the Looking Glass.

• Use of:• The Hades MA.

• The Hades Visualisation Tool.

• Use and operation of Hades monitoring tools.

Page 106: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

106

L2 STATUS

Please note that the L2 status MA cannot be supported until released.

• E2EMon visualisation will be supported at the same time.

Page 107: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

107

INFORMATION TO PROVIDE TO THE ASD

NREN MDM Contact detail

Deployed web-services IP addresses, URL, locations, the GPS installation quotes

When web-services are installed, so that the ASD can start monitoring it

For equipment shipment

When a planned maintenance will affect the MDM service

Page 108: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

108

CONTACT DETAILS

E-mail: [email protected]

Phone: +44 1223 371 380 (available from 18th of June)• In the meanwhile, please call +44 1223 371 3xx

Page 109: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 7 – INSTALLING AND CONFIGURING THE RRD MEASUREMENT

ARCHIVE

Page 110: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

110

MEASUREMENT ARCHIVES

Purpose: Measurement archives expose measurement data held in databases or file systems. They:

• Are wrappers for any type of storage mechanism (SQL Databases, RRD files, etc).

• Provide access to recent and stored data.

• Can also be used to write information to databases and file systems.

Page 111: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

111

THE RRD MEASUREMENT ARCHIVE (1)

The Round Robin Database (RRD) Measurement Archive is a wrapper for binary files of the RRDTool format.

Page 112: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

112

THE RRD MEASUREMENT ARCHIVE (2)

The RRD Measurement Archive has two main functions:

• Writing and storing measurement data in RRD files• E.g. information from perfSONAR Measurement Points collected as a

result of regularly scheduled or on-demand measurements

• Publishing measurement data held in RRD files to client applications

• E.g. Measurements that have been stored in RRD files by non-perfSONAR applications such as MRTG (Multi Router Traffic Grapher) or Cricket

Page 113: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

113

THE RRD MEASUREMENT ARCHIVE IN CONTEXT

Page 114: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

114

RRD MA INSTALLATION OVERVIEW

Follow these steps:

• Install the perfSONAR RRD Measurement Archive Service

• Generate and populate metadata configuration files

• Deploy the Web Service

• Test the deployed service to see if it is working

Page 115: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

115

THE RRD MA: THREE STAGE INSTALLATION

The Installer will work through three stages:

• Pre-Install• Establishes information and performs tasks required for the rest of the

process– Collects information such as installation path, Tomcat port, eXist admin user

password

– Compiles the RRD J tool

• Configure• Set important parameters:

– E.g. name and path of metadata configuration file, location of file-store, whether or not to automatically register with a lookup service

• Deploy• Deploys the service on the application server

Page 116: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

116

TESTING

You can execute a test script that sends a series of test requests to the service.

• The metadata configuration file used by the service must be the test metadata configuration file that is supplied with the installation files.

• The command to run is “ant test”

Once the test is complete, you can analyse the responses generated by the service.

• If there are problems, then clear error messages will be displayed in the responses.

• If there is no response, then there is a problem.

Page 117: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

117

STITCHING FOR THE RRD MEASUREMENT ARCHIVE

In the context of a measurement archive, stitching:

• Is the process of configuring metadata that underlies the performance data handled by your archive.

• Metadata is data that describes other data– E.g. data units, interface name, direction of traffic etc.

• Involves the creation of a ‘metadata configuration file’.

Ultimately, the metadata configuration file tells the perfSONAR framework what kind of data the archive stores.

Page 118: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

118

RRD MA STITCHING IN CONTEXT

Stitching allows a service to understand the data it is dealing with.

Examples: Which router? Inbound or outbound traffic? What data units? Etc.

Instance ofRRD

MeasurementArchive Service

MRTG

MRTG

Cricket

Cricket

Performance data

Performance data

Performance dataPerformance data

RRD file InOut

InOut

POS-6/0 router

GEO/0 router

RRD file

Page 119: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

119

THE METADATA CONFIGURATION FILE

The Metadata Configuration File:

• Is an xml file that will expose information describing your network’s RRD files.

• Conforms to NMWG’s XML schema.

The default perfSONAR installation provides samples of:

• A metadata configuration file

• An RRD file

The sample metadata configuration file:

• Is provided as a template only and should be changed to correctly describe your own RRD archives.

Page 120: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

120

STITCHING FOR THE RRD MA – THREE STEP PROCESS

Step 1 – Understand the metadata configuration file structure

Step 2 – Create your own metadata configuration file

Step 3 – Apply your metadata configuration file to your instance

Page 121: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

121

STITCHING FOR THE RRD MA – STEP 1

To Understand the metadata configuration file structure you should:

• Refer to the metadata configuration file guide

• Study the sample metadata configuration file

• Gather information about each data source in your RRD files.

• A data source usually equates to a measurement of an interface’s traffic in a single direction.

• You should create a a metadata ‘chain’ for each data source.

• There is no limit to the number of metadata chains you configure.

Page 122: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

122

STITCHING FOR THE RRD MA – CHAINS

A chain:

• Describes measurement data for a single interface, for one direction only

• Consists of two connected parts:• ‘Metadata’

– Host Name (DNS entry of the router containing the interface)

– IPV4 interface address

– Interface’s name

– Interface’s description

– Traffic direction (in or out)

– Authentication realm

– Capacity / interface speed

• ‘Data’– Name and path of the RRD file

– Data source within the RRD file

– Data storage unit (example: bps or Bps)

Page 123: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

123

RRD MA METATDATA CHAINS – EXAMPLE OF METADATA

Page 124: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

124

RRD MA METATDATA CHAINS – EXAMPLE OF DATA

Page 125: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

125

STITCHING FOR THE RRD MA: STEP 2

Create your metadata configuration file

• Can be created by manual file editing.

• Can be generated using contribution scripts or your own scripts

• Contribution scripts are available for some tools– E.g. MRTG

• If scripts do not already exist for your tool, you can create your own script based on existing contribution scripts

• Manual file creation for a large number of interfaces would be labour-intensive and time-consuming

• When something changes in your network, update your file• Recommended that you automate this process

Page 126: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

126

STITCHING FOR THE RRD MA: STEP 3

Apply your metadata configuration file to your instance

• Three possible methods:• Use the eXist XML database web-based User Interface

– Recommended method

• Use the perfSONAR installer– Not covered in this course; refer to the installation guide for details

• Use the service installation scripts– Not covered in this course; refer to the installation guide for details

Page 127: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

127

MAKING THE MEASUREMENT ARCHIVE AVAILABLE TO THE VISUALISATION TOOLS

A user client application needs to know the address of the Measurement Archive.

• This information can be taken from the Lookup Service

• Contact Andreas Hanemann at DFN in order to get CNM to use your service.

• When the Lookup Service is installed, please notify the perfSONAR UI team.

Page 128: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

128

INSTALLATION PREREQUISITES

In addition to the general prerequisites required for all services, the RRD MA requires:

• RRDTool version 1.2.x• The RRD MA can be installed on any Linux platform

Page 129: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

129

HINTS AND TIPS

• During the installation, you will need to supply the location of the RRD Tool.

• It is better to store metadata configuration information in an XML database than in a text file as this improves performance.

• To run the RRD MA on a 64-bit machine, you must be consistent in your use of 32 bit or 64 bit software

• i.e. either all software (Java, rrdjtool, rrdtoo libs, rrd files) must be compiled for 32-bit or all software must be compiled for 64-bit.

• For any installation on Linux:• Recommended that you download Tomcat from the Apache web-site

• Recommended that you do not use the version of Tomcat supplied with the distribution

Page 130: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

130

ISSUES WHEN INSTALLING UNDER DEBIAN

The librrd2-dev package must be installed.

Page 131: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

131

INTERACTION WITH THE SERVICE DESK

When problems arise during installation, please provide the following information as a minimum:

• Log files

• Configuration files

• Request / response messages

Page 132: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

132

RRD MA INSTALLATION OVERVIEW

1) Check that all of the required prerequisite software is installed.

2) Check that you have the right version of each prerequisite.

3) Download and install prerequisite software if necessary.

• Java

• Ant

• RRDTool

• eXist XML database

• Tomcat application Server

4) Install the perfSONAR RRD Measurement Archive

• Follow the instructions in the perfSONAR Administration Guide

5) Test your installation

Page 133: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

133

ACTIVITIES

RRD Measurement Archive Installation and Configuration

• Demonstration

• Exercise• Dependency Checks – are all of the Required Prerequisites Installed?

• Preparing for the Installation

• Carrying out the Installation

• Testing the Installation

• Stitching – Editing the RRD Metadata Configuration File

• Testing the Results of Stitching

• Feedback

Page 134: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 8 – CARRYING OUT AN INSTALLATION ON DEBIAN

Page 135: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

135

OVERVIEW OF DEBIAN

• Very popular OS among the Open-Source alternatives• Stability

• Powerful package management, Easy upgrade

• Huge Community

• Comes in 3 flavours• Stable: Integrate robust package. (Not always recent but… Security patched !!

AKA ETCH)

• Testing: The next Stable version (AKA LENNY)

• Unstable: Bleeding edge package (AKA SID)

• “Stable” is the way to go • Security

• Robust service due to package stability

Page 136: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

136

RRD MA INSTALLATION: DEBIAN BASE INSTALLATION

• Get the ISO from www.debian.org• Either download the full distribution but …

• If possible prefer the NETINSTALL ISO (163 Meg)

• NETINSTALL provides up to date packages

• Install the minimum distribution (server/standard install)• A rule of thumb for production environment is …

• To always use the KISS method

• “If you don’t need it, don’t install it”

Page 137: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

137

REMINDER: APT, DPKG, LOCATE ARE ALL FRIENDS

• apt• Package/Distribution management tool

• After “minimum install”, update source.list, chose your favorite mirror and add “non-free” repository

• Then … apt-get update; apt-get dist-upgrade

• apt-cache search , if you are lost !

• dpkg• -l <pkg_name>: List all packages installed

• -L<pkg_name>: List all files part of a package

• locate• Locate <file_name> “Where is <file_name>”

• Updatedb when to need to locate a file on the file system

Page 138: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

138

PERFSONAR BUNDLE INSTALLER / RRD MA DEPENDENCIES

• ssh

• java

• rrdtool and … librrd2-dev

• wget

• perl

• libwww-perl (AKA LWP)

• gcc

• ant and don’t forget… ant-optional !

• Debian Tomcat or PerfSONAR Tomcat… It’s up to you !

Page 139: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

139

TOMCAT

• Debian Tomcat• Disable security manager

• Enable TOMCAT but define a TOMCAT security policy

• Tomcat from bundle installer• Preferred method

• Easy upgrade

• Security manager disabled

Page 140: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

140

POTENTIAL ISSUES

• Environment variable• LD_LIBRARY_PATH No RRD-GRAPH in PerfSONARUI

• JAVA_HOME not set TOMCAT won’t start

• Enable system wide environment variable• Put it in /etc/profile

• export LD_LIBRARY_PATH …

• Export JAVA_HOME …

• Tomcat refuse to install the services on “packaged Tomcat”

• Disable Tomcat security manager or …

• Add security policy

Page 141: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

141

FINAL TOUCH

• Starting PerfSONAR service at system startup• /etc/init.d/rc.local script

• Run the service as perfsonar user ! (Avoid root …)

• Diagnostic tools• netstat –a | grep LISTEN check that Tomcat is listening at port

defined and also when the MA is interrogated

• ps –def | grep perfsonar check the process is running

Page 142: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

142

LAST BUT NOT LEAST…. SECURITY

• PerfSONAR services provide access to sensitive infomation so …

• General rules• Permit « anyone» that wants to access the service ONLY

• Permit remote administration using SSH from your LAN

• Permit ICMP echo request from 194.141.0.9

• Available tools on RRD-MA host• TCPD (AKA TCP wrapper)

• IPTABLES

• Tripwire

• Available tools on the local LAN• Router access-list

• Switch VACL/Private VLAN

• Etc.

Page 143: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

143

QUESTIONS?

Comments and suggestions are of course welcome !

Page 144: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 9 – INSTALLING AND CONFIGURING THE SQL MEASUREMENT

ARCHIVE

Page 145: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

145

THE SQL MEASUREMENT ARCHIVE (1)

The SQL Measurement Archive is a wrapper that allows perfSONAR to access data stored in a database.

• utilisation and path status are currently supported

• Supports MySQL or PostgreSQL databases• Theoretically other databases can be used, but these have not been

tested

Page 146: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

146

THE SQL MEASUREMENT ARCHIVE (2)

The SQL Measurement Archive has two main functions:

• Publishing measurement data from a database to client applications

• Writing and storing measurement data to a database

When installing, you can either:

• Setup a new database• Schema setup scripts included in installation

• Use an existing database• Configure the SQL MA to work with your existing database

Page 147: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

147

STITCHING FOR THE SQL MEASUREMENT ARCHIVE

In the context of a measurement archive, stitching:

• Is the process of configuring metadata that underlies the performance data handled by your archive.

• Metadata is data that describes other data– E.g. data units, interface name, direction of traffic etc.

• Involves the creation of a ‘metadata configuration file’.

Ultimately, the metadata configuration file tells the perfSONAR framework what kind of data the archive stores.

Page 148: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

148

SQL MA STITCHING IN CONTEXT

Stitching allows a service to understand the data it is dealing with.

Examples: Which link? Which interfaces? Location of interfaces? Etc.

Page 149: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

149

THE METADATA CONFIGURATION FILE

Your Metadata Configuration File will expose information describing your network’s:

• Interfaces and their utilisation data.

• Links and link status

The default perfSONAR installation provides samples of:

• A metadata configuration file

• A SQL database

The sample metadata configuration file:

• Is provided as a template only.

• Should be changed to correctly describe the your own SQL database.

Page 150: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

150

STITCHING FOR THE SQL MA – THREE STEP PROCESS

Step 1 – Understand the metadata configuration file structure

Step 2 – Create your own metadata configuration file

Step 3 – Apply your metadata configuration file to your instance

Page 151: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

151

STITCHING FOR THE SQL MA – STEP 1

To understand the metadata configuration file structure you should refer to:

• The metadata configuration file guide

• The sample metadata configuration file

There are two types of SQL MA metadata:

• Metadata describing interface utilisation• Similar to the RRD MA’s metadata

• Metadata describing path status

• Unique to the SQL MA

Page 152: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

152

SQL MA ARCHITECTURE

Page 153: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

153

UNDERSTANDING PATH STATUS METADATA

SQL MA path status metadata can be subdivided into:

• Node metadata

• Link metadata

First create metadata describing each node.

Then create metadata describing each link.

Page 154: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

154

LINK METADATA AND NODE METADATA

When creating link and node metadata:

• You need to create a metadata chain for each link that you want to collect data about.

• Within the link’s metadata chain, associate two nodes with the link.– I.e. the start and demarcation points of the link

• The same node can be referred to in the metadata of multiple links.

Page 155: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

155

STITCHING – METADATA FOR NODES AND LINKS

Node metadata includes:

• Node ID and name

• Node’s country, city and institution

• Node’s latitude and longitude

Link Metadata includes:

• Link name and global name

• Name of related nodes

• Roles of related nodes:• I.e. end point or demarcation point

Page 156: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

156

STITCHING – PATH STATUS CHAINS

A path status chain describes measurement data for a single link and refers to multiple nodes.

Consists of two connected parts:

• ‘Metadata’• For Nodes

• For Links

• ‘Data’• Name of relational database configuration file

• Path ID

Page 157: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

157

SIMPLIFIED LINK PATH METADATA EXAMPLE

Page 158: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

158

NODE METADATA EXAMPLE

Page 159: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

159

LINK CHAINS – AN EXAMPLE

Page 160: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

160

LINK CHAIN DATA – AN EXAMPLE

Page 161: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

161

SQL MA ARCHITECTURE

Page 162: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

162

STITCHING FOR THE SQL MA– INTERFACE UTILISATION CHAINS

Interface utilisation chains:

• Describes measurement data for a single interface, for one direction only.

• Are the same as RRD Measurement Archive link chains• However the data is different because the storage type is different

• Consist of two connected parts:• ‘Metadata’

– Host Name (DNS entry of the router containing the interface)

– IPV4 interface address

– Interface’s name

– Interface’s description

– Traffic direction (in or out)

– Authentication realm

– Capacity / interface speed

• ‘Data’– Name of relational database configuration file

Page 163: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

163

STITCHING FOR THE SQL MA: STEP 2

Create your own metadata configuration file.

• Can be created by manual file editing.

• Generate your file using contribution scripts or your own scripts.

• When something changes in your network, update your file.• Recommended that you automate the process

Page 164: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

164

STITCHING FOR THE SQL MA: STEP 3

Apply your metadata configuration file to your instance

• Three methods:• Use the eXist XML database web-based User Interface

– Recommended method

• Use the perfSONAR installer– Not covered in this course; refer to the installation guide for details

• Use the service installation scripts– Not covered in this course; refer to the installation guide for details

Page 165: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

165

THREE STAGE INSTALLATION OF THE SQL MA

The Installer will work through three stages for the SQL MA:

• Pre-Install• Establishes information required for the rest of the process

– E.g. installation path, Tomcat port, eXist admin user password

• Configure• Set important parameters:

– E.g. setup the database

– username and password for database

– name and path of metadata configuration file

– location of file-store

– whether or not to automatically register with a lookup service

• Deploy• Deploys the service on the application server

Page 166: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

166

MAKING THE MEASUREMENT ARCHIVE AVAILABLE TO THE VISUALISATION TOOLS

A user client app needs to know the address of MA (can be taken from LS).

Page 167: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

167

TESTING

You can execute a test script that sends a series of test requests to the service.

• The metadata configuration file used by the service must be the test metadata configuration file that is supplied with the installation files.

• The command to run is “ant test”

Once the test is complete, you should analyse the responses generated by the service.

Page 168: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

168

INSTALLATION PREREQUISITES

In addition to the general prerequisites required for all services, the SQL MA requires:

• One of the following relational databases:• Mysql version 5.0

Or

• PostgreSQL version 8.x

Page 169: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

169

HINTS AND TIPS

The SQL MA can be installed on any Linux platform.

Metadata Configuration must be held in XML database.

• For any installation on Linux:• Recommended that you download Tomcat from the Apache web-site

• Recommended that you do not use the version of Tomcat supplied with the distribution

Page 170: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

170

INTERACTION WITH THE SERVICE DESK

When problems arise during installation, please provide the following information as a minimum:

• Log files

• Configuration files

• Request / response messages

Page 171: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

171

SQL MA INSTALLATION OVERVIEW

1) Check that all of the required prerequisite software is installed.

2) Check that you have the right version of each prerequisite.

3) Download and install prerequisite software if necessary.

• Java

• Ant

• MySQL (or postgreSQL) database

• eXist XML database

• Tomcat application Server

4) Install the perfSONAR SQL Measurement Archive

• Follow the instructions in the perfSONAR Administration Guide

5) Test your installation

Page 172: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

172

ACTIVITIES

SQL Measurement Archive Installation and Configuration

• Demonstration

• Exercise• Dependency Checks – are all of the Required Prerequisites Installed?

• Preparing for the Installation

• Carrying out the Installation

• Testing the Installation

• Stitching – Editing the SQL Metadata Configuration File

• Testing the Results of Stitching

• Feedback

Page 173: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

MODULE 10 – FEEDBACK ON PERFSONAR INSTALLATION AND CONFIGURATION

Page 174: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

174

ACTIVITIES

Please use the forms provided to give us feedback about the perfSONAR installation and configuration process.

• This asks for your feedback about the installation process and the associated software, not about the training course

• You will be asked for feedback about the training course separately

• For both the BWCTL MP and the JAVA Services• Provide three positive points and three things to enhance about the

installation and configuration process– No inter-personal issues

– No generalities. Be specific.

– Make suggestions about how to improve

• Provide answers to quantitative questions

Page 175: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

175

FOR MORE INFORMATION

• www.geant2.net

• www.dante.net

• For latest news and factsheets http://www.geant2.net/media

• For research activities http://www.geant2.net/research

• The perfSONAR FAQ and mailing list can be found at www.perfsonar.net.

• The WIKI at wiki.perfsonar.net is also a valuable source of information.

Page 176: Installing and Configuring the Click to edit Master title ... · PDF fileModule 3 – Installing and Configuring the Lookup Service Module 4 – Installing and Configuring the BWCTL

176

RECAP OF COURSE OBJECTIVES

By the end of this course you will be able to:

• Describe key perfSONAR services.

• Install, configure and deploy the following perfSONAR services:

• The Lookup Service

• The BWCTL Measurement Point

• The SSH / Telnet Measurement Point

• The RRD Measurement Archive

• The SQL Measurement Archive

• Identify how to interact with the Service Desk.