Method, device and system for transmitting Ethernet message

文档序号:1231345 发布日期:2020-09-08 浏览:14次 中文

阅读说明:本技术 一种以太网报文的传输方法、装置及系统 (Method, device and system for transmitting Ethernet message ) 是由 黄曲芳 范强 徐小英 娄崇 于 2019-03-01 设计创作,主要内容包括:本申请实施例提供一种以太网报文的传输方法、装置及系统,包括:控制设备根据第一最大传输单元MTU长度生成第一以太网报文,该第一以太网报文中数据字段的长度大于控制设备的默认MTU长度且不大于第一MTU长度;控制设备向网络设备发送第一以太网报文。采用上述方法,可以减少IP包头开销和以太网帧头开销。(The embodiment of the application provides a method, a device and a system for transmitting Ethernet messages, wherein the method comprises the following steps: the control equipment generates a first Ethernet message according to the length of a first Maximum Transmission Unit (MTU), wherein the length of a data field in the first Ethernet message is greater than the length of a default MTU of the control equipment and is not greater than the length of the first MTU; the control device sends a first Ethernet message to the network device. By adopting the method, the overhead of the IP packet header and the overhead of the Ethernet frame header can be reduced.)

1. An ethernet message transmission method, comprising:

the control equipment generates a first Ethernet message according to the length of a first Maximum Transmission Unit (MTU), wherein the length of a data field in the first Ethernet message is greater than the length of a default MTU of the control equipment and is not greater than the length of the first MTU;

and the control equipment sends the first Ethernet message to network equipment.

2. The method of claim 1, wherein before the controlling device generates the first ethernet packet according to the first MTU length, the method further comprises:

and the control equipment receives first information sent by the network equipment and acquires the length of the first MTU according to the first information.

3. The method of claim 1, wherein the first MTU length is not greater than the minimum of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

4. The method of claim 2, wherein after the control device obtains the first MTU length according to the first information, the method further comprises:

if the control device determines that the length of the data field supporting reception is the Ethernet message of the first MTU length, second information is sent to the network device, and the second information is used for indicating the terminal device to send a second Ethernet message according to the first MTU length;

and the control device receives a second ethernet message sent by the network device, where the second ethernet message is an ethernet message that is received by the network device from the terminal device and sent by the terminal device according to the second information.

5. The method of any of claims 1 to 4, wherein prior to the control device sending the first Ethernet packet to a network device, further comprising:

the control device merges the plurality of segmented ethernet packets into the first ethernet packet.

6. An ethernet message transmission method, comprising:

the method comprises the steps that terminal equipment receives a first Ethernet message sent by network equipment, wherein the first Ethernet message is the Ethernet message which is sent to the network equipment by control equipment and has the length of a data field which is larger than the length of a default MTU (maximum transmission unit) of the control equipment and is not larger than the length of the first MTU;

and the terminal equipment processes the first Ethernet message.

7. The method of claim 6, wherein the first MTU length is not greater than the minimum of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

8. The method of claim 6, further comprising:

the terminal equipment receives second information sent by the network equipment and acquires the length of a first MTU according to the second information;

and the terminal equipment sends a second Ethernet message to the network equipment according to the first MTU length, wherein the length of a data field in the second Ethernet message is greater than the default MTU length of the terminal equipment and is not greater than the first MTU length.

9. The method of claim 8, wherein before the terminal device sends the second ethernet packet to the network device according to the first MTU length, the method further comprises:

and the terminal equipment combines a plurality of segmented Ethernet messages into the second Ethernet message.

10. An ethernet message transmission method, comprising:

the network equipment receives a first Ethernet message sent by control equipment, wherein the length of a data field in the first Ethernet message is greater than the length of a default Maximum Transmission Unit (MTU) of the control equipment and is not greater than the length of the first MTU;

and the network equipment sends the first Ethernet message to terminal equipment.

11. The method of claim 10, wherein before the network device receives the first ethernet packet sent by the control device, the method further comprises:

