rir_as_relationships
Fetch AS relationship data from CAIDA AS-Rank API to classify neighboring ASNs as providers, customers, or peers using BGP-path-based inference for accurate network analysis.
Instructions
Fetch AS relationship data from CAIDA AS-Rank API.
Classifies neighbouring ASNs as: • Providers (upstream transit) • Customers (downstream networks) • Peers (settlement-free peering)
Unlike RIPE Stat asn-neighbours (which only gives left/right/uncertain), CAIDA AS-Rank uses a BGP-path-based inference algorithm for higher accuracy.
Args: params (ASRelationshipInput): - asn (str): ASN e.g. 'AS13335' or '13335' - response_format (str): 'markdown' (default) or 'json'
Returns: str: Classified providers, customers, and peers with relationship type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |