I need help about tc rules. I want to set up tc rules to be capable to manage 2 gigabits of bandwidth between many PCs maybe 1000.

I use that simple script

tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 1 u32 match ip src police rate 600kbit burst 15k drop flowid 1:1

but it I don't think that this script is suitable for gigabits of traffic

Would you help me to write a script with random early detection (red) - it's very important to limit the speed per IP address