cablelabs / transparent-security

Transparent Security is a solution for identify the source devices of a DDoS attack and mitigates the attack in the customer premises or the access network. This solution leverages a P4 based programmable data plane for add in-band network telemetry (INT) for device identification and in-band mitigation.
https://www.cablelabs.com/vaccinate-your-network-to-prevent-the-spread-of-ddos-attacks
Apache License 2.0
32 stars 4 forks source link

Create web service to set the Telemetry Report sample rate. #328

Closed spisarski closed 3 years ago

spisarski commented 3 years ago

The table insert required for mirror_sampler in core_tna.p4. The bfrt_python command to start sampling is. core_tna.pipe.TpsCoreIngress.mirror_sampler.mod(register_index=0, rate={sample-rate -1})

The value of 0 in the table means sample rate 1:1 1 - 1:2 3 - 1:3 ...

spisarski commented 3 years ago

Also create some automated tests around this functionality as well.