[go: up one dir, main page]

CN101184098B - Data transmission method and transmission apparatus - Google Patents

Data transmission method and transmission apparatus Download PDF

Info

Publication number
CN101184098B
CN101184098B CN2007101986075A CN200710198607A CN101184098B CN 101184098 B CN101184098 B CN 101184098B CN 2007101986075 A CN2007101986075 A CN 2007101986075A CN 200710198607 A CN200710198607 A CN 200710198607A CN 101184098 B CN101184098 B CN 101184098B
Authority
CN
China
Prior art keywords
hom
frame
payload
data
ethernet
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.)
Expired - Fee Related
Application number
CN2007101986075A
Other languages
Chinese (zh)
Other versions
CN101184098A (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.)
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
Priority to CN2007101986075A priority Critical patent/CN101184098B/en
Publication of CN101184098A publication Critical patent/CN101184098A/en
Priority to PCT/CN2008/073451 priority patent/WO2009086774A1/en
Application granted granted Critical
Publication of CN101184098B publication Critical patent/CN101184098B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone

Landscapes

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

Abstract

本发明实施例公开一种数据传输方法,包括:获取需转换数据帧的净荷部分;在数据链路层将所述获取的净荷部分添加HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;将多个所述HOM单帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。本发明实施例还提供一种数据传输方法:接收由HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成;根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。相应的,本发明实施例还提供一种数据传输装置。本发明实施例提供的技术方案能够提高数据传输效率。

Figure 200710198607

The embodiment of the present invention discloses a data transmission method, comprising: acquiring the payload part of the data frame to be converted; adding the HOM frame header to the acquired payload part at the data link layer to form a HOM single frame, and the HOM frame header Contains message type and payload length; carries multiple HOM single frames as payloads in Ethernet frames, and sends the Ethernet frames to the destination according to routing information. The embodiment of the present invention also provides a data transmission method: receiving an Ethernet frame composed of a HOM single frame and a HOM multiframe as a payload, and the HOM single frame is composed of adding a HOM frame header to the payload part of the data frame to be converted; Separate the HOM single frame according to the number of HOM single frames, read the payload part of each HOM single frame and restore it to the data frame before conversion. Correspondingly, the embodiment of the present invention also provides a data transmission device. The technical solutions provided by the embodiments of the present invention can improve data transmission efficiency.

Figure 200710198607

Description

数据传输方法和传输装置Data transmission method and transmission device

技术领域technical field

本发明涉及通信技术领域,具体涉及一种数据传输方法和传输装置。The invention relates to the field of communication technology, in particular to a data transmission method and a transmission device.

背景技术Background technique

在目前的数据通信当中,存在着多种传输协议,传输数据时,一般都牵涉到需将承载在一种链路层协议的数据转换为另一种链路层协议的数据。转换时,一般采用类似OSI(Open System Interconnect,开放系统互连)的7层协议模型的转换的方式,进行层层分离,将各层协议的头部去掉,获取需要的数据本身之后,再将数据添加另一种协议头,从而完成协议的转换。例如HDLC(High Data Link Control,高级数据链路控制)帧需转换成以太网帧进行传输,则HDLC协议和以太网协议利用上层的IP(Internet Protocol,互联网络协议)协议等网络层协议进行中转,进行链路层协议的转换,最终将一个HDLC帧转化为一个以太网帧后再传输。In the current data communication, there are various transmission protocols. When transmitting data, it generally involves converting the data carried by one link layer protocol into the data of another link layer protocol. During the conversion, the conversion method of the 7-layer protocol model similar to OSI (Open System Interconnect, Open System Interconnect) is generally used to separate the layers, remove the headers of the protocols of each layer, and obtain the required data itself. Another protocol header is added to the data to complete the protocol conversion. For example, HDLC (High Data Link Control, advanced data link control) frames need to be converted into Ethernet frames for transmission, then the HDLC protocol and Ethernet protocol use the upper layer IP (Internet Protocol, Internet Protocol) protocol and other network layer protocols for transit , to convert the link layer protocol, and finally convert an HDLC frame into an Ethernet frame before transmission.

在对现有技术的研究和实践过程中,发明人发现现有技术存在以下问题:现有技术的数据传输方式下,例如把承载在HDLC点对点链路中的HDLC帧转换为在以太网链路上传输的以太网帧时,当HDLC帧中实际的传输数据净荷长度较短(如几字节到几百字节不等时),传输的数据长度远远小于以太网链路层以太网帧的MTU(Maximum Transmission Unit,最大传输单元)长度(1500字节),并且传输的数据帧数目较多时,以太网的传输效率会很低,很大程度的浪费系统的CPU(Central Processing Unit,中央处理器)处理能力。During the research and practice of the prior art, the inventor has found that the prior art has the following problems: under the data transmission mode of the prior art, for example, the HDLC frame carried in the HDLC point-to-point link is converted into an HDLC frame on the Ethernet link When the Ethernet frame is transmitted on the Internet, when the actual transmission data payload length in the HDLC frame is relatively short (such as a few bytes to hundreds of bytes), the length of the transmitted data is much smaller than that of the Ethernet link layer Ethernet The MTU (Maximum Transmission Unit, maximum transmission unit) length of the frame (1500 bytes), and when the number of data frames to be transmitted is large, the transmission efficiency of Ethernet will be very low, which will greatly waste the system's CPU (Central Processing Unit, CPU) processing power.

发明内容Contents of the invention

本发明实施例要解决的技术问题是提供一种数据传输方法和传输装置,能够提高数据传输效率。The technical problem to be solved by the embodiments of the present invention is to provide a data transmission method and a transmission device, which can improve data transmission efficiency.

为解决上述技术问题,本发明所提供的实施例是通过以下技术方案实现的:In order to solve the above technical problems, the embodiments provided by the present invention are achieved through the following technical solutions:

本发明实施例提供一种数据传输方法,包括:获取需转换数据帧的净荷部分;在数据链路层将所述获取的净荷部分添加HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;将多个所述HOM单帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。An embodiment of the present invention provides a data transmission method, comprising: obtaining the payload part of the data frame to be converted; adding a HOM frame header to the obtained payload part at the data link layer to form a HOM single frame, and the HOM frame header Contains message type and payload length; carries multiple HOM single frames as payloads in Ethernet frames, and sends the Ethernet frames to the destination according to routing information.

本发明实施例提供一种数据传输方法,包括:接收由HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成;根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。An embodiment of the present invention provides a data transmission method, comprising: receiving an Ethernet frame composed of a HOM single frame and a HOM multiframe as a payload, and the HOM single frame is formed by adding a HOM frame header to the payload part of the data frame to be converted ; Separate the HOM single frame according to the number of the HOM single frame, read the payload part of each HOM single frame and restore it to the data frame before conversion.

本发明实施例提供一种数据传输装置,包括:第一处理单元,用于获取需转换数据帧的净荷部分;第二处理单元,用于在数据链路层将所述第一处理单元获取的净荷部分添加HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;第三处理单元,用于将所述第二处理单元得到的多个HOM单帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。An embodiment of the present invention provides a data transmission device, including: a first processing unit, configured to obtain the payload portion of the data frame to be converted; a second processing unit, configured to obtain the first processing unit at the data link layer The payload part adds a HOM frame header to form a HOM single frame, and the HOM frame header contains a message type and a payload length; the third processing unit is used to use a plurality of HOM single frames obtained by the second processing unit as a net The payload is carried in the Ethernet frame, and the Ethernet frame is sent to the destination end according to the routing information.

