[go: up one dir, main page]

WO2008003218A1 - Method, apparatus and system for information transmitting between devices in ethernet - Google Patents

Method, apparatus and system for information transmitting between devices in ethernet Download PDF

Info

Publication number
WO2008003218A1
WO2008003218A1 PCT/CN2007/001783 CN2007001783W WO2008003218A1 WO 2008003218 A1 WO2008003218 A1 WO 2008003218A1 CN 2007001783 W CN2007001783 W CN 2007001783W WO 2008003218 A1 WO2008003218 A1 WO 2008003218A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
data frame
transmission indication
transmission
association information
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.)
Ceased
Application number
PCT/CN2007/001783
Other languages
French (fr)
Chinese (zh)
Inventor
Yikang Lei
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2008003218A1 publication Critical patent/WO2008003218A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/35Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to an Ethernet information transmission technology, and in particular, to an information transmission method, apparatus, and system between devices in an Ethernet.
  • Ethernet information transmission data frames need to be transmitted from one device to another.
  • transmitting the data content itself it is necessary to carry some relevant control information or information processed by the previous device.
  • the general networking structure firstly decomposes the traffic of the backbone link into a granularity suitable for the processing of the background device host through the pre-device, and then forwards it to the background device for data analysis and data recording.
  • Processing as shown in Figure 1, Figure 2.
  • the front-end devices are now more and more powerful, and the applications they support are increasingly rich and diverse, such as the ability to de-tag and hash the multi-protocol label switching (MPLS) data frames, and the network protocol version 6- 4 (IP6to4) technology to tunnel forwarding, etc.
  • MPLS multi-protocol label switching
  • IP6to4 network protocol version 6- 4
  • TCAM enters the square control list (ACL) to find the match, uses the content search chip to perform the full name and Chinese search query, etc.
  • ACL square control list
  • These special hardware are often not available in the background device, in order to make full use of the processing power of the front device, If the background device can obtain the pre-processing result, it can greatly reduce the processing pressure, that is, together with the pre-device, as a whole solution to analyze and process the data frame. This also requires the front-end device to pass the processing result to the background device in some way.
  • the embodiments of the present invention mainly provide a method, device and system for transmitting information between devices in an Ethernet (Ethernet), which can transmit information associated with a data frame payload between devices.
  • Ethernet Ethernet
  • an embodiment of the present invention provides a method for transmitting information between devices in an Ethernet, the method comprising the steps of:
  • the source medium access control MAC address field of the data frame encapsulates a transmission indication of the association information; the association information is associated with the payload of the data frame;
  • An embodiment of the present invention provides another method for transmitting information between devices in an Ethernet, and the method includes the following steps:
  • the association information has an association relationship with a payload of the data frame;
  • An embodiment of the present invention provides an information transmission apparatus in an Ethernet, including:
  • An encapsulating module configured to encapsulate, in a MAC address field of the data frame, a transmission indication of the association information; the association information is associated with a payload of the data frame;
  • a sending module configured to send the association information according to the transmission indication.
  • An embodiment of the present invention further provides an information transmission apparatus in another Ethernet, including: a receiving module, configured to receive a data frame;
  • a decapsulation module configured to parse the transmission indication of the association information from the source MAC address field of the received data frame, and obtain the association information according to the transmission indication; the association information has an association relationship with the payload of the data frame.
  • An embodiment of the present invention further provides an information transmission system in an Ethernet, including:
  • a first device configured to encapsulate, in a source MAC address field of the data frame, a transmission indication of the association information, and send the association information according to the transmission indication;
  • the association information has an association relationship with a payload of the data frame;
  • a second device configured to parse the transmission indication of the association information in the source MAC address field of the received data frame, and obtain the association information according to the transmission indication.
  • the embodiment of the present invention may carry an association information transmission indication by using a source MAC address of the data frame, and send or receive the association information according to the transmission indication. In this way, the receiving end can obtain the associated information of a certain data frame payload according to the transmission indication.
  • the embodiments of the present invention can be used to transmit various information related to a data frame payload. In most cases, the amount of information that can be carried by an Ethernet data frame can be increased, and the embodiment of the present invention does not substantially conflict with other protocols.
  • FIG. 1 is a schematic diagram of a network connection between Ethernet devices transmitting data frames
  • FIG. 2 is a schematic diagram of another network connection between Ethernet devices transmitting data frames
  • FIG. 3 is a flowchart of an embodiment of an information transmission method between devices in an Ethernet according to the present invention
  • FIG. 4 is a schematic structural diagram of an embodiment of an information transmission system in an Ethernet according to the present invention.
  • the transmission indication of the associated information is carried in the source MAC address field of the data frame for transmission.
  • the first device and the second device in the embodiment of the present invention refer to a device having a function of transmitting and receiving an Ethernet data frame, such as a switch or a router, and the first device may encapsulate the transmission indication into a data frame source MAC address field, After receiving the device, the second device can read the transmission indication.
  • the first device and the second device may be directly connected, or may be indirectly connected through other network devices, and the two devices are connected at the link layer.
  • FIG. 3 is a flowchart of an embodiment of an information transmission method between devices in an Ethernet according to the present invention, which includes the following steps:
  • step S11 is performed to encapsulate the information about the information that needs to be sent into the source MAC address field of the data frame, and the source MAC address field no longer carries the source MAC address.
  • the information that needs to be sent is the associated information, which is associated with the payload of a certain data frame, and the related information includes the transmission indication of the associated information.
  • a possible processing manner in this embodiment is: the information related to the processing of the data in the first device is also encapsulated into the source MAC address field, and the payload field portion of the data frame still encapsulates the data processed by the first device. .
  • the prior art is: the data processed by the first device is encapsulated in the payload field portion of the data frame, and the source MAC address field encapsulates the MAC address of the source device. Therefore, in this embodiment, an Ethernet data frame can simultaneously contain the processed result of the data, and the specific processing type, process, parameters, and the like that the data passes through.
  • the source MAC address field The content that can be carried can be various.
  • the pre-processing result of the first device may be carried, and the first device receives the original port of the data frame, and even the data that needs to be carried in the data frame payload field.
  • the other specific information carried in the source MAC address field is not related to the focus of the embodiment of the present invention, and is not described here.
  • the information about the information that the first device actually needs to be sent is the content that is actually encapsulated into the source MAC address field, and is related to the information that the first device actually needs to send, and the related information may directly include the information that needs to be sent, but is not limited thereto. . Since the source MAC address field has only 48 bits of capacity and needs to encapsulate the transmission indication, when the information that needs to be sent is too much and exceeds the capacity limit, it cannot be directly sent. In this case, the information that needs to be sent can be The other data frame is sent separately, or is sent in the manner of establishing an extended header at the head or the tail of the data frame, and the source MAC address field indicates the transmission mode and/or its serial number of the information actually needed to be transmitted. Relevant information to correlate the information that actually needs to be sent with the data frame payload portion.
  • the embodiments of the present invention are not limited to carrying only IP packets, but can carry all data frames transmitted based on Ethernet, due to technologies such as ATMoE (Asynchronous Transfer Mode based on Ethernet).
  • ATMoE Asynchronous Transfer Mode based on Ethernet
  • the first device sends the encapsulated data frame, and the source MAC address field of the data frame carries related information that needs to be sent.
  • the related information may contain the information itself that needs to be sent, because the number of bits in the source MAC address field is limited or other reasons, and the transmission indication may be the transmission mode, serial number, etc. of the information that needs to be sent.
  • the first device is, for example, a front device in the background art.
  • the second device receives the encapsulated data frame, and the data frame transmission and reception technologies are well known to those skilled in the art, and therefore are not described herein again.
  • the second device is, for example, a background device in the background art, and has the capability of receiving data frames.
  • step S14 the second device obtains information about the information that the device actually needs to send from the source MAC address field of the received Ethernet data frame, parses the transmission indication therefrom, and obtains the actual transmission according to the transmission indication. information.
  • the second device can obtain the information that needs to be actually transmitted according to the related information.
  • the content of the source MAC address field encapsulated into the data frame according to step S11 is different: when the related information of the package includes the information itself that the first device actually needs to send, the content of the field is read to obtain the actual needs of the first device.
  • the information sent; when the information that the first device actually needs to send is too long or for other reasons, the information that the first device actually needs to send is not encapsulated into the data frame source MAC address field, the second device according to the transmission indication Differently, the header is extended from the header or the tail of the data frame, or the information actually needed to be transmitted by the first device is obtained from other associated data frames.
  • the source of the data frame is automatically learned.
  • the MAC address is recorded in the MAC address entry, and the source MAC address field in the data frame of the embodiment of the present invention no longer carries the source MAC address and instead carries the information that the first device actually needs to send.
  • the first position of the contents of the source MAC address field is 1. After the first bit of the content of the source MAC address field is set to 1, the data frame is judged by the switch as a multicast or broadcast frame. In addition, the length of the associated information and the length of the data frame can be used to determine the data frame and its associated information.
  • the transmission mode, and the corresponding transmission indication is encapsulated in the source MAC address field. At this time, the transmission indication needs to be distinguished by a certain bit, so that different data frames can transmit related information in different manners.
  • three bits are reserved in the highest byte to indicate the type of the transmission indication.
  • the following is an example of the control information of the data frame payload, and the source MAC address field is specifically described as follows: 000 Reserved;
  • the data frame source MAC address field directly carries the control information that the first device actually needs to send, for example, carried in the lower 5 bytes of the source MAC address field;
  • 010 indicates that the source MAC address field of the data frame does not carry control information, and a dedicated extension header exists in the data frame header to carry the control information that the first device actually needs to send.
  • the format definition of the extension header can be determined according to actual needs, for example, the first byte can be used to define version number information and length information;
  • 011 indicates that the source MAC address field of the data frame does not carry control information, and a dedicated extension header exists at the end of the data frame to carry control information that the first device actually needs to send.
  • the format definition of the extension header can be determined according to actual needs, for example, the first byte can be used to define the version number information and the length. Degree information
  • the transmission indication 100 indicates that the frame is a control information frame, that is, the frame is loaded with information actually needed to be sent, and the transmission indication further includes a sequence number that can associate the information actually transmitted by the frame with a certain payload information frame.
  • the serial number can be placed in the lower 32 bits of the source MAC address;
  • the 101 indicates that the source MAC address field of the data frame does not carry control information, but carries the sequence number, and the information that the first device actually needs to send is separately sent in another data frame, and the other data frame is controlled by the transmission indication type 100.
  • Information frame and has the same serial number.
  • the data frame is a payload information frame.
  • the source MAC address field of the data frame includes a sequence number that can associate the control information frame with the payload information frame. The sequence number can be placed in a field of 32 bits lower than the source MAC address.
  • the transmission control information is encapsulated in the 100 mode, and the serial number is filled in the source MAC address field.
  • the transmission data information is encapsulated in the 101 mode, and the serial number is filled in the source MAC address information.
  • the data frame format of 001 can be used, and the packet format is not extended. In this case, the impact on the application and the device is minimal. Interest transfer and processing are also most efficient, and the second device can read control information directly from the source MAC address field of the received data frame.
  • the above also defines two single packet extension modes and one multi-packet extension mode.
  • the single-packet extension mode is mainly used when no fragmentation is required, that is, when the length of the extended control information and the original data frame length do not exceed the Ethernet MTU (maximum transmission unit), the control information and the payload can be carried in a single packet.
  • the embodiment of the present invention uses a method of separately transmitting the control information and the payload information to solve the fragmentation problem of the non-IP packet.
  • the second device can read the control information from the head or the tail of the data frame; when the second device receives the data frame in the format of 100 or 101, Indicates that the frame is a control information frame or a payload information frame, and the second device reads the sequence number from the source MAC address field of the frame, and associates the frame with the payload information frame or the control information frame having the same sequence number by using the sequence number. Get up to get the associated control information and load information.
  • an embodiment of the present invention further provides an information transmission system between devices in an Ethernet, including a first device 410 and a second device 420.
  • the first device 410 is configured to carry, in the source media access control MAC address field of the data frame, a transmission indication of the information that needs to be sent, and send, according to the transmission indication, the information that needs to be sent in association with the data frame;
  • the second device 420 is configured to receive the data frame, and read the transmission indication from the source media access control MAC address field of the data frame, and obtain the association information according to the transmission indication.
  • the first and second devices are directly connected or connected through other network devices, and are connected at the link layer.
  • the first device 410 includes a package module 412 and a sending module 413, where the encapsulating module 412 is configured to encapsulate, in a source media access control MAC address field of the data frame, a transmission indication that actually needs to send information, where the sending module 413 is used.
  • the information that needs to be sent is sent according to the transmission indication.
  • the first device 410 may further include a transmission indication module 411, determining the transmission indication according to the association information and the length of the data frame, and outputting the transmission indication to the encapsulation module 412.
  • the transmission indication is the first type, indicating that the association information is in the source MAC address field in the data frame, where the first threshold is less than the length of the source MAC address field;
  • the transmission indication is determined to be the second type or the third type, respectively indicating the header extension header or the tail extension header of the associated information in the data frame, wherein the second wide Value Not exceeding the MTU of the Ethernet;
  • the transmission indication is the fourth type and specifying the sequence number, indicating that the association information is sent in the control information frame having the same sequence number
  • the control information frame is loaded with associated information.
  • the second device 420 includes a receiving module 422 and a decapsulating module 421, where the receiving module 422 is configured to receive a data frame sent by the first device 410, and the decapsulating module 421 is configured to receive the data frame received by the receiving module 422. Decapsulation, parsing the transmission indication of the associated information from the source MAC address field of the data frame, to transmit the information actually required to be transmitted by the indication.
  • the association information is parsed in the source MAC address field of the received data frame; when the transmission indication is the second type, the association information is parsed in the header extension header of the received t data frame;
  • the extension header parses the association information at the tail of the received data frame;
  • the transmission indication is the fourth type, the sequence number is obtained in the source MAC address field of the received data frame, and the reception transmission indication is A frame having the same sequence number is searched for in the five types of control information frames, and the payload of the control information frame is associated information.
  • the encapsulating module 412 may also encapsulate the processing related information of the data in the source device into the source MAC address field, and the payload field portion of the data frame still encapsulates the data processed by the first device. . Therefore, in this embodiment, an Ethernet data frame can simultaneously contain the processed result of the data, and the specific processing type, process, parameters and the like through which the data passes. In fact, the content carried by the source MAC address field may be various. In addition to the foregoing processing information, the pre-processing result of the first device may be carried, and the first device receives the original port of the data frame, and even the data frame payload field. The data that needs to be carried. The other specific information carried in the source MAC address field is not related to the focus of the embodiment of the present invention, and is not described here.
  • the information about the information that the first device actually needs to send is the content that the encapsulating module 412 actually encapsulates into the source MAC address field, which is related to the information that the first device actually needs to send, but does not necessarily include the information that the first device actually needs to send.
  • the related information may directly include information actually needed to be transmitted, but is not limited thereto. Since the source MAC address field has only 48 bits of capacity and needs to encapsulate the transmission indication, when the actual information needs to be sent too much and exceeds a certain capacity limit, it cannot be directly sent. In this case, the information that needs to be sent can be actually sent.
  • the information so that the decapsulation module 421 decapsulates the data frame, can associate the information that needs to be sent with the data frame payload portion.
  • the transmission mode of the data frame and its associated information may be determined according to the length of the associated information and the length of the data frame, and the corresponding transmission indication is encapsulated in the source MAC address field.
  • the transmission indication can be distinguished by a certain bit, so that different data frames can transmit related information in different manners.
  • the device automatically learns the source MAC address of the data frame and records the MAC address entry, and the source MAC address in the data frame of the information transmission system between the devices in the Ethernet of the present invention is required for the device to correctly forward the data frame.
  • the address field no longer carries the source MAC address and instead carries the information about the information that the first device actually needs to send. Therefore, in order to prevent the switch from learning as the source MAC address, it overlaps with the real source MAC address, causing the switch to learn the source MAC address error, and also avoiding the switch to learn the MAC address every time a switch receives a data frame.
  • the entry is not enough.
  • the first position of the content of the source MAC address field in the frame may be 1 when the data frame is transmitted. After the first bit of the content of the source MAC address field is set to 1, the data frame is judged by the switch as a multicast or broadcast frame, and the source MAC address is not learned and the address is recorded into the MAC address entry.
  • the information transmission method, device and system between devices in the Ethernet may carry the transmission indication of the associated information through the source MAC address of the data frame, and send or receive the associated information according to the transmission indication.
  • the sum of the associated information and the original data frame length does not exceed the MTU, and the payload and associated information can be transmitted in the data frame at the same time, thereby improving the Ethernet data frame.
  • the amount of information that can be carried, and the embodiment of the present invention does not substantially conflict with other protocols.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for information transmitting between devices in Ethernet comprises steps of: encapsulating transmitting indication of relevant information into source MAC address segment of data frame; the relevant information relating to payload of the data frame; sending the relevant information according to the transmitting indication. An apparatus and system for information transmitting are also provided. This invention enables sending and receiving relevant information of payload of the data frame according to the transmitting indication between two devices, can be used for transmitting various information relating to payload of data frame, and increases information amount carried by Ethernet data frame in most cases.

