# data[].attributes.body
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are the most widely used Internet protocols among which TCP is connection oriented. Once a connection is established, data can be sent bidirectional. UDP is a simpler, connectionless Internet protocol. Multiple messages are sent as packets in chunks using UDP. Now on the basis of features of attributes we can distinguish between TCP and UDP. TCP provides error checking support and also guarantees delivery of data to the destination router this make it more reliable as compared to UDP. While on other hand UDP does provided only basic error checking support using checksum so the delivery of data to the destination cannot be guaranteed in UDP as compared to that in case of TCP.
In TCP the data is transmitted in a particular sequence which means that packets arrive in order at the receiver. On other hand there is no sequencing of data in UDP in order to implement ordering it has to be managed by the application layer. TCP is slower and less efficient in performance as compared to UDP. Also TCP is heavy-weight as compared to UDP. Retransmission of data packets is possible in TCP in case packet get lost or need to resend. While retransmission of packets is not possible in UDP.

# data[].attributes.body
Maksud TCP dan UDP ialah UDP merupakan singkatan dari User Data Protocol sedangkan TCP adalah Transmission Control Protocol. Keduanya memang sangat kuat dan susah untuk dipisahkan. Meskipun begitu ternyata ada beberapa perbezaan di antara kedua protokol internet tersebut.

TCP (Transmission Control Protocol)

Penerima akan menghantar balik pengesahan kepada pengirim, ini seperti kita menggunakan telefon. Mula-mula kita angkat gagang dan mula mendail nombor rakan kita. Apabila ada jawapan dari rakan kita, kita mula berborak sehinggalah salah seorang akan mengatakan kata terakhir contohnya "Bye". Baru kita meletakkan gagang telefon tersebut.

-TCP menjamin kualiti penghantaran tetapi mempunyai kos overhead yang tinggi
-TCP dikenali sebagai connection-oriented protocol,
-TCP header bersaiz 20 octets.

UDP (User Datagram Protocol)

Pengirim akan menghantar data tanpa perlu menunggu balasan dari pihak penerima. Dengan kata lain, pengirim tidak ambil peduli sama ada data tersebut sampai ke destinasi atau tidak. Ini seperti kita melancong keluar negara, dari situ kita menghantar poskad ke kampung. Kita tidak perlu tahu sama ada poskad yang kita hantar sampai ke destinasi atau tidak.

-Pemindahan data menggunakan pembawa UDP mempunyai kurang overhead berbanding dengan TCP kerana header UDP tidak mempunyai data sequencing, acknowledgements atau flow control. Ini membuat UDP sesuai digunakan untuk penghantaran data seperti email.
-UDP juga dikenali sebagai connectionless.
-UDP header bersaiz 8 octets.

# data[].attributes.body
TPC know as Transmission Control Protocol is a computers use to communicate over the internet. TPC is the main protocol in TCP/IP networks. it's more effective and provides error-checking and guarantees delivery of data

TCP is a connection-oriented protocol, computers use to make communication over internet. It provides error-checking and surely will deliver the data, also known as packets. Packets are a network packet that’s a formatted unit of data that will be carried by a packet-switched network. These packets consists of control information and user data (payload).

UDP as know as User Datagram Protocol is a connectionless protocol that works just like TCP but there is none assume that error-checking and recovery services are not required, also the sends datagrams to the recipient whether

Next, we’ll differentiate between these 2. TCP establishes connection between a sender and a receiver before the data can even be sent but UDP doesn’t need to do so. In terms of reliability, TCP is much more reliable because the protocol is guaranteed to deliver the data to receiver. If the data happens to get lost, it’ll recover the data and resends it.. but UDP will most likely to get the data lost or corrupted. Flow control?

TCP has this mechanism that will make sure the sender doesn’t send too many packets to the receiver but UDP doesn’t have this so data will arrive in continuous stream. As for ordering, TCP has an ordering or sequencing feature that will make the packets to be delivered in the same order as it was sent.

UDP doesn’t do any ordering, therefore it will arrive in any order. Lastly, the speed. TCP’s speed is much slower because it’ll need some time to do the establishing of connection, error-checking but UDP is faster because it doesn’t do all the work that TCPs do.

# data[].attributes.body
TCP stands for Transmission Control Protocol whereas UDP stands for User Datagram Protocol.

TCP is a connection-oriented protocol, computers use this to make communication over the internet. It also provides error-checking and surely will deliver the data, also known as packets. Packets are a network packet that’s a formatted unit of data that will be carried by a packet-switched network. These packets consists of control information and user data (payload).

