Current location - Education and Training Encyclopedia - University ranking - How does the Internet work?
How does the Internet work?
When an Internet user sends a text to another machine, TCP decomposes the text into several small data packets and adds some specific information (which can be compared to the packing list of the transported goods) so that the receiving machine can judge whether the transmission is correct, and IP marks the relevant address information on the data packets.

Continuous TCP/IP packets can reach the same place through different routes. There is a special machine, that is, router, which is located at the intersection of the network and determines the best transmission path of data packets, thus effectively dispersing the various business loads of the Internet and avoiding the "congestion" of a certain part of the system because it is too busy.

When the TCP/IP packet arrives at the destination, the computer will remove the address tag of TP, use TCP's "packing list" to check whether it is lost during transmission, and then reassemble the packet into the original text file. If the receiver finds a damaged packet, it requires the sender to resend the damaged packet.

Extended data

The lowest IP protocol is a data-oriented protocol for message exchange networks, which defines the format of data packets when they are transmitted on the Internet. At present, the most widely used version is IPv4, which uses 32 bits to define the IP address. Although the total number of addresses reached 4.3 billion, it still could not meet the needs of the rapid development of the global network, so the IPv6 version came into being.

In the IPv6 version, the IP address * * * has 128 bits, "almost every grain of sand on the earth can be assigned an IPv6 address". At present, IPv6 is not popular, and many Internet service providers do not support the connection of IPv6 protocol. However, it can be predicted that with the help of IPv6, any household appliances may access the Internet in the future.

The upper layer is UDP protocol and TCP protocol, which are used to control the transmission of data stream. UDP is an unreliable data stream transmission protocol, which only provides a simple interface between the network layer and the application layer.

On the other hand, TCP protocol has high reliability. By adding extra information to datagrams and providing retransmission mechanism, it can ensure that data is not lost, there are no redundant packets, and the order of datagrams is guaranteed. For some applications that need high reliability, TCP protocol can be selected; On the contrary, for applications with performance priority, such as streaming media, UDP protocol can be selected.