Description

一种以太网中设备间的信息传输方法、 装置及系统  Information transmission method, device and system between devices in Ethernet

本申请要求于 2006 年 6 月 30 日提交中国专利局、 申请号为 200610061442.2、 发明名称为"一种以太网中设备间的信息传输方法及系统"的 中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200610061442.2, entitled "Information Transmission Method and System between Devices in Ethernet", which was submitted to the Chinese Patent Office on June 30, 2006. The citations are incorporated herein by reference.

技术械 Technical equipment

本发明涉及以太网信息传输技术,尤其涉及一种以太网中设备间的信息传 输方法、 装置及系统。  The present invention relates to an Ethernet information transmission technology, and in particular, to an information transmission method, apparatus, and system between devices in an Ethernet.

背景技术 Background technique

在以太网信息传输中,数据帧需要从一个设备传输到另外一个设备,在传 输数据内容本身的同时往往需要携带一些相关的控制信息或者前一设备对数 据进行处理的信息。  In Ethernet information transmission, data frames need to be transmitted from one device to another. When transmitting the data content itself, it is necessary to carry some relevant control information or information processed by the previous device.

以对网絡中的数据进行分析为例,一般的组网结构是首先通过前置设备将 骨干链路的流量分解成适合后台设备主机处理的粒度,然后转发给进行数据分 析与数据记录的后台设备处理, 如图 1、 图 2所示。 前置设备目前功能越来越 强大,其所支持的应用也日益丰富多样, 比如能够对多协议标签交换(MPLS ) 数据帧进行去标签后哈希(hash )分流转发, 对网络协议版本 6- 4(IP6to4)技术 去隧道转发等,这些技术使得后台设备可以很方便的分析到虚拟专用网( VPN ) 内部的信息,但是这些技术带来应用方便的同时也带来一些问题, 即数据原始 信息的损失,原始数据的丟失会导致不同私网地址重叠无法区分等问题, 因此 有必要在解封装的同时又能够将原始信息作为数据帧的一部分传递给后台处 理程序;而且还有部分用户关心数据帧接收的原始端口并希望能够通过某种方 式 to这些信息传递给后台设备, 以方便后台设备分类处理。  Taking the analysis of data in the network as an example, the general networking structure firstly decomposes the traffic of the backbone link into a granularity suitable for the processing of the background device host through the pre-device, and then forwards it to the background device for data analysis and data recording. Processing, as shown in Figure 1, Figure 2. The front-end devices are now more and more powerful, and the applications they support are increasingly rich and diverse, such as the ability to de-tag and hash the multi-protocol label switching (MPLS) data frames, and the network protocol version 6- 4 (IP6to4) technology to tunnel forwarding, etc. These technologies enable the background device to easily analyze the information inside the virtual private network (VPN), but these technologies bring convenience to the application and also bring some problems, that is, data original information. Loss, the loss of the original data will lead to different private network address overlap and other issues, so it is necessary to decapsulate the original information as part of the data frame to the background processor; and some users care about the data The original port received by the frame and hopefully can be passed to the background device in some way to facilitate the background device classification processing.