As for UDP, it is the opposite, UDP is connectionless protocol that actually works like TCP but it doesn’t require the features such as error-checking and recovery services. It’ll continuously sends datagrams to the recipient. Unlike TCP, it doesn’t have the 3-way handshake so the speed is much faster. UDP also isn’t limited to only one to one computers like TCP. UDP can be used to broadcast or multicasting.

Next, we’ll differentiate between these 2. TCP establishes connection between a sender and a receiver before the data can even be sent but UDP doesn’t need to do so. In terms of reliability, TCP is much more reliable because the protocol is guaranteed to deliver the data to receiver. If the data happens to get lost, it’ll recover the data and resends it.. but UDP will most likely to get the data lost or corrupted. Flow control? TCP has this mechanism that will make sure the sender doesn’t send too many packets to the receiver but UDP doesn’t have this so data will arrive in continuous stream. As for ordering, TCP has an ordering or sequencing feature that will make the packets to be delivered in the same order as it was sent. UDP doesn’t do any ordering, therefore it will arrive in any order. Lastly, the speed. TCP’s speed is much slower because it’ll need some time to do the establishing of connection, error-checking but UDP is faster because it doesn’t do all the work that TCPs do.

TCPs are most likely to be used in applications such as World Wide Web, Secure Shell etc. But if you’d like an application that requires speed, go for UDP. It’s used for applications like VPN tunneling, streaming videos and much more.

# data[].attributes.body
TCP

PENYAMBUNGAN (Connection and connectionless)

Sambungan yang berorientasikan protokol yang dibuat oleh TCP dengan menghubungan antara pengirim dan penerima sebelum data dapat dihantar

KEBOLEHPERCAYAAN (Reliability)

Dengan menggunakan protokol data yang dihantar oleh TCP dipercayai dan dijamin dihantar ke penerima. Sekiranya data hilang dalam perjalanan, ia akan memulihkan data dan menghantarnya semula ke TCP dan akan memerikasa paket kesilapan dan mengesan peket supaya data tidak hilang atau rosak.

KAWALAN ALIRAN (Flow control)

Memastikan pengirim tidak menghantar terlalu banyak paket ke penerima. TCP akan menyimpan data dalam ‘buffer kirim’ dan menerima data di ‘buffer terima’

MEMESAN (Ordering)

Melakukan pesanan dengan turutan untuk menjamin bahawa paket yang dihantar dari pengirim akan dihantar kepada penerima dengan cara yang sama pengirim mereka menghantar

KEPANTASAN (Speed)

TCP lebih perlahan daripada UDP kerana banyak yang dilakukan. TCP harus membuat sambungan, pemeriksaan kesalahan dan menjamin fail diterima mengikut urutan yang dihantar

UDP

PENYAMBUNGAN (Connection and connectionless)

Penyambungan yang kurang protokol dan tidak mewujudkan sambungan sebelum menghantar data

KEBOLEHPERCAYAAN (Reliability)

UDP tidak boleh dipercayai, tidak memberikan penghantaran yang dijamnin dan paket datagram mungkin menjadi rosak atau hilang dalam perjalanan

KAWALAN ALIRAN (Flow control)

UDP tidak memberikan aliran kawalan. Paket yang tiba dalam aliran berterusan atau digugurkan

MEMESAN (Ordering)

UDP menghantar paket ke dalam pesanan lain

KEPANTASAN (Speed)

laju

# data[].attributes.body
TPC as know as Transmission Control Protocol is a computers use to communicate over the internet. TPC is the main protocol in TCP/IP networks. it's more effective and provides error-checking and guarantees delivery of data
and that packets will be delivered in the order they were sent. It is one-to-one oriented, and the process starts with a three-way shake hand. TPC packets contain 20 bytes header and 80 bytes body into a stream of data. The comparison of TPC and UDP was, TCP is reliable. Data sent using a TCP protocol is guaranteed to
be delivered to the receiver. If data is lost in transit it will recover the data and resend it. TCP will also check packets for errors and track packets so that data is not lost or corrupted. TPC can create a connection between a sender and receiver before the data will be sent. It delivered to the client in the same data/order correct and accurate delivery. The application of TPC is, operates independently of the operating system, supports many routing-protocols, creates a connection between different types of computers and etc. . Disadvantages of TPC is, slower than UDP, has no block boundaries and can't use for broadcast or multicast transmission

