[go: up one dir, main page]

CN114598422A - Ethernet data transmission and reception method, device, equipment and storage medium - Google Patents

Ethernet data transmission and reception method, device, equipment and storage medium Download PDF

Info

Publication number
CN114598422A
CN114598422A CN202210192576.7A CN202210192576A CN114598422A CN 114598422 A CN114598422 A CN 114598422A CN 202210192576 A CN202210192576 A CN 202210192576A CN 114598422 A CN114598422 A CN 114598422A
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.)
Granted
Application number
CN202210192576.7A
Other languages
Chinese (zh)
Other versions
CN114598422B (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

Images

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)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method, a device, equipment and a storage medium for sending and receiving Ethernet data. The method for transmitting the Ethernet data comprises the following steps: 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; and sending 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 the device attribute information of the at least two multiple registration protocols. The Ethernet data transmission method can synchronously transmit the information of different attribute types by encapsulating the attribute information of two or more kinds of multi-registration protocol equipment into one MRPDU, improve the data quantity or type which can be carried by a data packet in single data transmission, reduce the data transmission times under the same condition, reduce the flow consumption and improve the transmission efficiency.

Description

以太网数据发送、接收方法、装置、设备及存储介质Ethernet data transmission and reception method, device, equipment and storage medium

技术领域technical field

本发明涉及数据传输技术领域,尤其涉及一种以太网数据发送、接收方法、装置、设备及存储介质。The present invention relates to the technical field of data transmission, and in particular, to a method, apparatus, device and storage medium for sending and receiving Ethernet data.

背景技术Background technique

多重注册协议(Multiple Registration Protocol、MRP)是IEEE802.1Q中定义的标准。协议基本的操作是在同一个交换网络内,某个站点、端口进行属性声明或者撤销,对端的站点、端口执行相应的属性注册或注销操作,也就是属性在注册声明(Declaration toRegistration)这条逻辑路径上传递的过程。而属性细节是由具体的MRP上层协议定义的,MRP上层协议包括MRP应用(MRP Application)场景或模块,比如在多VLAN注册协议(Multiple VLAN Registration Protocol、MVRP)中定义了虚拟局域网(Virtual LocalArea Network、VLAN)属性,在多MAC注册协议(Multiple MAC Registration Protocol、MMRP)中定义了介质访问控制(Medium Access Control、MAC)属性,而在多流注册协议(Multiple Stream Registration Protocol、MSRP)中定义了几种更复杂的属性,支持MRP的设备可以将自身的属性信息快速传播到交换网络中,利用属性中包含的字段信息则可以实现“信令”的作用。Multiple Registration Protocol (MRP) is a standard defined in IEEE802.1Q. The basic operation of the protocol is that in the same switching network, a site or port declares or revokes attributes, and the peer site or port performs the corresponding attribute registration or deregistration operation, that is, the logic of the attribute declaration to Registration (Declaration to Registration) The process passed on the path. The attribute details are defined by the specific MRP upper-layer protocol. The MRP upper-layer protocol includes MRP Application (MRP Application) scenarios or modules. For example, the Virtual Local Area Network (Virtual Local Area Network) is defined in the Multiple VLAN Registration Protocol (MVRP). , VLAN) attributes, Medium Access Control (MAC) attributes are defined in Multiple MAC Registration Protocol (MMRP), and Medium Access Control (MAC) attributes are defined in Multiple Stream Registration Protocol (MSRP) For several more complex attributes, devices that support MRP can quickly spread their own attribute information to the switching network, and use the field information contained in the attributes to achieve the function of "signaling".

在属性信息传输时,数据单元的封装标准,首先是基于IEEE 802.3所定义的以太网帧结构,其次数据段(Data)是由IEEE 802.1Q定义的多重注册协议数据单元(MultipleRegistration Protocol Data Unit、MRPDU)结构,一个MRPDU 中包含了1~N个信息(Message),最后每个信息的结构是由各类MRP上层协议定义的,其中可包含具体的MRP应用定义的多个属性(Attribute)。数据单元的封装标准指的是属性数据转化为标准的传输格式。When the attribute information is transmitted, the encapsulation standard of the data unit is firstly based on the Ethernet frame structure defined by IEEE 802.3, and secondly the data segment (Data) is the Multiple Registration Protocol Data Unit (Multiple Registration Protocol Data Unit, MRPDU) defined by IEEE 802.1Q ) structure, an MRPDU contains 1-N messages (Message), and finally the structure of each message is defined by various MRP upper-layer protocols, which may include multiple attributes (Attribute) defined by specific MRP applications. The encapsulation standard of the data unit refers to the conversion of attribute data into a standard transmission format.

由于电气和电子工程师协会(Institute of Electrical and ElectronicsEngineers、 IEEE)为每种MRP上层协议定义了以太网帧类型(Ether Type),在属性数据传输时,每一个以太网帧只能传输一种MRP上层协议的属性信息,即每帧中的信息只能归属一种MRP上层协议。使得每次只能传输一种MRP设备属性信息,这样会造成传输流量消耗大、传输效率低的问题。Since the Institute of Electrical and Electronics Engineers (IEEE) defines the Ethernet frame type (Ether Type) for each MRP upper layer protocol, during attribute data transmission, each Ethernet frame can only transmit one MRP upper layer The attribute information of the protocol, that is, the information in each frame can only belong to one MRP upper layer protocol. Only one type of MRP device attribute information can be transmitted each time, which will cause the problems of large transmission traffic consumption and low transmission efficiency.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种以太网数据发送、接收方法、装置、设备及存储介质,通过将两种或多种的MRP设备属性信息封装到一个MRPDU中,能够同步输送不同属性类型的信息,提升单次数据传输中的数据包能够携带的数据数量或类型,降低同等情况下数据传输的次数,降低流量消耗,并能够提升传输效率,解决现有技术中传输流量消耗大、传输效率低的问题。The purpose of the present invention is to provide a method, device, device and storage medium for sending and receiving Ethernet data. By encapsulating two or more types of MRP device attribute information into one MRPDU, information of different attribute types can be transmitted synchronously, Increase the amount or type of data that can be carried by a data packet in a single data transmission, reduce the number of data transmissions under the same circumstances, reduce traffic consumption, and improve transmission efficiency, solving the problems of large transmission traffic consumption and low transmission efficiency in the prior art. question.