本发明实施例提供一种数据传输装置,包括:接收单元,用于接收由HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成;处理单元,用于根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。An embodiment of the present invention provides a data transmission device, including: a receiving unit, configured to receive an Ethernet frame composed of a HOM single frame and a HOM multiframe as a payload, and the HOM single frame consists of the payload part of the data frame to be converted The HOM frame header is added; the processing unit is used to separate the HOM single frame according to the number of the HOM single frame, read the payload part of each HOM single frame and restore it to the data frame before conversion.

上述技术方案可以看出,本发明实施例技术方案通过在数据链路层将需转换数据帧组成HOM单帧,并将多个所述HOM单帧作为净荷承载在以太网帧中进行复用传输,从而充分利用了以太网帧的MTU长度,大大提高了以太网的数据传输效率。同时,因为在同一个数据链路层就可以实现转换,不需要象现有技术那样利用其他层协议进行转换,因此更简单。It can be seen from the above technical solution that the technical solution of the embodiment of the present invention composes the data frame to be converted into a HOM single frame at the data link layer, and multiplexes the HOM single frame as a payload in an Ethernet frame for multiplexing Transmission, thus making full use of the MTU length of the Ethernet frame, greatly improving the data transmission efficiency of the Ethernet. At the same time, because the conversion can be realized at the same data link layer, it is not necessary to use other layer protocols for conversion as in the prior art, so it is simpler.

附图说明Description of drawings

图1是本发明实施例数据传输方法流程图;Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention;

图2是本发明实施例提出的HOM单帧格式示意图;Fig. 2 is a schematic diagram of the HOM single frame format proposed by the embodiment of the present invention;

图3是本发明实施例提出的HOM单帧的帧头格式示意图;Fig. 3 is a schematic diagram of the frame header format of the HOM single frame proposed by the embodiment of the present invention;

图4是本发明实施例提出的HOM复帧格式示意图;FIG. 4 is a schematic diagram of a HOM multiframe format proposed by an embodiment of the present invention;

图5是本发明实施例提出的HOM类型以太网帧格式示意图;Fig. 5 is the HOM type Ethernet frame format schematic diagram that the embodiment of the present invention proposes;

图6是本发明应用实例一方案示意图;Fig. 6 is a schematic diagram of a scheme of application example 1 of the present invention;

图7是本发明应用实例二方案示意图;Fig. 7 is a schematic diagram of the second scheme of the application example of the present invention;

图8是本发明实施例数据传输装置一结构示意图;FIG. 8 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention;

图9是本发明实施例数据传输装置二结构示意图。Fig. 9 is a schematic diagram of the structure of the second data transmission device according to the embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供了一种数据传输方法,能够提高数据传输效率。An embodiment of the present invention provides a data transmission method, which can improve data transmission efficiency.

本发明实施例提出一种HOM(HDLC OVER MAC,HDLC消息报文承载在MAC(Media Access Control,媒体访问控制)层)单帧和HOM复帧,根据HOM单帧和HOM复帧将需转换的数据帧转换成HOM类型的以太网帧后通过以太网进行传输,从而提高数据传输效率。本发明实施例中需转换数据帧以HDLC帧举例说明但不限于此,例如可以是PPP(Point to Point Protocol,点到点协议)中数据帧等。The embodiment of the present invention proposes a HOM (HDLC OVER MAC, HDLC message message is carried on the MAC (Media Access Control, media access control) layer) single frame and HOM multi-frame, according to the HOM single frame and HOM multi-frame will need to convert Data frames are converted into HOM-type Ethernet frames and then transmitted via Ethernet, thereby improving data transmission efficiency. In the embodiment of the present invention, the data frame to be converted is illustrated by an HDLC frame, but is not limited thereto, for example, it may be a data frame in a PPP (Point to Point Protocol, point-to-point protocol).

请参阅图1,是本发明实施例数据传输方法流程图,包括步骤:Please refer to Fig. 1, which is a flowchart of a data transmission method according to an embodiment of the present invention, including steps:

步骤101、将HDLC帧转换成HOM单帧;Step 101, converting the HDLC frame into a HOM single frame;

在数据链路层从HDLC点到点链路收到HDLC帧,将HDLC帧中的数据净荷与其他部分分离,并且仅保留数据净荷部分,获取所述数据净荷部分。然后为HDLC帧中的数据净荷部分添加HOM帧头,组成一个HOM单帧。The HDLC frame is received from the HDLC point-to-point link at the data link layer, the data payload in the HDLC frame is separated from other parts, and only the data payload part is reserved, and the data payload part is obtained. Then add a HOM frame header to the data payload part in the HDLC frame to form a HOM single frame.

以下对本发明实施例提出的HOM单帧进行详细介绍。The HOM single frame proposed by the embodiment of the present invention will be described in detail below.

请参阅图2,是本发明实施例提出的HOM单帧格式示意图。Please refer to FIG. 2 , which is a schematic diagram of the HOM single frame format proposed by the embodiment of the present invention.

HOM单帧(HOM Frame),包括帧头域(HOM Head)、HOM净荷域(HOMPayLoad)和填充域(PAD)。HOM single frame (HOM Frame), including frame header field (HOM Head), HOM payload field (HOMPayLoad) and padding field (PAD).

其中,HOM单帧填充域(PAD)为可选项,可以根据不同的CPU来决定是否保留此域。在32位CPU上,为了CPU寻址的方便,使每一个HOM单帧都从偶地址开始,这里可对HOM PayLoad填充0~3字节,进行长字(四字节)对齐。Among them, the HOM single-frame padding domain (PAD) is optional, and it can be decided whether to reserve this domain according to different CPUs. On a 32-bit CPU, for the convenience of CPU addressing, each HOM single frame starts from an even address. Here, HOM PayLoad can be filled with 0-3 bytes for long word (four-byte) alignment.

请参阅图3,是本发明实施例提出的HOM单帧的帧头格式示意图。HOM单帧的帧头包含了HOM单帧的管理信息,包括:对端的目的HDLC链路号Peer Link ID、本端的源HDLC链路号Local Link ID、报文类型HOM Type和净荷长度Len。Please refer to FIG. 3 , which is a schematic diagram of the frame header format of the HOM single frame proposed by the embodiment of the present invention. The frame header of the HOM single frame contains the management information of the HOM single frame, including: the destination HDLC link number Peer Link ID of the peer end, the source HDLC link number Local Link ID of the local end, the message type HOM Type, and the payload length Len.