and the network equipment acquires the first MTU length and sends first information to the control equipment, wherein the first information is used for indicating the first MTU length.

12. The method of claim 10, wherein the first MTU length is not greater than the minimum of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

13. The method of claim 10, further comprising:

the network equipment receives second information sent by the control equipment and forwards the second information to the terminal equipment, wherein the second information is used for indicating the terminal equipment to send a second Ethernet message according to the length of the first MTU;

and the network equipment receives a second Ethernet message sent by the terminal equipment, wherein the length of a data field in the second Ethernet message is greater than the length of a default MTU of the terminal equipment and is not greater than the length of the first MTU.

14. The method of claim 10, wherein before the network device sends the first ethernet packet to a terminal device, further comprising:

the network device merges the plurality of segmented ethernet packets into the first ethernet packet.

15. An apparatus, comprising: a processing unit and a communication unit;

the processing unit is configured to generate a first ethernet packet according to a first maximum transmission unit MTU length, where a length of a data field in the first ethernet packet is greater than a default MTU length of the apparatus and is not greater than the first MTU length;

the communication unit is configured to send the first ethernet packet to a network device.

16. The apparatus of claim 15, wherein the communication unit is further configured to: receiving first information sent by the network equipment;

the processing unit is further to: and acquiring the length of the first MTU according to the first information.

17. The apparatus of claim 15, wherein the first MTU length is not greater than the minimum of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

18. The apparatus as recited in claim 16, said processing unit to further: if the length of the data field supporting receiving is determined to be the Ethernet message of the first MTU length, controlling the communication unit to send second information to the network equipment, wherein the second information is used for indicating the terminal equipment to send a second Ethernet message according to the first MTU length;

the communication unit is further configured to: and receiving a second ethernet message sent by the network device, where the second ethernet message is an ethernet message received by the network device from the terminal device and sent by the terminal device according to the second information.

19. The apparatus of any of claims 15 to 18, wherein the processing unit is further to: and merging a plurality of segmented Ethernet messages into the first Ethernet message.

20. An apparatus, comprising: a processing unit and a communication unit;

the communication unit is configured to receive a first ethernet packet sent by a network device, where the first ethernet packet is an ethernet packet sent by a control device to the network device and has a data field length that is greater than a default MTU length of the control device and is not greater than the first MTU length;

the processing unit is configured to process the first ethernet packet.

21. The apparatus of claim 20, wherein the first MTU length is not greater than the minimum of a maximum data field length supported by the apparatus and a maximum data field length supported by the network device.

22. The apparatus of claim 20, wherein the communication unit is further configured to receive second information sent by the network device;

the processing unit is further to: and acquiring a first MTU length according to the second information, and controlling the communication unit to send a second Ethernet message to the network equipment according to the first MTU length, wherein the length of a data field in the second Ethernet message is greater than the default MTU length of the device and is not greater than the first MTU length.

23. The apparatus as recited in claim 22, said processing unit to further: and merging a plurality of segmented Ethernet messages into the second Ethernet message.

24. An apparatus, comprising: a processing unit and a communication unit;

the communication unit is configured to receive a first ethernet packet sent by a control device, where a length of a data field in the first ethernet packet is greater than a length of a default maximum transmission unit MTU of the control device and is not greater than the length of the first MTU;

and the processing unit is used for controlling the communication unit to send the first Ethernet message to the terminal equipment.

25. The apparatus as recited in claim 24, said processing unit to further: and acquiring the first MTU length, and sending first information to the control equipment, wherein the first information is used for indicating the first MTU length.

26. The apparatus of claim 24, wherein the first MTU length is not greater than the minimum of the maximum data field length supported by the terminal device and the maximum data field length supported by the apparatus.

27. The apparatus of claim 24, wherein the communication unit is further configured to: receiving second information sent by the control equipment;

the processing unit is further to: controlling the communication unit to forward the second information to the terminal equipment, wherein the second information is used for indicating the terminal equipment to send a second Ethernet message according to the first MTU length;