第一方面,本发明实施例提供一种应用于发送设备的以太网数据发送的方法,所述发送设备和接收设备通过以太网进行网络连接,该方法包括:确定待发送的至少两种多重注册协议的设备属性信息;将所述至少两种多重注册协议的设备属性信息封装到一个多重注册协议数据单元MRPDU中;向所述接收设备发送数据包,所述数据包包括所述MRPDU和以太网帧结构类型标识,所述以太网帧结构类型标识用于表示所述MRPDU包括所述至少两种多重注册协议的设备属性信息。In a first aspect, an embodiment of the present invention provides a method for sending Ethernet data applied to a sending device, where the sending device and the receiving device are connected via an Ethernet network, and the method includes: determining at least two types of multiple registrations to be sent device attribute information of the protocol; encapsulate the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU; send a data packet to the receiving device, the data packet includes the MRPDU and the Ethernet A frame structure type identifier, where the Ethernet frame structure type identifier is used to indicate that the MRPDU includes the device attribute information of the at least two multiple registration protocols.

本发明实施例提供的应用于发送设备以太网数据发送的方法的有益效果在于:通过将确定的至少两种多重注册协议的设备属性信息封装到一个MRPDU 中,并在传输的数据包上标识以太网帧结构类型标识,使得数据包能够被识别为包含至少两种多重注册协议的MRPDU,进而使得包括至少两种多重注册协议的设备属性信息的数据包能够在以太网内进行封装、传输和识别,能够同步输送包含不同MRP设备属性信息的数据包,即可以在一个以太网帧中承载多个不同的MRP上层协议定义的设备属性信息,可以节省网络带宽。The beneficial effect of the method for sending Ethernet data of a sending device provided by the embodiment of the present invention is that: by encapsulating the determined device attribute information of at least two multiple registration protocols into one MRPDU, and identifying the Ethernet on the transmitted data packet. Network frame structure type identification, so that data packets can be identified as MRPDUs containing at least two multiple registration protocols, so that data packets including device attribute information of at least two multiple registration protocols can be encapsulated, transmitted and identified in Ethernet , capable of synchronously transporting data packets containing different MRP device attribute information, that is, one Ethernet frame can carry multiple device attribute information defined by different MRP upper-layer protocols, which can save network bandwidth.

在一种可能的实现方案中,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。其有益效果在于:通过在数据包设置目的地址、扩展目的地址、冗余字段和校验字段使得数据包符合以太网中信息传输的基本形式,实现信息的传输。In a possible implementation solution, 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 effect is that the data packet conforms to the basic form of information transmission in the Ethernet by setting the destination address, the extended destination address, the redundancy field and the check field in the data packet, thereby realizing information transmission.

第二方面,本发明实施例还提供一种应用于接收设备的以太网数据接收的方法,所述接收设备和发送设备通过以太网进行网络连接,该方法包括:接收来自所述发送设备的数据包,所述数据包中包括MRPDU和以太网帧结构类型标识;当所述以太网帧结构类型标识表示所述MRPDU包括至少两种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,将所述MRPDU解封装,得到所述至少两种多重注册协议的设备属性信息。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 sending device are connected via an Ethernet network, and the method includes: receiving data from the sending device packet, 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, according to the Ethernet frame structure Type identifier, decapsulate the MRPDU to obtain the device attribute information of the at least two multiple registration protocols.

本发明实施例提供的应用于接收设备的以太网数据接收的方法的有益效果在于:通过以太网帧结构类型标识确定所述MRPDU包括至少两种多重注册协议的设备属性信息,并将所述MRPDU解封装,得到数据包包含的MRP设备属性信息,便于实现该类数据包的解复用和读取。The beneficial effect of the method for Ethernet data reception of a receiving device provided by the embodiment of the present invention is: determining that the MRPDU includes device attribute information of at least two multiple registration protocols by using the Ethernet frame structure type identifier, and converting the MRPDU Decapsulation is performed to obtain the attribute information of the MRP device contained in the data packet, so as to facilitate the demultiplexing and reading of this type of data packet.

在一种可能的实现方案中,所述方法还包括:当所述以太网帧结构类型标识表示所述MRPDU仅包括一种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,从所述MRPDU中获取所述设备属性信息。其有益效果在于:这样使得该数据包不仅能够传输多种MRP属性的信息,也能够传输单种MRP属性的信息。In a possible implementation solution, the method further includes: when the Ethernet frame structure type identifier indicates that the MRPDU only includes device attribute information of one multiple registration protocol, according to the Ethernet frame structure type identifier , and obtain the device attribute information from the MRPDU. The beneficial effect is that in this way, the data packet can not only transmit the information of multiple MRP attributes, but also can transmit the information of a single MRP attribute.

在一种可能的实现方案中,得到所述至少两种多重注册协议的设备属性信息之后,还包括:将所述至少两种多重注册协议的设备属性信息分发至对应的多重注册协议应用。其有益效果在于:将得到的不同的MRP设备属性信息分发至不同的MRP应用,实现不同种类信息的读取。In a possible implementation solution, 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 applications. The beneficial effect is that the obtained attribute information of different MRP devices is distributed to different MRP applications, so as to realize the reading of different types of information.

在一种可能的实现方案中,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。其有益效果在于:通过在数据包设置目的地址、扩展目的地址、冗余字段和校验字段使得数据包符合以太网中信息传输的基本形式,实现信息的传输。In a possible implementation solution, 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 effect is that the data packet conforms to the basic form of information transmission in the Ethernet by setting the destination address, the extended destination address, the redundancy field and the check field in the data packet, thereby realizing information transmission.

