[go: up one dir, main page]

CN114598422B - Ethernet data sending and receiving method, device, equipment and storage medium - Google Patents

Ethernet data sending and receiving method, device, equipment and storage medium Download PDF

Info

Publication number
CN114598422B
CN114598422B CN202210192576.7A CN202210192576A CN114598422B CN 114598422 B CN114598422 B CN 114598422B CN 202210192576 A CN202210192576 A CN 202210192576A CN 114598422 B CN114598422 B CN 114598422B
Authority
CN
China
Prior art keywords
attribute information
frame structure
mrpdu
ethernet
ethernet frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210192576.7A
Other languages
Chinese (zh)
Other versions
CN114598422A (en
Inventor
路宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Semiconductor Nanjing Co Ltd
Original Assignee
Spreadtrum Semiconductor Nanjing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Semiconductor Nanjing Co Ltd filed Critical Spreadtrum Semiconductor Nanjing Co Ltd
Priority to CN202210192576.7A priority Critical patent/CN114598422B/en
Publication of CN114598422A publication Critical patent/CN114598422A/en
Application granted granted Critical
Publication of CN114598422B publication Critical patent/CN114598422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

本发明提供了一种以太网数据发送、接收方法、装置、设备及存储介质。本发明的以太网数据发送方法包括:确定待发送的至少两种多重注册协议的设备属性信息;将所述至少两种多重注册协议的设备属性信息封装到一个MRPDU中;向所述接收设备发送数据包,所述数据包包括所述MRPDU和以太网帧结构类型标识,所述以太网帧结构类型标识用于表示所述MRPDU包括所述至少两种多重注册协议的设备属性信息。本发明的以太网数据发送方法通过将两种或多种的多重注册协议设备属性信息封装到一个MRPDU中,能够同步输送不同属性类型的信息,提升单次数据传输中的数据包能够携带的数据数量或类型,降低同等情况下数据传输的次数,降低流量消耗,并能够提升传输效率。

The present invention provides an Ethernet data sending and receiving method, apparatus, device and storage medium. The Ethernet data sending method of the present invention 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 one MRPDU; 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. The Ethernet data sending method of the present invention can synchronously transmit information of different attribute types by encapsulating two or more types of multiple registration protocol device attribute information into one MRPDU, thereby increasing the amount or type of data that can be carried by a data packet in a single data transmission, reducing the number of data transmissions under the same conditions, reducing traffic consumption, and improving transmission efficiency.

Description

Ethernet data transmitting and receiving method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method, an apparatus, a device, and a storage medium for sending and receiving ethernet data.
Background
The multiple registration protocol (Multiple Registration Protocol, MRP) is a standard defined in ieee802.1 q. The basic operation of the protocol is that in the same switching network, a certain station and a port perform attribute declaration or cancel, and the station and the port of the opposite end perform corresponding attribute registration or cancellation operation, that is, the process that the attribute passes on a logic path of the registration declaration (Declaration to Registration). The attribute details are defined by a specific MRP upper layer protocol, which includes an MRP Application (MRP Application) scenario or module, for example, virtual local area network (Virtual Local Area Network, VLAN) attributes are defined in multi-VLAN registration protocols (Multiple VLAN Registration Protocol, MVRP), medium access control (Medium Access Control, MAC) attributes are defined in multi-MAC registration protocols (Multiple MAC Registration Protocol, MMRP), and several more complex attributes are defined in multi-stream registration protocols (Multiple Stream Registration Protocol, MSRP), so that the MRP supporting device can quickly propagate its attribute information into the switching network, and can implement the function of "signaling" by using the field information contained in the attributes.
In the transmission of Attribute information, the encapsulation standard of the Data unit is firstly based on an Ethernet frame structure defined by IEEE 802.3, secondly, the Data segment (Data) is a multi-registration protocol Data unit (Multiple Registration Protocol Data Unit, MRPDU) structure defined by IEEE 802.1Q, one MRPDU contains 1-N pieces of information (Message), and finally, the structure of each piece of information is defined by various MRP upper layer protocols, wherein a plurality of attributes (Attribute) defined by specific MRP application can be contained. The encapsulation standard of the data unit refers to the conversion of the attribute data into a standard transport format.
Since the Institute of Electrical and Electronics Engineers (IEEE) of ELECTRICAL AND Electronics Engineers defines an ethernet frame type (ETHER TYPE) for each MRP upper layer protocol, each ethernet frame can only transmit attribute information of one MRP upper layer protocol when attribute data is transmitted, i.e., information in each frame can only belong to one MRP upper layer protocol. Therefore, only one type of MRP equipment attribute information can be transmitted at a time, and the problems of high transmission flow consumption and low transmission efficiency are caused.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a storage medium for transmitting and receiving Ethernet data, which can synchronously transmit information of different attribute types by packaging two or more MRP equipment attribute information into one MRPDU, improve the data quantity or type carried by a data packet in single data transmission, reduce the number of data transmission under the same condition, reduce the flow consumption, improve the transmission efficiency and solve the problems of high transmission flow consumption and low transmission efficiency in the prior art.
In a first aspect, an embodiment of the present invention provides a method for transmitting ethernet data applied to a transmitting device, where the transmitting device and a receiving device are connected to each other by an ethernet network, and the method includes: determining equipment attribute information of at least two multiple registration protocols to be transmitted; encapsulating the equipment 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 equipment, wherein the data packet comprises the MRPDU and an Ethernet frame structure type identifier, and the Ethernet frame structure type identifier is used for indicating that the MRPDU comprises equipment attribute information of the at least two multiple registration protocols.
The method applied to the Ethernet data transmission of the transmitting equipment provided by the embodiment of the invention has the beneficial effects that: the determined equipment attribute information of at least two multiple registration protocols is encapsulated into one MRPDU, and the Ethernet frame structure type identifier is identified on the transmitted data packet, so that the data packet can be identified as the MRPDU containing at least two multiple registration protocols, further the data packet containing the equipment attribute information of at least two multiple registration protocols can be encapsulated, transmitted and identified in the Ethernet, the data packet containing different MRP equipment attribute information can be synchronously transmitted, namely, the equipment attribute information defined by a plurality of different MRP upper layer protocols can be carried in one Ethernet frame, and network bandwidth can be saved.
In one possible implementation, the frame structure of the data packet includes, in addition to the data content field and the ethernet frame structure type, a destination address, an extended destination address, a redundancy field, and a check field. The beneficial effects are that: the data packet accords with the basic form of information transmission in the Ethernet by setting a destination address, an extended destination address, a redundant field and a check field in the data packet, so that the information transmission is realized.
In a second aspect, an embodiment of the present invention further provides a method for receiving ethernet data applied to a receiving device, where the receiving device and the transmitting device are connected to each other by an ethernet network, and the method includes: receiving a data packet from the sending equipment, wherein the data packet comprises an MRPDU and an Ethernet frame structure type identifier; and when the Ethernet frame structure type identifier indicates that the MRPDU comprises equipment attribute information of at least two multiple registration protocols, decapsulating the MRPDU according to the Ethernet frame structure type identifier to obtain the equipment attribute information of the at least two multiple registration protocols.
The Ethernet data receiving method applied to the receiving equipment provided by the embodiment of the invention has the beneficial effects that: and determining that the MRPDU comprises equipment attribute information of at least two multiple registration protocols through the Ethernet frame structure type identifier, and decapsulating the MRPDU to obtain MRP equipment attribute information contained in the data packet, so that the demultiplexing and reading of the data packet are convenient to realize.
In one possible implementation, the method further includes: and when the Ethernet frame structure type identifier indicates that the MRPDU only comprises equipment attribute information of one multi-registration protocol, acquiring the equipment attribute information from the MRPDU according to the Ethernet frame structure type identifier. The beneficial effects are that: this enables the packet to transmit not only information of multiple MRP attributes but also information of a single MRP attribute.
In one possible implementation, after obtaining the device attribute information of the at least two multiple registration protocols, the method further includes: and distributing the equipment attribute information of the at least two multiple registration protocols to corresponding multiple registration protocol applications. The beneficial effects are that: and distributing the obtained different MRP equipment attribute information to different MRP applications to realize reading of different kinds of information.
In one possible implementation, the frame structure of the data packet includes, in addition to the data content field and the ethernet frame structure type, a destination address, an extended destination address, a redundancy field, and a check field. The beneficial effects are that: the data packet accords with the basic form of information transmission in the Ethernet by setting a destination address, an extended destination address, a redundant field and a check field in the data packet, so that the information transmission is realized.
In a third aspect, an embodiment of the present invention further provides an ethernet data transmission apparatus, where the apparatus includes a determining unit configured to determine device attribute information of at least two multiple registration protocols to be transmitted;
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;
And the sending unit is used for sending a data packet to the receiving equipment, wherein the data packet comprises the MRPDU and an Ethernet frame structure type identifier, and the Ethernet frame structure type identifier is used for indicating that the MRPDU comprises equipment attribute information of the at least two multiple registration protocols.
In one possible implementation, the frame structure of the data packet includes, in addition to the data content field and the ethernet frame structure type, a destination address, an extended destination address, a redundancy field, and a check field.
In a fourth aspect, an embodiment of the present invention further provides an ethernet data receiving apparatus, where the apparatus includes a receiving unit, configured to receive a data packet from a transmitting device, where the data packet includes an MRPDU and an ethernet frame structure type identifier;
And the decapsulation unit is used for decapsulating the MRPDU according to the Ethernet frame structure type identifier to obtain the equipment attribute information of at least two multiple registration protocols when the Ethernet frame structure type identifier indicates that the MRPDU comprises the equipment attribute information of at least two multiple registration protocols.
In a possible implementation manner, the decapsulating unit is further configured to, when the ethernet frame structure type identifier indicates that the MRPDU includes only device attribute information of one multiple registration protocol, obtain, according to the ethernet frame structure type identifier, the device attribute information from the MRPDU.
In one possible implementation, the method further includes: a distribution unit; the distribution unit 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.
In one possible implementation, the frame structure of the data packet includes, in addition to the data content field and the ethernet frame structure type, a destination address, an extended destination address, a redundancy field, and a check field.
In a fifth aspect, an embodiment of the present invention provides a transmitting apparatus, including a processor and a memory. The memory is used for storing computer execution instructions; the computer-executable instructions, when executed by the processor, enable the transmitting device to implement the method of any one of the possible designs of the first aspect described above.
In a sixth aspect, an embodiment of the present invention provides a receiving apparatus, including a processor and a memory. The memory is used for storing computer execution instructions; the computer-executable instructions, when executed by the processor, enable the transmitting device to implement the method of any one of the possible designs of the second aspect described above.
In a seventh aspect, embodiments of the present invention further provide a computer-readable storage medium storing a computer program for causing a computer to perform the method of any one of the possible designs of the first aspect or the method of any one of the possible designs of the second aspect.
Advantageous effects concerning the above third to seventh aspects can be seen from the description in the above first or second aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a communication scenario of ethernet data transmission provided in an embodiment of the present invention;
fig. 2 is a diagram of an ethernet data sending method and a receiving method according to an embodiment of the present invention;
Fig. 3 is a diagram of an ethernet frame structure according to an embodiment of the present invention;
Fig. 4 is a schematic diagram of a device attribute information transceiving process of MRP in the prior art;
FIG. 5 is a schematic diagram illustrating a process for transceiving equipment attribute information using UniMRP Ethernet frame types according to an embodiment of the present invention;
Fig. 6 is a schematic flow chart of multiplexing ethernet frames by a protocol multiplexer component according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart of Ethernet frame demultiplexing by a protocol demultiplexer component according to an embodiment of the present invention;
fig. 8 is a diagram of an ethernet data transmitting device according to an embodiment of the present invention;
Fig. 9 is a schematic diagram of an ethernet data receiving device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application. In the description of embodiments of the application, the terminology used in the embodiments below is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two). The term "and/or" is used to describe an association relationship of associated objects, meaning that there may be three relationships; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise. The term "coupled" includes both direct and indirect connections, unless stated otherwise. The terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In embodiments of the invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Fig. 1 is a communication scenario of ethernet data transmission provided in an embodiment of the present invention, where a sending device 100 and a receiving device 200 are connected by an ethernet network, and the sending device 100 sends a data packet to the receiving device by the ethernet network, where the data packet includes a multiple registration protocol data unit 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 at least two multiple registration protocols. The transmitting device 100 and the receiving device 200 in this scenario include, but are not limited to, terminals, bridges, routers, switches, and the like.
Based on the communication scenario shown in fig. 1, fig. 2 is a schematic diagram of a method for sending and receiving ethernet data according to an embodiment of the present invention, where the sending method and the receiving method include:
s201, the transmitting device determines device attribute information of at least two multiple registration protocols to be transmitted.
S202, the sending equipment encapsulates the equipment attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU.
S203, the sending device sends a data packet to the receiving device, wherein the data packet comprises the MRPDU and an Ethernet frame structure type identifier, and the Ethernet frame structure type identifier is used for indicating that the MRPDU comprises device attribute information of the at least two multiple registration protocols.
S204, the receiving device 200 receives a data packet from the transmitting device, where the data packet includes an MRPDU and an ethernet frame structure type identifier.
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.
In some embodiments, the present invention provides an ethernet frame type: uniMRP ethernet frame type by using this type of ethernet frame type, a plurality of different MRP upper layer protocol defined device attribute information can be carried in one ethernet frame. In some embodiments, the MRP upper layer protocol includes MMRP, MVRP, MSRP, MIRP. In addition, the invention also provides a Protocol multiplexing (MRP Protocol Mux) component for processing UniMRP Ethernet frames. The device may save network bandwidth by using UniMRP ethernet frame transmission methods of ethernet frame type.
Specifically, when it is determined that the attribute information of the MRP upper layer Protocol to be transmitted is at least two, the attribute information of the two or more MRP upper layer protocols is encapsulated into one MRPDU to be transmitted through a Protocol multiplexing (MRP Protocol Mux) component, so that the purpose of transmitting the attribute information of the two or more MRP upper layer protocols at a time is achieved. And the protocol multiplexing (MRP Protocol Demux) component is used for carrying out decapsulation according to the Ethernet frame structure type identifier to obtain the attribute information of two or more MRP upper layer protocols, so that the receiving and decapsulation of the equipment attribute information of at least two multiple registration protocols are completed, and the subsequent distribution is facilitated.
In use, the Ethernet frame structure type identifies an MRPDU that enables the MRPDU to be identified as one that contains attribute information for two or more MRP upper layer protocols.
In one possible implementation, the frame structure of the data packet includes, in addition to the data content field and the ethernet frame structure type, a destination address, an extended destination address, a redundancy field, and a check field. Illustratively, as shown in fig. 3, the transmission data contains other frame header overheads in addition to the data content field and the ethernet frame structure type, referred to as per-frame overheads (perFrameOverhead, FOH). The FOH includes a destination address, an extended destination address, a redundancy field, and a check field. For 802.3 Ethernet FOH is 42 bytes, consisting essentially of an 8 byte preamble, a 14 byte Ethernet header field, a4 byte 802.1Q priority and VLAN tag field, a4 byte CRC check field, and a 12 byte intra frame gap (Iter-FRAME GAPS, IFG).
In some embodiments, uniMRP ethernet frame type field occupies 2 bytes. In some embodiments, the value is 0xFFFF (IEEE reserved field).
In some embodiments, the UniMRP destination address (UniMRP Destination Address) field occupies 6 bytes, and the value is not limited, and one of the addresses may be reserved (MRP Application Reserved) using the MRP application. In some embodiments, uniMRP destination addresses are 01-80-C2-00-00-28.
The UniMRP Ethernet frame type of the application is that the MVRP Ethernet frame, the MSRP Ethernet frame type, the MMRP Ethernet frame type and the MIRP Ethernet frame type can be combined into the UniMRP Ethernet frame type data frame for transmission, thereby reducing the use of FOH.
Furthermore, it should be noted 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 little information (such as only one information), an ethernet frame is also needed to transmit, and other MRP upper layer protocols need to send much information, and cannot multiplex the ethernet frame with little information to transmit. The Ethernet frame type provided by the scheme is as follows: uniMRP Ethernet frame types can be used for multiplexing Ethernet frames, so that the transmission efficiency of the equipment attribute information is improved.
In some embodiments, the ethernet data receiving method further comprises:
s206, when the Ethernet frame structure type identifier indicates that the MRPDU only comprises equipment attribute information of a multiple registration protocol, acquiring the equipment attribute information from the MRPDU according to the Ethernet frame structure type identifier. I.e. when the transmitted MRP device attribute information is only one, it may also be transmitted over UniMRP ethernet frame types.
In some embodiments, after obtaining the device attribute information of the at least two multiple registration protocols, the method further includes: and distributing the equipment attribute information of the at least two multiple registration protocols to corresponding multiple registration protocol applications. That is, when the obtained demultiplexed information is two or more kinds of MRP device attribute information, the demultiplexed information needs to be distributed to corresponding MRP applications for reading.
To more systematically describe the above transmission method, the following description is made with reference to the usage scenario diagrams shown in fig. 8 and 9.
Fig. 4 is a schematic diagram of a device attribute information transceiving process of MRP in the prior art, and fig. 5 is a schematic diagram of a device attribute information transceiving process using UniMRP ethernet frame type according to an embodiment of the present invention.
As shown in fig. 4, the transmitting apparatus and the receiving apparatus (Device) do not employ the attribute information transceiving process of the component, and the transmitting apparatus 100 in the switched network needs to transmit attribute information to the receiving apparatus 200. In some embodiments, the MVRP application needs to send MVRP information, and likewise, the MSRP application and the MMRP application need to send corresponding types of information. However, when transmitting MVRP information, the information of the home MVRP protocol is encapsulated in an MRPDU by an encoding (encoding) component, and is transmitted by using an ethernet frame, where the ethernet frame type of the ethernet frame is MVRP, and other types of information cannot be transmitted, and wait for transmission by using additional ethernet frames. When the receiving device 200 receives the ethernet frame, it recognizes that the ethernet frame is an ethernet frame of an MVRP protocol through the ethernet frame type for MVRP, and the decoding (decoding) component decapsulates the information in the MRPDU and distributes the information to the MVRP application for subsequent processing.
As shown in fig. 5, which is a use scenario in which a device uses a protocol demultiplexing component, a transmitting device 100 in a switched network needs to transmit attribute information to a receiving device 200. In some embodiments, the MVRP application needs to send MVRP information, and similarly, the MSRP application and the MMRP application need to send corresponding types of information, where information belonging to multiple protocols is encapsulated into one MRPDU through a protocol demultiplexing component, and sent by using one ethernet frame, where the ethernet frame type of the ethernet frame is UniMRP. When the receiving device 200 receives the ethernet frame, it recognizes that the ethernet frame is an ethernet frame of a composite MRP through the ethernet frame type UniMRP, and the protocol demultiplexing component decapsulates the information in the MRPDU and distributes the information to the corresponding MRP application for subsequent processing. In some embodiments, the protocol de-multiplexing component de-encapsulates the information in the MRPDU before distributing it to MVRP, MSRP, MMRP or MIRP applications.
To more systematically describe the above transmission method, the following description is made in connection with the ethernet frame multiplexing and demultiplexing diagrams shown in fig. 6 and 7.
Fig. 6 is a schematic flow chart of multiplexing ethernet frames by a protocol multiplexer component according to an embodiment of the present invention, and fig. 7 is a schematic flow chart of demultiplexing ethernet frames by a protocol demultiplexer component according to an embodiment of the present invention.
Taking MVRP, MSRP and MMRP application as transmitting devices as an example, as shown in fig. 6, attribute type marking is performed according to attribute information sent by MVRP, MSRP and MMRP application, then attribute is converted into information, the information is encapsulated into MRPDU, the value of the ethernet frame type field is marked as 0xFFFF, the destination address is marked as UniMRP destination address, and then the ethernet frame is sent out.
As shown in fig. 7, taking the ethernet frame sent in fig. 6 as an example, the receiving device monitors UniMRP destination addresses, determines whether the value of the ethernet frame type field is 0xFFFF, when the value of the ethernet frame type field is 0xFFFF, decapsulates the MRPDU into information, converts the information into an attribute, then determines the type of the attribute, and sends the attribute information of the MVRP, the MSRP and the MMRP to corresponding MVRP, MSRP and MMRP applications, respectively. And when the value of the Ethernet frame type field is not 0xFFFF, acquiring the equipment attribute information from the MRPDU according to the Ethernet frame structure type identification.
In practical use, in a topology network, a device node has 10 attributes that need to be propagated to the network, 11 routes to reach all R device nodes. The device nodes are transmission starting points of the attribute information, the transmission points are the number of LANs, and the R device nodes are transmission receiving points of the attribute information.
Before UniMRP ethernet frame structure types of the present application are not used, it is assumed that 2 pieces of attribute information can be attached to each piece of propagation data, that is, one ethernet frame can only contain 2 pieces of attribute data, the D device node needs to send 5 times, and the consumption of FOH in transmission is 42 bytes multiplied by 5 times multiplied by 11 transmission points=2310 bytes in total except the data itself.
After using UniMRP ethernet frame structure types of the present application, it is assumed that each propagated data can be accompanied by 5 pieces of attribute information, i.e. one ethernet frame can only contain 5 pieces of attribute data, the D device node needs to send 2 times, and the consumption of the network traffic in the transmission is 42 bytes multiplied by 2 times multiplied by 11 transmission points=924 bytes except the data itself.
In addition, according to the requirement of the MRP upper layer protocol, the state storage of the attribute information on the equipment has a life cycle, the default value of the timer of the MRP upper layer protocol is 1000 cS, namely, all the attribute information on the equipment is invalidated every 1000 cS, and the propagation process needs to be carried out again. Then about 8M of network traffic can be saved per minute after using this solution.
It should be noted that in practical use, the topology network may be more complex, for example: there are more device nodes. There may be a scenario 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 may be more obvious.
Fig. 8 is a schematic diagram of an ethernet data transmitting device according to an embodiment of the present invention, where the device includes:
a determining unit 801, configured to determine device attribute information of at least two multiple registration protocols to be transmitted;
An encapsulating unit 802, configured to encapsulate the device attribute information of the at least two multiple registration protocols into one MRPDU;
A sending unit 803, configured to send a data packet to the receiving device, where 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.
In some embodiments, the frame structure of the data packet includes, in addition to the data content field and the ethernet frame structure type, a destination address, an extended destination address, a redundancy field, and a check field.
Fig. 9 is a schematic diagram of an ethernet data receiving device according to an embodiment of the present invention, where the device includes:
a receiving unit 901, configured to receive a data packet from a transmitting device, where the data packet includes an MRPDU and an ethernet frame structure type identifier;
And a decapsulating unit 902, configured to decapsulate the MRPDU according to the 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, so as to obtain the device attribute information of the at least two multiple registration protocols.
In some embodiments, the decapsulating unit 902 is further configured to, when the ethernet frame structure type identifier indicates that the MRPDU includes only device attribute information of one multiple registration protocol, obtain the device attribute information from the MRPDU according to the ethernet frame structure type identifier.
In some embodiments, further comprising: a distribution unit 903;
The distributing 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.
The embodiment of the invention provides a transmitting device, which comprises: a memory, a processor;
The memory is used for storing computer execution instructions; when the processor executes the computer-executable instructions, the transmitting device is caused to implement any one of the above-described ethernet data transmission methods applied to the transmitting device.
The embodiment of the invention provides receiving equipment, which comprises the following components: a memory, a processor;
the memory is used for storing computer execution instructions; the processor, when executing the computer-executable instructions, causes the transmitting device to implement any of the above-described ethernet data reception methods applied to the receiving device.
The present invention also provides a computer-readable medium storing a computer program for causing a computer to execute any one of the above ethernet data transmission methods applied to a transmitting device or any one of the above ethernet data reception methods applied to a receiving device.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The functional units in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may 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 the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited to this, and any changes or substitutions within the technical scope disclosed in the embodiment of the present invention should be covered in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims (15)

