What is tcp and udp




















UDP is a Datagram oriented protocol. It is used for broadcast and multicast type of network transmission. The UDP protocol works almost similar to TCP, but it throws all the error-checking stuff out, all the back-and-forth communication and deliverability.

A TCP connection is established with the help of three-way handshake. It is a process of initiating and acknowledging a connection.

Once the connection is established, data transfer begins, and when the transmission process is finished, the connection is terminated by the closing of an established virtual circuit. UDP uses a simple transmission method without implied hand-shaking dialogues for ordering, reliability, or data integrity. UDP also assumes that error checking and correction is not important or performed in the application, to avoid the overhead of such processing at the network interface level.

It is also compatible with packet broadcasts and multicasting. TCP has a bytes variable length header. UDP has an 8 bytes fixed-length header. TCP is heavy-weight. UDP is lightweight. UDP supports Broadcasting. A short example to understand the differences clearly : Suppose there are two houses, H1 and H2 and a letter has to be sent from H1 to H2. But there is a river in between those two houses.

Now how can we send the letter? Solution 1: Make a bridge over the river and then it can be delivered. Solution 2: Get it delivered through a pigeon. Attention reader! Next Multiplexing and Demultiplexing in Transport Layer. Recommended Articles. Article Contributed By :. Palak Jain 5. Easy Normal Medium Hard Expert. Writing code in comment? UDP User datagram protocol utilizes a basic transmission technique without inferred hand-shaking discoursed for data integrity, reliability, or order.

It is likewise viable with packet multicasting and broadcasts. Application of TCP is predominantly utilized where a reliable and secure communication measure is required, similar to e-mail, web browsing, and military services. Transmission control protocol performs mistake checking by utilizing a checksum. So, have you made up your mind to make a career in Cyber Security?

It is the first program in offensive technologies in India and allows learners to practice in a real-time simulated ecosystem, that will give you an edge in this competitive world. Ajay Ohri 30 Mar Introduction Both Transmission control protocol and User datagram protocol are protocols that help to decide how data is traded between 2 entities. What is TCP?

What is UDP? How does UDP work UDP User datagram protocol utilizes a basic transmission technique without inferred hand-shaking discoursed for data integrity, reliability, or order. Application of TCP Application of TCP is predominantly utilized where a reliable and secure communication measure is required, similar to e-mail, web browsing, and military services.

Supports a few routing protocols. It tends to be operated autonomously. TCP model has a profoundly versatile client-server architecture. It empowers the internetworking between the organizations.



0コメント

  • 1000 / 1000