Set up Traffic Stream Reporter in the dest mode
Traffic Stream Reporter (TSR) that works in the dest mode collects the number of bytes sent and received from external IPs. It also stores information about virtual routing and forwarding (VRF) name, interface name, and observation domain name of the User Plane Gateway (UPG) component.
To set up TSR in the dest mode on a single cluster, configure the Sink, Collector, and Cleaner components by following this tutorial.
Prerequisites
- Kubernetes 1.18Opens in a new tab or newer
- Helm clientOpens in a new tab 3.9.2 or newer
- MySQL database
Steps
Create a namespace for your TSR installation:
bashCreate a TSR Sink configuration file that saves information from the IPFIX packages into your deployed MySQL database. The information is stored in the
egress_$dayandingress_$daytables. You can adjust the ueNet parameter to classify the IPFIX message in egress or ingress so that it can be stored in the corresponding database tables:yamlInstall TSR Sink on the cluster:
bashCreate a TSR Collector configuration file that contains the port on which Collector receives the IPFIX packets and forwards them to Sink available at the specified hostname:
yamlInstall TSR Collector on the cluster:
bashCreate a TSR Cleaner configuration file for the ingress and egress tables. You can specify the exact time when the tables are cleaned. In the examples below, the tables are cleaned after 7 days at midnight.
yamlInstall TSR Cleaner ingress configuration on the cluster:
bashInstall TSR Cleaner egress configuration on the cluster:
bash