第三方面,本发明实施例还提供一种以太网数据发送装置,该装置包括确定单元,用于确定待发送的至少两种多重注册协议的设备属性信息;In a third aspect, an embodiment of the present invention further provides an Ethernet data sending device, the device includes 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 包括所述至少两种多重注册协议的设备属性信息。A sending unit, 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 the at least two Device attribute information for multiple registration protocols.

在一种可能的实现方案中,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。In a possible implementation solution, 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.

第四方面,本发明实施例还提供一种以太网数据接收装置,该装置包括接收单元,用于接收来自发送设备的数据包,所述数据包中包括MRPDU和以太网帧结构类型标识;In a fourth aspect, an embodiment of the present invention further provides an Ethernet data receiving apparatus, the apparatus includes a receiving unit configured 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解封装,得到所述至少两种多重注册协议的设备属性信息。A decapsulating unit, configured to decapsulate the MRPDU according to the Ethernet frame structure type identifier when the MRPDU includes device attribute information of at least two multiple registration protocols to obtain the Ethernet frame structure type identifier. Device attribute information of the at least two multiple registration protocols.

在一种可能的实现方案中,所述解封装单元,还用于当所述以太网帧结构类型标识表示所述MRPDU仅包括一种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,从所述MRPDU中获取所述设备属性信息。In a possible implementation solution, the decapsulation unit is further configured to, when the Ethernet frame structure type identifier indicates that the MRPDU only includes device attribute information of one multiple registration protocol, according to the Ethernet frame Structure type identifier, the device attribute information is obtained from the MRPDU.

在一种可能的实现方案中,还包括:分发单元;所述分发单元,用于得到所述至少两种多重注册协议的设备属性信息之后,将所述至少两种多重注册协议的设备属性信息分发至对应的多重注册协议应用。In a possible implementation scheme, it further includes: a distribution unit; the distribution unit is configured to, after obtaining the device attribute information of the at least two multiple registration protocols, distribute the device attribute information of the at least two multiple registration protocols Distributed to the corresponding multi-registration protocol application.

在一种可能的实现方案中,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。In a possible implementation solution, 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 sending device, including a processor and a memory. Wherein, the memory is used as a memory for storing computer-executed instructions; when the processor executes the computer-executed instructions, the sending device is enabled to implement any possible design method of the first aspect above.

第六方面,本发明实施例提供一种接收设备,包括处理器和存储器。其中,存储器用于存储计算机执行指令的存储器;当所述处理器执行所述计算机执行指令时,使得该发送设备能够实现上述第二方面的任意一种可能的设计的方法。In a sixth aspect, an embodiment of the present invention provides a receiving device, including a processor and a memory. Wherein, the memory is used as a memory for storing computer-executed instructions; when the processor executes the computer-executed instructions, the sending device is enabled to implement any possible design method of the second aspect above.

第七方面,本发明实施例还提供一种计算机可读存储介质,用于存储计算机程序,所述计算机程序使得计算机执行上述第一方面的任意一种可能的设计的方法、或执行上述第二方面的任意一种可能的设计的方法。In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, and the computer program enables a computer to execute any of the possible design methods of the first aspect above, or to execute the second method described above. Any of the possible design methods of the aspect.

关于上述第三方面至第七方面的有益效果可以参见上述第一方面或第二方面中的描述。For the beneficial effects of the third aspect to the seventh aspect, reference may be made to the description in the first aspect or the second aspect.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明实施例提供的一种以太网数据传输的通信场景;FIG. 1 is a communication scenario of Ethernet data transmission provided by an embodiment of the present invention;

图2为本发明实施例提供的一种以太网数据发送方法和接收方法;Fig. 2 is a kind of Ethernet data sending method and receiving method provided by the embodiment of the present invention;

图3为本发明实施例提供的一种以太网帧结构;3 is an Ethernet frame structure provided by an embodiment of the present invention;

图4为现有技术中MRP的设备属性信息收发过程示意图;Fig. 4 is the schematic diagram of the device attribute information sending and receiving process of MRP in the prior art;

图5为本发明实施例使用UniMRP以太网帧类型的设备属性信息收发过程示意图;5 is a schematic diagram of a process of sending and receiving device attribute information using the UniMRP Ethernet frame type according to an embodiment of the present invention;

图6为本发明实施例提供的一种通过协议多路复用器组件对以太网帧复用的流程示意图;6 is a schematic flowchart of multiplexing an Ethernet frame by a protocol multiplexer component according to an embodiment of the present invention;

图7为本发明实施例提供的一种通过协议多路解复用器组件对以太网帧解复用的流程示意图;7 is a schematic flowchart of demultiplexing an Ethernet frame by a protocol demultiplexer component according to an embodiment of the present invention;

图8为本发明实施例提供的一种以太网数据发送装置;FIG. 8 is a device for sending Ethernet data according to an embodiment of the present invention;

图9为本发明实施例提供的一种以太网数据接收装置。FIG. 9 is an Ethernet data receiving apparatus according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。其中,在本发明实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The technical solutions in the embodiments of the present invention are described below with reference to 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 of the present application. As used in the specification of this application and the appended claims, the singular expressions "a," "the," "above," "the," and "the" are intended to also include, for example, "a" or more" this expression unless the context clearly dictates otherwise. It should also be understood that, in the following embodiments of the present application, "at least one" and "one or more" refer to one or more than two (including two). The term "and/or", used to describe the association relationship of related objects, indicates that there can be three kinds of relationships; for example, A and/or B, can indicate: A alone exists, A and B exist at the same time, and B exists alone, A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship.

在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise. The term "connected" includes both direct and indirect connections unless otherwise specified. "First" and "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features.

