What is TCP? (Mylinking's Network Tap and Network Packet Broker could process both TCP or UDP Packets)TCP (Transmission Control Protocol) is a connection oriented, reliable, byte-stream based transport layer communication protocol.
Connection-oriented: Connection-oriented means that TCP communication is one-to-one, that is, point-to-point end-to-end communication, unlike UDP, which can send messages to multiple hosts at the same time, so one-to-many communication cannot be achieved.
Reliable: The reliability of TCP ensures that packets are delivered reliably to the receiver regardless of changes in the network link, which makes the protocol packet format of TCP more complex than that of UDP.
Byte-stream-based: The byte-stream-based nature of TCP allows for the transmission of messages of any size and guarantees message order: even if the previous message has not been fully received, and even if the subsequent bytes have been received, TCP will not deliver them to the application layer for processing and will automatically drop duplicate packets.
Once host A and host B have established a connection, the application only needs to use the virtual communication line to send and receive data, thus ensuring data transmission. The TCP protocol is responsible for controlling tasks such as connection establishment, disconnection, and holding. It should be noted that here we say the virtual line only means to establish a connection, TCP protocol connection only indicates that the two sides can start data transmission, and to ensure the reliability of the data. The routing and transport nodes are handled by the network devices; the TCP protocol itself is not concerned with these details.
A TCP connection is a full-duplex service, which means that host A and host B can transmit data in both directions in a TCP connection. That is, data can be transferred between host A and host B in a bidirectional flow.
What is UDP? (Mylinking's Network Tap and Network Packet Broker could process both TCP or UDP Packets)
User Datagram Protocol (UDP) is a connectionless communication protocol. Compared with TCP, UDP does not provide complex control mechanisms. The UDP protocol allows applications to directly send encapsulated IP packets without establishing a connection. When the developer chooses to use UDP instead of TCP, the application communicates directly with the IP.
Destination and source ports: Their main purpose is to indicate to which process UDP should send packets.
Packet size: The packet size field holds the size of the UDP header plus the size of the data
Checksum: Designed to ensure reliable delivery of UDP headers and data The role of the checksum is to detect whether an error or corruption has occurred during the transmission of a UDP packet to ensure the integrity of the data.
Differences between TCP and UDP in Mylinking's Network Tap and Network Packet Broker could process both TCP or UDP Packets
Media Contact
Company Name: Transworld (Hong Kong) Co., Limited.
Email: Send Email
Country: China
Website: https://www.mylinking.com/