:
"When we transmit data, we can only use the (Transport Layer) TCP/IP protocol, but in that case the data content cannot be recognized without the application layer." If you want to make the transferred data meaningful, you must use the application-layer protocol. There are many application layer protocols, such as HTTP, FTP, Telnet, etc., and you can define the application layer protocol yoursel
IP datagram before it handed the complete TCP segment to the TCP layer.
Below are a couple of scenarios showing how MSS values are set and used to limit TCP segment sizes, and therefore, IP data Gram sizes.
Scenario 1 illustrates the way MSS was-a-implemented. Host A has a
Original address: http://blog.chinaunix.net/uid-26833883-id-3627644.html interconnection network in the early days, the interconnection between hosts uses the NCP protocol. This protocol itself has many shortcomings, such as: Can not interconnect different hosts, can not interconnect different operating systems, no error correction function. To improve this shortcoming, Daniel has made the TCP/IP protocol.A
use the application-layer protocol.There are many application layer protocols, such as HTTP, FTP, Telnet, etc., and you can define the application layer protocol yourself.The WEB uses the HTTP protocol as an application-layer protocol to encapsulate HTTP text information and then send it to the network using TCP/IP as the Transport layer protocol. ”and what we usually say the most socket is what, in fact,
, we can use the TCP/IP protocol.
In fact, the socket is not necessarily associated with the TCP/IP protocol.
The socket programming interface is designed to adapt to other network protocols as well.
So, the advent of sockets just makes it easier for programmers to use the
network service for terminal equipment, and the UDP protocol provides non-connected and unreliable datagram service for terminal equipment. As we can see, TCP protocol in order to ensure the reliability of data transmission, compared to UDP packets, TCP packet header has more field options.First, let's look at the main fields of TCP headers:Each
protocols for Networking program code.TCP/IP protocolThe TCP/IP network protocol stack is divided into the application layer (application), the Transport Layer (TRANSPORT), the network layer (networks) and the link layer (link) four layer. As shown, if not specifically stated, the general quoted figure is from the "
network firewall may disconnect the connection to free up network resources. So when there is no data transmission in a socket connection, the heartbeat message needs to be sent to maintain the connection ~ ~ The specific heartbeat message format is defined by the developer.
the OSI Reference Model developed by ISO is too large and complex to incur many criticisms. In contrast, the TCP/IP protocol stacks d
application layer protocols, such as HTTP, FTP, Telnet, etc., and you can define the application layer protocol yourself.The web uses the HTTP protocol as an application-layer protocol to encapsulate HTTP text information and then send it to the network using TCP/IP as the Transport layer protocol. ”And what we usually say the most socket is what, in fact, the socket is the
Recently, I am crazy about supplementing the foundation and looking at the TCP/IP protocol. However, the content in the book is too abstract, and there is no data instance. After reading it for a long time, I forget it. Therefore, we moved a sniffer and captured the data packets. Haha, I had to explain it in the book, and I understood it faster. I will add some basic knowledge.
Let's get started with the
TCP/IP protocol stack and gained a deeper understanding of many concepts. For example, TCP and UDP belong to the same transport layer and are jointly deployed on the IP layer (Network Layer. The IP layer is mainly responsible for
prepare for the final data transfer.
The above diagram clearly indicates the role of each layer in the TCP/IP protocol, and the process of TCP/IP protocol communication corresponds to the process of data loading and stacking. The process of the stack, the data sender each
, the socket is not necessarily associated with the TCP/IP protocol. The socket programming interface is designed to adapt to other network protocols as well. So, the advent of sockets just makes it easier for programmers to use the TCP/IP protocol stack, which is an abstrac
, etc., also You can define the application layer protocol yourself. The web uses the HTTP protocol as an application-layer protocol to encapsulate HTTP text information and then send it to the network using TCP/IP as the Transport layer protocol. ”(6) The relationship between socket and TCP/IP protocol :Socket is the
, we can use the TCP/IP protocol. In fact, the socket is not necessarily associated with the TCP/IP protocol. The socket programming interface is designed to adapt to other network protocols as well. So, the advent of sockets just makes it easier for programmers to use the TCP
documentation you read'll recommend against it, but here ' s why we did it. Again, remember the point of the thetime_waitstate was to avoid confusing the transport layer. The transport layer would getconfused if it receivEs an out of order packet on a currently established socket, and send a reset packet in response. The keyhere is the termestablished socket. A socket is a tuple of 4 terms. The source and destination IPs andports. Now for our purpose
1. TCP/IP protocol stack
Four-layer modelTCP/IP This protocol adheres to a four-tier model concept: The application layer, the transport layer, the interconnect layer, and the network interface layer.Network interface LayerThe base of the model is the network interface layer. Responsible for the transmission and recep
yourself. The web uses the HTTP protocol as an application-layer protocol to encapsulate HTTP text information and then send it to the network using TCP/IP as the Transport layer protocol. ”
We usually say the most socket is what, in fact, the socket is the TCP/IP protocol encapsulation, the socket itself is not a pro
to make the transferred data meaningful, you must use the Application layer protocol, the application layer protocol, such as HTTP, FTP, Telnet, etc., You can also define the application layer protocol yourself. The web uses the HTTP protocol as an application-layer protocol to encapsulate HTTP text information and then send it to the network using TCP/IP as the Transport layer protocol. ”And we usually sa
I. troubleshooting commands
1. show command:
1) Global commands:
Show version; displays the system hardware and software versions, DRAM, Flash
Show startup-config; displays the configuration content written into NVRAM
Show running-config; displays the currently running configuration content
Show buffers; Detailed output buffer name and size
Show stacks; provides the router process and processor utilization information, using stack decode
Show tech-sup
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.