在本发明实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplarily" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described in the embodiments of the present invention as "exemplarily" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "such as" is intended to present the related concepts in a specific manner.

图1为本发明实施例提供的一种以太网数据传输的通信场景,发送设备100 和接收设备200通过以太网进行网络连接,发送设备100通过以太网发送数据包给接收设备,该数据包包括多重注册协议数据单元MRPDU和以太网帧结构类型标识,所述以太网帧结构类型标识用于表示所述MRPDU包括至少两种多重注册协议的设备属性信息。该场景中的发送设备100和接收设备100包括但不限于终端、网桥、路由器、交换机等。FIG. 1 is a communication scenario of Ethernet data transmission provided by an embodiment of the present invention. A sending device 100 and a receiving device 200 are connected to a network through an Ethernet network, and the sending device 100 sends a data packet to the receiving device through the Ethernet. The data packet includes: The multiple registration protocol data unit MRPDU and the Ethernet frame structure type identifier, where 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 100 in this scenario include but are not limited to terminals, network bridges, routers, switches, and the like.

基于图1所述的通信场景,图2为本发明实施例提供的一种以太网数据发送方法和接收方法,所述发送方法和接收方法包括:Based on the communication scenario described in FIG. 1 , FIG. 2 is an Ethernet data sending method and a receiving method provided by an embodiment of the present invention. The sending method and the receiving method include:

S201、发送设备确定待发送的至少两种多重注册协议的设备属性信息。S201. The sending device determines the device attribute information of at least two multiple registration protocols to be sent.

S202、发送设备将所述至少两种多重注册协议的设备属性信息封装到一个多重注册协议数据单元MRPDU中。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.

S203、发送设备向所述接收设备发送数据包,所述数据包包括所述MRPDU 和以太网帧结构类型标识,所述以太网帧结构类型标识用于表示所述MRPDU 包括所述至少两种多重注册协议的设备属性信息。S203. The sending device sends a data packet to the receiving device, where the data packet includes the MRPDU and an Ethernet frame structure type identifier, where the Ethernet frame structure type identifier is used to indicate that the MRPDU includes the at least two multiplexed Device attribute information for the registration protocol.

S204,接收设备200接收来自所述发送设备的数据包,所述数据包中包括 MRPDU和以太网帧结构类型标识。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,当所述以太网帧结构类型标识表示所述MRPDU包括至少两种多重注册协议的设备属性信息时,接收设备200根据所述以太网帧结构类型标识,将所述MRPDU解封装,得到所述至少两种多重注册协议的设备属性信息。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 Describe the device attribute information of at least two multiple registration protocols.

在一些实施例中,本发明提供了一种以太网帧类型:UniMRP以太网帧类型,通过使用此类型的以太网帧类型,可以在一个以太网帧中承载多个不同的 MRP上层协议定义的设备属性信息。在一些实施例中,MRP上层协议包括 MMRP、MVRP、MSRP、MIRP。另外,本发明还提供协议多路复用(MRP Protocol Mux)组件用于对UniMRP以太网帧的处理。设备通过使用UniMRP以太网帧类型的以太网帧传输方法可以节省网络带宽。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 protocols can be carried in one Ethernet frame. Device attribute information. In some embodiments, MRP upper layer protocols include MMRP, MVRP, MSRP, MIRP. In addition, the present invention also provides a protocol multiplexing (MRP Protocol Mux) component for processing UniMRP Ethernet frames. Devices can save network bandwidth by using the Ethernet frame transmission method of the UniMRP Ethernet frame type.

具体的说,当确定需要发送的MRP上层协议的属性信息为至少两种时,通过协议多路复用(MRP Protocol Mux)组件将上述两种或多种的MRP上层协议的属性信息封装至一个MRPDU中进行发送,实现单次能够输送两种或多种的 MRP上层协议的属性信息的目的。通过协议多路解复用(MRP Protocol Demux) 组件根据以太网帧结构类型标识进行解封装,得到两种或多种的MRP上层协议的属性信息,完成至少两种多重注册协议的设备属性信息的接收和解封装,便于后续进行分发。Specifically, when it is determined that the attribute information of the MRP upper layer protocol to be sent is at least two types, the attribute information of the above two or more MRP upper layer protocols is encapsulated into one through a protocol multiplexing (MRP Protocol Mux) component. It is sent in the MRPDU to achieve the purpose of being able to transmit the attribute information of two or more MRP upper layer protocols at a time. Through the protocol multiplexing (MRP Protocol Demux) component, decapsulation is carried out according to the Ethernet frame structure type identifier, and the attribute information of two or more MRP upper layer protocols is obtained, and the device attribute information of at least two multiple registration protocols is completed. Receive and decapsulate for subsequent distribution.

在使用时,所述以太网帧结构类型标识使得该MRPDU能够被识别为包含两种或多种的MRP上层协议的属性信息的MRPDU。When used, 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.

在一种可能的实施方式中,所述数据包的帧结构除了包括数据内容字段和以太网帧结构类型,还包括目的地址、扩展目的地址、冗余字段和校验字段。示例性地,如图3所示,传输数据除了数据内容字段和以太网帧结构类型外,还包含其他帧头开销称之为每帧开销(perFrameOverhead,FOH)。所述FOH 包括目的地址、扩展目的地址、冗余字段和校验字段。对于802.3以太网FOH是 42字节,主要包括8个字节的前同步码,14个字节的以太网头部字段,4个字节的802.1Q优先级和VLAN标签字段,4个字节的CRC校验字段和12字节的内部帧间隙(Iter-frame gaps、IFG)。In a possible implementation manner, 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. Exemplarily, as shown in FIG. 3 , in addition to the data content field and the Ethernet frame structure type, the transmission data also includes other frame header overheads called 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, mainly including 8 bytes of preamble, 14 bytes of Ethernet header field, 4 bytes of 802.1Q priority and VLAN tag fields, 4 bytes CRC check field and 12-byte internal frame gaps (Iter-frame gaps, IFG).