此外,前置设备上有强大的硬件和软件支撑, 比如用三态内容寻址寄存器 In addition, there are powerful hardware and software support on the front-end devices, such as tri-state content addressing registers.

( TCAM )进 ^方问控制列表(ACL )查找匹配, 用内容查找芯片进行全称及 中文检索查询等,这些特殊硬件往往是后台设备所不具备的,为了能够充分利 用前置设备的处理能力,后台设备如果能够获得预处理结果就可以大大减轻其 处理压力, 即与前置设备一起作为一个整体解决方案来分析处理数据帧。这也 要求前置设备能够通过某种方式将处理结果传递给后台设备。 (TCAM) enters the square control list (ACL) to find the match, uses the content search chip to perform the full name and Chinese search query, etc. These special hardware are often not available in the background device, in order to make full use of the processing power of the front device, If the background device can obtain the pre-processing result, it can greatly reduce the processing pressure, that is, together with the pre-device, as a whole solution to analyze and process the data frame. This also requires the front-end device to pass the processing result to the background device in some way.

然而, 上述预处理结果、 MPLS标签等信息如何传输并与数据帧的载荷进 行关联, 现有技术中并没有提供解决办法。 However, how the above pre-processing results, MPLS labels, etc. are transmitted and loaded with the data frame Row association, there is no solution in the prior art.

发明内容 Summary of the invention

本发明实施例主要提供了一种以太网 (Ethernet ) 中设备间信息传输的方 法、 装置及系统, 能够在设备间传输与数据帧载荷相关联的信息。  The embodiments of the present invention mainly provide a method, device and system for transmitting information between devices in an Ethernet (Ethernet), which can transmit information associated with a data frame payload between devices.

为了实现上述目的,本发明的实施例提供了一种以太网中设备间的信息传 输方法, 该方法包括步骤:  In order to achieve the above object, an embodiment of the present invention provides a method for transmitting information between devices in an Ethernet, the method comprising the steps of:

在数据帧的源媒介接入控制 MAC地址字段封装关联信息的传输指示; 所 述关联信息与该数据帧的载荷具有关联关系;  The source medium access control MAC address field of the data frame encapsulates a transmission indication of the association information; the association information is associated with the payload of the data frame;

按照所述传输指示发送所述关联信息。  Transmitting the association information according to the transmission indication.

本发明的实施例提供了另一种以太网中设备间的信息传输方法,该方法包 括步骤:  An embodiment of the present invention provides another method for transmitting information between devices in an Ethernet, and the method includes the following steps:

在接收的数据帧的源 MAC地址字段解析关联信息的传输指示; 所述关联 信息与该数据帧的载荷具有关联关系;  And transmitting, in the source MAC address field of the received data frame, a transmission indication of the association information; the association information has an association relationship with a payload of the data frame;

按照传输指示获得关联信息。  Obtain the associated information according to the transmission indication.

本发明的实施例提供了一种以太网中的信息传输装置, 包括:  An embodiment of the present invention provides an information transmission apparatus in an Ethernet, including:

封装模块, 用于在数据帧的 MAC地址字段封装关联信息的传输指示; 所 述关联信息与该数据帧的载荷具有关联关系;  An encapsulating module, configured to encapsulate, in a MAC address field of the data frame, a transmission indication of the association information; the association information is associated with a payload of the data frame;

发送模块, 用于按照所述传输指示发送所述关联信息。  And a sending module, configured to send the association information according to the transmission indication.

本发明的实施例还提供了另一种以太网中的信息传输装置 , 包括: 接收模块, 用于接收数据帧;  An embodiment of the present invention further provides an information transmission apparatus in another Ethernet, including: a receiving module, configured to receive a data frame;

解封装模块, 用于从接收数据帧的源 MAC地址字段解析出关联信息的传 输指示, 并按照传输指示获得关联信息; 所述关联信息与该数据帧的载荷具有 关联关系。  And a decapsulation module, configured to parse the transmission indication of the association information from the source MAC address field of the received data frame, and obtain the association information according to the transmission indication; the association information has an association relationship with the payload of the data frame.

本发明的实施例还提供一种以太网中的信息传输系统, 包括:  An embodiment of the present invention further provides an information transmission system in an Ethernet, including:

第一设备, 用于在数据帧的源 MAC地址字段封装关联信息的传输指示, 并按照所述传输指示发送所述关联信息;所述关联信息与该数据帧的载荷具有 关联关系;  a first device, configured to encapsulate, in a source MAC address field of the data frame, a transmission indication of the association information, and send the association information according to the transmission indication; the association information has an association relationship with a payload of the data frame;

第二设备, 用于在接收数据帧的源 MAC地址字段解析关联信息的传输指 示, 并按照传输指示获得关联信息。 本发明实施例可以通过数据帧的源 MAC地址携带关联信息传输指示, 并 按照传输指示发送或接收关联信息。这样,接收端可以根据传输指示获得某个 数据帧载荷的关联信息。本发明实施例可以用于传送与数据帧载荷相关的各种 信息,在大多数情况下能够提高以太网数据帧所能承载的信息量, 并且本发明 实施例与其他协议基本不存在冲突。 And a second device, configured to parse the transmission indication of the association information in the source MAC address field of the received data frame, and obtain the association information according to the transmission indication. The embodiment of the present invention may carry an association information transmission indication by using a source MAC address of the data frame, and send or receive the association information according to the transmission indication. In this way, the receiving end can obtain the associated information of a certain data frame payload according to the transmission indication. The embodiments of the present invention can be used to transmit various information related to a data frame payload. In most cases, the amount of information that can be carried by an Ethernet data frame can be increased, and the embodiment of the present invention does not substantially conflict with other protocols.

附图说明 DRAWINGS

图 1为传输数据帧的以太网设备间的网络连接示意图;  FIG. 1 is a schematic diagram of a network connection between Ethernet devices transmitting data frames;

图 2为传输数据帧的以太网设备间的另一网络连接示意图;  2 is a schematic diagram of another network connection between Ethernet devices transmitting data frames;

图 3为本发明以太网中设备间的信息传输方法实施例的流程图; 图 4为本发明以太网中的信息传输系统实施例的结构示意图。  3 is a flowchart of an embodiment of an information transmission method between devices in an Ethernet according to the present invention; and FIG. 4 is a schematic structural diagram of an embodiment of an information transmission system in an Ethernet according to the present invention.

具体实施方式 detailed description

