GENI Instrumentation and Measurement System - Schema Martin Swany.
-
Upload
lesley-harper -
Category
Documents
-
view
216 -
download
0
Transcript of GENI Instrumentation and Measurement System - Schema Martin Swany.
![Page 1: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/1.jpg)
GENI Instrumentation and Measurement System -
Schema
Martin Swany
![Page 2: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/2.jpg)
Schema
• Generally: model of objects and their relationships
• We should talk in terms of the general “schema” in this sense
• Renderings later– XML schema– SQL schema– IPFIX– JSON
![Page 3: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/3.jpg)
I&M Schema Requirements• Consistent basic representation of
measurement and instrumentation data inside and outside of a slice
• Flexibility of encoding and transport– timestamp and value or values
• Expressive metadata• Easily extensible• Reusable components and models• Reasonable relationship to RSpec
![Page 4: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/4.jpg)
perfSONAR Model
• perfSONAR is an internationally-adopted framework for instrumentation and measurement– Based on schemata and protocols defined in
the *Grid Forum over the last 10 years– Recognized by the NSF as a key technology;
recent NSF-funded workshop
• Again, consider the model in the abstract rather than the XML encoding or RNC files
![Page 5: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/5.jpg)
perfSONAR Schema• Key Goals: Extensibility, Normalization,
Readability• Break representation of performance
measurements down into basic elements• Data and Metadata• Measurement Data
– A set of of measurement events that have some value or values at a particular time
• Measurement Metadata– The details about the set of measurement data
![Page 6: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/6.jpg)
Schema Normalization
• Can simplify the database representation for many types of measurement data– While optimizations are possible, many
measurement types can be viewed as one value measured over time
• Assists Combination/Concatenation of metrics– Creating derived metrics
• Normalization helps with inferring relationships between types of metrics
![Page 7: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/7.jpg)
Schema Basic Elements - Metadata
• Subject (Noun)– The measured/tested entity
• EventType (Verb)– What type of measurement or event
occurred, or instrumented parameter was read
– Characteristic, tool output, or generic event
• Parameters (Adjectives and Adverbs)– How, or under what conditions, did this
event occur?
![Page 8: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/8.jpg)
Schema Basic Elements - Data
• Some sort of value - Datum– Existence of an event might point to the
case where there no additional value• As in “Link up/down” or threshold events
• Time– Is extensible since various representations
are appropriate in different cases• E.g. UNIX timestamp vs NTP time
![Page 9: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/9.jpg)
A MessageMessageMessage
Metadata
Data
![Page 10: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/10.jpg)
An Object Store
Store
Metadata
Data
![Page 11: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/11.jpg)
A Data is Linked to a Metadata
Metadata
<id>someId</id>
Data
<metadataIdRef> someId</metadataIdRef>
![Page 12: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/12.jpg)
A Metadata may be linked to another
Metadata
<id>someId</id>
Metadata<id>someOtherId</id>
<metadataIdRef> someId</metadataIdRef>
![Page 13: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/13.jpg)
Schema Namespaces
• Observation: all measurements have some sort of Data and Time
• All measurements can be described by the Metadata identifying who, what and how
• The specific structures of the Data and Metadata elements depend on the measurement
• Approach: Consistently use Data and Metadata elements and vary the namespaces of the specific elements
![Page 14: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/14.jpg)
Schema Namespaces - 2
• We encode the measurement/event type in the namespace– And as a standalone element
• Some components of the system can pass Data and Metadata elements through without understanding their specific structure
• Allows and implementation to decide whether it supports a particular type of data or not
• Allows validation based on extended (namespace-specific) schemata
![Page 15: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/15.jpg)
Schema Namespaces and Extensibility• One key to extensibility is the use of
hierarchy with delegation– Similar to OIDs in the IETF management
world
• The OGF NM-WG defined a hierarchy of network characteristics– Good starting point
• However, not all tools are cleanly mapped onto the Characteristic space– Often a matter of some debate
![Page 16: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/16.jpg)
Schema Namespaces and Extensibility
• Organization-rooted tools namespace addresses this
• Some top-level tools• ping, traceroute
• Easy to add new tools in organization-specific namespaces
• Performance Event Repository– Add a schema and get a URI– Add Java classes
![Page 17: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/17.jpg)
Linking Metadata
• Metadata can be linked in two ways– Merge chaining allows for elements to be
reused and a complete metadata can be built– Operation chaining requests or describes
operations on data sets• Representation of data provenance
AA
BB
ABAB
AA
BB
B(A)
![Page 18: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/18.jpg)
Resources, Subjects, Topology
• perfSONAR has a topology schema called UNIS – Unified Network Information Schema
• Related to the control frameworks’ Resource Specification
• Measurement and Instrumentation must be related to the resources themselves
![Page 19: GENI Instrumentation and Measurement System - Schema Martin Swany.](https://reader036.fdocuments.in/reader036/viewer/2022082518/5697c0071a28abf838cc5e8a/html5/thumbnails/19.jpg)
end