When I run this cmd:
tc qdisc add dev eth0 root red limit 51200000 min 128000 max 512000 avpkt 1024 burst 200 ecn probability 0.5
i get
<
On my system your command autoloads the sch_red
module. The question is rather old so on a modern system the autoloading should work fine if you have the required module. Check if you miss the kernel module by running:
modprobe sch_red
If it prints nothing, then retry running tc
command and see if it helps.
If not, ensure you have CONFIG_NET_SCH_RED
(Random Early Detection) compiled in your kernel. More info at kernel documentation.