本发明的实施例中, 以太网中设备间传递数据帧时,将关联信息的传输指 示携带在数据帧的源 MAC地址字段中进行发送。本发明实施例中所述的笫一、 第二设备是指具有收发以太网数据帧功能的设备, 例如交换机或路由器, 并且 第一设备可以将传输指示封装进数据帧源 MAC地址字段中, 第二设备接收到 该设备后可以将该传输指示读取出来。 第一、 第二设备可以直接相连, 也可以 通过其他网络设备进行间接的连接, 两个设备在链路层连通。  In the embodiment of the present invention, when a data frame is transmitted between devices in the Ethernet, the transmission indication of the associated information is carried in the source MAC address field of the data frame for transmission. The first device and the second device in the embodiment of the present invention refer to a device having a function of transmitting and receiving an Ethernet data frame, such as a switch or a router, and the first device may encapsulate the transmission indication into a data frame source MAC address field, After receiving the device, the second device can read the transmission indication. The first device and the second device may be directly connected, or may be indirectly connected through other network devices, and the two devices are connected at the link layer.

图 3所示,是本发明以太网中设备间的信息传输方法实施例的流程图,其 包括以下步骤:  FIG. 3 is a flowchart of an embodiment of an information transmission method between devices in an Ethernet according to the present invention, which includes the following steps:

如图所示, 首先进行步骤 S11 , 将实际需要发送的信息的相关信息封装到 数据帧的源 MAC地址字段, 源 MAC地址字段不再携带源 MAC地址。 实际 需要发送的信息即为关联信息, 与某个数据帧的载荷具有关联关系,其相关信 息包括关联信息的传输指示。  As shown in the figure, step S11 is performed to encapsulate the information about the information that needs to be sent into the source MAC address field of the data frame, and the source MAC address field no longer carries the source MAC address. The information that needs to be sent is the associated information, which is associated with the payload of a certain data frame, and the related information includes the transmission indication of the associated information.

本实施例中一种可能的处理方式是:将数据在第一设备所经过的处理相关 的信息也封装到源 MAC地址字段, 同时数据帧的载荷字段部分仍旧封装经过 第一设备处理后的数据。 而现有技术是: 在数据帧的载荷字段部分封装经过第 一设备处理后的数据, 源 MAC地址字段封装的是源设备的 MAC地址。 因此 本实施例可以在一个以太网数据帧中同时包含数据经过处理后的结果,以及数 据所经过的具体的处理类型、 过程、 参数等资料。 实际上, 源 MAC地址字段 携带的内容可以多种多样, 除了前述的处理信息外,还可以携带第一设备的预 处理结果, 第一设备接收到数据帧的原始端口,甚至数据帧载荷字段所需要携 带的数据。 除传输指示外, 源 MAC地址字段所携带的其他具体信息与本发明 实施例的重点无关, 此处不再赘述。 A possible processing manner in this embodiment is: the information related to the processing of the data in the first device is also encapsulated into the source MAC address field, and the payload field portion of the data frame still encapsulates the data processed by the first device. . The prior art is: the data processed by the first device is encapsulated in the payload field portion of the data frame, and the source MAC address field encapsulates the MAC address of the source device. Therefore, in this embodiment, an Ethernet data frame can simultaneously contain the processed result of the data, and the specific processing type, process, parameters, and the like that the data passes through. In fact, the source MAC address field The content that can be carried can be various. In addition to the foregoing processing information, the pre-processing result of the first device may be carried, and the first device receives the original port of the data frame, and even the data that needs to be carried in the data frame payload field. The other specific information carried in the source MAC address field is not related to the focus of the embodiment of the present invention, and is not described here.

第一设备实际需要发送的信息的相关信息是实际封装进源 MAC地址字段 的内容,其与第一设备实际需要发送的信息相关, 该相关信息可以直接包括实 际需要发送的信息, 但不限于此。 由于源 MAC地址字段仅有 48位的容量, 并且还需要封装传输指示,因此当实际需要发送的信息太多而超过该容量限制 时,就无法直接发送, 此时可以将实际需要发送的信息以另外的数据帧单独进 行发送,或者以在数据帧的头部或者尾部建立扩展头的方式进行发送, 而在源 MAC 地址字段以传输指示表明实际需要发送的信息的发送方式和 /或其序列 号等相关信息, 以便将实际需要发送的信息与数据帧载荷部分进行关联。  The information about the information that the first device actually needs to be sent is the content that is actually encapsulated into the source MAC address field, and is related to the information that the first device actually needs to send, and the related information may directly include the information that needs to be sent, but is not limited thereto. . Since the source MAC address field has only 48 bits of capacity and needs to encapsulate the transmission indication, when the information that needs to be sent is too much and exceeds the capacity limit, it cannot be directly sent. In this case, the information that needs to be sent can be The other data frame is sent separately, or is sent in the manner of establishing an extended header at the head or the tail of the data frame, and the source MAC address field indicates the transmission mode and/or its serial number of the information actually needed to be transmitted. Relevant information to correlate the information that actually needs to be sent with the data frame payload portion.

此外, 由于 ATMoE (基于以太网的异步传输模式)等技术, 本发明实施 例亦不受限于仅仅承载 IP报文, 而可以承载一切基于以太网进行传输的数据 帧。  In addition, the embodiments of the present invention are not limited to carrying only IP packets, but can carry all data frames transmitted based on Ethernet, due to technologies such as ATMoE (Asynchronous Transfer Mode based on Ethernet).

接着进行步骤 S12, 第一设备发送封装后的数据帧, 数据帧的源 MAC地 址字段中携带有需要发送信息的相关信息。 如前所述, 出于源 MAC地址字段 位数有限或者其他原因,该相关信息可以包含实际需要发送的信息本身,其传 输指示可以是实际需要发送的信息的发送方式、序列号等。该第一设备例如为 背景技术中的前置设备。  Next, in step S12, the first device sends the encapsulated data frame, and the source MAC address field of the data frame carries related information that needs to be sent. As mentioned above, the related information may contain the information itself that needs to be sent, because the number of bits in the source MAC address field is limited or other reasons, and the transmission indication may be the transmission mode, serial number, etc. of the information that needs to be sent. The first device is, for example, a front device in the background art.

然后进行步骤 S13 , 第二设备接收封装后的数据帧, 数据帧的发送与接收 技术是本领域技术人员都熟知的技术, 故在此亦不再赘述。 本实施例中, 笫二 设备例如为背景技术中的后台设备, 具有接收数据帧的能力。  Then, in step S13, the second device receives the encapsulated data frame, and the data frame transmission and reception technologies are well known to those skilled in the art, and therefore are not described herein again. In this embodiment, the second device is, for example, a background device in the background art, and has the capability of receiving data frames.

最后进行步驟 S14, 第二设备从接收到的以太网数据帧的源 MAC地址字 段中获取笫一设备实际需要发送的信息的相关信息,从中解析出传输指示, 并 根据传输指示获得实际需要发送的信息。  Finally, in step S14, the second device obtains information about the information that the device actually needs to send from the source MAC address field of the received Ethernet data frame, parses the transmission indication therefrom, and obtains the actual transmission according to the transmission indication. information.

第二设备根据该相关信息即可获得实际需要发送的信息。 根据步骤 S11 封装进数据帧的源 MAC地址字段内容的不同: 当封装的相关信息包括了第一 设备实际需要发送的信息本身时 ,读取该字段内容即可获得第一设备实际需要 发送的信息; 当由于第一设备实际需要发送的信息过长或者由于其他原因, 而 没有将第一设备实际需要发送的信息封装进数据帧源 MAC地址字段, 则第二 设备根据该传输指示的不同,从数据帧的头部或者尾部扩展头,或者从关联的 其他数据帧中获得第一设备实际需要发送的信息。 The second device can obtain the information that needs to be actually transmitted according to the related information. The content of the source MAC address field encapsulated into the data frame according to step S11 is different: when the related information of the package includes the information itself that the first device actually needs to send, the content of the field is read to obtain the actual needs of the first device. The information sent; when the information that the first device actually needs to send is too long or for other reasons, the information that the first device actually needs to send is not encapsulated into the data frame source MAC address field, the second device according to the transmission indication Differently, the header is extended from the header or the tail of the data frame, or the information actually needed to be transmitted by the first device is obtained from other associated data frames.

由于交换机等设备为了正确转发数据帧的需要, 会自动学习数据帧的源 Because the switch and other devices need to automatically forward the data frame, the source of the data frame is automatically learned.

MAC地址, 并记录入 MAC地址表项, 而本发明实施例的数据帧中源 MAC 地址字段不再承载源 MAC地址而改为承载第一设备实际需要发送的信息的相 The MAC address is recorded in the MAC address entry, and the source MAC address field in the data frame of the embodiment of the present invention no longer carries the source MAC address and instead carries the information that the first device actually needs to send.

