Home > other >  Computer network packet
Computer network packet

Time:10-05

Computer network, the network protocol 5 levels
Application, transport, network, data link, the network interface layer
Consult, transport layer data is the data submitted to the form, and then next to the network layer, data network need to convert into groups, this group is the process of the transport layer of the datagram, small range into isometric or long period of datagram, combined with the network layer control information is grouped,
Bedding or network transport layer to pay down the data submitted to the first control information was added to become group,
If A to B to send large files, such as 1 g, does the transport layer of the datagram data 1 g, the network layer is in the datagram transport layer and A first became A grouping, grouped data size is 1 g
Or the data submitted to the transport layer segment, in this case, each packet size of the data, there is no 1 g?

CodePudding user response:

Not, is determined according to your network MTU, namely network maximum transmission unit, you look at the IP fragmentation can you understand what's going on, the Internet allows IP fragmentation, so packets can be divided into small enough pieces to the maximum transmission unit that is smaller than the packet, the size of the original link the subdivision process occurs at the network layer,
Ethernet cannot receive, for example, more than 1500 bytes of data packets, the sender node will be split into smaller data transport layer, arrange a serial number to each piece of data at the same time, so that the data when you arrive at the transport layer of the receiver node, to restructuring in the correct order, the process is referred to as sorting, it USES the packet is sent to the network interface on the link of the value of the maximum transmission unit are being added to the original packet fragmentation are markers, so purpose host's TCP layer can group restructuring into the original data packets,

CodePudding user response:

"If A to B to send large files, such as 1 g, does the transport layer of the datagram data 1 g, the network layer is in the datagram transport layer and A first became A grouping, grouped data size is 1 g"

Personal understanding, the transport layer in the TCP, UDP, mainly defines the host port, such as the content of the transport documents should be the function of the application layer?
  • Related