具体介绍请参见以下表1。For details, please refer to Table 1 below.

  比特BitBit Bit 名称name   描述 describe   LW0:31:16LW0:31:16 Peer Link IDPeer Link ID   标识对端协议的物理(虚拟)链路号Identify the physical (virtual) link number of the peer protocol   LW0:15:0LW0:15:0 Local LinkIDLocal LinkID   标识本端协议的物理(虚拟)链路号Identify the physical (virtual) link number of the local protocol   LW1:31:16LW1: 31:16 HOM TypeHOM Type   HOM报文的类型,其定义如下:0x0000:保留0x0001:数据报文0x0002:反压请求报文0x0003:反压响应报文其他:保留The type of HOM message is defined as follows: 0x0000: Reserved 0x0001: Data message 0x0002: Back pressure request message 0x0003: Back pressure response message Others: Reserved   LW1:15:0LW1: 15:0 LenLen   HOM帧净荷长度,不包含HOM头长度以及为长字对齐添加的填充的长度The length of the HOM frame payload, excluding the length of the HOM header and the length of padding added for long word alignment

                             表1 Table 1

在步骤101中,可以通过查找预先建立的路由表,获取对端的目的HDLC链路号,并将本端的源HDLC链路号和对端的目的HDLC链路号填充到HOM单帧的帧头中。因为在路由表中至少包括:本端的源HDLC链路号;本端的源MAC地址;对端的目的MAC地址;对端的目的HDLC链路号。建立路由表可以利用IP协议或者是其他协议进行握手通信完成。因为本端的源HDLC链路号已知,而本端的源HDLC链路号和对端的目的HDLC链路号是一一对应的,所以根据本端的源HDLC链路号在路由表中查找到对端的目的HDLC链路号,并将本端的源HDLC链路号和对端的目的HDLC链路号填充到HOM单帧的帧头中。In step 101, the destination HDLC link number of the opposite end can be obtained by searching the pre-established routing table, and the source HDLC link number of the local end and the destination HDLC link number of the opposite end can be filled into the frame header of the HOM single frame. Because the routing table at least includes: the source HDLC link number of the local end; the source MAC address of the local end; the destination MAC address of the peer end; and the destination HDLC link number of the peer end. The establishment of the routing table can be completed by using the IP protocol or other protocols for handshake communication. Because the source HDLC link ID of the local end is known, and there is a one-to-one correspondence between the source HDLC link ID of the local end and the destination HDLC link ID of the peer end, the peer HDLC link ID can be found in the routing table based on the source HDLC link ID of the local end. Destination HDLC link number, and fill the frame header of the HOM single frame with the source HDLC link number of the local end and the destination HDLC link number of the remote end.

步骤102、将HOM单帧组成HOM复帧;Step 102, forming a HOM single frame into a HOM multiframe;

将上述模式的多个HOM单帧连在一起,添加HOM复帧的帧头,组成一个HOM复帧。Multiple HOM single frames in the above mode are connected together, and the frame header of the HOM multiframe is added to form a HOM multiframe.

请参阅图4,是本发明实施例提出的HOM复帧格式示意图。Please refer to FIG. 4 , which is a schematic diagram of the HOM multiframe format proposed by the embodiment of the present invention.

HOM复帧(HOM MultiFrame),由HOM复帧的帧头和多个HOM单帧组成。A HOM multiframe (HOM MultiFrame) consists of a frame header of a HOM multiframe and multiple HOM single frames.

HOM复帧的帧头包括HOM单帧总数(HOM NUMBER)域和所有HOM单帧的净荷总长度(HOM LENGTH)域。The frame header of the HOM multiframe includes the HOM single frame total number (HOM NUMBER) field and the payload total length (HOM LENGTH) field of all HOM single frames.

HOM NUMBER域,表示HOM复帧中包含HOM单帧的个数;HOMLENGTH域,为HOM复帧中所有HOM单帧的净荷长度之和,包括HOM帧净荷长度以及为了使保证长字对齐填充的长度。The HOM NUMBER field indicates the number of HOM single frames included in the HOM multiframe; the HOMLENGTH field is the sum of the payload lengths of all HOM single frames in the HOM multiframe, including the payload length of the HOM frame and padding to ensure long word alignment length.

一个HOM复帧可以包含多个HOM单帧。HOM复帧中不对HOM单帧个数和长度做限制。在HOM复帧中是根据HOM单帧帧头中的长度域来确定整帧的边界,也就是由HOM单帧帧头加上HOM单帧帧头中的长度域中的值来确定一个HOM单帧的范围。需说明的是,这里确定一个HOM单帧的范围时可根据需要决定是否添加PAD域。A HOM multiframe can contain multiple HOM single frames. There is no limitation on the number and length of HOM single frames in HOM multiframes. In the HOM multiframe, the boundary of the entire frame is determined according to the length field in the HOM single frame header, that is, a HOM single frame is determined by adding the value in the length field in the HOM single frame header to the HOM single frame header frame range. It should be noted that when determining the range of a single HOM frame here, it may be determined whether to add a PAD field according to needs.

步骤103、将HOM复帧组成以太网帧;Step 103, forming the HOM multiframe into an Ethernet frame;

为HOM复帧添加以太网帧头,组成一个HOM类型以太网帧。Add an Ethernet frame header to the HOM multiframe to form a HOM type Ethernet frame.

为了实现将HDLC帧组成一组复帧在以太网上传输,实现HDLC OVERMAC,本发明实施例在以太网协议802.1Q的基础上中新增一种HOM类型的以太网帧,HOM复帧作为以太网帧的净荷承载其上。In order to form HDLC frames into a group of multiframes and transmit them on Ethernet to realize HDLC OVERMAC, the embodiment of the present invention adds a HOM type Ethernet frame on the basis of Ethernet protocol 802.1Q, and HOM multiframes are used as Ethernet The payload of the frame is carried on it.

请参阅图5,是本发明实施例提出的HOM类型以太网帧格式示意图。Please refer to FIG. 5 , which is a schematic diagram of the HOM type Ethernet frame format proposed by the embodiment of the present invention.

HOM类型以太网帧包括:以太网帧帧头域、HOM复帧域、PAD域(可选)、FCS(Frame Check Sequence,帧检查序列)域。The HOM type Ethernet frame includes: Ethernet frame header field, HOM multiframe field, PAD field (optional), FCS (Frame Check Sequence, frame check sequence) field.

其中,以太网帧帧头域包括以下内容:Among them, the frame header field of the Ethernet frame includes the following contents:

DA域(Destination MAC,目的介质访问控制地址);SA域(Source MAC,源介质访问控制地址);Tag域,四个字节的802.1Q标签头;Type域,即报文类型。DA domain (Destination MAC, destination media access control address); SA domain (Source MAC, source media access control address); Tag domain, four-byte 802.1Q tag header; Type domain, the packet type.