1.一种以太网数据发送方法,应用于发送设备,所述发送设备和接收设备通过以太网进行网络连接,其特征在于,所述方法包括: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, wherein the method comprises: 确定待发送的至少两种多重注册协议的设备属性信息;determining device attribute information of at least two multiple registration protocols to be sent; 将所述至少两种多重注册协议的设备属性信息封装到一个多重注册协议数据单元MRPDU中;Encapsulating the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU; 向所述接收设备发送数据包,所述数据包包括所述MRPDU和以太网帧结构类型标识,所述以太网帧结构类型标识用于表示所述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.根据权利要求1所述的方法,其特征在于,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。2. The method according to claim 1 is characterized in that 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, extended destination address, redundant field and check field. 3.一种以太网数据接收方法,应用于接收设备,所述接收设备和发送设备通过以太网进行网络连接,其特征在于,所述方法包括: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, wherein the method comprises: 接收来自所述发送设备的数据包,所述数据包中包括MRPDU和以太网帧结构类型标识;Receiving a data packet from the sending device, wherein the data packet includes an MRPDU and an Ethernet frame structure type identifier; 当所述以太网帧结构类型标识表示所述MRPDU包括至少两种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,将所述MRPDU解封装,得到所述至少两种多重注册协议的设备属性信息。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.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, characterized in that the method further comprises: 当所述以太网帧结构类型标识表示所述MRPDU仅包括一种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,从所述MRPDU中获取所述设备属性信息。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.根据权利要求3所述的方法,其特征在于,得到所述至少两种多重注册协议的设备属性信息之后,还包括:5. The method according to claim 3, characterized in that after obtaining the device attribute information of the at least two multiple registration protocols, it also includes: 将所述至少两种多重注册协议的设备属性信息分发至对应的多重注册协议应用。The device attribute information of the at least two multiple registration protocols is distributed to corresponding multiple registration protocol applications. 6.根据权利要求3至5任一项所述的方法,其特征在于,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。6. The method according to any one of claims 3 to 5 is characterized in that 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, extended destination address, redundant field and check field. 7.一种以太网数据发送装置,其特征在于,所述装置包括: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; 封装单元,用于将所述至少两种多重注册协议的设备属性信息封装到一个多重注册协议数据单元MRPDU中;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; 发送单元,用于向接收设备发送数据包,所述数据包包括所述MRPDU和以太网帧结构类型标识,所述以太网帧结构类型标识用于表示所述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.根据权利要求7所述的以太网数据发送装置,其特征在于,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。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.一种以太网数据接收装置,其特征在于,所述装置包括:9. An Ethernet data receiving device, characterized in that the device comprises: 接收单元,用于接收来自发送设备的数据包,所述数据包中包括MRPDU和以太网帧结构类型标识;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; 解封装单元,用于当所述以太网帧结构类型标识表示所述MRPDU包括至少两种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,将所述MRPDU解封装,得到所述至少两种多重注册协议的设备属性信息。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.根据权利要求9所述的以太网数据接收装置,其特征在于,所述解封装单元,还用于当所述以太网帧结构类型标识表示所述MRPDU仅包括一种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,从所述MRPDU中获取所述设备属性信息。10. The Ethernet data receiving device according to claim 9 is characterized in that the decapsulation unit is also 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. 11.根据权利要求9所述的以太网数据接收装置,其特征在于,还包括:分发单元;11. The Ethernet data receiving device according to claim 9, further comprising: 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 applications after obtaining the device attribute information of the at least two multiple registration protocols. 12.根据权利要求9至11任一项所述的以太网数据接收装置,其特征在于,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。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.一种发送设备,其特征在于,包括:存储器,处理器;13. A sending device, comprising: a memory and a processor; 所述存储器用于存储计算机执行指令的存储器;当所述处理器执行所述计算机执行指令时,使所述发送设备实现权利要求1至2任一项所述的方法。The memory is a memory for storing computer-executable instructions; when the processor executes the computer-executable instructions, the sending device implements the method according to any one of claims 1 to 2. 14.一种接收设备,其特征在于,包括:存储器,处理器;14. A receiving device, comprising: a memory and a processor; 所述存储器用于存储计算机执行指令的存储器;当所述处理器执行所述计算机执行指令时,使所述接收设备实现权利要求3至6任一项所述的方法。The memory is a memory for storing computer-executable instructions; when the processor executes the computer-executable instructions, the receiving device implements the method according to any one of claims 3 to 6. 15.一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序使得计算机执行如权利要求1至2任一项所述的发送方法,或权利要求3至6任一项所述的接收方法。15. A computer-readable storage medium, characterized in that it is 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.
CN202210192576.7A 2022-02-28 2022-02-28 Ethernet data sending and receiving method, device, equipment and storage medium Active CN114598422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210192576.7A CN114598422B (en) 2022-02-28 2022-02-28 Ethernet data sending and receiving method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210192576.7A CN114598422B (en) 2022-02-28 2022-02-28 Ethernet data sending and receiving method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114598422A CN114598422A (en) 2022-06-07
CN114598422B true CN114598422B (en) 2024-11-22