UDP as know as User Datagram Protocol is a connectionless protocol that works just like TCP but there is none assume that error-checking and recovery services are not required, also the sends datagrams to the recipient whether
they receive them or not. UDP is not the same as TPC that's, not have to verify connection, not limited to one to one, can be used to broadcast or multicast, and no three-way handshake. The comparison of UDP and TPC was it faster, the UDP sends data/packets in any order and it does not create a connection before sending data. The application of UDP is, used in Domain Name System, Voice over IP, and online games, available on multicast transmission, never restricts you to a connection-based communication model. Disadvantages of UDP is, no congestion control, routers are quite careless with UDP, so they never retransmit it if it collides.

# data[].attributes.body
TCP
Transmission Control Protocol (TCP)is a connection-oriented protocol that computers use to communicate over the internet.

- A connection oriented protocol
- One to one oriented
- Initiate what is called a three way handshake

TCP Packets
- Push data as a stream
- 20 Bytes header
- 80 bytes Body

UDP
User Datagram Protocol (UDP) is a connectionless protocol that works just like TCP but assumes that error-checking and recovery services are not required.

- Does not have to verify connection(not worry about error connection)
- No three-way handshake
- Not limited to one to one, can be used to broadcast or multicast

UDP Packets
- 8 bytes header
- 47 bytes body
- 8 bytes header
- 92 bytes body

When to use UDP and TCP
1. TCP is an ideal chice, and even it has associated overhead, therefore when most of the overhead is in the connection, your application stays connected for any length of time.
2. UDP is ideal to use with multimedia like VoIP.

# data[].attributes.body
TCP
- Connection-oriented protocol that computers use to communicate over the internet.
- Main protocols in TCP/IP networks
- Provides error-checking

- Guarantees delivery of data

- Packets will be delivered in the order

- Able to three-way handshake

- Push data as a stream

- If data is lost in transit it will recover the data and resend it.

- Check packets for errors

- Track packets so that data is not lost or corrupted

- Ensures a sender is not overwhelming a receiver by sending too many packets at once

- TCP is slower because it has to establish a connection, error-check, and guarantee that files are received in the order they were sent.

- Supports many routing-protocols

UDP
- A connectionless protocol

- Error-checking and recovery services are not required

- Continuously sends datagrams to the recipient whether they receive them or not

- Does not have to verify connection

- Not worry about error connection

-Not limited to one to one, can be used to broadcast or multicast

- No three-way handshake

- Does not provide guaranteed delivery and a datagram packet may become corrupt or lost in transit

- Packets arrive in a continuous stream or they are dropped

- Sends packets in any order

- Faster

- Never restricts you to a connection-based communication model

# data[].attributes.body
TCP
A connection oriented communications protocol that facilitates the exchange of messages between computing devices in a network.

a connection oriented protocol

one to one oriented

initiate called three way handshake

20 bytes header & 80 bytes body

UDP
A communication protocol used across the internet for especially time sensitive transmissions such as video playback. It speed up communications by not formally establishing a connection before data is transferred.

no three way handshake

not limited, can use to boradcast or multicast

8 bytes header, 47 & 92 bytes body

# data[].attributes.body
VC20022

TCP (Transmission Control Protocal)
- TCP establish connection between the computer before transmitting the data
- The connection type is oriented
- The speed was to slow
- Reliability is highly
- Header size is 20 bytes and the body was 80 bytes
- It makes acknowledgement of data and has the ability to retranssmit if the user request
- TCP can be used to establish the connection between two computer

UDP ( User Datagram Protocal)
- UDP send the data directly to the destination computer without checking wheather the system is ready to receive or not
- the connection was to less
- The speed was fast
- Reliability is unrealible
- Header size is 8 bytes and the body was 47 and 92 bytes
- it neither takes acknowledgement nor it retransmits the lost data

# data[].attributes.body
Konsep Transmission Control Protocal (TCP) dan User Datagram Protocal (UDP) ini ialah satu rangkaian yang menghubungkan 2 device untuk tujuan pemindahan dan menerima data.

TCP

·         TCP akan memastikan semua data yang ditransfer itu di hantar dengan betul. Tanpa sistem TCP, data akan dihantar dengan format yang salah

·         Jika data yang di hantar tidak mencukupi ianya akan menghantar semula data itu.

·         Kelajuan penghantaran data adalah perlahan berbanding UDP

·         20 bytes header

·         80 bytes body

UDP

·         UDP tidak akan memastikan semua data yang di transfer itu di hantar dengan betul.

·         Jika data yang dihantar tidak mencukupi dia tidak akan menghantar semula data itu.

·         Kelajuan penghantaran data adalah laju berbanding TCP

·         8 bytes header&47 bytes body

·         8 bytes header&92 bytes body

🥰🥰🥰🥰🥰🥰🥰🥰