MAC地址重叠, 导致交换机学习的源 MAC地址出现错误, 同时也为了避免 交换机每收到一个数据帧就进行学习导致 MAC地址表项不够用, 本发明实施 例中可以在传输数据帧时将帧中源 MAC地址字段内容的首位置为 1。源 MAC 地址字段内容的首位设置为 1后, 数据帧会被交换机判断为组播或者广播帧, 另夕卜,可以按照关联信息的长度与数据帧的长度来决定数据帧及其关联信 息采用何种传输方式, 并在源 MAC地址字段封装对应的传输指示。 此时, 传 输指示中需要以一定的位进行区别,以实现不同数据帧可以采用不同方式传输 关联信息。 If the MAC address is overlapped, the source MAC address of the switch is incorrect. In addition, the MAC address entry is not enough for the switch to learn. The first position of the contents of the source MAC address field is 1. After the first bit of the content of the source MAC address field is set to 1, the data frame is judged by the switch as a multicast or broadcast frame. In addition, the length of the associated information and the length of the data frame can be used to determine the data frame and its associated information. The transmission mode, and the corresponding transmission indication is encapsulated in the source MAC address field. At this time, the transmission indication needs to be distinguished by a certain bit, so that different data frames can transmit related information in different manners.

以下实施例在最高字节中留三位来表示传输指示类型,下面以实际需要发 送的信息为数据帧载荷的控制信息为例, 对源 MAC地址字段进行具体说明: 000 保留;  In the following embodiment, three bits are reserved in the highest byte to indicate the type of the transmission indication. The following is an example of the control information of the data frame payload, and the source MAC address field is specifically described as follows: 000 Reserved;

001 表示该数据帧源 MAC地址字段中直接携带有第一设备实际需要 发送的控制信息, 例如携带在源 MAC地址字段的低 5个字节中;  001 indicates that the data frame source MAC address field directly carries the control information that the first device actually needs to send, for example, carried in the lower 5 bytes of the source MAC address field;

010 表示该数据帧的源 MAC地址字段未携带控制信息,在该数据帧 头部存在专用扩展头, 用以携带第一设备实际需要发送的控制信息。该扩展头 的格式定义可以根据实际需要确定,例如第一个字节可用于定义版本号信息和 长度信息;  010 indicates that the source MAC address field of the data frame does not carry control information, and a dedicated extension header exists in the data frame header to carry the control information that the first device actually needs to send. The format definition of the extension header can be determined according to actual needs, for example, the first byte can be used to define version number information and length information;

011 表示该数据帧的源 MAC地址字段未携带控制信息, 该数据帧尾 部存在专用扩展头, 用以携带第一设备实际需要发送的控制信息。该扩展头的 格式定义可以根据实际需要确定,例如第一个字节可用于定义版本号信息和长 度信息; 011 indicates that the source MAC address field of the data frame does not carry control information, and a dedicated extension header exists at the end of the data frame to carry control information that the first device actually needs to send. The format definition of the extension header can be determined according to actual needs, for example, the first byte can be used to define the version number information and the length. Degree information

100 表示该帧为控制信息帧, 即该帧以实际需要发送的信息为载荷, 并且传输指示中还包括能将该帧承载的实际需要发送的信息与某个载荷信息 帧联系起来的序列号, 序列号可以放在源 MAC地址低 32位的字段中;  100 indicates that the frame is a control information frame, that is, the frame is loaded with information actually needed to be sent, and the transmission indication further includes a sequence number that can associate the information actually transmitted by the frame with a certain payload information frame. The serial number can be placed in the lower 32 bits of the source MAC address;

101 表示该数据帧的源 MAC地址字段未携带控制信息, 而携带有序 列号, 第一设备实际需要发送的信息单独以另外的数据帧进行发送,该另外的 数据帧为传输指示类型 100的控制信息帧, 并且具有相同的序列号。本数据帧 为载荷信息帧 , 本数据帧的源 MAC地址字段中包含能够将控制信息帧和载荷 信息帧联系起来的序列号, 序列号可以放在源 MAC地址低 32位的字段中。  101 indicates that the source MAC address field of the data frame does not carry control information, but carries the sequence number, and the information that the first device actually needs to send is separately sent in another data frame, and the other data frame is controlled by the transmission indication type 100. Information frame, and has the same serial number. The data frame is a payload information frame. The source MAC address field of the data frame includes a sequence number that can associate the control information frame with the payload information frame. The sequence number can be placed in a field of 32 bits lower than the source MAC address.

其他 保留。 笫一设备上数据帧发送流程如下:  Other reserved. The data frame transmission process on a device is as follows:

if (控制信息 <= 5字节)  If (control information <= 5 bytes)

{  {

采用 001方式封装发送  Send in 001 mode

}  }

else if (扩展后报文载荷 < =1500字节)  Else if (expanded message payload <=1500 bytes)

{  {

采用 010方式封装发送  Send in 010 mode package

}  }

else  Else

{  {

取序列号  Take serial number

采用 100方式封装发送控制信息, 并在源 MAC地址字段中填充序列号 采用 101方式封装发送数据信息, 并在源 MAC地址信息中填充序列号 序列号步进  The transmission control information is encapsulated in the 100 mode, and the serial number is filled in the source MAC address field. The transmission data information is encapsulated in the 101 mode, and the serial number is filled in the source MAC address information.

}  }

当需要传递的控制信息小于 5个字节 (40bits ) 时, 可以采用 001的数据 帧格式, 不用对报文格式进行扩展, 这种情况下对应用和设备的冲击最小, 信 息传递和处理也最高效, 第二设备可以直接从收到的数据帧的源 MAC地址字 段中读取控制信息。 When the control information to be transmitted is less than 5 bytes (40 bits), the data frame format of 001 can be used, and the packet format is not extended. In this case, the impact on the application and the device is minimal. Interest transfer and processing are also most efficient, and the second device can read control information directly from the source MAC address field of the received data frame.

当需要携带大量控制信息时(大于 5个字节), 上述还定义了两种单包扩 展方式和一种多包扩展方式。单包扩展方式主要用于不需要分片的情况, 即扩 展后控制信息的长度与原数据帧长度之和不超过以太网 MTU(最大传输单位) 时, 这样可以在单包携带控制信息和载荷信息, 以解决效率和同步问题。 当报 文长到扩展后需要分片的时候,本发明实施例采用一种控制信息和载荷信息分 别发送的方式, 解决非 IP报文的分片问题。 当第二设备收到 010或者 011的 格式的数据帧后, 第二设备就可以从该数据帧的头部或者尾部读取控制信息; 当第二设备收到 100或者 101格式的数据帧后,表示该帧为控制信息帧或者载 荷信息帧, 第二设备从该帧的源 MAC地址字段读取序列号, 并通过该序列号 将该帧与具有相同序列号的载荷信息帧或者控制信息帧关联起来,从而获得相 互关联的控制信息以及载荷信息。  When a large amount of control information needs to be carried (greater than 5 bytes), the above also defines two single packet extension modes and one multi-packet extension mode. The single-packet extension mode is mainly used when no fragmentation is required, that is, when the length of the extended control information and the original data frame length do not exceed the Ethernet MTU (maximum transmission unit), the control information and the payload can be carried in a single packet. Information to address efficiency and synchronization issues. When the packet length needs to be fragmented after the extension, the embodiment of the present invention uses a method of separately transmitting the control information and the payload information to solve the fragmentation problem of the non-IP packet. After the second device receives the data frame in the format of 010 or 011, the second device can read the control information from the head or the tail of the data frame; when the second device receives the data frame in the format of 100 or 101, Indicates that the frame is a control information frame or a payload information frame, and the second device reads the sequence number from the source MAC address field of the frame, and associates the frame with the payload information frame or the control information frame having the same sequence number by using the sequence number. Get up to get the associated control information and load information.

请参考图 4, 本发明实施例还提供一种以太网中设备间的信息传输系统, 包括第一设备 410及第二设备 420。 其中: 第一设备 410用于在该数据帧的源 媒体接入控制 MAC地址字段中携带实际需要发送的信息的传输指示, 并按照 传输指示发送与该数据帧关联的实际需要发送的信息;第二设备 420用于接收 数据帧, 并从数据帧的源媒体接入控制 MAC地址字段中读取传输指示, 按照 传输指示获得关联信息。 所述第一、第二设备直接相连或者通过其他网络设备 相连, 在链路层连通。  Referring to FIG. 4, an embodiment of the present invention further provides an information transmission system between devices in an Ethernet, including a first device 410 and a second device 420. The first device 410 is configured to carry, in the source media access control MAC address field of the data frame, a transmission indication of the information that needs to be sent, and send, according to the transmission indication, the information that needs to be sent in association with the data frame; The second device 420 is configured to receive the data frame, and read the transmission indication from the source media access control MAC address field of the data frame, and obtain the association information according to the transmission indication. The first and second devices are directly connected or connected through other network devices, and are connected at the link layer.