在一些实施例中,UniMRP以太网帧类型字段占用2个字节。在一些实施例中,取值为0xFFFF(IEEE保留字段)。In some embodiments, the UniMRP Ethernet Frame Type field occupies 2 bytes. In some embodiments, the value is 0xFFFF (IEEE reserved field).

在一些实施例中,UniMRP目的地址(UniMRP Destination Address)字段占用6个字节,取值不做限制,可使用MRP应用保留(MRP Application Reserved) 地址其一即可。在一些实施例中,UniMRP目的地址为01-80-C2-00-00-28。In some embodiments, the UniMRP Destination Address field occupies 6 bytes, and the value is not limited, and one of the MRP Application Reserved (MRP Application Reserved) addresses may be used. In some embodiments, the UniMRP destination address is 01-80-C2-00-00-28.

本申请的UniMRP以太网帧类型也就是将MVRP以太网帧、MSRP以太网帧类型、MMRP以太网帧类型、MIRP以太网帧类型的数据帧可合并到UniMRP 以太网帧类型的数据帧进行发送,从而减少FOH的使用。The UniMRP Ethernet frame type of the present application is that the data frames of MVRP Ethernet frame, MSRP Ethernet frame type, MMRP Ethernet frame type, MIRP Ethernet frame type can be merged into the data frame of UniMRP Ethernet frame type for transmission, Thereby reducing the use of FOH.

此外,值得说明的是,现有技术中,不同的MRP上层协议发送信息维护不同的队列,当某个MRP上层协议需要发送的信息很少(比如只有一个)也需要一个以太网帧进行传输,而其他MRP上层协议需要发送的信息很多,无法复用信息少的以太网帧进行传输。而本方案提供的太网帧类型:UniMRP以太网帧类型,可以进行以太网帧的复用,提高了设备属性信息的传输效率。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. However, other MRP upper-layer protocols need to send a lot of information, and cannot multiplex Ethernet frames with little information for transmission. The Ethernet frame type provided by this solution: UniMRP Ethernet frame type can multiplex Ethernet frames and improve the transmission efficiency of device attribute information.

在一些实施例中,所述以太网数据接收方法还包括:In some embodiments, the Ethernet data receiving method further includes:

S206、当所述以太网帧结构类型标识表示所述MRPDU仅包括一种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,从所述MRPDU 中获取所述设备属性信息。即当发送的MRP设备属性信息仅为一种时,也可以通过UniMRP以太网帧类型进行发送。S206. When the Ethernet frame structure type identifier indicates that the MRPDU only includes device attribute information of one multiple registration protocol, acquire the device attribute information 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.

在一些实施例中,得到所述至少两种多重注册协议的设备属性信息之后,还包括:将所述至少两种多重注册协议的设备属性信息分发至对应的多重注册协议应用。即当得到的解复用的信息为两种或多种的MRP设备属性信息时,需要分发给对应的MRP应用进行读取。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 corresponding multiple registration protocol applications. That is, when the obtained demultiplexed information is two or more types of MRP device attribute information, it needs to be distributed to the corresponding MRP application for reading.

为了更加系统地对上述传输方法进行阐述,下文结合图8和图9所示的使用场景示意图进行说明。In order to describe the above transmission method more systematically, the following description is made with reference to the schematic diagrams of usage scenarios shown in FIG. 8 and FIG. 9 .

图4为现有技术中MRP的设备属性信息收发过程示意图,图5为本发明实施例使用UniMRP以太网帧类型的设备属性信息收发过程示意图。FIG. 4 is a schematic diagram of a process of sending and receiving device attribute information of MRP in the prior art, and FIG. 5 is a schematic diagram of a process of sending and receiving device attribute information using the UniMRP Ethernet frame type according to an embodiment of the present invention.

如图4所示,发送设备和接收设备(Device)未采用组件的属性信息收发过程,交换网络中发送设备100需要发送属性信息给接收设备200。在一些实施例中,MVRP应用需要发送MVRP信息,同样的,MSRP应用、MMRP应用也需要发送对应类型的信息。但数据链路传输时每次只能发送一种信息,当发送 MVRP信息时,此时归属MVRP协议的信息通过编码(encode)组件被封装到一个MRPDU中,使用一个以太网帧进行发送,以太网帧的以太网帧类型为MVRP,其他类型的信息不能发送,等待使用额外的以太网帧发送。当接收设备 200接收到以太网帧后,通过以太网帧类型为MVRP识别出这是一个MVRP协议的以太网帧,通过解码(decode)组件将MRPDU中的信息解封装后分发给 MVRP应用进行后续的处理。As shown in FIG. 4 , the sending device and the receiving device (Device) do not adopt the process of sending and receiving attribute information of components, and the sending device 100 in the switching network needs to send the attribute information to the receiving device 200 . In some embodiments, the MVRP application needs to send the MVRP information, and similarly, the MSRP application and the MMRP application also need to send the corresponding type of information. However, during data link transmission, only one type of information can be sent at a time. When sending MVRP information, the information belonging to the MVRP protocol is encapsulated into an MRPDU through an encode component, and sent using an Ethernet frame. The Ethernet frame type of the network frame is MVRP, and other types of information cannot be sent, waiting to be sent using additional Ethernet frames. After receiving the Ethernet frame, the receiving device 200 recognizes that it is an Ethernet frame of the MVRP protocol by using the Ethernet frame type as MVRP, and decapsulates the information in the MRPDU through the decoding component and distributes it to the MVRP application for follow-up. processing.

