Communication by TCP and communication by UDP

Communication by TCP

 TCP is a protocol located in the transport layer of layer 4 of the OSI reference model. TCP divides the data passed by the application into the optimal size for transmission. This is called segmentation.

 Each subdivided segment has a header. The header contains information such as:

sequence number

 This number is used to reassemble the data according to the order assigned by the source TCP and pass the data to the application layer protocol.

 Packets do not always arrive in the order in which they are sent, and not all sent packets reach their destination. It may be discarded or lost during delivery.

 In the diagram above, the data (packets) pass through the lower route, but they may also pass through the upper route. Since packets may take different routes to their destinations, packets may not always arrive in the order they were sent.

Acknowledgment number

 In TCP communication, if the packet has arrived properly, it will be notified to the sender. Also, if a parcel is damaged or lost in transit, the data can be reliably delivered to the other party by notifying them and confirming that there is no arrival notice.

 By doing this work, TCP allows the sending application to focus on doing its job without worrying about missed deliveries.

 Note that data communication may not always need to be reliable. With TCP, there are various checks to ensure that data is delivered to the other party, so there is a disadvantage if the overhead is large.

Therefore, TCP/IP networks provide a protocol called UDP (User Datagram Protocol) instead of TCP.

Communication by UDP

 As explained in “Communication by TCP” above, TCP has various confirmation tasks to ensure that data is delivered to the other party, so there is a disadvantage if the overhead is large.

 TCP guarantees the arrival of data, so if a package is damaged or lost on the network, it will notify you of this, confirm that there is no notification of arrival, and resend it. Real-time performance is lost.

 TCP can also perform congestion control to control and reduce the amount of data sent when the network is congested. This also undermines the real-time nature of TCP.

 Therefore, TCP/IP networks provide a protocol called UDP (User Datagram Protocol) instead of TCP. UDP has the advantage of being more real-time than TCP because there are no acknowledgments, retransmissions, or congestion control that impair real-time performance.

 Taking advantage of this advantage, it is used in applications such as video and audio streaming where real-time performance is important, and in IP telephony (VoIP).

History of TCP/IP

 TCP/IP has its roots in research on packet-switched networks by the US Department of Defense, which began in the late 1960s. TCP/IP has a long history of operation and is now the Internet standard. At the time, the data communication system was inefficient, connecting large computers with modems and allowing only one pair to occupy one line.

 TCP/IP is a communication mechanism based on packet switching. Multiple sets can perform data communication on one line. TCP/IP started operation in 1969 as a packet-switched network linking research institutes of the United States Department of Defense and four universities and laboratories on the West Coast of the United States.

This is ARPANET, the starting point of the Internet.

 ARPANET was originally developed for military purposes, seeking a communication network that would function even if part of the network were destroyed in a nuclear war, etc., but this eventually led to the current Internet. I’m in

●TCP/IP Chronology

late 1960sThe US Department of Defense begins research on packet-switched networks.
1969Operation of the packet-switched network ARPANET begins.
1975TCP/IP is released and trial operation begins.
1983Adopted as a standard protocol for ARPANET.
BSD is the first UNIX to implement TCP/IP as standard.
Sun Micro Systems implements TCP/IP on its own UNIX.
late 1980sWidespread in LANs, mainly in UNIX-based systems.
early 1990sSpread to PC begins. (WinSock, MacTCP)
1995WinSock implements it as standard in Windows95.
Around 2000Spread of broadband

 Around the end of 1995, when Windows 95 was released, TCP/IP became familiar even in general households. Isn’t this area still fresh in your memory?

 The spread of TCP/IP since then has been remarkable. From around 2000, broadband will spread to each household. Since then, TCP/IP has become an integral part of our lives.