Tag包含了2个字节长度的TPID(Tag Protocol Identifier,标签协议标识)和2个字节长度的TCI(Tag Control Information,标签控制信息)。TPID是IEEE(Institute of Electrical and Electronics Engineers,电气电子工程师协会)定义的新的类型,表明这是一个加了802.1Q标签的帧。TPID包含了一个固定的值0x8100。TCI包含帧的控制信息,包括以下元素:优先级Priority、CFI(Canonical Format Indicator,规范格式指示器)、VLAN ID(VLAN Identified,虚拟局域网标识)。Priority,长度为3bits,它指明帧的优先级,一共有8种优先级即优先级0-7;CFI,长度为1bit,CFI值为0说明是规范格式,1为非规范格式,CFI被用在令牌环/源路由FDDI介质访问方法中来指示封装帧中所带地址的比特次序信息;VLAN ID,长度为12位,指明VLAN的ID,一共4096个,每个支持802.1Q协议的交换机发送出来的数据包都包含这个域,以指明自己属于哪一个VLAN(Virtual Local Area Network)即虚拟局域网)。Tag includes 2-byte TPID (Tag Protocol Identifier, tag protocol identifier) and 2-byte TCI (Tag Control Information, tag control information). TPID is a new type defined by IEEE (Institute of Electrical and Electronics Engineers, Institute of Electrical and Electronics Engineers), indicating that this is an 802.1Q tagged frame. TPID contains a fixed value 0x8100. TCI contains frame control information, including the following elements: priority Priority, CFI (Canonical Format Indicator, canonical format indicator), VLAN ID (VLAN Identified, virtual local area network identification). Priority, the length is 3bits, which indicates the priority of the frame. There are 8 priorities in total, that is, priority 0-7; CFI, the length is 1bit, and the value of CFI is 0, indicating that it is a standard format, and 1 is a non-standard format. CFI is used In the Token Ring/Source Routing FDDI medium access method to indicate the bit sequence information of the address in the encapsulated frame; VLAN ID, the length is 12 bits, indicating the ID of the VLAN, a total of 4096, each switch supporting the 802.1Q protocol The data packets sent out include this field to indicate which VLAN (Virtual Local Area Network) it belongs to.

Type域字段的定义如下:0x0800,表示IP类型;0x0806,表示ARP类型;0x0F20,表示HDLC over MAC类型以太网帧,简称HOM类型以太网帧。这里用0x0F20这个Type值来表示HOM类型以太网帧,也可以根据实际需要选定其他数值来表示。The definition of the Type domain field is as follows: 0x0800, indicating the IP type; 0x0806, indicating the ARP type; 0x0F20, indicating the HDLC over MAC type Ethernet frame, referred to as the HOM type Ethernet frame. Here, the Type value of 0x0F20 is used to indicate the HOM type Ethernet frame, and other values can also be selected according to actual needs.

PAD域,为可选项,当以太网帧总长度不足64字节时,需要填充PAD域是总长度达到64字节,确保满足以太网帧最小长度。The PAD field is optional. When the total length of the Ethernet frame is less than 64 bytes, the PAD field needs to be filled until the total length reaches 64 bytes to ensure that the minimum length of the Ethernet frame is met.

该步骤103中,查找预先建立的路由表,由本端源HDLC链路号和源MAC地址,查找出对端的目的MAC地址,并将本端的源MAC地址和对端的目的MAC地址填充到以太网帧帧头当中。In this step 103, search the pre-established routing table, find out the destination MAC address of the opposite end by the source HDLC link number and the source MAC address of the local end, and fill the source MAC address of the local end and the destination MAC address of the opposite end into the Ethernet frame in the frame header.

需说明是,这里所述的以太网帧是以带Tag域的以太网帧举例说明但不局限于此,对于不带Tag域的以太网帧,其组成原理是一样的。It should be noted that the Ethernet frame described here is an example of an Ethernet frame with a Tag field but is not limited thereto. For an Ethernet frame without a Tag field, its composition principle is the same.

步骤104、根据路由信息将以太网帧进行发送。Step 104: Send the Ethernet frame according to the routing information.

组成HOM类型以太网数据帧后,通过以太网传输到另一个系统当中。HOM类型以太网数据帧中已经包括路由信息:本端的源HDLC链路号;本端的源MAC地址;对端的目的MAC地址;对端的目的HDLC链路号,因此,根据对端目的MAC地址通过以太网将以太网帧进行发送。After the HOM type Ethernet data frame is formed, it is transmitted to another system through Ethernet. The HOM type Ethernet data frame already includes routing information: the source HDLC link number of the local end; the source MAC address of the local end; the destination MAC address of the peer end; the destination HDLC link number of the peer end. The network sends the Ethernet frame.

对端接收以太网帧后,将以太网帧进行分离并还原成HDLC帧,即进行反向转化过程:以太网帧->HOM复帧->HOM单帧->HDLC帧。反向转化过程需要将各帧头进行层层分离,首先将以太网帧头分离,然后根据HOM复帧当中的HOM单帧总数和HOM单帧的净荷长度,逐个将HOM单帧从复帧中分离出来。After the opposite end receives the Ethernet frame, it separates the Ethernet frame and restores it into an HDLC frame, that is, performs a reverse conversion process: Ethernet frame -> HOM multiframe -> HOM single frame -> HDLC frame. The reverse conversion process needs to separate the frame headers layer by layer. First, separate the Ethernet frame headers, and then separate the HOM single frames from the multiframes one by one according to the total number of HOM single frames in the HOM multiframe and the payload length of the HOM single frame. separated out.

在读取数据之前,将所有HOM单帧中的净荷长度相加与HOM复帧帧头中的HOM净荷总长度进行长度校验,如相同,则可以将HDLC帧的数据净荷从HOM单帧中逐个读取出来,最后将其还原成HDLC帧,根据对端目的HDLC链路号将HDLC帧发送到目的地。Before reading the data, add the payload lengths in all HOM single frames and the total length of the HOM payloads in the HOM multiframe frame header to check the length. Read out one by one from a single frame, and finally restore it to an HDLC frame, and send the HDLC frame to the destination according to the HDLC link number of the opposite end.

通过上述方法,在一个以太网帧中携带多个由HDLC帧转换的HOM单帧,可以充分利用以太网帧的MTU长度,大大提高传输效率,而且HDLC帧和HOM类型的以太网帧在同一个数据链路层就可以转换,不需要利用其他层协议进行转换,也更简单。Through the above method, carrying multiple HOM single frames converted from HDLC frames in one Ethernet frame can make full use of the MTU length of the Ethernet frame and greatly improve the transmission efficiency, and the HDLC frame and the HOM type Ethernet frame are in the same The data link layer can be converted without using other layer protocols for conversion, which is also simpler.

以下详细介绍本发明的具体应用实例。Specific application examples of the present invention are introduced in detail below.

请参阅图6,是本发明应用实例一方案示意图。Please refer to FIG. 6 , which is a schematic diagram of a scheme of an application example 1 of the present invention.

如图6所示通信系统中,存在如下应用场景,A系统和C系统之间存在多条HDLC点到点链路,B系统和D系统存在多条HDLC点到点链路,而在A系统和B系统之间使用以太网进行传输。In the communication system shown in Figure 6, there are the following application scenarios. There are multiple HDLC point-to-point links between system A and system C, multiple HDLC point-to-point links between system B and system D, and in system A Ethernet is used for transmission with system B.