如图5所示,是设备使用了协议多路解复用组件的使用场景,交换网络中发送设备100需要发送属性信息给接收设备200。在一些实施例中,MVRP应用需要发送MVRP信息,同样的,MSRP应用、MMRP应用也需要发送对应类型的信息,此时归属多个协议的信息通过协议多路解复用组件被封装到一个 MRPDU中,使用一个以太网帧进行发送,以太网帧的以太网帧类型为UniMRP。当接收设备200接收到以太网帧后,通过以太网帧类型为UniMRP识别出这是一个复合MRP的以太网帧,通过协议多路解复用组件将MRPDU中的信息解封装后分发给对应的MRP应用进行后续的处理。在一些实施例中,协议多路解复用组件将MRPDU中的信息解封装后发分给MVRP、MSRP、MMRP或MIRP 应用。As shown in FIG. 5 , it is a usage scenario in which the device uses a 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, MVRP applications need to send MVRP information. Similarly, MSRP applications and MMRP applications also need to send corresponding types of information. At this time, information belonging to multiple protocols is encapsulated into one MRPDU through the protocol multiplexing component. , an Ethernet frame is used for sending, and the Ethernet frame type of the Ethernet frame is UniMRP. After receiving the Ethernet frame, the receiving device 200 identifies that it is a composite MRP Ethernet frame through the Ethernet frame type being UniMRP, and decapsulates the information in the MRPDU through the protocol multiplexing component and distributes it to the corresponding The MRP application performs subsequent processing. In some embodiments, the protocol demultiplexing component decapsulates the information in the MRPDU for distribution to MVRP, MSRP, MMRP or MIRP applications.

为了更加系统地对上述传输方法进行阐述,下文结合图6和图7所示的以太网帧复用和解复用示意图进行说明。In order to describe the above transmission method more systematically, the following description will be given in conjunction with the schematic diagrams of Ethernet frame multiplexing and demultiplexing shown in FIG. 6 and FIG. 7 .

图6为本发明实施例提供的一种通过协议多路复用器组件对以太网帧复用的流程示意图,图7为本发明实施例提供的一种通过协议多路解复用器组件对以太网帧解复用的流程示意图。FIG. 6 is a schematic flowchart of multiplexing Ethernet frames through a protocol multiplexer component according to an embodiment of the present invention, and FIG. 7 is a pair of Ethernet frames through a protocol multiplexer component according to an embodiment of the present invention. A schematic diagram of the flow of Ethernet frame demultiplexing.

如图6所示,以MVRP、MSRP和MMRP应用为发送设备为例,根据MVRP、 MSRP和MMRP应用发送的属性信息进行属性类型标记,之后将属性转化为信息,将信息封装至MRPDU,并标记以太网帧类型字段的值为0xFFFF,标记目的地址为UniMRP目的地址,之后将以太网帧发送出去。As shown in Figure 6, taking MVRP, MSRP, and MMRP applications as the sending device as an example, the attribute type is marked according to the attribute information sent by the MVRP, MSRP, and MMRP applications, and then the attributes are converted into information, and the information is encapsulated into MRPDUs and marked. The value of the Ethernet frame type field is 0xFFFF, marking the destination address as the UniMRP destination address, and then sending the Ethernet frame.

如图7所示,以接收图6发送的以太网帧为例,接收设备监听UniMRP目的地址,判断以太网帧类型字段的值是否为0xFFFF,当以太网帧类型字段的值是0xFFFF时,将MRPDU解封装为信息,将信息转化为属性,之后判断属性的类型,并将MVRP、MSRP和MMRP的属性信息分别发送至对应的MVRP、 MSRP和MMRP应用。当以太网帧类型字段的值不是0xFFFF时,根据以太网帧结构类型标识,从所述MRPDU中获取所述设备属性信息。As shown in Figure 7, taking the Ethernet frame sent in Figure 6 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, it will The MRPDU is decapsulated into information, the information is converted into attributes, the type of attributes is then 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 acquired from the MRPDU according to the Ethernet frame structure type identifier.

在实际使用时,在一种拓扑网络中,一设备节点有10个属性需要传播到网络,途径11个才能到达所有的R设备节点。所述设备节点即属性信息的传播发起点,所述传播点即LAN的数量,所述R设备节点即属性信息的传播接收点。In actual use, in a topology network, a device node has 10 attributes that need to be propagated to the network, and 11 routes can be used to reach all R device nodes. The device node is the originating point of propagating the attribute information, the propagating point is the number of LANs, and the R device node is the propagating and receiving point of the attribute information.

在未使用本申请的UniMRP以太网帧结构类型之前,假设每次传播数据只能附带2个属性信息,即一个以太网帧只能包含2个属性数据,D设备节点需要发送5次,传输中对网络流量的消耗除了数据本身以外,FOH的消耗一共是 42字节乘以5次乘以11个传输点=2310字节。Before the UniMRP Ethernet frame structure type of the present application is not used, it is assumed that only 2 attribute information can be attached to each transmission data, that is, an Ethernet frame can only contain 2 attribute data, and the D device node needs to send 5 times. In addition to the data itself, the consumption of network traffic is 42 bytes multiplied by 5 times multiplied by 11 transmission points = 2310 bytes in total.

在使用本申请的UniMRP以太网帧结构类型之后,假设每次传播数据能附带5个属性信息,即一个以太网帧只能包含5个属性数据,D设备节点需要发送2次,传输中对网络流量的消耗除了数据本身以外,FOH的消耗一共是42字节乘以2次乘以11个传输点=924字节。After using the UniMRP Ethernet frame structure type of the present application, it is assumed that 5 attribute information can be attached to each transmission data, that is, an Ethernet frame can only contain 5 attribute data, and the D device node needs to send twice, and the network is transmitted during transmission. In addition to the data itself, the consumption of traffic is 42 bytes multiplied by 2 times multiplied by 11 transmission points = 924 bytes in total.