the communication unit is further configured to: and receiving a second Ethernet message sent by the terminal equipment, wherein the length of a data field in the second Ethernet message is greater than the length of a default MTU of the terminal equipment and is not greater than the length of the first MTU.

28. The apparatus as recited in claim 24, said processing unit to further: and merging a plurality of segmented Ethernet messages into the first Ethernet message.

29. An apparatus comprising a processor and a transceiver;

the processor is configured to execute program instructions and, in cooperation with the transceiver, cause the apparatus to implement the method of any one of claims 1 to 14.

30. A computer-readable storage medium comprising program instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 14.

31. A system comprising the apparatus of claim 29.

Technical Field

The present application relates to the field of wireless communications technologies, and in particular, to a method, an apparatus, and a system for transmitting an ethernet packet.

Background

With the development of mobile communication technology, mobile communication systems are increasingly applied to data transmission of ethernet. For example, in an industrial private network, the control device may transmit an ethernet packet by means of a mobile communication system, thereby implementing data transmission.

Typically, an ethernet packet includes a data field and an ethernet frame header. The data field includes an Internet Protocol (IP) packet encapsulated by an IP packet header. In order to ensure that ethernet packets can be transmitted in ethernet, devices in ethernet are configured with a default Maximum Transmission Unit (MTU) length, which is generally 1500Bytes (Bytes). When sending an ethernet packet, the device in the ethernet may send the ethernet packet according to the default MTU length, for example, the length of the data field in the ethernet packet cannot be greater than 1500 bytes.

It can be understood that the longer the data field in the ethernet packet, the less ethernet packets are required for transmitting the data to be transmitted, and the less overhead the IP packet header and the ethernet frame header are. In the existing ethernet, the length of the default MTU limits the length of the data field in the ethernet packet, so that when any device in the ethernet transmits data that can be carried by exceeding the length of the default MTU, data transmission can be completed only by transmitting a plurality of ethernet packets, thereby increasing the overhead of the IP packet header and the ethernet frame header.

Disclosure of Invention

The application provides a method, a device and a system for transmitting an Ethernet message, which are used for reducing the overhead of an IP packet header and an Ethernet frame header.

In a first aspect, an embodiment of the present application provides an ethernet packet transmission method, including: the control equipment generates a first Ethernet message according to the length of a first Maximum Transmission Unit (MTU), wherein the length of a data field in the first Ethernet message is greater than the length of a default MTU of the control equipment and is not greater than the length of the first MTU; and then, the control device sends the first Ethernet message to the network device.

The length of the data field in the first ethernet packet sent by the control device is no longer limited to the default MTU length, and the first ethernet packet with the length of the data field greater than the default MTU length can be sent according to the first MTU length, so that the number of the ethernet packets is reduced as a whole, and further, the overhead of the IP packet header and the ethernet frame header is reduced.

In a possible implementation manner, before the control device generates the first ethernet packet according to the first MTU length, the control device may further receive first information sent by the network device, and obtain the first MTU length according to the first information.

By adopting the method, the network equipment indicates the first MTU for the control equipment, so that the mode of acquiring the first MTU by the control equipment is more flexible, and the adaptability adjustment can be carried out according to different terminal equipment.

In a possible implementation manner, the first MTU length is not greater than the minimum value of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

Because the first ethernet packet sent by the control device needs to be transmitted to the terminal device through the network device, determining the first MTU by using the method can enable the length of the data field in the first ethernet packet sent by the control device not to exceed the maximum data field length supported by the terminal device and the network device, which is beneficial to improving the success rate of the transmission of the first ethernet packet.

In a possible implementation manner, after the controlling device obtains the first MTU length according to the first information, the controlling device further includes: if the control equipment determines that the length of the data field supporting receiving is the Ethernet message of the first MTU length, second information is sent to the network equipment, and the second information is used for indicating the terminal equipment to send the second Ethernet message according to the first MTU length; and the control equipment receives a second Ethernet message sent by the network equipment, wherein the second Ethernet message is the Ethernet message which is received by the network equipment from the terminal equipment and sent by the terminal equipment according to the second information.