Family

ID=81807414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210192576.7A Active CN114598422B (en) 2022-02-28 2022-02-28 Ethernet data sending and receiving method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114598422B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102090028A (en) * 2008-07-14 2011-06-08 艾利森电话股份有限公司 Multiple tree registration protocol

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825794B (en) * 2012-11-19 2017-07-14 华为技术有限公司 Transparent interconnection of lots of links internet data frame sending method and device
US8958344B2 (en) * 2013-02-20 2015-02-17 Telefonaktiebolaget L M Ericsson (Publ) Method and system of enhancing multiple MAC registration protocol (MMRP) for protocol internetworking
CN113992603B (en) * 2020-07-08 2025-02-28 中兴通讯股份有限公司 Resource reservation method for redundant paths, network device and storage medium
CN112601255B (en) * 2020-12-16 2023-05-26 北京银牧微电子科技有限公司 MAC frame transmitting method and device, PHY frame aggregation method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102090028A (en) * 2008-07-14 2011-06-08 艾利森电话股份有限公司 Multiple tree registration protocol

Also Published As

Publication number Publication date
CN114598422A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN112422393B (en) Method for transmitting message of extensible virtual local area network, computer equipment and readable medium
US8351352B1 (en) Methods and apparatus for RBridge hop-by-hop compression and frame aggregation
KR101472399B1 (en) Method, system and controlling bridge for obtaining port extension topology information
WO2022100554A1 (en) Method for forwarding bier message, and device and system
US20220255772A1 (en) Packet sending method, apparatus, and system
CN111371634B (en) Communication method, device and system
WO2010099759A1 (en) Transport multiplexer - mechanisms to force ethernet traffic from one domain to be switched in a different (external) domain
CN114465946B (en) Method, device and system for acquiring forwarding table item
WO2008080315A1 (en) A method, equipment and system for transmitting data
WO2009021371A1 (en) A method and a device for implementing pseudo wire emulation edge to edge
KR20180025944A (en) Method and apparatus for implementing SDN-based ARP
US20230318974A1 (en) BIER Packet Forwarding Method, Device, and System
KR101140453B1 (en) Circuit emulation over an ip interworking virtual leased line
WO2022160665A1 (en) Packet forwarding method, packet processing method, and device
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN105264837B (en) A kind of Transmission system of data message, transmission method and equipment
WO2019179161A1 (en) Data traffic processing method, device and system
CN113542112B (en) A message forwarding method and network equipment
CN114598422B (en) Ethernet data sending and receiving method, device, equipment and storage medium
CN102710510A (en) Information processing method, device and system
WO2021129023A1 (en) Message sending method, device and system
CN109218258B (en) Data packet transmission method and gateway equipment
WO2024001701A1 (en) Data processing method, apparatus and system
CN107948040A (en) Realize the system and method for ILK interface business and Ethernet interface business intercommunication
WO2023125774A1 (en) Vxlan packet transmission method, network device, and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant