In Juniper Router MX480, we can configure the port mirroring of a transmit port.
then, is it possible calculate a IP of Transit Traffic's rate in Juniper port mirroring?
I mean, I can configure B port to mirroring the A port(main traffic through), there is a IP 203.0.113.5/24 transmit through port A.
can I get the IP 203.0.113.5/24's immediate rate? and judge condition to trigger a script?
EDIT-01
I want to solve this problem: such as in the router there access a 203.0.113.0/24, and the total rate is limited to 10Gbps, in the router I want limit each IP of the subnet to 100Mbps, if one of them override the limit, it will be blackhole(by trigger a script or other way).
because I give the example IP segment 203.0.113.0/24
, in the actual situation, this is public IP addresses, the bandwidth of 203.0.113.0/24
is limited, and if one of the them are being flood attack, it will affect all the IPs under the traffic line.
suppose our AS6453 <-> AS10099:
all the traffic will be affect under the line.
192.0.2.0/24
,198.51.100.0/24
, and203.0.113.0/24
. Using addresses in one of those ranges will let people know you mean disguised public addresses, but using private addresses just confuses the situation.