If the control device determines that the ethernet packet with the data field size of the first MTU length can be received, the control device may send the second information to the terminal device, so that the terminal device may also send the second ethernet packet with the data field length larger than the default MTU, which is beneficial to reducing the IP packet header overhead and the ethernet frame header overhead at the terminal device.

In a possible implementation manner, before the control device sends the first ethernet packet to the network device, the control device may further merge the multiple segmented ethernet packets into the first ethernet packet.

In the time-sensitive ethernet, the ethernet packet with low priority may be divided into a plurality of segmented ethernet packets to be transmitted, so that the utilization rate of radio resources may be reduced, and the overhead of the ethernet frame header may also be increased. By adopting the method, the control equipment combines a plurality of segmented Ethernet messages into one Ethernet message and then sends the Ethernet message, which is beneficial to improving the utilization rate of wireless resources and reducing the overhead of Ethernet frame headers.

In a second aspect, an embodiment of the present application provides an ethernet packet transmission method, including: the method comprises the steps that terminal equipment receives a first Ethernet message sent by network equipment, wherein the first Ethernet message is the Ethernet message which is sent to the network equipment by control equipment and has the length of a data field which is larger than the length of a default MTU (maximum transmission unit) of the control equipment and not larger than the length of the first MTU; and then the terminal equipment processes the first Ethernet message.

In a possible implementation manner, the first MTU length is not greater than the minimum value of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

In a possible implementation manner, the terminal device may further receive second information sent by the network device; acquiring the length of the first MTU according to the second information; the terminal device may send a second ethernet packet to the network device according to the first MTU length, where the length of the data field in the second ethernet packet is greater than the default MTU length of the terminal device and not greater than the first MTU length.

In a possible implementation manner, before the terminal device sends the ethernet packet to the network device according to the length of the first MTU, the terminal device may further merge the multiple segmented ethernet packets into a second ethernet packet.

In a third aspect, an embodiment of the present application provides an ethernet packet transmission method, including: the method comprises the steps that network equipment receives a first Ethernet message sent by control equipment, wherein the length of a data field in the first Ethernet message is greater than the length of a default Maximum Transmission Unit (MTU) of the control equipment and is not greater than the length of the first MTU; the network device further sends the first Ethernet message to the terminal device.

In a possible implementation manner, before the network device receives the first ethernet packet sent by the control device, the network device may further obtain a first MTU length, and send first information to the control device, where the first information is used to indicate the first MTU length.

In a possible implementation manner, the first MTU length is not greater than the minimum value of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

In a possible implementation manner, the network device may further receive second information sent by the control device, and forward the second information to the terminal device, where the second information is used to instruct the terminal device to send a second ethernet packet according to the length of the first MTU; and the network equipment receives a second Ethernet message sent by the terminal equipment, wherein the length of a data field in the second Ethernet message is greater than the length of a default MTU of the terminal equipment and is not greater than the length of the first MTU.

In a possible implementation manner, before the network device sends the first ethernet packet to the terminal device, the network device may further merge a plurality of segmented ethernet packets into the first ethernet packet.

In a fourth aspect, an embodiment of the present application provides an apparatus, including: a processing unit and a communication unit; the processing unit is used for generating a first Ethernet message according to the length of a first Maximum Transmission Unit (MTU), wherein the length of a data field in the first Ethernet message is greater than the length of a default MTU of the device and is not greater than the length of the first MTU; and the communication unit is used for sending the first Ethernet message to the network equipment.

In one possible implementation, the communication unit is further configured to: receiving first information sent by network equipment; the processing unit is further configured to: and acquiring the length of the first MTU according to the first information.

In a possible implementation manner, the first MTU length is not greater than the minimum value of the maximum data field length supported by the terminal device and the maximum data field length supported by the network device.