# data[].attributes.body
TCP & UDP

TCP(Transmission Control Protocol)

🧡TCP most widely chosen option for transmitting data because it can reliably send and receive data.

🧡TCP requires both parties to communicate in order to establish a connection and send data.

🧡TCP guarantees the recipient will receive packets in order according to sequence numbers included in the header.

🧡Data for example user file on PC1 is not sent all in one packet data  but sent in lots of different pieces of data then the others which PC2 receiving and collect the different pieces of data and combine all the packet data in PC2. Corrupted file could be happen if the different pieces of data doesn't arrived and not combine completely.

🧡TCP can recover if there is lost segments of data,half loaded websites or corrupted document.

🧡TCP works by using sequence numbers and acknowledgement numbers.

Three Way Handshake

i. First, the sender computer sends a message called a SYN which means synchronize.
ii. The receiving computer then replies with an ACK message which means acknowledgement that includes a SYN message of its own,so the message called a SYN-ACK.
iii. Lastly, the message send to computer acknowledges with an ACK message.

UDP (User Datagram Protocol)

💛UDP has none of the error handling,sequencing or realibityof TCP.

💛UDP goal only to send data

💛UDP useful in the situation where we need live real-time connection.

💛UDP doesn’t require the recipient to acknowledge that each packet has been received. Any packets that get lost in transit are not resent. This enables computers to communicate more quickly, but the data received might not exactly match the data sent.

💛UDP is used when speed is preferred over integrity and error correction. Some common applications include streaming video and music, live broadcasts, voice and video calling (VoIP), and online gaming.

🍓🙂Simple short different between TCP VS UDP

TCP

💙Most widely used protocol on the internet

💙TCP guarantees no packets are missing and all data sent makes it to the recipient

💙TCP sends packets in order so they can be easily stitched back together

💙Slower and requires more resources

UDP
💗Used for streaming video, gaming, VoIP, live broadcasts.
💗Faster and requires fewer resources.

💗Packets do not necessarily arrive in order

💗Allows missing packets; sender cannot know whether a packet has been received

😃🙂🧕
For my opinion or understanding, UDP is like sending a mail through the post and don't care if get delivered, while TCP is sending a mail through the post with return address and tracking number to make sure it is 100% delivered. In  our daily life, TCP would be like internet banking,sending and receiving email,sending sms such Whatsapp,music streaming using spotify or JOOX while UDP would be like playing game online such Mobile Legends, Video conference with others using Skype,or streaming movie online such Netflix.

Thats all from me,Thankyou 😄🍓🌈

# data[].attributes.body
-TCP-
TCP is a connection-oriented protocol. It established connection between the computers before transmitting the data. Highly reliable and TCP is slower than  UDP. TCP does ordering and sequencing that packets sent from a server will be delivered to the client in the same order.
Packets include 20 bytes header and 80 bytes body.One to one oriented.Operates independently.
TCP is best to be used for applications that require high reliability timis is less of a concern.

-UDP-
UDP is a connection-less protocol. It sends the data directly to the destination computer without checking the system is ready to receive or not. UDP is unreliable and not provide flow control. a datagram packet may become corrupt or lost in transit. But at the same time UDP speed is more faster than TCP.
Packets include 8 bytes header and 47 bytes body & 8 bytes header and 92 bytes body. Not limited to one to one, can be used to broadcast or multicast. UDP is best suited for applications that require speed and efficiency.

THAT'S ALL FROM ME THANKYOU >_<

# data[].attributes.body
TCP & UDP

Transmission Control Protocol
(TCP)
- main protocols
- connection-oriented protocol
-  one to one oriented
- provides error-checking
- guarantees delivery of data

TCP Packets                                 - Push data as a stream             - 20 Bytes header                          - 80 Bytes body

User Datagram Protocol
(UDP)
- connectionless protocol
-  continuously sends datagrams to the recipient
-  no three-way handshake
-  not limited to one to one, can be used to broadcast or multicast

UCP Packets                                  - 8 Bytes header                            - 47 Bytes body                            - 8 Bytes header                            - 47 Bytes body

TCP vs UDP
Connection and connectionless
TCP - connection-oriented protocol
UDP - connection-less protocol
Reliability
TCP - reliable
UDP - unreliable
Flow control
TCP - flow control mechanism
UDP -  not provide flow control
Ordering
TCP - does ordering and sequencing to guarantee that packets sent from a server will be delivered to the client in the same order they were sent
UDP - sends packets in any order
Speed
TCP - slower
UDP - Faster

APPLICATION