在这种应用场景当中,A系统和C系统之间,以及B系统和D系统之间存在多条HDLC链路,并且它们之间传输的HDLC帧的长度较短而数量较多,而在A系统和B系统之间又可以利用以太网进行传输。此时,就可以利用本发明实施例提供的技术方案,将HDLC帧中的数据净荷与其他部分分离后的数据净荷部分组成HOM单帧,将多个HOM单帧组成HOM复帧,为HOM复帧添加以太网帧帧头组成以太网帧,然后进行传输,可以增大A、B系统之间的传输带宽,从而大大提高系统间的数据传输效率。例如A系统通过HDLC链路接收C系统发送的HDLC帧,将HDLC帧中的数据净荷与其他部分分离后的数据净荷部分组成HOM单帧,将多个HOM单帧组成HOM复帧,为HOM复帧添加以太网帧帧头组成以太网帧,然后根据目的MAC地址并通过以太网传输给B系统,B系统接收以太网帧后,将以太网帧头分离,然后根据HOM复帧当中的HOM单帧总数和HOM单帧的净荷长度,逐个将HOM单帧从复帧中分离出来,从HOM单帧中逐个读取HDLC帧的数据净荷,最后将其还原成HDLC帧,通过HDLC链路传输给D系统。In this application scenario, there are multiple HDLC links between system A and system C, and between system B and system D, and the HDLC frames transmitted between them are relatively short in length and large in number. Ethernet can be used for transmission between the system and the B system. At this moment, just can utilize the technical scheme that the embodiment of the present invention provides, the data payload part after the data payload in the HDLC frame is separated from other parts forms HOM single frame, forms HOM multiframe by a plurality of HOM single frames, for The HOM multiframe adds an Ethernet frame header to form an Ethernet frame, and then transmits it, which can increase the transmission bandwidth between A and B systems, thereby greatly improving the data transmission efficiency between systems. For example, system A receives the HDLC frame sent by system C through the HDLC link, separates the data payload in the HDLC frame from other parts to form a HOM single frame, and combines multiple HOM single frames to form a HOM multiframe. The HOM multiframe adds an Ethernet frame header to form an Ethernet frame, and then transmits it to system B through Ethernet according to the destination MAC address. After receiving the Ethernet frame, system B separates the Ethernet frame header, and then according to the HOM multiframe The total number of HOM single frames and the length of the payload of the HOM single frame, separate the HOM single frame from the multiframe one by one, read the data payload of the HDLC frame from the HOM single frame one by one, and finally restore it to HDLC frame, through HDLC The link is transmitted to the D system.

需说明的是,图中各系统之间是双向的传输过程,上述只是以C系统到D系统方向举例进行了描述,反向传输过程的原理是相同的。反向传输时,B系统进行将HDLC帧最终转换成以太网帧的过程,A系统进行将以太网帧还原成HDLC帧的过程。It should be noted that there is a two-way transmission process between the systems in the figure, and the above is only described by taking the direction from system C to system D as an example, and the principle of the reverse transmission process is the same. During reverse transmission, system B performs the process of converting HDLC frames into Ethernet frames, and system A performs the process of restoring Ethernet frames into HDLC frames.

请参阅图7,是本发明应用实例二方案示意图。Please refer to FIG. 7 , which is a schematic diagram of the second application example of the present invention.

如图7所示,在GSM(Global System for Mobile Communications,全球移动通讯系统)中,BSC(Base Station Controller,基站控制器)控制器系统当中存在A处理单元和A’处理单元。A处理单元作为和其他单板直接相连的接口处理单元通过HDLC链路分别和B、C、D...N、N+1基站系统相连接。As shown in Figure 7, in GSM (Global System for Mobile Communications, Global System for Mobile Communications), there are A processing unit and A' processing unit in the BSC (Base Station Controller, base station controller) controller system. A processing unit is used as an interface processing unit directly connected to other single boards to connect to B, C, D...N, N+1 base station systems respectively through HDLC links.

在现有技术原来的设计方案当中,是只存在A处理单元,当A处理单元收到B、C、D...N、N+1系统发送的数据后,送到应用层进行数据处理,这种方案的缺陷是当与A处理单元连接的其他系统增多时,A处理单元需要通过HDLC链路与各系统传输以及传输给应用层处理的数据将随之成正比增加,当基站的数量增大到一定程度时,A处理单元也将成为整个系统的瓶颈部分,限制BSC扩展连接基站的能力。而本发明实施例二方案中,是在BSC控制器系统中采用A处理单元和A’处理单元代替原来的A处理单元的方案,A处理单元只保留接口处理单元的主功能,而分出的A’处理单元就负责处理原来的应用层的数据。A处理单元通过HDLC链路收到HDLC帧之后,将HDLC帧取其净荷组成HOM单帧,将多个HOM单帧组成HOM复帧,为HOM复帧添加以太网帧帧头组成以太网帧,根据目的MAC地址并通过以太网传输到A’处理单元。A’处理单元在接收以太网帧后,将以太网帧头分离,然后根据HOM复帧当中的HOM单帧总数和HOM单帧的净荷长度,逐个将HOM单帧从复帧中分离出来,最后分离HOM单帧帧头,只剩下HDLC净荷,交给应用层去处理。这样,就将原来需A处理单元处理的数据,转而由A’处理单元处理,使得A处理单元的功能单一化,并使其作为接口处理单元的能力得到提高,解决了原存在的瓶颈问题,提高了整个系统的传输性能。In the original design scheme of the existing technology, there is only A processing unit. When A processing unit receives the data sent by B, C, D...N, N+1 systems, it sends it to the application layer for data processing. The disadvantage of this solution is that when the number of other systems connected to the A processing unit increases, the data that the A processing unit needs to transmit to each system through the HDLC link and to the application layer for processing will increase proportionally. When the number of base stations increases When it is large enough, the A processing unit will also become the bottleneck of the whole system, limiting the ability of the BSC to expand and connect to the base station. However, in the second scheme of the embodiment of the present invention, the scheme of adopting A processing unit and A' processing unit to replace the original A processing unit in the BSC controller system, the A processing unit only retains the main function of the interface processing unit, and separates The A' processing unit is responsible for processing the data of the original application layer. After the A processing unit receives the HDLC frame through the HDLC link, it takes the payload of the HDLC frame to form a HOM single frame, forms multiple HOM single frames into a HOM multiframe, and adds an Ethernet frame header to the HOM multiframe to form an Ethernet frame. , according to the destination MAC address and transmitted to the A' processing unit through Ethernet. After receiving the Ethernet frame, the A' processing unit separates the Ethernet frame header, and then separates the HOM single frame from the multiframe one by one according to the total number of HOM single frames in the HOM multiframe and the payload length of the HOM single frame, Finally, the HOM single frame header is separated, leaving only the HDLC payload, which is handed over to the application layer for processing. In this way, the data that originally needs to be processed by the A processing unit is transferred to the A' processing unit, so that the function of the A processing unit is simplified, and its ability as an interface processing unit is improved, and the original bottleneck problem is solved. , which improves the transmission performance of the whole system.

需要说明的是,在应用实例一中,A系统和B系统各自的HDLC链路是物理存在的,维护路由表时,只需要将本端和对端的HDLC链路号和MAC地址填入路由表即可;而在应用实例二中,由于A’处理单元中没有HDLC物理链路,此时可以虚拟一个A’处理单元的HDLC链路,将A处理单元的物理HDLC链路和A’处理单元的虚拟HDLC链路关联起来填入路由表,同样将A处理单元的MAC地址和A’处理单元的MAC地址也填入路由表,在A和A’处理单元通过以太网建立连接。It should be noted that in application example 1, the HDLC links of system A and system B exist physically. When maintaining the routing table, only the HDLC link numbers and MAC addresses of the local end and the peer end need to be filled in the routing table. In the second application example, since there is no HDLC physical link in the A' processing unit, a virtual HDLC link of the A' processing unit can be virtualized at this time, and the physical HDLC link of the A processing unit and the A' processing unit Associate the virtual HDLC link of A to fill in the routing table, and also fill in the routing table with the MAC address of A processing unit and the MAC address of A' processing unit, and establish a connection between A and A' processing unit through Ethernet.

