In internet their are particular rules how data travels which is called protocols. Imagine we need to send something to your friends if we don't have address or no tracking then it would all chaos. So that what this protocol does
- how to break large file in smaller pieces?
- how to make sure all pieces arrive?
- How to trace no packet is lost? We will discuss about TCP,UDP and HTTP
TCP:
Transmission control protocol is careful and reliable and makes arrive everything perfectly.
-Establishes first order
-confirms every piece arrives
-Resends lost data
-Deliveries in correct order
Mainly used in file transfer, online banking, web browsing
UDP
User datagram protocol is like shouting announcements, it is fast, simple and don't wait for confirmation.
- no connection setup
- send data immediately
- no confirmation required
- don't resend lost data Mainly used video call ,live streaming, online game
*HTTP *
HTTP is application layer protocol, is a language that web browser and web server use to communicate. HTTP defines how request and send data to web browser.
How TCP and HTTP works:
- TCP connection : browser establishes reliable connection
- HTTP request :Browser send request
- TCP delivery :TCP breaks the request and ensure they arrive
- HTTP response :sends request back to HTTP
- TCP delivery :TCP delivers all packets reliable
- TCP close: connection is closed
Top comments (0)