UDP versus TCP in native simulation Jiazhi Mo 3316685 Shijie Lin 3341790
Background-TCP Reliable Connection-oriented handling incoming packets (all the reassembly, acking, flow control, etc is done by the kernel) good relative throughput on a modem or a lan
Background-UDP doesn't restrict you to a connection based communication model, so startup latency in distributed applications is much lower. all flow control, acking, transaction logging, etc is up to user programs; additionally, you only need to implement and use the features you need. the recipient of udp packets gets them unmangled, including block boundaries. broadcast and multicast transmission are available with udp.
TCP vs UDP
TCP vs UDP
Simulation results-Packet Loss TCP—Red line UDP– Green line Q=5 Q=10 Q=15 Q=25 Drop type: RED
Simulation results-Throughput TCP—Red line UDP– Green line Q=5 Q=10 Q=15 Q=25 Bandwidth=0.5MHz
Simulation results-Throughput TCP—Red line UDP– Green line Q=5 Q=10 Q=15 Q=25 Bandwidth=0.5MHz Q=25 Bandwidth=1MHz
Conclusion UDP however provides no congestion control systems. A congested link that is only running TCP will be approximately fair to all users. UDP data rates has not the requirement to back off, forcing the remaining TCP connections to back off even further. The aim of this project is to characterize the quantity of this drop off in TCP performance in different buffer size and the comparison of throughput between TCP and UDP.
Thank you !