其中, 该第一设备 410包括封装模块 412以及发送模块 413 , 该封装模块 412用于在数据帧的源媒体接入控制 MAC地址字段中封装实际需要发送信息 的传输指示, 该发送模块 413用于按照传输指示发送实际需要发送的信息; 第一设备 410还可以包括传输指示模块 411 , 根据关联信息和数据帧的长 度确定传输指示, 并将传输指示输出至封装模块 412。 例如, 当关联信息的长 度不大于第一阈值时,确定传输指示为第一类型,表明关联信息在数据帧中的 源 MAC地址字段, 其中第一阔值小于源 MAC地址字段的长度; 当关联信息 与数据帧的长度之和不超过第二阐值时, 确定传输指示为第二类型或第三类 型,分别表明关联信息在数据帧中的头部扩展头或尾部扩展头,其中第二阔值 不超过以太网的 MTU; 当关联信息与数据帧的长度之和超过第二阔值时, 确 定传输指示为第四类型并指定序列号,表明关联信息在具有相同序列号的控制 信息帧中发送, 该控制信息帧以关联信息为载荷。 The first device 410 includes a package module 412 and a sending module 413, where the encapsulating module 412 is configured to encapsulate, in a source media access control MAC address field of the data frame, a transmission indication that actually needs to send information, where the sending module 413 is used. The information that needs to be sent is sent according to the transmission indication. The first device 410 may further include a transmission indication module 411, determining the transmission indication according to the association information and the length of the data frame, and outputting the transmission indication to the encapsulation module 412. For example, when the length of the association information is not greater than the first threshold, determining that the transmission indication is the first type, indicating that the association information is in the source MAC address field in the data frame, where the first threshold is less than the length of the source MAC address field; When the sum of the lengths of the information and the data frame does not exceed the second value, the transmission indication is determined to be the second type or the third type, respectively indicating the header extension header or the tail extension header of the associated information in the data frame, wherein the second wide Value Not exceeding the MTU of the Ethernet; when the sum of the association information and the length of the data frame exceeds the second threshold, determining that the transmission indication is the fourth type and specifying the sequence number, indicating that the association information is sent in the control information frame having the same sequence number The control information frame is loaded with associated information.

其中, 该第二设备 420包括接收模块 422及解封装模块 421 , 该接收模块 422用于接收该第一设备 410发送的数据帧 , 该解封装模块 421用于对该接收 模块 422接收的数据帧解封装,从数据帧的源 MAC地址字段解析出关联信息 的传输指示, 以通过传输指示获得的实际需要发送的信息。 例如, 当传输指示 为第一类型时, 在接收数据帧的源 MAC地址字段解析出关联信息; 当传输指 示为第二类型时,在接收 t据帧的头部扩展头解析出关联信息; 当传输指示为 第三类型时,在接收数据帧的尾部扩展头解析出关联信息; 当传输指示为第四 类型时, 在接收数据帧的源 MAC地址字段获得序列号, 并在接收传输指示为 第五类型的控制信息帧中查找具有相同序列号的帧,该控制信息帧的载荷即为 关联信息。  The second device 420 includes a receiving module 422 and a decapsulating module 421, where the receiving module 422 is configured to receive a data frame sent by the first device 410, and the decapsulating module 421 is configured to receive the data frame received by the receiving module 422. Decapsulation, parsing the transmission indication of the associated information from the source MAC address field of the data frame, to transmit the information actually required to be transmitted by the indication. For example, when the transmission indication is the first type, the association information is parsed in the source MAC address field of the received data frame; when the transmission indication is the second type, the association information is parsed in the header extension header of the received t data frame; When the transmission indication is the third type, the extension header parses the association information at the tail of the received data frame; when the transmission indication is the fourth type, the sequence number is obtained in the source MAC address field of the received data frame, and the reception transmission indication is A frame having the same sequence number is searched for in the five types of control information frames, and the payload of the control information frame is associated information.

本实施例中,该封装模块 412可以将数据在第一设备所经过的处理相关的 信息也封装到源 MAC地址字段, 同时数据帧的载荷字段部分仍旧封装经过第 一设备处理后的数据不变。因此本实施例可以在一个以太网数据帧中同时包含 数据经过处理后的结果, 以及数据所经过的具体的处理类型、 过程、 参数等资 料。 实际上, 源 MAC地址字段携带的内容可以多种多样, 除了前述的处理信 息夕卜,还可以携带第一设备的预处理结果,第一设备接收到数据帧的原始端口, 甚至数据帧载荷字段所需要携带的数据。 除传输指示外, 源 MAC地址字段所 携带的其他具体信息与本发明实施例的重点无关, 此处不再赘述。  In this embodiment, the encapsulating module 412 may also encapsulate the processing related information of the data in the source device into the source MAC address field, and the payload field portion of the data frame still encapsulates the data processed by the first device. . Therefore, in this embodiment, an Ethernet data frame can simultaneously contain the processed result of the data, and the specific processing type, process, parameters and the like through which the data passes. In fact, the content carried by the source MAC address field may be various. In addition to the foregoing processing information, the pre-processing result of the first device may be carried, and the first device receives the original port of the data frame, and even the data frame payload field. The data that needs to be carried. The other specific information carried in the source MAC address field is not related to the focus of the embodiment of the present invention, and is not described here.

第一设备实际需要发送的信息的相关信息是该封装模块 412 实际封装进 源 MAC地址字段的内容, 其与第一设备实际需要发送的信息相关, 但未必包 含第一设备真正实际需要发送的信息,该相关信息可以直接包括实际需要发送 的信息, 但不限于此。 由于源 MAC地址字段仅有 48位的容量, 并且还需要 封装传输指示, 因此当实际需要发送的信息太多而超过某个容量限制时, 就无 法直接发送, 此时可以将实际需要发送的信息以另外的数据帧单独进行发送, 或者以在数据帧的头部或者尾部建立扩展头的方式进行发送, 而在源 MAC地 址字段以传输指示表明实际需要发送的信息的发送方式和 /或其序列号等相关 信息, 以便解封装模块 421将数据帧解封装后, 可以将实际需要发送的信息与 数据帧载荷部分进行关联。 The information about the information that the first device actually needs to send is the content that the encapsulating module 412 actually encapsulates into the source MAC address field, which is related to the information that the first device actually needs to send, but does not necessarily include the information that the first device actually needs to send. The related information may directly include information actually needed to be transmitted, but is not limited thereto. Since the source MAC address field has only 48 bits of capacity and needs to encapsulate the transmission indication, when the actual information needs to be sent too much and exceeds a certain capacity limit, it cannot be directly sent. In this case, the information that needs to be sent can be actually sent. Sending separately in another data frame, or transmitting in the manner of establishing an extended header at the head or the tail of the data frame, and transmitting in the source MAC address field indicating the manner in which the information actually needs to be transmitted and/or its sequence Number The information, so that the decapsulation module 421 decapsulates the data frame, can associate the information that needs to be sent with the data frame payload portion.

并且,可以按照关联信息的长度与数据帧的长度来决定数据帧及其关联信 息采用何种传输方式, 并在源 MAC地址字段封装对应的传输指示。 此时, 传 输指示中可以以一定的位进行区别,以实现不同数据帧可以采用不同方式传输 关联信息。  Moreover, the transmission mode of the data frame and its associated information may be determined according to the length of the associated information and the length of the data frame, and the corresponding transmission indication is encapsulated in the source MAC address field. At this time, the transmission indication can be distinguished by a certain bit, so that different data frames can transmit related information in different manners.

由于交换机等设备为了正确转发数据帧的需要, 会自动学习数据帧的源 MAC地址, 并记录入 MAC地址表项, 而本发明以太网中设备间的信息传输 系统实施例的数据帧中源 MAC地址字段不再承载源 MAC地址而改为承载第 一设备实际需要发送的信息的相关信息。因此,为避免交换机将其当作源 MAC 地址进行学习造成与真正的源 MAC地址重叠, 导致交换机学习的源 MAC地 址出现错误, 同时也为了避免交换机每收到一个数据帧就进行学习导致 MAC 地址表项不够用。 本发明实施例中可以在传输数据帧时将帧中源 MAC地址字 段内容的首位置为 1。 源 MAC地址字段内容的首位设置为 1后, 数据帧会被 交换机判断为组播或者广播帧, 而不会学习其源 MAC地址及将该地址记录入 MAC地址表项。  The device automatically learns the source MAC address of the data frame and records the MAC address entry, and the source MAC address in the data frame of the information transmission system between the devices in the Ethernet of the present invention is required for the device to correctly forward the data frame. The address field no longer carries the source MAC address and instead carries the information about the information that the first device actually needs to send. Therefore, in order to prevent the switch from learning as the source MAC address, it overlaps with the real source MAC address, causing the switch to learn the source MAC address error, and also avoiding the switch to learn the MAC address every time a switch receives a data frame. The entry is not enough. In the embodiment of the present invention, the first position of the content of the source MAC address field in the frame may be 1 when the data frame is transmitted. After the first bit of the content of the source MAC address field is set to 1, the data frame is judged by the switch as a multicast or broadcast frame, and the source MAC address is not learned and the address is recorded into the MAC address entry.

本发明的实施例中, 以太网中设备间的信息传输方法、装置及系统可以通 过数据帧的源 MAC地址携带关联信息的传输指示, 并按照传输指示发送或接 收关联信息。 本发明实施例通过更改数据帧的源 MAC地址字段的用途, 使得 关联信息与原数据帧长度之和不超过 MTU时能够同时在数据帧中传送其载荷 及关联信息,提高了以太网数据帧所能承载的信息量, 并且本发明实施例与其 他协议基本不存在冲突。  In the embodiment of the present invention, the information transmission method, device and system between devices in the Ethernet may carry the transmission indication of the associated information through the source MAC address of the data frame, and send or receive the associated information according to the transmission indication. In the embodiment of the present invention, by changing the purpose of the source MAC address field of the data frame, the sum of the associated information and the original data frame length does not exceed the MTU, and the payload and associated information can be transmitted in the data frame at the same time, thereby improving the Ethernet data frame. The amount of information that can be carried, and the embodiment of the present invention does not substantially conflict with other protocols.