In one possible implementation, the processing unit is further configured to: if the length of the data field supporting receiving is determined to be the Ethernet message of the first MTU length, controlling the communication unit to send second information to the network equipment, wherein the second information is used for indicating the terminal equipment to send the second Ethernet message according to the first MTU length; the communication unit is further configured to: and receiving a second Ethernet message sent by the network equipment, wherein the second Ethernet message is the Ethernet message which is received by the network equipment from the terminal equipment and sent by the terminal equipment according to the second information.

In one possible implementation, the processing unit is further configured to: and combining the plurality of segmented Ethernet messages into a first Ethernet message.

In a fifth aspect, an embodiment of the present application provides an apparatus, including: a processing unit and a communication unit; the communication unit is used for receiving a first Ethernet message sent by the network equipment, wherein the first Ethernet message is the Ethernet message which is sent to the network equipment by the control equipment and has a data field length which is greater than the default MTU length of the control equipment and is not greater than the first MTU length; and the processing unit is used for processing the first Ethernet message.

In one possible implementation, the first MTU length is not greater than the minimum of the maximum data field length supported by the device and the maximum data field length supported by the network device.

In a possible implementation manner, the communication unit is further configured to receive second information sent by the network device; the processing unit is further configured to: acquiring the length of the first MTU according to the second information; and controlling the communication unit to send a second Ethernet message to the network equipment according to the first MTU length, wherein the length of a data field in the second Ethernet message is greater than the default MTU length of the device and is not greater than the first MTU length.

In one possible implementation, the processing unit is further configured to: and combining the segmented Ethernet messages into the Ethernet messages.

In a sixth aspect, an embodiment of the present application provides an apparatus, including: a processing unit and a communication unit; the communication unit is used for receiving a first Ethernet message sent by the control equipment, and the length of a data field in the first Ethernet message is greater than the length of a default Maximum Transmission Unit (MTU) of the control equipment and is not greater than the length of the first MTU; and the processing unit is used for controlling the communication unit to send the first Ethernet message to the terminal equipment.

In one possible implementation, the processing unit is further configured to: the method comprises the steps of obtaining the length of a first MTU, and sending first information to control equipment, wherein the first information is used for indicating the length of the first MTU.

In a possible implementation manner, the first MTU length is not greater than the minimum value of the maximum data field length supported by the terminal device and the maximum data field length supported by the apparatus.

In one possible implementation, the communication unit is further configured to: receiving second information sent by the control equipment;

the processing unit is further configured to: the control communication unit forwards second information to the terminal equipment, wherein the second information is used for indicating the terminal equipment to send a second Ethernet message according to the length of the first MTU; the communication unit is further configured to: and receiving a second Ethernet message sent by the terminal equipment, wherein the length of a data field in the second Ethernet message is greater than the length of a default MTU of the terminal equipment and is not greater than the length of the first MTU.

In one possible implementation, the processing unit is further configured to: and combining the plurality of segmented Ethernet messages into a first Ethernet message.

In a seventh aspect, an embodiment of the present application provides an apparatus, including a processor and a transceiver; wherein the processor is configured to execute the program instructions and, in cooperation with the transceiver, cause the apparatus to implement the method as provided in any one of the first aspect, or the method as provided in any one of the second aspect, or the method as provided in any one of the third aspect.

In an eighth aspect, the present application further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the method provided in the above aspects.

In a ninth aspect, an embodiment of the present application further provides a communication system, where the communication system includes the control device in any design of the first aspect, the terminal device in any design of the second aspect, and the network device in any design of the third aspect.

In a tenth aspect, embodiments of the present application further provide a computer program product including instructions, which when run on a computer, cause the computer to perform the method provided by the above aspects.

These and other aspects of the present application will be more readily apparent from the following description of the embodiments.

Drawings

The drawings that are required to be used in the description of the embodiments are briefly described below.