此外,根据MRP上层协议的要求,属性信息在设备上的状态保存是有生命周期的,MRP上层协议的定时器默认值为1000厘秒,即每隔1000厘秒设备上所有属性信息作废,需要重新进行上述传播过程。那么在使用本方案之后,每分钟可以节省网络流量约8M。In addition, according to the requirements of the MRP upper-layer protocol, the state of the 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, all attribute information on the device is invalid every 1000 centiseconds. Repeat the above propagation process. Then after using this solution, about 8M of network traffic can be saved per minute.

值得说明的是,在实际使用中,拓扑网络会更复杂,比如:设备节点更多。也会存在多个设备节点同时发起属性传播的场景,因此使用本申请的以太网信息传输方法的收益会更明显。It is worth noting that, in actual use, the topology network will be more complex, for example, there are more device nodes. There may also be scenarios in which 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.

图8为本发明实施例提供的一种以太网数据发送装置,所述装置包括:FIG. 8 is a device for sending Ethernet data according to an embodiment of the present invention, and the device includes:

确定单元801,用于确定待发送的至少两种多重注册协议的设备属性信息;A determination unit 801, configured to determine the device attribute information of at least two multiple registration protocols to be sent;

封装单元802,用于将所述至少两种多重注册协议的设备属性信息封装到一个MRPDU中;an encapsulation unit 802, configured to encapsulate the device attribute information of the at least two multiple registration protocols into one MRPDU;

发送单元803,用于向所述接收设备发送数据包,所述数据包包括所述 MRPDU和以太网帧结构类型标识,所述以太网帧结构类型标识用于表示所述 MRPDU包括所述至少两种多重注册协议的设备属性信息。The sending unit 803 is 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 the at least two Device attribute information for 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.

图9为本发明实施例提供的一种以太网数据接收装置,所述装置包括:FIG. 9 is a device for receiving Ethernet data according to an embodiment of the present invention, and the device includes:

接收单元901,用于接收来自发送设备的数据包,所述数据包中包括MRPDU 和以太网帧结构类型标识;a receiving unit 901, configured to receive a data packet from the sending device, the data packet includes an MRPDU and an Ethernet frame structure type identifier;

解封装单元902,用于当所述以太网帧结构类型标识表示所述MRPDU包括至少两种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,将所述MRPDU解封装,得到所述至少两种多重注册协议的设备属性信息。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, Obtain the device attribute information of the at least two multiple registration protocols.

在一些实施例中,所述解封装单元902,还用于当所述以太网帧结构类型标识表示所述MRPDU仅包括一种多重注册协议的设备属性信息时,根据所述以太网帧结构类型标识,从所述MRPDU中获取所述设备属性信息。In some embodiments, the decapsulation unit 902 is further configured to, when the Ethernet frame structure type identifier indicates that the MRPDU only includes device attribute information of one multiple registration protocol, according to the Ethernet frame structure type The device attribute information is obtained from the MRPDU.

在一些实施例中,还包括:分发单元903;In some embodiments, it further includes: a distribution unit 903;

所述分发单元903,用于得到所述至少两种多重注册协议的设备属性信息之后,将所述至少两种多重注册协议的设备属性信息分发至对应的多重注册协议应用。The distribution unit 903 is configured 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.

本发明实施例提供一种发送设备,所述设备包括:存储器,处理器;An embodiment of the present invention provides a sending device, where the device includes: a memory, and a processor;

所述存储器用于存储计算机执行指令的存储器;当所述处理器执行所述计算机执行指令时,使所述发送设备实现上述任一项应用于发送设备的以太网数据发送方法。The memory is used for storing computer-executed instructions; when the processor executes the computer-executed instructions, the sending device is made to implement any one of the foregoing Ethernet data sending methods applied to the sending device.

本发明实施例提供一种接收设备,所述设备包括:存储器,处理器;An embodiment of the present invention provides a receiving device, where the device includes: a memory and a processor;

所述存储器用于存储计算机执行指令的存储器;当所述处理器执行所述计算机执行指令时,使所述发送设备实现上述任一项应用于接收设备的以太网数据接收方法。The memory is a memory for storing computer-executed instructions; when the processor executes the computer-executed instructions, the sending device is made to implement any one of the foregoing Ethernet data receiving methods applied to a receiving device.

本发明还提供了一种计算机可读介质,用于存储计算机程序,所述计算机程序使得计算机执行上述任一项应用于发送设备的以太网数据发送方法、或上述任一项应用于接收设备的以太网数据接收方法。The present invention also provides a computer-readable medium for storing a computer program, the computer program causing the computer to execute any one of the above-mentioned Ethernet data sending methods applied to a sending device, or any of the above-mentioned methods applied to a receiving device. Ethernet data reception method.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.

在本发明实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each embodiment of the embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention are essentially or contribute to the prior art, or all or part of the technical solutions may be embodied in the form of software products, and the computer software products are stored in a storage The medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

以上所述,仅为本发明实施例的具体实施方式,但本发明实施例的保护范围并不局限于此,任何在本发明实施例揭露的技术范围内的变化或替换,都应涵盖在本发明实施例的保护范围之内。因此,本发明实施例的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited to this, and any changes or substitutions within the technical scope disclosed in the embodiments of the present invention shall be covered by the present invention. within the protection scope of the embodiments of the invention. Therefore, the protection scope of the embodiments of the present invention should be subject to the protection scope of the claims.

Claims (15)

