Use a simple Random Early Drop algorithm in send_tcppacket().