1. UDP: The Universal Datagram Protocol (UDP) is a communications protocol that it used for fast transfer of data through the network. With UDP, there is no guarantee that the data being sent will be received at the listening IP and Port. If a packet is lost in transmission, it will be up to the requester to request that packet again, as UDP will not care nor check if a packet made it too the destination. Since UDP is simple in its execution, it doesn’t need as much bandwidth as TCP/IP would. In this case, UDP is the optimal choice when it comes a network reliant on time such as online gaming.
In a first person shooter for example, at 60 frames per second, each user input must be sent back to the server in order to update the game. If a packet is lost, it probably won’t make too much of a difference, while in TCP the game would have to stop for a resend of the lost packet. This would create quite the packet backup and bring the game to a halt.
2.…show more content… TCP: Transmission Control Protocol is a communications protocol which forms a connection and keeps that connection open to ensure the data will reach its destination. Unlike UDP, if a packet is lost in transmission, TCP will resend the packet to ensure it makes it there. You think of TCP likes a stream of information, it will be sent in the same order it’s sent. If a packet is too large to send, TCP will split it up and reform it when it reaches its destination. Examples that use TCP would be things such as the Web, email, and SSH. These are less time important, and more data important, where it’s important they reach the client/server as they were