1. An ethernet data transmission method applied to a transmitting device, where the transmitting device and a receiving device are connected to each other via an ethernet network, the method comprising:
determining device attribute information of at least two multi-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, 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 the device attribute information of the at least two multiple registration protocols.
2. The method of claim 1, wherein the frame structure of the data packet includes a destination address, an extended destination address, a redundancy field, and a check field in addition to a data content field and an ethernet frame structure type.
3. An ethernet data receiving method applied to a receiving device, wherein the receiving device and a sending device are connected via an ethernet network, the method comprising:
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 the 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.
4. The method of claim 3, further comprising:
and when the Ethernet frame structure type identifier indicates that the MRPDU only comprises the equipment attribute information of one multi-registration protocol, acquiring the equipment attribute information from the MRPDU according to the Ethernet frame structure type identifier.
5. The method of claim 3, wherein obtaining the device attribute information of the at least two multiple registration protocols further comprises:
and distributing the device attribute information of the at least two multi-registration protocols to corresponding multi-registration protocol applications.
6. A method according to any one of claims 3 to 5, characterized in that the frame structure of the data packet comprises, in addition to a data content field and an Ethernet frame structure type, a destination address, an extended destination address, a redundancy field and a check field.
7. An ethernet data transmission apparatus, characterized in that the apparatus comprises:
a determining unit, configured to determine device attribute information of at least two multiple registration protocols to be sent;
an encapsulating unit, configured to encapsulate the device attribute information of the at least two multiple registration protocols into a multiple registration protocol data unit MRPDU;
a sending unit, 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 the device attribute information of the at least two multiple registration protocols.
8. An ethernet data transmission apparatus according to claim 7, wherein said frame structure of said data packet comprises, in addition to a data content field and an ethernet frame structure type, a destination address, an extended destination address, a redundancy field and a check field.
9. An ethernet data receiving apparatus, the apparatus comprising:
a receiving unit, configured to receive a data packet from a sending device, where the data packet includes an MRPDU and an ethernet frame structure type identifier;
and the decapsulating unit is used for 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 when the Ethernet frame structure type identifier indicates that the MRPDU includes the device attribute information of the at least two multiple registration protocols.
10. The ethernet data receiving apparatus according to claim 9, wherein the decapsulating unit is further configured to, when the ethernet frame structure type identifier indicates that the MRPDU only includes the device attribute information of one multi-registration protocol, obtain the device attribute information from the MRPDU according to the ethernet frame structure type identifier.
11. An ethernet data receiving apparatus according to claim 9, further comprising: 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.
12. An ethernet data receiving device according to any of the claims 9 to 11, wherein the frame structure of said data packet comprises, in addition to a data content field and an ethernet frame structure type, a destination address, an extended destination address, a redundancy field and a check field.
13. A transmitting device, comprising: a memory, a processor;
the memory is used for storing computer execution instructions; the computer executable instructions, when executed by the processor, cause the sending device to implement the method of any of claims 1 to 2.
14. A receiving device, comprising: a memory, a processor;
the memory is used for storing computer execution instructions; the computer executable instructions, when executed by the processor, cause the receiving device to implement the method of any of claims 3 to 6.
15. A computer-readable storage medium for storing a computer program which causes a computer to execute the transmission method according to any one of claims 1 to 2 or the reception 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 true CN114598422A (en) 2022-06-07
CN114598422B 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 (5)

* 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
WO2014075421A1 (en) * 2012-11-19 2014-05-22 华为技术有限公司 Method and apparatus for sending multi-link transparent interconnected data frame
US20140233429A1 (en) * 2013-02-20 2014-08-21 Telefonaktiebolaget L M Ericsson (Publ) Method and system of enhancing multiple mac registration protocol (mmrp) for protocol internetworking
CN112601255A (en) * 2020-12-16 2021-04-02 北京银牧微电子科技有限公司 MAC frame sending method and device and PHY frame aggregation method and device
WO2022007828A1 (en) * 2020-07-08 2022-01-13 中兴通讯股份有限公司 Redundant path resource reservation method, network device, and storage medium

Patent Citations (5)

* 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
WO2014075421A1 (en) * 2012-11-19 2014-05-22 华为技术有限公司 Method and apparatus for sending multi-link transparent interconnected data frame
US20140233429A1 (en) * 2013-02-20 2014-08-21 Telefonaktiebolaget L M Ericsson (Publ) Method and system of enhancing multiple mac registration protocol (mmrp) for protocol internetworking
WO2022007828A1 (en) * 2020-07-08 2022-01-13 中兴通讯股份有限公司 Redundant path resource reservation method, network device, and storage medium
CN112601255A (en) * 2020-12-16 2021-04-02 北京银牧微电子科技有限公司 MAC frame sending method and device and PHY frame aggregation method and device

Also Published As

Publication number Publication date
CN114598422B (en) 2024-11-22

Similar Documents

Publication Publication Date Title
CN108293022B (en) Method, device and system for transmitting message
US8351352B1 (en) Methods and apparatus for RBridge hop-by-hop compression and frame aggregation
US20230283554A1 (en) BIER Packet Forwarding Method, Device, and System
CN113132229B (en) Segment identifier determination method and device
WO2019019906A1 (en) Communication method and device, and storage medium
CN112583711B (en) Message processing method and device
CN111371634B (en) Communication method, device and system
CN114465946B (en) Method, device and system for acquiring forwarding table item
CN114826918B (en) A message forwarding method, message processing method and device
JP6121548B2 (en) Method, routing bridge, and system for transmitting packets
WO2008080315A1 (en) A method, equipment and system for transmitting data
CN101499951B (en) Tunnel configuration method, virtual access node, virtual edge node and system
CN113497767A (en) Method and device for transmitting data, computing equipment and storage medium
WO2021129023A1 (en) Message sending method, device and system
CN105264837B (en) A data message transmission system, transmission method and device
CN102932228B (en) The communication means of TRILL network and device, system
WO2023046006A1 (en) Network transmission method and device
CN103580979A (en) Logic channel establishing method and system, edge virtual bridging station and bridges
CN116418628A (en) A VXLAN message transmission method, network equipment and system
CN114629851A (en) Service message sending method and equipment
CN114598422A (en) Ethernet data transmission and reception method, device, equipment and storage medium
WO2022012073A1 (en) Message forwarding method, device and system
CN113542112A (en) A message forwarding method and network device
WO2022267500A1 (en) Method and apparatus for processing multicast message
CN102480412A (en) Method and system for realizing S-channel establishment

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