Fig. 1 is a schematic architecture diagram of a possible communication system to which the embodiment of the present application is applicable;

fig. 2 is a schematic diagram of a protocol stack structure of a control device according to an embodiment of the present application;

FIG. 3 is a diagram illustrating an IP header format;

fig. 4 is a schematic flowchart of a method for transmitting an ethernet packet according to an embodiment of the present application;

fig. 5 is a flowchart illustrating a method for indicating a length of a first MTU for a control device according to an embodiment of the present application;

FIG. 6 is a block diagram of an Ethernet packet;

fig. 7 is a schematic diagram of a protocol stack structure of a control device according to an embodiment of the present application;

FIG. 8 is a schematic view of an apparatus according to an embodiment of the present disclosure;

fig. 9 is a schematic diagram of an apparatus according to an embodiment of the present disclosure.

Detailed Description

The present application will be described in further detail below with reference to the accompanying drawings. The particular methods of operation in the method embodiments may also be applied to apparatus embodiments or system embodiments. It is to be noted that "at least one" in the description of the present application means one or more, where a plurality means two or more. In view of this, a plurality may also be understood as "at least two" in the embodiments of the present application. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship, unless otherwise specified. In addition, it is to be understood that the terms first, second, etc. in the description of the present application are used for distinguishing between the descriptions and not necessarily for describing a sequential or chronological order.

Fig. 1 is a schematic architecture diagram of a possible communication system to which the embodiment of the present application is applicable. The communication system shown in fig. 1 includes a control device, a network device, and a terminal device. It should be understood that fig. 1 is only an architecture diagram of a communication system, the number of network devices and the number of terminal devices in the communication system are not limited in this embodiment, and the communication system to which this embodiment of the present application is applied may include other devices, such as a gateway device, a core network device, a wireless relay device, a wireless backhaul device, and the like, besides the network devices and the terminal devices, and this embodiment of the present application is also not limited. In addition, the network device and the control device in the embodiment of the present application may integrate all functions into one independent physical device, or may distribute the functions over a plurality of independent physical devices, which is not limited to this embodiment of the present application.

In addition, the terminal device in the embodiment of the present application may be connected to the network device in a wireless manner, and the control device may be directly or indirectly connected to the network device in a wired or wireless manner. As shown in fig. 1, the control device may directly construct a communication link with a network device, or may construct a communication link with a network device through a gateway device, and so on, which is not limited in this embodiment of the present application.

In the embodiment of the present application, the network device may be a device capable of communicating with the terminal device. The network device may be any device having a wireless transceiving function. Including but not limited to: a base station (e.g., a base station NodeB, an evolved base station eNodeB, a base station gdnodeb in a 5G communication system, a base station or network device in a future communication system, an access node in a WiFi system, a wireless relay node, a wireless backhaul node), etc. The network device may also be a wireless controller in a Cloud Radio Access Network (CRAN) scenario. The network device may also be a small station, a Transmission Reference Point (TRP), or the like. The network device may also be a node x, configured to forward a wireless signal, where the wireless signal may carry an ethernet packet in this embodiment of the present application. Although not expressly stated herein.

The terminal equipment has a wireless transceiving function, can be deployed on land and comprises an indoor or outdoor, a handheld, a wearable or a vehicle-mounted terminal; can also be deployed on the water surface (such as a ship and the like); and may also be deployed in the air (e.g., airplanes, balloons, satellites, etc.). The terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like. The embodiments of the present application do not limit the application scenarios. A terminal device may also be sometimes referred to as a User Equipment (UE), an access terminal device, a UE unit, a UE station, a mobile station, a remote terminal device, a mobile device, a UE terminal device, a wireless communication device, a UE agent, or a UE apparatus, etc.

The control device is a device for controlling or providing a service to the terminal device. For example, the control device may be a content server, and for example, the control device may be a control center in an industrial private network. In the case that the control device serves as a control center of an industrial private network, the control device and the gateway device may be integrated in the same physical device, that is, the gateway device executes the steps executed by the control device in the ethernet packet transmission method provided in the embodiment of the present application.

