Linux FTP Server Traffic Control And Throttle Port 21

I’ve setup FTP server at port 21 and 40000:41000 as rage of passive ftp. How do I control outgoing traffic for the FTP server/service running on my Debian/CentOS/Ubuntu Linux server?

When traffic is shaped, its rate of transmission is under control. Shaping may be more than lowering the available bandwidth – it is also used to smooth out bursts in traffic for better network behaviour.