Benefits of TCP protocol
-  establish/set up a connection between different types of computers
-  supports many routing-protocols
Disadvantages of TCP
-  can't use for broadcast or multicast transmission
-  no block boundaries
Benefits of UDP protocol
- largely used by time-sensitive applications as well as by servers that answer small queries from a larger client base
-  broadcast and multicast transmission
Disadvantages of UDP
-  a packet may not be delivered or delivered twice
-  no Congestion Control, and flow control

When to use UDP and TCP
-  TCP is an ideal choice, when most of the overhead is in the connection.
-  UDP should be used if both client and server may separately send packets, and occasional delay is also not acceptable.

# data[].attributes.body
Transmission Control Protocol (TCP) is a connection-oriented protocol that computers use to communicate over the internet.

User Datagram Protocol (UDP) is a connectionless protocol that works just like TC{ but assumes that error-checking and recovery services are not required.

TCP
- A connection oriented protocol
- One to one oriented
- Initiate what is called a three way handshake

TCP Packets
- Push data as a stream
- 20 bytes header
- 80 bytes body

UDP
- Does not have to verify connection not worry about error connection.
- No three way handshake.
- Not limited to one to one, can be used to broadcast or multicast.

UDP Packets
- 8 bytes Header
- 47 bytes Body
- 8 bytes Header
- 92 bytes Body

TCP
Working - TCP establishes connection between the computers before tramsitting the data.
Connection - Connection Oriented
Speed - Slow
Reliability - HIghly Reliable
Header Size - 20 bytes
Acknowledge - It takes acknowledgement of data and has the ability to retransmit, if the user requests.

UDP
Working - UDP sends the data directly to the destination computer without checking whether the  system is ready to receive or not.
Connection Type Connection Less.
Speed - Fast
Reliability - Unreliable
Header Size - 8 Bytes
Acknowledgement - It neither takes acknowledgement nor it retransmits the lost data.

Application and Benefit of TCP:
1. It helps you to establish/set up a connection between diffeerent types of computers.
2. Operates independently of the operating system.

TCP suitable applications require high reliability where timiming is less of concern:
- World Wide Web (HTTP,HTTPS)
- Secure Shell (SSH)

Disadvatages of TCP
- TCP cant use for broadcast or multicast trasmission.
- TCP has no block boundaries, so you need to create your own.

Application and Benefits of UDP:
1. UDP method is largely used by time sensitive applications as well as by servers that answer
small queries from a larger client base
2. It never restricts you to a connection based communication model that's why startup latency in
distributed applications is low

UDP suitable applications requires speed and efficiency.
- VPN tunneling
- Streaming Videos

Disadvantages of UDP
1. In UDP protocol, a packet may not be delivered or delivered twice It may be delivered out of
order, so you get no indication
2. Routers are quite careless with UDP, so they never retransmit it if it collides

When to use UDP and TCP?
1. TCP is an ideal choice, and even it has associated overhead, Therefore, when most of the
overhead is in the connection, your application stays connected for any length of time
2.  UDP is ideal to use with multimedia like VoIP

# data[].attributes.body
TCP is a connection-oriented protocol, computers use to make communication over internet. It provides error-checking and surely will deliver the data, also known as packets. Packets are a network packet that’s a formatted unit of data that will be carried by a packet-switched network. These packets consists of control information and user data (payload). UDP ( User Datagram Protocal)

- UDP send the data directly to the destination computer without checking wheather the system is ready to receive or not
- the connection was to less
- The speed was fast
- Reliability is unrealible
- Header size is 8 bytes and the body was 47 and 92 bytes
- it neither takes acknowledgement nor it retransmits the lost data

# data[].attributes.body
TCP establish a connection between a sender and receiver to communicate, it operates independently and supports many routing-protocol. It has a safety feature where it guarantees that the data will be delivered and error checking to ensure the data is not corrupted or lost in transit. TCP has a flow control that could buffer the data to prevent spamming. TCP does ordering and sequencing which is the data sent by the server is the same sequence as the receiver. TCP is most suitable for application that require high security with less concern of timing.

UDP is connection-less protocol that continuously sends data. UDP is faster than TCP because it does not provide guaranteed delivery and flow control. UDP is widely used in time-sensitive applications and multimedia. It can be use to broadcast or multicast transmission. It is suitable for application that require speed and efficiency such as VPN and Streaming Videos.

CONCEPT
From my understanding, TCP has a similar concept to Whatsapp. It might sounds weird but the app also has flow control, delivery guarantees, error checking and sequencing. UDP for me is similar to Spam that we keep receiving in emails.

🍒Thanks For Reading My Explanation😆