The communication system to which the above system architecture is applicable includes but is not limited to: time division duplex-Long Term Evolution (TDD LTE), frequency division duplex-Long Term Evolution (FDD LTE), Long Term Evolution-enhanced (LTE-a), and various wireless communication systems of future Evolution, such as 5G NR communication systems.

With the development of mobile communication technology, the communication system shown in fig. 1 is widely used for data transmission of ethernet. For example, in an industrial private network, the control device may transmit an ethernet packet with the aid of a mobile communication system to the terminal device, thereby implementing data transmission.

Taking a control device in a 5G NR communication system as an example, fig. 2 is a schematic diagram of a protocol stack structure of a control device provided in an embodiment of the present application, and based on the protocol stack shown in fig. 2, the control device may produce and send an ethernet packet. As shown in fig. 2, the protocol stack of the control device at least includes an application layer, an IP layer, an ethernet layer, and a 5G network layer (which may also be other wireless network layers such as a 4G network layer and a 3G network layer, and details thereof are not described here).

Specifically, the control device may generate and transmit an ethernet packet through the following processes:

the method comprises the following steps: and generating data to be transmitted through the application layer.

Step two: the control device can divide the data to be transmitted into a plurality of data segments through the IP layer, and adds an IP packet header to each data segment to obtain a plurality of IP data packets. Fig. 3 is a diagram illustrating an IP header format. As shown in fig. 3, the IP header includes various indication information such as version, header length, service type, total length, protocol, etc., where the total length is used to indicate the length of the data segment in the IP header. In the IP header shown in fig. 3, the total length can occupy 16 bits, so that the length of the data segment in the IP data packet can reach 65536 (2)16)Byte。

Step three: and encapsulating the IP data packets through an Ethernet layer, and adding an Ethernet frame header to each IP data packet to obtain a plurality of Ethernet messages. The ethernet packet includes an ethernet frame header and a data field, where the data field includes the IP packet, and in some scenarios, may further include an indicator bit at the end of the ethernet packet.

Step four: the Ethernet message is sent through the 5G network layer, so that the Ethernet message can be adapted to a 5G communication protocol, and further the Ethernet message can be transmitted through the 5G network.

Generally, to ensure that ethernet packets can be transmitted in ethernet, devices in ethernet are configured with a default Maximum Transmission Unit (MTU) length so that ethernet packets do not exceed the maximum packet length supported by each device in ethernet. Generally, the length of the default MTU is 1500Bytes, and when sending an ethernet packet, a device in the ethernet may send the ethernet packet according to the length of the default MTU, that is, the length of a data field in the ethernet packet cannot be greater than 1500 Bytes. Based on this, even if the length of the data segment in the IP packet can reach 65536Bytes at most, the length of the IP packet needs to be controlled not to exceed 1500 Bytes.

It can be understood that the longer the data field in the ethernet packet, the less ethernet packets are required for transmitting the data to be transmitted, and the less overhead the IP packet header and the ethernet frame header are. With the development of wireless communication technology, ethernet based mobile communication networks can already support the transmission of ethernet messages with larger length, for example, 5G networks can support the transmission of ethernet messages with 9000Bytes, and this length may be further increased in the future. However, in the existing ethernet, the default MTU length limits the length of the data field in the ethernet packet, so that the ethernet cannot fully utilize the transmission performance of the mobile communication network. Moreover, because the length of the data field in the ethernet packet is short, the number of the ethernet packets required for transmitting data is increased, and further, the overhead of the IP packet header and the ethernet frame header is increased.

In order to reduce the overhead of the IP header and the ethernet header and enable the ethernet to fully utilize the transmission performance of the mobile communication network, the embodiment of the present application provides an ethernet packet transmission method. The methods provided in the examples of the present application are further illustrated by the following examples one, two and three.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据处理的方法、网卡和服务器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!