I am starting a Network testing blog writeups series from basic. So, Let's get started

This part 2 you can get part 1 here: Network Testing: Core Networking (Foundation) part 1

None
credit: centraleyes.com

Topics covers:

  • TCP/UDP
  • 3-way handshake

As, in previous article we learn about TCP/IP structure. Today I will show the TCP/UDP flow works in real life. as earlier discussed, both are transport layer use to transfer of data packets

Let's learn about TCP first

TCP (Transmission Control Protocol): TCP connection is made before any data packet is transfer from sender to receiver. TCP ensures that data sent are reliable, error-free and in the sequence in which they are generated. TCP uses a 3-way handshake We call it SYN / SYN-ACT / ACT. So, how this works. Let's understand this

  • SYN: The client (i.e. you as a user) sends a request to server.
  • SYN-ACT: The server confirms that he got client request to access the server.
  • ACT: Client start using the server.
None
credit:ipwithease.com

This makes sure no data packet lost during the request/response of server. if any packet is lost it regenerate the packet and send it again.

This TCP protocol used in Old YouTube video where the connection is reliable. Just like you are watching a YouTube video you may notice that the voice and the video both work in sync without breaking a second. This is same here the Video and Voice sent over TCP to maintain the sequence of the video and error-free video.

While In UDP the client send data without confirmation of the server. Here the data is not reliable, but it makes sure the speed of the data compare to TCP. this UDP method used in Live stream like zoom meetings. Have you known when watching zoom sometimes the video gets stuck. This is one of example of UDP where data sent or not when the packet lost while transfer or the sequence of data doesn't matter. For example:

Client sent data to server and server didn't respond and the client start sending next packet too. this can lead all packets lost or some packet to drop/lost and some to correctly received by server. as UDP does not confirm of accepting any packet.

None
Bing.com

Thank you!

If you think I have mistakenly left any topic let me know will add in next parts.

Connect with me Linkedin: https://www.linkedin.com/in/jeet-pal-22601a290/ Instagram: https://www.instagram.com/jeetpal.2007/ X/Twitter: https://x.com/Mr_mars_hacker

And here's something special for you! ๐Ÿšจ

Join a community of 3,600+ security researchers on our Discord server, where we discuss Web3 vulnerabilities, audits, and much more! ๐Ÿš€ ๐Ÿ‘‰ Join the server here!: https://discord.gg/Y467qAFM4X