Maybe this can help with your initial question?
Mmm, most internet access links are full-duplex, that is incoming (ingress) and outgoing (egress) traffic can flow concurrently, so no need to prioritise egress over ingress traffic. Maybe this 3000+ plus thread can help get you started on your quest?