This article is reprinted from the WeChat public account "JS Daily Question", the author is Huihui. Please contact the JS Daily Question public account to reprint this article. 1. What isTCP/IP, Transmission Control Protocol/Internet Protocol, is a protocol suite that enables information transmission between multiple different networks.
A connection-oriented, reliable, byte-stream-based transport layer communication protocol
Protocol for packet-switched data networks The TCP/IP protocol does not only refer to the two protocols TCP and IP, but also refers to a protocol cluster consisting of FTP, SMTP, TCP, UDP, IP and other protocols. Just because TCP and IP are the most representative in TCP/IP, they are collectively called TCP/IP protocol suite (English: TCP/IP Protocol Suite, or TCP/IP Protocols). 2. DivisionThe TCP/IP protocol suite is divided into a five-layer system or a four-layer system The five-layer protocol structure is a protocol that combines the advantages of OSI and TCP/IP, including application layer, transport layer, network layer, data link layer and physical layer. The five-layer protocol architecture is only designed to introduce network principles. The actual application is still the TCP/IP four-layer architecture, including application layer, transport layer, network layer (internet layer), network interface layer As shown in the following figure: Five-layer systemApplication Layer The TCP/IP model combines the functions of the session layer, presentation layer, and application layer in the OSI reference model into an application layer implementation, providing services for different applications through different application layer protocols. Such as: FTP, Telnet, DNS, SMTP, etc. Transport Layer This layer corresponds to the transport layer of the OSI reference model and provides communication functions from the source end to the peer host for the upper layer entity. The transport layer defines two main protocols: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) The connection-oriented TCP protocol ensures the reliability of data transmission, and the connectionless UDP protocol enables simple and fast transmission of data packets. Network Layer Responsible for providing communication services for different hosts in the packet network and delivering data to the target host by selecting the appropriate route. When sending data, the network layer encapsulates the segments or user data generated by the transport layer into groups or packets for transmission. Data Link Layer When the data link layer transmits data between two adjacent nodes, it assembles the IP datagrams handed down by the network layer into frames and transmits the frames on the link between the two adjacent nodes. Physical Layer Ensure that data can be transmitted on various physical media, providing a reliable environment for data transmission Four-tier systemThe four-layer structure of TCP/IP is shown in the following table:
ConclusionThe differences between the OSI reference model and the TCP/IP reference model are as follows: Similarities:
Differences:
The corresponding relationship between the three models is shown in the following figure: References https://zh.wikipedia.org/wiki/TCP/IP%E5%8D%8F%E8%AE%AE%E6%97%8F https://zhuanlan.zhihu.com/p/103162095 https://segmentfault.com/a/1190000039204681 https://leetcode-cn.com/leetbook/detail/networks-interview-highlights/ https://vue3js.cn/interview |
<<: I heard that the client will disappear within three years.
1. Necessity of online physical examination In da...
ZJI is the original well-known host in the WordPr...
On February 25, 2025, Intel released two new Ethe...
GSA released a report that believes that the freq...
Reducing network outages is becoming an increasin...
Translator | Kang Shaojing Planning | Yun Zhao Am...
Spring brings blessings, and everything is glorio...
Industry experts point out that in order to meet ...
1. Before answering this question, we need to con...
These days, news about satellite phones has beco...
Amid the pandemic, terminal manufacturers have st...
When we talk about HawkHost, the first thing that...
Nowadays, whether it is the fixed network (broadb...
[[420910]] Market Introduction Market research fi...
According to Taiwanese media reports, yesterday m...