最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限 制;尽管参照较佳实施例对本发明进行了佯细的说明, 所属领域的普通技术人 员应当理解,依然可以对本发明的具体实施方式进行修改或者对部分技术特征 进行等同替换; 而不脱离本发明技术方案的精神,其均应涵盖在本发明请求保 护的技术方案范围当中。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention and are not intended to be limiting; although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art The specific embodiments of the present invention are modified or equivalently replaced with the technical features of the present invention, and should be included in the scope of the technical solutions claimed in the present invention.

Claims

权 利 要 求 Rights request 1. 一种以太网中设备间的信息传输方法, 其特征在于:  1. A method for transmitting information between devices in an Ethernet, characterized in that: 在数据帧的源媒介接入控制 MAC地址字段封装关联信息的传输指示; 所 述关联信息与该数据帧的载荷具有关联关系;  The source medium access control MAC address field of the data frame encapsulates a transmission indication of the association information; the association information is associated with the payload of the data frame; 按照所述传输指示发送所述关联信息。  Transmitting the association information according to the transmission indication. 2. 如权利要求 1所述的信息传输方法, 其特征在于: 所述传输指示表明 关联信息在该数据帧中的位置;  2. The information transmission method according to claim 1, wherein: said transmission indication indicates a location of the association information in the data frame; 所述按照传输指示发送关联信息具体为:  The sending the association information according to the transmission indication is specifically: 在数据帧中传输指示表明的位置封装所述关联信息;  Transmitting the association information by transmitting a location indicated by the indication in the data frame; 发送封装后的数据帧。  Send the encapsulated data frame. 3. 如权利要求 2所述的信息传输方法, 其特征在于: 所述传输指示包括 第一类型、 第二类型或第三类型, 分别表明关联信息在数据帧中的位置为源 MAC地址字段、 头部扩展头以及尾部扩展头。  The information transmission method according to claim 2, wherein: the transmission indication comprises a first type, a second type, or a third type, respectively indicating that the location of the associated information in the data frame is a source MAC address field, Head extension head and tail extension header. 4. 如权利要求 3所述的信息传输方法, 其特征在于, 所述方法还包括: 当所迷关联信息的长度不大于第一阈值时, 确定传输指示为第一类型; 所 述第一阔值小于源 MAC地址字段的长度;  The information transmission method according to claim 3, wherein the method further comprises: determining that the transmission indication is the first type when the length of the association information is not greater than the first threshold; Less than the length of the source MAC address field; 当所述关联信息与所述数据帧载荷的长度之和不超过第二阔值时,确定传 输指示为第二类型或第三类型; 所述第二阈值不超过以太网的最大传输单位 Determining that the transmission indication is the second type or the third type when the sum of the association information and the length of the data frame payload does not exceed the second threshold; the second threshold does not exceed the maximum transmission unit of the Ethernet 5. 如权利要求 1所述的信息传输方法, 其特征在于: 所述传输指示为第 四类型和序列号,表明关联信息在具有相同序列号的控制信息帧中发送; 所述 控制信息帧以关联信息为载荷; The information transmission method according to claim 1, wherein: the transmission indication is a fourth type and a sequence number, indicating that the association information is transmitted in a control information frame having the same sequence number; The associated information is a payload; 所述按照传输指示发送关联信息具体为:  The sending the association information according to the transmission indication is specifically: 在控制信息帧的源 MAC地址字段封装传输指示; 所述传输指示包括第五 类型和所述序列号, 表明该帧为控制信息帧;  Encapsulating a transmission indication in a source MAC address field of the control information frame; the transmission indication includes a fifth type and the sequence number, indicating that the frame is a control information frame; 发送封装后的控制信息帧。  Send the encapsulated control information frame. 6. 如权利要求 5所述的信息传输方法, 其特征在于, 所述方法还包括: 当所述关联信息与所述数据帧的长度之和超过第二阈值时,确定传输指示为第 四类型; 所述第二阈值不超过以太网的最大传输单位 MTU。 The information transmission method according to claim 5, wherein the method further comprises: determining that the transmission indication is the fourth type when the sum of the length of the association information and the length of the data frame exceeds a second threshold The second threshold does not exceed the maximum transmission unit MTU of the Ethernet. 7. 如权利要求 1所述的信息传输方法, 其特征在于: 所述的数据帧的源 MAC地址字段最高位是 1。 7. The information transmission method according to claim 1, wherein: the highest bit of the source MAC address field of the data frame is 1. 8. —种以太网中设备间的信息传输方法, 其特征在于:  8. A method for transmitting information between devices in an Ethernet, characterized in that: 在接收的数据帧的源 MAC地址字段解析关联信息的传输指示; 所述关联 信息与该数据帧的载荷具有关联关系;  And transmitting, in the source MAC address field of the received data frame, a transmission indication of the association information; the association information has an association relationship with a payload of the data frame; 按照传输指示获得关联信息。  Obtain the associated information according to the transmission indication. 9. 如权利要求 8所述的信息传输方法, 其特征在于: 所述传输指示表明 关联信息在该数据帧中的位置;  9. The information transmission method according to claim 8, wherein: the transmission indication indicates a location of the association information in the data frame; 所述传输指示包括第一类型、第二类型或第三类型,分别表明关联信息在 数据帧中的位置为源 MAC地址字段、 头部扩展头以及尾部扩展头。  The transmission indication includes a first type, a second type, or a third type, respectively indicating that the location of the associated information in the data frame is a source MAC address field, a header extension header, and a tail extension header. 10. 如权利要求 8所述的信息传输方法, 其特征在于: 所述传输指示为第 四类型和序列号,表明关联信息在以其为载荷的控制信息帧中,该控制信息帧 的传输指示包括相同的序列号;  The information transmission method according to claim 8, wherein: the transmission indication is a fourth type and a sequence number, indicating that the association information is in a control information frame with the payload, and the transmission indication of the control information frame Including the same serial number; 所述按照传输指示获得关联信息具体为:接收传输指示为第五类型和所述 序列号的 :据帧, 其载荷为对应的关联信息。  The obtaining the association information according to the transmission indication is specifically: receiving the transmission indication as the fifth type and the sequence number: according to the frame, the payload is the corresponding association information. 11. 如权利要求 6所述的信息传输方法, 其特征在于: 所述的数据帧的源 MAC地址字段最高位是 1。  11. The information transmission method according to claim 6, wherein: the highest bit of the source MAC address field of the data frame is 1. 12. —种以太网中的信息传输装置, 其特征在于, 包括:  12. An information transmission device in an Ethernet, comprising: 封装模块, 用于在数据帧的 MAC地址字段封装关联信息的传输指示; 所 述关联信息与该数据帧的载荷具有关联关系;  An encapsulating module, configured to encapsulate, in a MAC address field of the data frame, a transmission indication of the association information; the association information is associated with a payload of the data frame; 发送模块, 用于按照所述传输指示发送所述关联信息。  And a sending module, configured to send the association information according to the transmission indication. 13. 如权利要求 12所述的信息传输装置, 其特征在于: 所述装置还包括 传输指示模块, 用于根据关联信息和所述数据帧的长度确定传输指示。  13. The information transmission apparatus according to claim 12, wherein: the apparatus further comprises a transmission indication module, configured to determine a transmission indication according to the association information and the length of the data frame. 14. 如权利要求 13所述的信息传输装置, 其特征在于, 所述根据关联信 息确定传输指示包括:  14. The information transmission apparatus according to claim 13, wherein the determining the transmission indication according to the association information comprises: 当所述关联信息的长度不大于第一阈值时,确定传输指示为第一类型,表 明关联信息在数据帧中的源 MAC地址字段; 所述第一阈值小于源 MAC地址 字段的长度;  When the length of the association information is not greater than the first threshold, determining that the transmission indication is the first type, indicating that the associated information is in the source MAC address field in the data frame; the first threshold is smaller than the length of the source MAC address field; 当所述关联信息与所述数据帧的长度之和不超过第二阈值时,确定传输指 示为第二类型或第三类型,分别表明关联信息在数据帧中的头部扩展头或尾部 扩展头; 所述第二阔值不超过以太网的最大传输单位 MTU; Determining the transmission finger when the sum of the association information and the length of the data frame does not exceed the second threshold Shown as a second type or a third type, respectively indicating a header extension header or a tail extension header of the associated information in the data frame; the second threshold does not exceed the maximum transmission unit MTU of the Ethernet; 当所述关联信息与所述数据帧的长度之和超过第二阈值时,确定传输指示 为第四类型并指定序列号,表明关联信息在具有相同序列号的控制信息帧中发 送; 所述控制信息帧以关联信息为载荷。  When the sum of the association information and the length of the data frame exceeds a second threshold, determining that the transmission indication is the fourth type and specifying the sequence number, indicating that the association information is sent in a control information frame having the same sequence number; Information frames are loaded with associated information. 15. 一种以太网中的信息传输装置, 其特征在于, 包括:  An information transmission device in an Ethernet, comprising: 接收模块, 用于接收数据帧;  a receiving module, configured to receive a data frame; 解封装模块, 用于从接收数据帧的源 MAC地址字段解析出关联信息的传 输指示, 并按照传输指示获得关联信息; 所述关联信息与该数据帧的载荷具有 关联关系。  And a decapsulation module, configured to parse the transmission indication of the association information from the source MAC address field of the received data frame, and obtain the association information according to the transmission indication; the association information has an association relationship with the payload of the data frame. 16. 如权利要求 15所述的信息传输装置, 其特征在于, 所述按照传输指 示获得关 Jf :信息包括:  The information transmission device according to claim 15, wherein the obtaining the information according to the transmission indication Jf: the information comprises: 当传输指示为第一类型时,在所述数据帧的源 MAC地址字段解析出关联 息  When the transmission indication is the first type, the associated information is parsed in the source MAC address field of the data frame. 当传输指示为第二类型时, 在所述数据帧的头部扩展头解析出关联信息; 当传输指示为第三类型时, 在所述数据帧的尾部扩展头解析出关联信息; 当传输指示为第四类型时,获得所述传输指示的序列号; 在传输指示为第 五类型并具有相同序列号的数据帧的载荷中解析出关联信息。  When the transmission indication is the second type, the header extension header parses the association information in the header of the data frame; when the transmission indication is the third type, the extension header parses the association information at the tail of the data frame; when the transmission indication When it is the fourth type, the sequence number of the transmission indication is obtained; the association information is parsed in the payload of the data frame indicating the fifth type and having the same sequence number. 17. —种以太网中的信息传输系统, 其特征在于, 包括:  17. An information transmission system in an Ethernet, comprising: 第一设备, 用于在数据帧的源 MAC地址字段封装关联信息的传输指示, 并按照所述传输指示发送所述关联信息;所述关联信息与该数据桢的载荷具有 关联关系;  a first device, configured to encapsulate, in a source MAC address field of the data frame, a transmission indication of the association information, and send the association information according to the transmission indication; the association information has an association relationship with a payload of the data volume; 第二设备, 用于在接收数据帧的源 MAC地址字段解析关联信息的传输指 示, 并按照传输指示获得关联信息。  And a second device, configured to parse the transmission indication of the association information in the source MAC address field of the received data frame, and obtain the association information according to the transmission indication. 18. 如权利要求 17所述的信息传输系统, 其特征在于: 所述第一设备与 第二设备在链路层连通。  18. The information transmission system according to claim 17, wherein: the first device and the second device are in communication at a link layer.
PCT/CN2007/001783 2006-06-30 2007-06-06 Method, apparatus and system for information transmitting between devices in ethernet Ceased WO2008003218A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610061442.2 2006-06-30
CNB2006100614422A CN100454872C (en) 2006-06-30 2006-06-30 Method and system for transmitting information between devices in Ethernet

