Networking and Packets

In notebook:
FrontEndMasters Networking and Streams
Created at:
2017-09-23
Updated:
2017-09-23
Tags:
backend Fundamentals

Presentator: James Halliday aka Substack

In terms of servers, clients, tcp...

Any networked computer can be a server or a client!

It's more about their roles they play and how we use them. A payload (message) will be broken into several packets when sent over the network. They can even arrive in different order than the order they were sent out.

TCP vs UDP

TCP

reliable tranport, if a packet is not acknowledged (ACK) on the other end, it gets resent (you get an ACK back)

UDP

unreliable transport: packets are sent, but there is no confirmation that the packet was received at the other end

TCP is easier to work with. UDP is better for streaming. especially streaming games, video and music is TCP mostly.