上述内容详细介绍了本发明实施例的数据传输方法,相应的,本发明实施例提供一种数据传输装置。The above content introduces the data transmission method of the embodiment of the present invention in detail, and correspondingly, the embodiment of the present invention provides a data transmission device.

请参阅图8,是本发明实施例数据传输装置一结构示意图。Please refer to FIG. 8 , which is a schematic structural diagram of a data transmission device according to an embodiment of the present invention.

如图8所示,数据传输装置包括第一处理单元81、第二处理单元82和第三处理单元83。As shown in FIG. 8 , the data transmission device includes a first processing unit 81 , a second processing unit 82 and a third processing unit 83 .

第一处理单元81,用于获取需转换数据帧的净荷部分。假设需转换数据帧为HDLC帧,第一处理单元81从HDLC点到点链路收到HDLC帧后,将HDLC帧其他部分分离,仅将数据净荷部分保留。The first processing unit 81 is configured to obtain the payload part of the data frame to be converted. Assuming that the data frame needs to be converted into an HDLC frame, after receiving the HDLC frame from the HDLC point-to-point link, the first processing unit 81 separates other parts of the HDLC frame, and only keeps the data payload part.

第二处理单元82,用于在数据链路层将所述第一处理单元81获取的净荷部分添加HOM帧头组成HOM单帧。每个HOM单帧包括帧头域(HOMHead)、HOM净荷域(HOM PayLoad)和填充域(PAD),其中填充域为可选项。第一处理单元81获取的需转换数据帧的净荷部分就作为HOM单帧的HOM净荷。HOM单帧的帧头包含了HOM单帧的管理信息,包括:对端的目的HDLC链路号Peer Link ID、本端的源HDLC链路号Local Link ID、类型HOM Type和净荷长度Len。The second processing unit 82 is configured to add a HOM frame header to the payload part acquired by the first processing unit 81 at the data link layer to form a HOM single frame. Each HOM single frame includes a frame header field (HOMHead), a HOM payload field (HOM PayLoad) and a padding field (PAD), where the padding field is optional. The payload part of the data frame to be converted obtained by the first processing unit 81 is used as the HOM payload of the HOM single frame. The frame header of the HOM single frame contains the management information of the HOM single frame, including: the destination HDLC link number Peer Link ID of the peer end, the source HDLC link number Local Link ID of the local end, the type HOM Type, and the payload length Len.

第三处理单元83,用于将所述第二处理单元82得到的多个HOM单帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。The third processing unit 83 is configured to carry the multiple HOM single frames obtained by the second processing unit 82 as payloads in the Ethernet frame, and send the Ethernet frame to the destination according to the routing information.

所述第三处理单元83具体是将多个所述HOM单帧组成HOM复帧作为净荷承载在以太网帧中。HOM复帧(HOM MultiFrame),由HOM复帧的帧头和多个HOM单帧组成。HOM复帧的帧头包括HOM单帧总数(HOMNUMBER)域和所有HOM单帧的净荷总长度(HOM LENGTH)域。The third processing unit 83 specifically forms a plurality of HOM single frames into a HOM multiframe as a payload and carries it in an Ethernet frame. A HOM multiframe (HOM MultiFrame) consists of a frame header of a HOM multiframe and multiple HOM single frames. The frame header of the HOM multiframe includes the HOM single frame total number (HOMNUMBER) field and the payload total length (HOM LENGTH) field of all HOM single frames.

这里所述的以太网帧,是指HOM类型以太网帧,包括:以太网帧帧头域、HOM复帧域、PAD域(可选)、FCS域。其中,以太网帧帧头域包括以下内容:DA域(Destination MAC,目的MAC地址);SA域(Source MAC,源MAC地址);Tag域,四个字节的802.1Q标签头;Type域,即报文类型。Type域字段采用0x0F20,表示HDLC over MAC类型以太网帧,简称HOM类型以太网帧。PAD域,为可选项,当以太网帧总长度不足64字节时,需要填充PAD域是总长度达到64字节,确保满足以太网帧最小长度。The Ethernet frame mentioned here refers to a HOM type Ethernet frame, including: an Ethernet frame header field, a HOM multiframe field, a PAD field (optional), and an FCS field. Wherein, the Ethernet frame header domain includes the following contents: DA domain (Destination MAC, destination MAC address); SA domain (Source MAC, source MAC address); Tag domain, the 802.1Q tag header of four bytes; Type domain, That is, the message type. The Type domain field adopts 0x0F20, indicating HDLC over MAC type Ethernet frame, referred to as HOM type Ethernet frame. The PAD field is optional. When the total length of the Ethernet frame is less than 64 bytes, the PAD field needs to be filled until the total length reaches 64 bytes to ensure that the minimum length of the Ethernet frame is met.

以太网帧中路由信息包括:本端的源HDLC链路号;本端的源MAC地址;对端的目的MAC地址;对端的目的HDLC链路号。当通过以太网传输时,是根据对端的目的MAC地址进行传输,当通过HDLC链路传输时,是根据对端的目的HDLC链路号进行传输。The routing information in the Ethernet frame includes: the source HDLC link number of the local end; the source MAC address of the local end; the destination MAC address of the peer end; and the destination HDLC link number of the peer end. When transmitting via Ethernet, it is transmitted according to the destination MAC address of the opposite end, and when transmitting through an HDLC link, it is transmitted according to the destination HDLC link number of the opposite end.

请参阅图9,是本发明实施例数据传输装置二结构示意图。Please refer to FIG. 9 , which is a schematic structural diagram of a second data transmission device according to an embodiment of the present invention.

如图9所示,所述数据传输装置包括:接收单元94和处理单元95。As shown in FIG. 9 , the data transmission device includes: a receiving unit 94 and a processing unit 95 .

接收单元94,用于接收发送端发送的以太网帧,所述以太网帧是将多个HOM单帧组成HOM复帧作为净荷承载,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成。每个HOM单帧包括帧头域(HOM Head)、HOM净荷域(HOM PayLoad)和填充域(PAD),其中填充域为可选项。The receiving unit 94 is used to receive the Ethernet frame sent by the sending end. The Ethernet frame is composed of a plurality of HOM single frames into a HOM multiframe as a payload bearer, and the HOM single frame is composed of the payload part of the data frame to be converted Add HOM frame header composition. Each HOM single frame includes frame header field (HOM Head), HOM payload field (HOM PayLoad) and padding field (PAD), where the padding field is optional.

处理单元95,用于根据HOM单帧数目将多个HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。The processing unit 95 is configured to separate a plurality of HOM single frames according to the number of HOM single frames, read the payload part of each HOM single frame and restore it to a data frame before conversion.

