ipa-sql
The ipa-sql schema defines the tables, indices, and stored procedures for accessing IPA data.The schema requires PostgreSQL 8.0 or higher, with the IP4R extension installed.
Installation
Detailed installation instructions for the IPA database schema are available in sql/README within the IPA distribution archive.Design
The IPA data model maps IP address ranges to any number of user-defined attributes. Because these attribute mappings often change over time, IPA allows users to associate groups of these mappings with a specific time period. This facilitates retrospective analysis of network data based on how addresses were labeled during the time period in question.Here is the entity-relationship diagram for IPA.
IPA Entity Relationship Diagram
IPA presently supports the following catalog types:
- set - simply a set of IP addresses or ranges
- bag - a set of IP addresses, each associated with a numeric value
- prefix map - a mapping of addresses to textual labels
- multimap - a mapping of addresses and labels to numeric values
The assoc table pictured above is actually an updateable view, not a physical table. Data logically added to the assoc view will be inserted into either the assoc_set, assoc_bag, assoc_pmap, or assoc_mmap tables, depending on the structure of the data itself.