Publications (1)

Publication Number Publication Date
WO2008003218A1 true WO2008003218A1 (en) 2008-01-10

Family

ID=37722250

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/001783 Ceased WO2008003218A1 (en) 2006-06-30 2007-06-06 Method, apparatus and system for information transmitting between devices in ethernet

Country Status (2)

Country Link
CN (1) CN100454872C (en)
WO (1) WO2008003218A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010079070A1 (en) * 2009-01-06 2010-07-15 Commissariat A L'energie Atomique Et Aux Energies Alternatives Device for linking digital data between ethernet boards
US11671359B2 (en) 2020-08-07 2023-06-06 Telia Company Ab Methods and apparatuses in a network comprising a plurality of switch devices

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905147B (en) * 2012-12-28 2017-03-22 联芯科技有限公司 Data processing method, sending device, receiving device and communication system
JP6594319B2 (en) * 2014-08-29 2019-10-23 株式会社東芝 Wireless communication device
CN105635998B (en) * 2015-12-25 2019-05-21 哈尔滨海能达科技有限公司 A kind of data uploading method, device and terminal
CN109656687A (en) * 2018-12-21 2019-04-19 合肥时代智慧高新投资管理有限公司 A kind of host to client computer information transferring method
CN113747369B (en) * 2020-05-29 2023-03-24 芯海科技(深圳)股份有限公司 Broadcast data processing method, apparatus, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282474A (en) * 1997-12-15 2001-01-31 诺特尔·马特拉移动通信公司 Method for constructing digital signal frame, and radio communication base station implementing said method
WO2002017570A1 (en) * 2000-08-24 2002-02-28 Ocular Networks Unified data packet for encapsulating data packets having diverse formats
US6850495B1 (en) * 2000-08-31 2005-02-01 Verizon Communications Inc. Methods, apparatus and data structures for segmenting customers using at least a portion of a layer 2 address header or bits in the place of a layer 2 address header
CN1759555A (en) * 2003-03-18 2006-04-12 诺基亚有限公司 Method, system and network entity for data transmission and reception with header protection

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030149971A1 (en) * 2002-02-04 2003-08-07 Coaxmedia, Inc. Method for transmitting frames with both data and a polling request
KR100617734B1 (en) * 2003-03-19 2006-08-28 삼성전자주식회사 A computer-readable recording medium recording a logical MAC implementation of an Ethernet passive optical subscriber network system and a program for realizing the method.
CN100428684C (en) * 2003-08-18 2008-10-22 华为技术有限公司 out-of-band channel method
KR100584365B1 (en) * 2004-05-14 2006-05-26 삼성전자주식회사 How to Configure Data Frames on Synchronous Ethernet and How to Handle Them

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282474A (en) * 1997-12-15 2001-01-31 诺特尔·马特拉移动通信公司 Method for constructing digital signal frame, and radio communication base station implementing said method
WO2002017570A1 (en) * 2000-08-24 2002-02-28 Ocular Networks Unified data packet for encapsulating data packets having diverse formats
US6850495B1 (en) * 2000-08-31 2005-02-01 Verizon Communications Inc. Methods, apparatus and data structures for segmenting customers using at least a portion of a layer 2 address header or bits in the place of a layer 2 address header
CN1759555A (en) * 2003-03-18 2006-04-12 诺基亚有限公司 Method, system and network entity for data transmission and reception with header protection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010079070A1 (en) * 2009-01-06 2010-07-15 Commissariat A L'energie Atomique Et Aux Energies Alternatives Device for linking digital data between ethernet boards
US11671359B2 (en) 2020-08-07 2023-06-06 Telia Company Ab Methods and apparatuses in a network comprising a plurality of switch devices

Also Published As

Publication number Publication date
CN100454872C (en) 2009-01-21
CN1913470A (en) 2007-02-14

Similar Documents

Publication Publication Date Title
US11979322B2 (en) Method and apparatus for providing service for traffic flow
US7899048B1 (en) Method and apparatus for remotely monitoring network traffic through a generic network
US7853691B2 (en) Method and system for securing a network utilizing IPsec and MACsec protocols
KR100910818B1 (en) Method and system for tunneling macsec packets through non-macsec nodes
US8514713B2 (en) Flow control for multi-hop networks
WO2022104869A1 (en) Chip-level encryption-based ethernet and field bus fusion gateway and transmission method
WO2008003218A1 (en) Method, apparatus and system for information transmitting between devices in ethernet
US8320374B2 (en) Method and apparatus for improved multicast routing
CN102217251A (en) Data forwarding method, data processing method, system and device thereof
WO2008080315A1 (en) A method, equipment and system for transmitting data
US7751408B2 (en) Circuit emulation over an IP interworking VLL
WO2007009349A1 (en) Method and apparatus for transmitting message
JP2022516355A (en) Data transmission method and equipment
CN101505283B (en) A message processing method and device
WO2017193732A1 (en) Method for encapsulating and decapsulating pseudo-wire data message, and relevant apparatus
CN101640635A (en) Method for avoiding message recombination in 6over4 tunnel and system therefor
WO2010025628A1 (en) Method, equipment and system for data transmission on physical layer.
WO2021254454A1 (en) Bier oam detection method, and device and system
WO2011012022A1 (en) Base station interface controller, base station cascade transmission system and cascade transmission method
CN103036984A (en) One-way flow detection method and network equipment
KR100849494B1 (en) Apparatus and Method for IPv6 Tunneling
EP2617166B1 (en) Method and apparatus for reducing receiver identification overhead in ip broadcast networks
WO2023174188A1 (en) Packet processing method, routing announcement method, and related device
JP2003046566A (en) Packet processing apparatus and method
CN116260895A (en) Method and system for improving UDP fragment packet forwarding performance based on PMTU

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07721356

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

122 Ep: pct application non-entry in european phase

Ref document number: 07721356

Country of ref document: EP

Kind code of ref document: A1