所述处理单元95包括:分离单元951、校验单元952和还原单元953。The processing unit 95 includes: a separating unit 951 , a checking unit 952 and a restoring unit 953 .

分离单元951,用于根据HOM单帧数目将多个HOM单帧分离出来。The separation unit 951 is configured to separate multiple HOM single frames according to the number of HOM single frames.

校验单元952,用于将分离单元951分离出来的所有HOM单帧的净荷长度相加后与以太网帧中的HOM复帧的帧头所标识的净荷总长度进行校验。The verification unit 952 is configured to add the payload lengths of all the HOM single frames separated by the separation unit 951 to the total length of the payload identified by the frame header of the HOM multiframe in the Ethernet frame.

还原单元953,用于在所述校验单元952的校验结果为长度相同时,读取各HOM单帧的净荷部分并还原成转换前的数据帧。The restoration unit 953 is configured to read the payload part of each HOM single frame and restore it to the data frame before conversion when the verification result of the verification unit 952 is the same length.

综上所述,本发明实施例技术方案通过在数据链路层将需转换数据帧组成HOM单帧,并将多个所述HOM单帧作为净荷承载在以太网帧中进行复用传输,从而充分利用了以太网帧的MTU长度,大大提高了以太网的数据传输效率。同时,因为在同一个数据链路层就可以实现转换,不需要象现有技术那样利用其他层协议进行转换,因此更简单。To sum up, in the technical solution of the embodiment of the present invention, the data frames to be converted are formed into a HOM single frame at the data link layer, and multiple HOM single frames are carried as payloads in Ethernet frames for multiplexing transmission, Therefore, the MTU length of the Ethernet frame is fully utilized, and the data transmission efficiency of the Ethernet is greatly improved. At the same time, because the conversion can be realized at the same data link layer, it is not necessary to use other layer protocols for conversion as in the prior art, so it is simpler.

进一步的,本发明实施例技术方案中当目的端接收所述以太网帧后,可以根据HOM单帧数目将多个HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。Further, in the technical solution of the embodiment of the present invention, when the destination end receives the Ethernet frame, multiple HOM single frames can be separated according to the number of HOM single frames, and the payload part of each HOM single frame can be read and converted into previous data frame.

以上对本发明实施例所提供的一种数据传输方法和传输装置进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A data transmission method and a transmission device provided by the embodiment of the present invention have been introduced in detail above. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (11)

1.一种数据传输方法,其特征在于,包括:1. A data transmission method, characterized in that, comprising: 获取需转换数据帧的净荷部分;Obtain the payload part of the data frame to be converted; 在数据链路层将所述获取的净荷部分添加高级数据链路控制消息报文承载在媒体访问控制层HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;At the data link layer, the payload part of the acquisition is added to the high-level data link control message message and carried on the media access control layer HOM frame header to form a HOM single frame, and the HOM frame header contains message type and payload length; 将多个所述HOM单帧组成HOM复帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。Composing a plurality of HOM single frames into a HOM multiframe as a payload in an Ethernet frame, and sending the Ethernet frame to the destination according to routing information. 2.根据权利要求1所述的数据传输方法,其特征在于:2. The data transmission method according to claim 1, characterized in that: 所述将获取的净荷部分添加HOM帧头后进一步包括添加填充字段组成HOM单帧。Adding the HOM frame header to the obtained payload part further includes adding padding fields to form a HOM single frame. 3.根据权利要求1或2所述的数据传输方法,其特征在于:3. The data transmission method according to claim 1 or 2, characterized in that: 所述HOM复帧的帧头包括HOM单帧数目和所有HOM单帧的净荷总长度。The frame header of the HOM multiframe includes the number of HOM single frames and the total payload length of all HOM single frames. 4.根据权利要求1所述的数据传输方法,其特征在于:4. The data transmission method according to claim 1, characterized in that: 所述路由信息包括本端源链路号和源媒体访问控制MAC地址,对端目的链路号和目的媒体访问控制MAC地址。The routing information includes the source link number and source MAC address of the local end, and the destination link number and destination MAC address of the opposite end. 5.根据权利要求1所述的数据传输方法,其特征在于:5. The data transmission method according to claim 1, characterized in that: 所述需转换数据帧为高级数据链路控制HDLC帧。The data frame to be converted is an advanced data link control HDLC frame. 6.一种数据传输方法,其特征在于,包括:6. A data transmission method, characterized in that, comprising: 接收由高级数据链路控制消息报文承载在媒体访问控制层HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成;Receive the Ethernet frame carried by the high-level data link control message message in the media access control layer HOM single frame to form the HOM multiframe as the payload, and the HOM single frame is added with the HOM frame header by the payload part of the data frame to be converted composition; 根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。Separate the HOM single frame according to the number of HOM single frames, read the payload part of each HOM single frame and restore it to the data frame before conversion. 7.根据权利要求6所述的数据传输方法,其特征在于:7. The data transmission method according to claim 6, characterized in that: 所述根据HOM单帧数目将HOM单帧分离出来后进一步包括:After the HOM single frame is separated according to the HOM single frame number, it further includes: 将所有分离出来的HOM单帧的净荷长度相加后与以太网帧中的HOM复帧的帧头所标识的净荷总长度进行校验,若相同,则读取各HOM单帧的净荷部分并还原成转换前的数据帧。After adding the payload lengths of all separated HOM single frames, check with the total payload length identified by the frame header of the HOM multiframe in the Ethernet frame, if they are the same, read the payload lengths of each HOM single frame load part and restore it to the data frame before conversion. 8.一种数据传输装置,其特征在于,包括:8. A data transmission device, characterized in that it comprises: 第一处理单元,用于获取需转换数据帧的净荷部分;The first processing unit is used to obtain the payload part of the data frame to be converted; 第二处理单元,用于在数据链路层将所述第一处理单元获取的净荷部分添加高级数据链路控制消息报文承载在媒体访问控制层HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;The second processing unit is used to add the payload part obtained by the first processing unit to the high-level data link control message at the data link layer and carry it in the media access control layer HOM frame header to form a HOM single frame, the HOM The frame header contains message type and payload length; 第三处理单元,用于将所述第二处理单元得到的多个HOM单帧组成HOM复帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。The third processing unit is configured to form a plurality of HOM single frames obtained by the second processing unit into a HOM multiframe as a payload and carry it in the Ethernet frame, and send the Ethernet frame to the destination according to the routing information. 9.根据权利要求8所述的数据传输装置,其特征在于:9. The data transmission device according to claim 8, characterized in that: 所述HOM复帧的帧头包括HOM单帧数目和所有HOM单帧的净荷总长度。The frame header of the HOM multiframe includes the number of HOM single frames and the total payload length of all HOM single frames. 10.一种数据传输装置,其特征在于,包括:10. A data transmission device, characterized in that, comprising: 接收单元,用于接收由高级数据链路控制消息报文承载在媒体访问控制层HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成;The receiving unit is used to receive the Ethernet frame carried by the high-level data link control message message in the media access control layer HOM single frame to form the HOM multiframe as the payload, and the HOM single frame is composed of the payload of the data frame to be converted Partially add HOM frame header composition; 处理单元,用于根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。The processing unit is configured to separate the HOM single frame according to the number of the HOM single frame, read the payload part of each HOM single frame and restore it to the data frame before conversion. 11.根据权利要求10所述的数据传输装置,其特征在于,所述处理单元包括:11. The data transmission device according to claim 10, wherein the processing unit comprises: 分离单元,用于根据HOM单帧数目将HOM单帧分离出来;A separating unit is used to separate the HOM single frame according to the number of HOM single frames; 校验单元,用于将分离单元分离出来的所有HOM单帧的净荷长度相加后与以太网帧中的HOM复帧的帧头所标识的净荷总长度进行校验;A verification unit is used to check the total length of the payload identified by the frame header of the HOM multiframe in the Ethernet frame after adding the payload lengths of all the HOM single frames separated by the separation unit; 还原单元,用于在所述校验单元的校验结果为长度相同时,读取各HOM单帧的净荷部分并还原成转换前的数据帧。The restoration unit is used to read the payload part of each HOM single frame and restore it to the data frame before conversion when the verification result of the verification unit is the same length.
CN2007101986075A 2007-12-11 2007-12-11 Data transmission method and transmission apparatus Expired - Fee Related CN101184098B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2007101986075A CN101184098B (en) 2007-12-11 2007-12-11 Data transmission method and transmission apparatus
PCT/CN2008/073451 WO2009086774A1 (en) 2007-12-11 2008-12-11 A method, an apparatus and a system for transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101986075A CN101184098B (en) 2007-12-11 2007-12-11 Data transmission method and transmission apparatus

