TCP and UDP Flashcards
TCP
Transmission Control Protocol (Layer 4) Reliable, verifies receipt of data, ends gracefully
UDP
User Datagram Protocol (Layer 4) Not as reliable as TCP but much quicker – used for video streaming, or small data transfers (ie DNS).
TCP Everyday example
Phone call 1. Establish session (Dial number and say hello). 2 Acknowledge information received (saying “got it” or “I didn’t get that you were breaking up”) 3. Ending session (“Good bye” and hang up).
What are 3 steps in TCP 3 way handshake
- Client -> Syn (Synchronize) 2. Server -> Syn Ack (Synchronize Acknowledgement) 3. Client -> Ack (Acknowledgement)
What are 4 steps in TCP 4 way disconnect
- Server -> FIN (Finish) 2. Client -> FIN ACK (Finish Acknowledgement) 3.Client-> FIN (Finish) 4. Server-> FIN ACK (Finish Acknowledgement)
TCP Reset
RST is sent abruptly ending the session; similar to hanging up a phone.
Client Port Numbers
Referred to as Ephemeral Port Numbers (temporary)