@mithun58
The secret sauce behind get_optimum? It's Random Linear Network Coding RLNC
Originally invented at MIT by Prof. Muriel Médard, RLNC transforms data into linear combinations of packets. Even when some packets are lost, the original data can still be reconstructed without costly retransmissions