Publications (2)

Publication Number Publication Date
CN101184098A CN101184098A (en) 2008-05-21
CN101184098B true CN101184098B (en) 2011-11-02

Family

ID=39449180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101986075A Expired - Fee Related CN101184098B (en) 2007-12-11 2007-12-11 Data transmission method and transmission apparatus

Country Status (2)

Country Link
CN (1) CN101184098B (en)
WO (1) WO2009086774A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184098B (en) * 2007-12-11 2011-11-02 华为技术有限公司 Data transmission method and transmission apparatus
US9787596B2 (en) * 2015-01-26 2017-10-10 Mediatek Inc. Maximum transmission unit size reporting and discovery by a user equipment
CN105635998B (en) * 2015-12-25 2019-05-21 哈尔滨海能达科技有限公司 A kind of data uploading method, device and terminal
WO2017120970A1 (en) * 2016-01-17 2017-07-20 衣佳鑫 Method and system for information fusion based on internet of things
CN108243035B (en) * 2016-12-26 2021-04-09 华为技术有限公司 DCN packet processing method, network device and network system
CN113556619B (en) * 2021-07-15 2024-04-19 广州市奥威亚电子科技有限公司 Device and method for link transmission and method for link reception
CN115225711A (en) * 2022-06-01 2022-10-21 裕太微(上海)电子有限公司 Ethernet equipment of high-efficient transmission
CN115550104B (en) * 2022-12-06 2023-08-15 北京华环电子股份有限公司 AXI bus expansion method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1302140A (en) * 1999-12-29 2001-07-04 深圳市华为电气股份有限公司 Data enchange device and method
CN1316146A (en) * 1999-07-27 2001-10-03 信息产业部武汉邮电科学研究院 Interfacing apparatus and method for adapting ethernet directly to physical channel
JP2005086619A (en) * 2003-09-10 2005-03-31 Fujitsu Ltd SONET / SDH equipment monitoring control communication system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587476B1 (en) * 1999-05-26 2003-07-01 3 Com Corporation Ethernet frame encapsulation over VDSL using HDLC
CN1268092C (en) * 2001-04-18 2006-08-02 信息产业部武汉邮电科学研究院 Interface device and method for direct match of Ethernet with physical channel
US7570643B2 (en) * 2003-02-12 2009-08-04 Cisco Technology, Inc. Efficient framing procedure for variable length packets
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.
CN1954574B (en) * 2003-12-08 2011-04-06 美国博通公司 Unified infrastructure over Ethernet
EP1605618A1 (en) * 2004-06-11 2005-12-14 Alcatel Bandwidth optimization in transport of Ethernet frames
CN101040489B (en) * 2004-10-22 2012-12-05 思科技术公司 Network device architecture for consolidating input/output and reducing latency
FR2887387B1 (en) * 2005-06-17 2007-08-31 Alcatel Sa ENCAPSULATION OF E1-TYPE FRAME UNDER ETHERNET
CN1992670B (en) * 2005-12-30 2010-08-11 华为技术有限公司 Method for relay of Ethernet carrying frame
CN101184098B (en) * 2007-12-11 2011-11-02 华为技术有限公司 Data transmission method and transmission apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1316146A (en) * 1999-07-27 2001-10-03 信息产业部武汉邮电科学研究院 Interfacing apparatus and method for adapting ethernet directly to physical channel
CN1302140A (en) * 1999-12-29 2001-07-04 深圳市华为电气股份有限公司 Data enchange device and method
JP2005086619A (en) * 2003-09-10 2005-03-31 Fujitsu Ltd SONET / SDH equipment monitoring control communication system

Also Published As

Publication number Publication date
WO2009086774A1 (en) 2009-07-16
CN101184098A (en) 2008-05-21

Similar Documents

Publication Publication Date Title
CN101184098B (en) Data transmission method and transmission apparatus
JP6831927B2 (en) Link group configuration method and device
KR101536141B1 (en) Apparatus and method for converting signal between ethernet and can in a vehicle
US9077560B2 (en) Adaptation scheme for communications traffic
CN101277195B (en) Switching network communication system, implementing method and switching unit
US11700148B2 (en) Packet transmission method and device, and computer storage medium
WO2010031324A1 (en) Method, device and system for data transmission
US20090207860A1 (en) Method, apparatus and system for transferring data
US11902172B2 (en) Device and method for transferring identification and/or data flow control information between devices
US8160106B2 (en) Method, device and system for transmitting Ethernet packets
KR20170087633A (en) Method for transmitting data based on priority in network
CN101179556B (en) Method and apparatus for conveying optical fibre channel service
WO2009138007A1 (en) Generic routing encapsulation load bearing method, device and system
US20060230146A1 (en) Method for generating super frame by using sub-frame in residential ethernet system
CN102291294B (en) A kind of method and device realizing the intercommunication of POS/ETH line card
EP2071808A1 (en) Methods and a system and devices for ipv6 datagram transmission in the ethernet
JP2006087107A (en) Method and system for bridging traffic in a resilient packet ring network
KR102362611B1 (en) Method for transmitting and receiving data in automotive network and apparatus for the same
CN101272326A (en) A method and communication device for transmitting packets by aggregation links
CN102801497A (en) Method, device and system for bearing transmission of baseband radio frequency interface
CN100502341C (en) Implementation method and system for transmitting Ethernet services on RPR network
CN102238063B (en) Message processing method and equipment
CN116996592B (en) Network card, data sending processing method and data receiving processing method
CN101754487B (en) Management and control method and device of multi-business transmission network
EP3664371B1 (en) Switching method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111102

Termination date: 20171211

CF01 Termination of patent right due to non-payment of annual fee