Ethernet data sending and receiving method, device, equipment and storage medium
By encapsulating multiple MRP device attribute information in Ethernet frames and using Ethernet frame structure type identifiers, the problem that only one MRP upper-layer protocol can be transmitted in an Ethernet frame is solved, thus achieving efficient data transmission.
Patent Information
- Application Number
- CN202210192576.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-02-28
AI Technical Summary
In existing technologies, Ethernet frames can only transmit attribute information of one MRP upper-layer protocol, resulting in high transmission traffic consumption and low transmission efficiency.
Two or more MRP device attribute information are encapsulated into an MRPDU, and identified and decapsulated using Ethernet frame structure type identifiers to achieve synchronous transmission of multiple MRP upper layer protocol information.
It increases the amount of data carried in data packets, reduces the number of data transmissions, saves network bandwidth, and improves transmission efficiency.
Smart Images

Figure CN114598422B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to an Ethernet data sending and receiving method, device, equipment and storage medium. Background Art
[0002] Multiple Registration Protocol (MRP) is a standard defined in IEEE802.1Q. The basic operation of the protocol is that within the same switching network, a site or port declares or revokes an attribute, and the site or port at the other end performs the corresponding attribute registration or deregistration operation, that is, the process of transferring the attribute on the logical path of registration declaration (Declaration to Registration). The attribute details are defined by the specific MRP upper layer protocol, which includes MRP application (MRP Application) scenarios or modules. For example, the virtual local area network (VLAN) attribute is defined in the Multiple VLAN Registration Protocol (MVRP), the medium access control (MAC) attribute is defined in the Multiple MAC Registration Protocol (MMRP), and several more complex attributes are defined in the Multiple Stream Registration Protocol (MSRP). Devices that support MRP can quickly propagate their own attribute information to the switching network, and the field information contained in the attribute can be used to achieve the role of "signaling".
[0003] When transmitting attribute information, the encapsulation standard of the data unit is first based on the Ethernet frame structure defined by IEEE 802.3. Secondly, the data segment (Data) is the Multiple Registration Protocol Data Unit (MRPDU) structure defined by IEEE 802.1Q. An MRPDU contains 1 to N messages. Finally, the structure of each message is defined by various MRP upper layer protocols, which may include multiple attributes defined by specific MRP applications. The encapsulation standard of the data unit refers to the conversion of attribute data into a standard transmission format.
[0004] Since the Institute of Electrical and Electronics Engineers (IEEE) defines an Ethernet frame type for each MRP upper layer protocol, when transmitting attribute data, each Ethernet frame can only transmit the attribute information of one MRP upper layer protocol, that is, the information in each frame can only belong to one MRP upper layer protocol. This means that only one type of MRP device attribute information can be transmitted each time, which will cause problems such as high transmission traffic consumption and low transmission efficiency. Summary of the invention
[0005] The purpose of the present invention is to provide an Ethernet data sending and receiving method, device, equipment and storage medium. By encapsulating two or more MRP device attribute information into one MRPDU, information of different attribute types can be transmitted synchronously, the number or type of data that can be carried by a data packet in a single data transmission is increased, the number of data transmissions under the same circumstances is reduced, the traffic consumption is reduced, and the transmission efficiency can be improved, thereby solving the problems of large transmission traffic consumption and low transmission efficiency in the prior art.
[0006] In a first aspect, an embodiment of the present invention provides a method for sending Ethernet data applied to a sending device, wherein the sending device and a receiving device are connected to a network via Ethernet, the method comprising: determining device attribute information of at least two multiple registration protocols to be sent; encapsulating the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU; and sending a data packet to the receiving device, the data packet comprising the MRPDU and an Ethernet frame structure type identifier, the Ethernet frame structure type identifier being used to indicate that the MRPDU comprises the device attribute information of the at least two multiple registration protocols.
[0007] The beneficial effect of the method for sending Ethernet data of a sending device provided by an embodiment of the present invention is that: by encapsulating the device attribute information of at least two determined multiple registration protocols into one MRPDU, and marking the Ethernet frame structure type identifier on the transmitted data packet, the data packet can be identified as an MRPDU containing at least two multiple registration protocols, thereby enabling the data packet including the device attribute information of at least two multiple registration protocols to be encapsulated, transmitted and identified within the Ethernet, and enabling the data packet containing different MRP device attribute information to be transmitted synchronously, that is, multiple different device attribute information defined by MRP upper layer protocols can be carried in one Ethernet frame, thereby saving network bandwidth.
[0008] In a possible implementation, the frame structure of the data packet includes not only the data content field and the Ethernet frame structure type, but also the destination address, the extended destination address, the redundant field and the check field. The beneficial effect is that by setting the destination address, the extended destination address, the redundant field and the check field in the data packet, the data packet conforms to the basic form of information transmission in the Ethernet, thereby realizing information transmission.
[0009] In a second aspect, an embodiment of the present invention further provides a method for Ethernet data reception applied to a receiving device, wherein the receiving device and a sending device are connected to a network via Ethernet, the method comprising: receiving a data packet from the sending device, the data packet comprising an MRPDU and an Ethernet frame structure type identifier; when the Ethernet frame structure type identifier indicates that the MRPDU includes device attribute information of at least two multiple registration protocols, decapsulating the MRPDU according to the Ethernet frame structure type identifier to obtain the device attribute information of the at least two multiple registration protocols.
[0010] The beneficial effect of the method for Ethernet data reception applied to a receiving device provided by an embodiment of the present invention is: determining through the Ethernet frame structure type identifier that the MRPDU includes device attribute information of at least two multiple registration protocols, and decapsulating the MRPDU to obtain the MRP device attribute information contained in the data packet, thereby facilitating the demultiplexing and reading of this type of data packet.
[0011] In a possible implementation, the method further includes: when the Ethernet frame structure type identifier indicates that the MRPDU includes only one device attribute information of a multiple registration protocol, obtaining the device attribute information from the MRPDU according to the Ethernet frame structure type identifier. The beneficial effect is that the data packet can transmit not only information of multiple MRP attributes, but also information of a single MRP attribute.
[0012] In a possible implementation, after obtaining the device attribute information of the at least two multiple registration protocols, the method further includes: distributing the device attribute information of the at least two multiple registration protocols to corresponding multiple registration protocol applications. The beneficial effect is that the obtained different MRP device attribute information is distributed to different MRP applications to realize the reading of different types of information.
[0013] In a possible implementation, the frame structure of the data packet includes not only the data content field and the Ethernet frame structure type, but also the destination address, the extended destination address, the redundant field and the check field. The beneficial effect is that by setting the destination address, the extended destination address, the redundant field and the check field in the data packet, the data packet conforms to the basic form of information transmission in the Ethernet, thereby realizing information transmission.
[0014] In a third aspect, an embodiment of the present invention further provides an Ethernet data sending device, the device comprising a determining unit, configured to determine device attribute information of at least two multiple registration protocols to be sent;
[0015] An encapsulation unit, configured to encapsulate the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU;
[0016] The sending unit is used to send a data packet to the receiving device, wherein the data packet includes the MRPDU and an Ethernet frame structure type identifier, and the Ethernet frame structure type identifier is used to indicate that the MRPDU includes device attribute information of the at least two multiple registration protocols.
[0017] In a possible implementation, the frame structure of the data packet includes not only a data content field and an Ethernet frame structure type, but also a destination address, an extended destination address, a redundancy field, and a check field.
[0018] In a fourth aspect, an embodiment of the present invention further provides an Ethernet data receiving device, the device comprising a receiving unit, configured to receive a data packet from a sending device, wherein the data packet comprises an MRPDU and an Ethernet frame structure type identifier;
[0019] The decapsulation unit is used to decapsulate the MRPDU according to the Ethernet frame structure type identifier to obtain the device attribute information of the at least two multiple registration protocols when the Ethernet frame structure type identifier indicates that the MRPDU includes device attribute information of at least two multiple registration protocols.
[0020] In a possible implementation, the decapsulation unit is further configured to obtain the device attribute information from the MRPDU according to the Ethernet frame structure type identifier when the Ethernet frame structure type identifier indicates that the MRPDU only includes device attribute information of one multiple registration protocol.
[0021] In a possible implementation, it further includes: a distribution unit; the distribution unit is used to distribute the device attribute information of the at least two multiple registration protocols to the corresponding multiple registration protocol application after obtaining the device attribute information of the at least two multiple registration protocols.
[0022] In a possible implementation, the frame structure of the data packet includes not only a data content field and an Ethernet frame structure type, but also a destination address, an extended destination address, a redundancy field, and a check field.
[0023] In a fifth aspect, an embodiment of the present invention provides a sending device, comprising a processor and a memory, wherein the memory is a memory for storing computer-executable instructions; when the processor executes the computer-executable instructions, the sending device can implement any possible design method of the first aspect.
[0024] In a sixth aspect, an embodiment of the present invention provides a receiving device, comprising a processor and a memory, wherein the memory is a memory for storing computer-executable instructions; when the processor executes the computer-executable instructions, the sending device is enabled to implement any possible design method of the second aspect above.
[0025] In the seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute any possible design method of the first aspect above, or execute any possible design method of the second aspect above.
[0026] For the beneficial effects of the third to seventh aspects, reference may be made to the description of the first or second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A communication scenario of Ethernet data transmission provided by an embodiment of the present invention;
[0029] Figure 2 An Ethernet data sending method and receiving method provided by an embodiment of the present invention;
[0030] Figure 3 An Ethernet frame structure provided by an embodiment of the present invention;
[0031] Figure 4 It is a schematic diagram of the process of sending and receiving device attribute information of MRP in the prior art;
[0032] Figure 5 A schematic diagram of the process of sending and receiving device attribute information using the UniMRP Ethernet frame type according to an embodiment of the present invention;
[0033] Figure 6 A schematic diagram of a process for multiplexing Ethernet frames through a protocol multiplexer component provided by an embodiment of the present invention;
[0034] Figure 7 A schematic diagram of a process of demultiplexing Ethernet frames by a protocol demultiplexer component provided by an embodiment of the present invention;
[0035] Figure 8 An Ethernet data sending device provided by an embodiment of the present invention;
[0036] Fig. 9 An Ethernet data receiving device is provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention. Among them, in the description of the embodiments of the present invention, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more than two (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0038] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0039] In the embodiments of the present invention, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0040] Figure 1 A communication scenario of Ethernet data transmission provided in an embodiment of the present invention, wherein a sending device 100 and a receiving device 200 are connected to a network via Ethernet, and the sending device 100 sends a data packet to the receiving device via Ethernet, the data packet including a multiple registration protocol data unit MRPDU and an Ethernet frame structure type identifier, wherein the Ethernet frame structure type identifier is used to indicate that the MRPDU includes device attribute information of at least two multiple registration protocols. The sending device 100 and the receiving device 200 in this scenario include but are not limited to terminals, bridges, routers, switches, etc.
[0041] based on Figure 1 The communication scenario described, Figure 2 An Ethernet data sending method and receiving method provided by an embodiment of the present invention, the sending method and receiving method comprising:
[0042] S201. A sending device determines device attribute information of at least two multiple registration protocols to be sent.
[0043] S202: The sending device encapsulates the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU.
[0044] S203: The sending device sends a data packet to the receiving device, the data packet including the MRPDU and an Ethernet frame structure type identifier, the Ethernet frame structure type identifier being used to indicate that the MRPDU includes device attribute information of the at least two multiple registration protocols.
[0045] S204, the receiving device 200 receives a data packet from the sending device, wherein the data packet includes an MRPDU and an Ethernet frame structure type identifier.
[0046] S205: When the Ethernet frame structure type identifier indicates that the MRPDU includes device attribute information of at least two multiple registration protocols, the receiving device 200 decapsulates the MRPDU according to the Ethernet frame structure type identifier to obtain the device attribute information of the at least two multiple registration protocols.
[0047] In some embodiments, the present invention provides an Ethernet frame type: UniMRP Ethernet frame type. By using this type of Ethernet frame type, device attribute information defined by multiple different MRP upper layer protocols can be carried in one Ethernet frame. In some embodiments, the MRP upper layer protocol includes MMRP, MVRP, MSRP, and MIRP. In addition, the present invention also provides a protocol multiplexing (MRP Protocol Mux) component for processing UniMRP Ethernet frames. The device can save network bandwidth by using the Ethernet frame transmission method of the UniMRP Ethernet frame type.
[0048] Specifically, when it is determined that there are at least two types of MRP upper layer protocol attribute information that need to be sent, the MRP Protocol Mux component encapsulates the above two or more MRP upper layer protocol attribute information into one MRPDU for transmission, so as to achieve the purpose of transmitting two or more MRP upper layer protocol attribute information at a time. The MRP Protocol Demux component decapsulates according to the Ethernet frame structure type identifier to obtain the attribute information of two or more MRP upper layer protocols, completes the reception and decapsulation of the device attribute information of at least two multiple registration protocols, and facilitates subsequent distribution.
[0049] When in use, the Ethernet frame structure type identifier enables the MRPDU to be identified as an MRPDU containing attribute information of two or more MRP upper layer protocols.
[0050] In a possible implementation manner, the frame structure of the data packet includes not only the data content field and the Ethernet frame structure type, but also the destination address, the extended destination address, the redundancy field and the check field. Figure 3 As shown in the figure, in addition to the data content field and the Ethernet frame structure type, the transmitted data also includes other frame header overheads called per-frame overhead (FOH). The FOH includes the destination address, extended destination address, redundant field and check field. For 802.3 Ethernet, the FOH is 42 bytes, mainly including 8 bytes of preamble, 14 bytes of Ethernet header field, 4 bytes of 802.1Q priority and VLAN tag field, 4 bytes of CRC check field and 12 bytes of internal frame gaps (IFG).
[0051] In some embodiments, the UniMRP Ethernet frame type field occupies 2 bytes. In some embodiments, the value is 0xFFFF (IEEE reserved field).
[0052] In some embodiments, the UniMRP Destination Address field occupies 6 bytes, and the value is not limited, and one of the MRP Application Reserved addresses can be used. In some embodiments, the UniMRP Destination Address is 01-80-C2-00-00-28.
[0053] The UniMRP Ethernet frame type of the present application, that is, the data frames of the MVRP Ethernet frame, MSRP Ethernet frame type, MMRP Ethernet frame type, and MIRP Ethernet frame type can be merged into the data frame of the UniMRP Ethernet frame type for transmission, thereby reducing the use of FOH.
[0054] In addition, it is worth noting that in the prior art, different MRP upper layer protocols send information to maintain different queues. When a certain MRP upper layer protocol needs to send very little information (for example, only one), it also needs an Ethernet frame for transmission, while other MRP upper layer protocols need to send a lot of information and cannot reuse the Ethernet frame with less information for transmission. However, the Ethernet frame type provided by this solution: UniMRP Ethernet frame type can reuse Ethernet frames, thereby improving the transmission efficiency of device attribute information.
[0055] In some embodiments, the Ethernet data receiving method further includes:
[0056] S206: When the Ethernet frame structure type identifier indicates that the MRPDU includes only one type of device attribute information of the multiple registration protocol, the device attribute information is obtained from the MRPDU according to the Ethernet frame structure type identifier. That is, when only one type of MRP device attribute information is sent, it can also be sent through the UniMRP Ethernet frame type.
[0057] In some embodiments, after obtaining the device attribute information of the at least two multiple registration protocols, the method further includes: distributing the device attribute information of the at least two multiple registration protocols to the corresponding multiple registration protocol application. That is, when the demultiplexed information obtained is two or more MRP device attribute information, it needs to be distributed to the corresponding MRP application for reading.
[0058] In order to explain the above transmission method more systematically, Figure 8 and Fig. 9 The usage scenario diagram shown is used for explanation.
[0059] Figure 4 It is a schematic diagram of the process of sending and receiving device attribute information of MRP in the prior art. Figure 5The diagram is a schematic diagram of the process of sending and receiving device attribute information using the UniMRP Ethernet frame type according to an embodiment of the present invention.
[0060] like Figure 4 As shown, the sending device and the receiving device (Device) do not adopt the attribute information sending and receiving process of the component. The sending device 100 in the switching network needs to send attribute information to the receiving device 200. In some embodiments, the MVRP application needs to send MVRP information. Similarly, the MSRP application and the MMRP application also need to send corresponding types of information. However, only one type of information can be sent at a time during data link transmission. When sending MVRP information, the information belonging to the MVRP protocol is encapsulated into an MRPDU through the encoding component and sent using an Ethernet frame. The Ethernet frame type of the Ethernet frame is MVRP. Other types of information cannot be sent and wait to be sent using additional Ethernet frames. When the receiving device 200 receives the Ethernet frame, it identifies that this is an Ethernet frame of the MVRP protocol through the Ethernet frame type of MVRP. The information in the MRPDU is decapsulated by the decoding component and distributed to the MVRP application for subsequent processing.
[0061] like Figure 5 As shown, it is a usage scenario in which the device uses the protocol demultiplexing component, and the sending device 100 in the switching network needs to send attribute information to the receiving device 200. In some embodiments, the MVRP application needs to send MVRP information. Similarly, the MSRP application and the MMRP application also need to send corresponding types of information. At this time, the information belonging to multiple protocols is encapsulated into an MRPDU through the protocol demultiplexing component and sent using an Ethernet frame. The Ethernet frame type of the Ethernet frame is UniMRP. When the receiving device 200 receives the Ethernet frame, it identifies that this is an Ethernet frame of a composite MRP through the Ethernet frame type of UniMRP. The information in the MRPDU is decapsulated by the protocol demultiplexing component and distributed to the corresponding MRP application for subsequent processing. In some embodiments, the protocol demultiplexing component decapsulates the information in the MRPDU and distributes it to the MVRP, MSRP, MMRP or MIRP application.
[0062] In order to explain the above transmission method more systematically, Figure 6 and Figure 7 The Ethernet frame multiplexing and demultiplexing schematic diagram is shown for explanation.
[0063] Figure 6 A schematic diagram of a process for multiplexing Ethernet frames through a protocol multiplexer component provided by an embodiment of the present invention, Figure 7A schematic diagram of a process of demultiplexing Ethernet frames by a protocol demultiplexer component is provided in an embodiment of the present invention.
[0064] like Figure 6 As shown, taking MVRP, MSRP and MMRP applications as sending devices as an example, the attribute type is marked according to the attribute information sent by the MVRP, MSRP and MMRP applications, and then the attribute is converted into information, the information is encapsulated into MRPDU, and the value of the Ethernet frame type field is marked as 0xFFFF, the destination address is marked as the UniMRP destination address, and then the Ethernet frame is sent out.
[0065] like Figure 7 As shown, to receive Figure 6 Taking the Ethernet frame sent as an example, the receiving device monitors the UniMRP destination address and determines whether the value of the Ethernet frame type field is 0xFFFF. When the value of the Ethernet frame type field is 0xFFFF, the MRPDU is decapsulated into information, the information is converted into attributes, and then the type of attribute is determined, and the attribute information of MVRP, MSRP and MMRP is sent to the corresponding MVRP, MSRP and MMRP applications respectively. When the value of the Ethernet frame type field is not 0xFFFF, the device attribute information is obtained from the MRPDU according to the Ethernet frame structure type identifier.
[0066] In actual use, in a topology network, a device node has 10 attributes that need to be propagated to the network, and it takes 11 paths to reach all R device nodes. The device node is the propagation initiation point of the attribute information, the propagation point is the number of LANs, and the R device node is the propagation receiving point of the attribute information.
[0067] Before the UniMRP Ethernet frame structure type of this application is used, it is assumed that each data transmission can only be accompanied by 2 attribute information, that is, an Ethernet frame can only contain 2 attribute data, and the D device node needs to send it 5 times. In addition to the data itself, the network traffic consumption during transmission is 42 bytes multiplied by 5 times multiplied by 11 transmission points = 2310 bytes.
[0068] After using the UniMRP Ethernet frame structure type of the present application, assuming that each transmission of data can be accompanied by 5 attribute information, that is, an Ethernet frame can only contain 5 attribute data, the D device node needs to send it twice. In addition to the data itself, the network traffic consumption during transmission is 42 bytes multiplied by 2 times multiplied by 11 transmission points = 924 bytes.
[0069] In addition, according to the requirements of the MRP upper layer protocol, the state of attribute information on the device has a life cycle. The default value of the timer of the MRP upper layer protocol is 1000 centiseconds, that is, every 1000 centiseconds, all attribute information on the device is invalidated and the above propagation process needs to be repeated. After using this solution, about 8M of network traffic can be saved per minute.
[0070] It is worth noting that in actual use, the topology network will be more complex, for example, there will be more device nodes. There will also be scenarios where multiple device nodes initiate attribute propagation at the same time, so the benefits of using the Ethernet information transmission method of the present application will be more obvious.
[0071] Figure 8 An Ethernet data sending device provided by an embodiment of the present invention includes:
[0072] A determining unit 801, configured to determine device attribute information of at least two multiple registration protocols to be sent;
[0073] An encapsulation unit 802 is used to encapsulate the device attribute information of the at least two multiple registration protocols into one MRPDU;
[0074] The sending unit 803 is used to send a data packet to the receiving device, wherein the data packet includes the MRPDU and an Ethernet frame structure type identifier, and the Ethernet frame structure type identifier is used to indicate that the MRPDU includes device attribute information of the at least two multiple registration protocols.
[0075] In some embodiments, the frame structure of the data packet includes not only a data content field and an Ethernet frame structure type, but also a destination address, an extended destination address, a redundancy field, and a check field.
[0076] Fig. 9 An Ethernet data receiving device provided by an embodiment of the present invention includes:
[0077] The receiving unit 901 is used to receive a data packet from a sending device, wherein the data packet includes an MRPDU and an Ethernet frame structure type identifier;
[0078] The decapsulation unit 902 is used to decapsulate the MRPDU according to the Ethernet frame structure type identifier to obtain the device attribute information of the at least two multiple registration protocols when the Ethernet frame structure type identifier indicates that the MRPDU includes device attribute information of at least two multiple registration protocols.
[0079] In some embodiments, the decapsulation unit 902 is further used to obtain the device attribute information from the MRPDU according to the Ethernet frame structure type identifier when the Ethernet frame structure type identifier indicates that the MRPDU only includes device attribute information of one multiple registration protocol.
[0080] In some embodiments, it further includes: a distribution unit 903;
[0081] The distribution unit 903 is configured to distribute the device attribute information of the at least two multiple registration protocols to corresponding multiple registration protocol applications after obtaining the device attribute information of the at least two multiple registration protocols.
[0082] An embodiment of the present invention provides a sending device, the device comprising: a memory, a processor;
[0083] The memory is a memory for storing computer-executable instructions; when the processor executes the computer-executable instructions, the sending device implements any one of the above Ethernet data sending methods applied to the sending device.
[0084] An embodiment of the present invention provides a receiving device, the device comprising: a memory, a processor;
[0085] The memory is a memory for storing computer-executable instructions; when the processor executes the computer-executable instructions, the sending device implements any one of the above Ethernet data receiving methods applied to the receiving device.
[0086] The present invention also provides a computer-readable medium for storing a computer program, wherein the computer program enables a computer to execute any one of the above Ethernet data sending methods applied to a sending device, or any one of the above Ethernet data receiving methods applied to a receiving device.
[0087] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0088] Each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
[0090] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiment of the present invention should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention should be based on the protection scope of the claims.
Claims
1. An Ethernet data transmission method, applied to a transmitting device, wherein the transmitting device and a receiving device are connected to each other via Ethernet, characterized in that: The method comprises: determining device attribute information of at least two multiple registration protocols to be sent; Encapsulating the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU; A data packet is sent to the receiving device, wherein the data packet includes the MRPDU and an Ethernet frame structure type identifier, wherein the Ethernet frame structure type identifier is used to indicate that the MRPDU includes device attribute information of the at least two multiple registration protocols.
2. The method according to claim 1, characterized in that: The frame structure of the data packet includes not only a data content field and an Ethernet frame structure type, but also a destination address, an extended destination address, a redundancy field and a check field.
3. An Ethernet data receiving method, applied to a receiving device, wherein the receiving device and the sending device are connected to each other via Ethernet, characterized in that: The method comprises: Receiving a data packet from the sending device, wherein the data packet includes an MRPDU and an Ethernet frame structure type identifier; When the Ethernet frame structure type identifier indicates that the MRPDU includes device attribute information of at least two multiple registration protocols, the MRPDU is decapsulated according to the Ethernet frame structure type identifier to obtain the device attribute information of the at least two multiple registration protocols.
4. The method according to claim 3, characterized in that The method further comprises: When the Ethernet frame structure type identifier indicates that the MRPDU includes only one type of device attribute information of the multiple registration protocol, the device attribute information is acquired from the MRPDU according to the Ethernet frame structure type identifier.
5. The method according to claim 3, characterized in that: After obtaining the device attribute information of the at least two multiple registration protocols, the method further includes: The device attribute information of the at least two multiple registration protocols is distributed to corresponding multiple registration protocol applications.
6. The method according to any one of claims 3 to 5, characterized in that: The frame structure of the data packet includes not only a data content field and an Ethernet frame structure type, but also a destination address, an extended destination address, a redundancy field and a check field.
7. An Ethernet data sending device, characterized in that: The device comprises: a determining unit, configured to determine device attribute information of at least two multiple registration protocols to be sent; An encapsulation unit, configured to encapsulate the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU; The sending unit is used to send a data packet to a receiving device, wherein the data packet includes the MRPDU and an Ethernet frame structure type identifier, and the Ethernet frame structure type identifier is used to indicate that the MRPDU includes device attribute information of the at least two multiple registration protocols.
8. The Ethernet data sending device according to claim 7, characterized in that: The frame structure of the data packet includes not only a data content field and an Ethernet frame structure type, but also a destination address, an extended destination address, a redundancy field and a check field.
9. An Ethernet data receiving device, characterized in that: The device comprises: A receiving unit, used to receive a data packet from a sending device, wherein the data packet includes an MRPDU and an Ethernet frame structure type identifier; The decapsulation unit is used to decapsulate the MRPDU according to the Ethernet frame structure type identifier to obtain the device attribute information of the at least two multiple registration protocols when the Ethernet frame structure type identifier indicates that the MRPDU includes device attribute information of at least two multiple registration protocols.
10. The Ethernet data receiving device according to claim 9, characterized in that: The decapsulation unit is further configured to obtain the device attribute information from the MRPDU according to the Ethernet frame structure type identifier when the Ethernet frame structure type identifier indicates that the MRPDU only includes device attribute information of one multiple registration protocol.
11. The Ethernet data receiving device according to claim 9, characterized in that: Also includes: Distribution unit; The distribution unit is used to distribute the device attribute information of the at least two multiple registration protocols to the corresponding multiple registration protocol applications after obtaining the device attribute information of the at least two multiple registration protocols.
12. The Ethernet data receiving device according to any one of claims 9 to 11, characterized in that: The frame structure of the data packet includes not only a data content field and an Ethernet frame structure type, but also a destination address, an extended destination address, a redundancy field and a check field.
13. A sending device, characterized in that: include: Memory, processor; The memory is a memory for storing computer-executable instructions; When the processor executes the computer-executable instructions, the sending device is enabled to implement the method according to any one of claims 1 to 2.
14. A receiving device, characterized in that: include: Memory, processor; The memory is a memory for storing computer-executable instructions; When the processor executes the computer-executable instructions, the receiving device is enabled to implement the method according to any one of claims 3 to 6.
15. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program enables a computer to execute the sending method according to any one of claims 1 to 2, or the receiving method according to any one of claims 3 to 6.
