CN101184098B - Data transmission method and transmission apparatus - Google Patents

Data transmission method and transmission apparatus Download PDF

Info

Publication number
CN101184098B
CN101184098B CN 200710198607 CN200710198607A CN101184098B CN 101184098 B CN101184098 B CN 101184098B CN 200710198607 CN200710198607 CN 200710198607 CN 200710198607 A CN200710198607 A CN 200710198607A CN 101184098 B CN101184098 B CN 101184098B
Authority
CN
China
Prior art keywords
hom
frame
payload
single frame
data
Prior art date
Application number
CN 200710198607
Other languages
Chinese (zh)
Other versions
CN101184098A (en
Inventor
何纲
冯桂林
段小祥
王淮健
郑朝晖
陈赟
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN 200710198607 priority Critical patent/CN101184098B/en
Publication of CN101184098A publication Critical patent/CN101184098A/en
Application granted granted Critical
Publication of CN101184098B publication Critical patent/CN101184098B/en

Links

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. local area networks [LAN], wide area networks [WAN]
    • 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. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone

Abstract

The invention discloses a method of data transmission, which comprises the following steps: the payload part that needs to convert data frames is obtained; the obtained payload part is added to an HOM frame head in a data link layer to form an HOM single frame; the HOM frame head comprises message type and the payload length; a plurality of HOM single frames are carried in an Ethernet frame as the payload, and the Ethernet frame is sent to an destination terminal based on the route information. The invention also provides a method of data transmission, which comprises the following steps: theEthernet frame carrying the HOM superframe which is composed of a plurality of HOM single frames as the payload is received; the HOM single frames are made by adding the payload part that needs to convert data frames to the HOM frame head; the HOM single frames are separated based on the number of HOM single frames; the payload part of all HOM single frames are read and reduced into the data frames before the conversion. Correspondingly, the invention also provides a device for data transmission. The invention has the advantages of improved data transmission efficiency.

Description

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

技术领域 FIELD

[0001] 本发明涉及通信技术领域,具体涉及一种数据传输方法和传输装置。 [0001] The present invention relates to communication technologies, and particularly relates to a data transmission method and a transmission apparatus.

背景技术 Background technique

[0002] 在目前的数据通信当中,存在着多种传输协议,传输数据时,一般都牵涉到需将承载在一种链路层协议的数据转换为另一种链路层协议的数据。 [0002] in which the current data communication, there are a variety of transmission protocols, data transmission generally involves the need to carry the data link layer protocol is converted to another data link layer protocol. 转换时,一般采用类似OSI (Open System Interconnect,开放系统互连)的7层协议模型的转换的方式,进行层层分离,将各层协议的头部去掉,获取需要的数据本身之后,再将数据添加另一种协议头,从而完成协议的转换。 After the conversion, generally similar OSI (Open System Interconnect, Open Systems Interconnection) protocol model conversion layer 7 manner, layer by layer separation, the head of protocol layers is removed, the data itself needs to acquire, and then Add another protocol header data, thereby completing the protocol conversion. 例如HDLC(High Data Link Control,高级数据链路控制)帧需转换成以太网帧进行传输,则HDLC协议和以太网协议利用上层的IPdnternet Protocol,互联网络协议)协议等网络层协议进行中转,进行链路层协议的转换,最终将一个HDLC帧转化为一个以太网帧后再传输。 For example, HDLC (High Data Link Control, High-Level Data Link Control) frames are converted into their Ethernet frames for transmission, the network layer protocol HDLC protocol using an Ethernet protocol and the upper IPdnternet Protocol, Internet Protocol) transfer, etc., for conversion link layer protocol, eventually a HDLC frame into an Ethernet frame and then transmitted.

[0003] 在对现有技术的研究和实践过程中,发明人发现现有技术存在以下问题:现有技术的数据传输方式下,例如把承载在HDLC点对点链路中的HDLC帧转换为在以太网链路上传输的以太网帧时,当HDLC帧中实际的传输数据净荷长度较短(如几字节到几百字节不等时),传输的数据长度远远小于以太网链路层以太网帧的MTU (Maximum Transmission Unit,最大传输单元)长度(1500字节),并且传输的数据帧数目较多时,以太网的传输效率会很低,很大程度的浪费系统的CPU (Central Processing Unit,中央处理器)处理能力。 [0003] In the research and practice of the prior art, the inventors have found the following problems in the prior art: In the prior art data transmission, for example, convert the HDLC frame in HDLC point-bearer as an Ethernet link Ethernet frames, when the actual transmission of the HDLC frame data payload length is short (e.g., several to several hundreds of bytes ranging from byte), data transmission is much less than the length of the Ethernet link transmission on network link when the MTU (maximum transmission unit, the maximum transmission unit) length (1500 bytes), and a large number of data frame transmission layer Ethernet frame, the Ethernet transmission efficiency will be low, a large degree of waste system CPU (Central processing Unit, central processing unit) processing capability.

发明内容 SUMMARY

[0004] 本发明实施例要解决的技术问题是提供一种数据传输方法和传输装置,能够提高数据传输效率。 [0004] The embodiment of the present invention is to solve the technical problem of providing a data transmission method and a transmission apparatus capable of improving data transmission efficiency.

[0005] 为解决上述技术问题,本发明所提供的实施例是通过以下技术方案实现的: [0005] To solve the above problems, embodiments of the present invention, provided is achieved by the following technical solution:

[0006] 本发明实施例提供一种数据传输方法,包括:获取需转换数据帧的净荷部分;在数据链路层将所述获取的净荷部分添加HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;将多个所述HOM单帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。 [0006] The present invention provides a data transmission method, comprising: obtaining a payload portion of the data frame to be converted; data link layer adds the acquired header payload portion composed HOM HOM single frame, the HOM header and a payload containing a message type length; HOM said plurality of single frame as the payload carried in an Ethernet frame, and transmits the Ethernet frame to the destination according to the routing information.

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

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

[0009] 本发明实施例提供一种数据传输装置,包括:接收单元,用于接收由HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成;处理单元,用于根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。 [0009] An embodiment provides a data transmission apparatus according to the present invention comprises: receiving means for receiving the single frame composed HOM HOM multiframe carried as the payload of the Ethernet frame, the data to be converted by a single frame HOM frame Add header payload portion HOM composition; a processing unit for separating the single frame according to the number HOM HOM out a single frame, the payload portion of each read HOM and reduced to a single frame of data before frame conversion.

[0010] 上述技术方案可以看出,本发明实施例技术方案通过在数据链路层将需转换数据帧组成HOM单帧,并将多个所述HOM单帧作为净荷承载在以太网帧中进行复用传输,从而充分利用了以太网帧的MTU长度,大大提高了以太网的数据传输效率。 [0010] As can be seen above technical solutions, embodiments of the present invention, the technical solutions HOM single frame frames data to be converted by the data link layer, and a plurality of the payloads of the HOM as a single frame in an Ethernet frame multiplexing transmission, to take full advantage of the MTU size the Ethernet frame, greatly improving the efficiency of data transmission of Ethernet. 同时,因为在同一个数据链路层就可以实现转换,不需要象现有技术那样利用其他层协议进行转换,因此更简单。 Meanwhile, because the data link layer in the same conversion can be achieved, as the use of other layers of protocol converter is not required as in the prior art, and therefore easier.

附图说明 BRIEF DESCRIPTION

[0011] 图1是本发明实施例数据传输方法流程图; [0011] FIG. 1 is a flowchart of a data transmission method of the present invention;

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

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

[0014] 图4是本发明实施例提出的HOM复帧格式示意图; [0014] FIG. 4 is a schematic HOM multiframe format provided by the embodiments of the present invention;

[0015] 图5是本发明实施例提出的HOM类型以太网帧格式示意图; [0015] FIG. 5 is a schematic view of an Ethernet frame format HOM type provided by the embodiments of the present invention;

[0016] 图6是本发明应用实例一方案示意图; [0016] FIG. 6 is an example of application of the present invention is a schematic diagram of the program;

[0017] 图7是本发明应用实例二方案示意图; [0017] FIG. 7 is a schematic view of two embodiment examples of the present invention is applied;

[0018] 图8是本发明实施例数据传输装置一结构示意图; [0018] FIG. 8 is a diagram illustrating a configuration example of a data transmission device according to the present invention;

[0019] 图9是本发明实施例数据传输装置二结构示意图。 [0019] FIG. 9 is a schematic structure of a second embodiment of the data transmission apparatus of the present embodiment of the invention.

具体实施方式 Detailed ways

[0020] 本发明实施例提供了一种数据传输方法,能够提高数据传输效率。 Embodiment provides a data transmission method [0020] of the present invention, data transmission efficiency can be improved.

[0021] 本发明实施例提出一种HOM (HDLC OVER MAC,HDLC消息报文承载在MAC (Media Access Control,媒体访问控制)层)单帧和HOM复帧,根据HOM单帧和HOM复帧将需转换的数据帧转换成HOM类型的以太网帧后通过以太网进行传输,从而提高数据传输效率。 Example embodiments provide a HOM (HDLC OVER MAC, HDLC message packets are carried in the MAC (Media Access Control, media access control) layer) and a single frame multiframe HOM, and will be based on HOM HOM single frame multiframe [0021] The present invention after the data to be converted HOM type frame into Ethernet frames for transmission over the Ethernet, thereby improving data transmission efficiency. 本发明实施例中需转换数据帧以HDLC帧举例说明但不限于此,例如可以是PPP(Point to Point Protocol,点到点协议)中数据帧等。 Example embodiments of the present invention to be converted data frame to the HDLC frame to illustrate but not limited to, for example, a PPP (Point to Point Protocol, Point to Point Protocol) data frame and the like.

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

[0023] 步骤101、将HDLC帧转换成HOM单帧; [0023] Step 101, converts HDLC frames into a single frame HOM;

[0024] 在数据链路层从HDLC点到点链路收到HDLC帧,将HDLC帧中的数据净荷与其他部分分离,并且仅保留数据净荷部分,获取所述数据净荷部分。 [0024] In the data link layer receives from point to point link HDLC HDLC frame, the data payload of HDLC frame is separated from the other parts, and retaining only the data payload portion, obtain the data payload portion. 然后为HDLC帧中的数据净荷部分添加HOM帧头,组成一个HOM单帧。 HOM then added header data payload portion of the HDLC frame, consisting of a single frame HOM.

[0025] 以下对本发明实施例提出的HOM单帧进行详细介绍。 [0025] Hereinafter, the embodiments proposed HOM single frame of the present invention is described in detail.

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

[0027] HOM 单帧(Η0Μ Frame),包括帧头域(Η0Μ Head)、Η0Μ 净荷域(HOMPayLoad)和填充域(PAD)。 [0027] HOM single frame (Η0Μ Frame), comprising a frame header field (Η0Μ Head), Η0Μ payload field (HOMPayLoad) and filled domain (PAD).

[0028] 其中,HOM单帧填充域(PAD)为可选项,可以根据不同的CPU来决定是否保留此域。 [0028] wherein, the HOM single frame filled domain (PAD) is optional, you can decide whether to keep this field depending on the CPU. 在32位CPU上,为了CPU寻址的方便,使每一个HOM单帧都从偶地址开始,这里可对HOM PayLoad填充0〜3字节,进行长字(四字节)对齐。 In the 32-bit CPU, the CPU is not addressed in order to facilitate the HOM every single frame starts from the even address, there may be filled HOM PayLoad 0~3 bytes, longword (four bytes) are aligned.

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

[0030] 具体介绍请参见以下表1。 [0030] In particular, refer to the following Table 1.

[0031] [0031]

比特Bit 名称 描述LWO :31:16 Peer Link ID 标识对端协议的物理(虚拟)链路号LWO :15:0 Local Link ID 标识本端协议的物理(虚拟)链路号LWl :31:16 HOM Type HOM报文的类型,其定义如下: 0x0000 :保留0x0001 :数据报文0x0002 :反压请求报文0x0003 :反压响应报文其他:保留LWl :15:0 Len HOM帧净荷长度,不包含HOM头长度以及为长字对齐添加的填充的长度 Bits Bit name Description LWO: 31: 16 Peer Link ID identifies the physical end of the protocol (virtual) link number LWO: 15: 0 Local Link ID can identify the physical protocol (virtual) link number LWl: 31: 16 HOM type HOM packet type, which is defined as follows: 0x0000: reserved 0x0001: 0x0002 packets: request packets back pressure 0x0003: backpressure response packet other: reserved LWl: 15: 0 Len HOM frame payload length, does not contain header length and an alignment length HOM added filled longword

[0032] 表1 [0032] TABLE 1

[0033] 在步骤101中,可以通过查找预先建立的路由表,获取对端的目的HDLC链路号,并将本端的源HDLC链路号和对端的目的HDLC链路号填充到HOM单帧的帧头中。 [0033] In step 101, it is possible by looking up a pre-established routing table, the purpose of obtaining the peer HDLC link number, and filled HDLC link local source and destination end of the link number HDLC frame to the single frame HOM header. 因为在路由表中至少包括:本端的源HDLC链路号;本端的源MAC地址;对端的目的MAC地址;对端的目的HDLC链路号。 Because the routing table includes at least: a source HDLC local link number; local source MAC address; destination MAC address of the peer; peer HDLC link number of the object. 建立路由表可以利用IP协议或者是其他协议进行握手通信完成。 Establish a routing table can be completed using the IP protocol handshaking or other protocol. 因为本端的源HDLC链路号已知,而本端的源HDLC链路号和对端的目的HDLC链路号是一一对应的,所以根据本端的源HDLC链路号在路由表中查找到对端的目的HDLC链路号,并将本端的源HDLC链路号和对端的目的HDLC链路号填充到HOM单帧的帧头中。 Because this end of the source is known HDLC link number, and this end of the HDLC link source and destination peer HDLC link number is one to one, the HDLC link number to find the source of the local routing table at the end of Objective HDLC link number, and the local source and destination links HDLC HDLC link number of the header HOM end filled in a single frame.

[0034] 步骤102、将HOM单帧组成HOM复帧; [0034] Step 102, the HOM HOM multiframe composed of a single frame;

[0035] 将上述模式的多个HOM单帧连在一起,添加HOM复帧的帧头,组成一个HOM复帧。 [0035] A plurality of the above single-frame mode HOM together, adds headers HOM multiframes form a multiframe HOM.

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

[0037] HOM复帧(HOM MultiFrame),由HOM复帧的帧头和多个HOM单帧组成。 [0037] HOM multiframe (HOM MultiFrame), the header frame and a plurality of complex HOM HOM single frame components.

[0038] HOM复帧的帧头包括HOM单帧总数(HOM NUMBER)域和所有HOM单帧的净荷总长度(HOM LENGTH)域。 [0038] HOM header multiframe comprises a payload Total overall length HOM (HOM NUMBER) domain and a single frame of a single frame of all HOM (HOM the LENGTH) field.

[0039] HOM NUMBER域,表示HOM复帧中包含HOM单帧的个数;H0MLENGTH域,为HOM复帧中所有HOM单帧的净荷长度之和,包括HOM帧净荷长度以及为了使保证长字对齐填充的长度。 [0039] HOM NUMBER field indicates the number HOM HOM multiframe comprises a single frame; H0MLENGTH field as HOM multiframe lengths of all payload of a single frame and HOM, including a frame payload length HOM In order to guarantee a long and word alignment padding length.

[0040] 一个HOM复帧可以包含多个HOM单帧。 [0040] The frame may comprise a plurality of complex HOM HOM single frame. HOM复帧中不对HOM单帧个数和长度做限制。 HOM HOM multiframe not do limit the number and length of a single frame. 在HOM复帧中是根据HOM单帧帧头中的长度域来确定整帧的边界,也就是由HOM单帧帧头加上HOM单帧帧头中的长度域中的值来确定一个HOM单帧的范围。 In HOM multiframe boundary is determined based on HOM entire frame length field in the header of a single frame, i.e. the value of the length of HOM single frame header field HOM single frame by adding a frame header to determine a single HOM range of frames. 需说明的是,这里确定一个HOM单帧的范围时可根据需要决定是否添加PAD域。 It should be noted that, when necessary, may determine a range where it is determined whether the single frame HOM added PAD field. [0041] 步骤103、将HOM复帧组成以太网帧; [0041] Step 103, the Ethernet frame HOM multiplexed frames;

[0042] 为HOM复帧添加以太网帧头,组成一个HOM类型以太网帧。 [0042] HOM added to the Ethernet frame multiframe composed of a type of Ethernet frame HOM.

[0043] 为了实现将HDLC帧组成一组复帧在以太网上传输,实现HDLC 0VERMAC,本发明实施例在以太网协议802. IQ的基础上中新增一种HOM类型的以太网帧,HOM复帧作为以太网帧的净荷承载其上。 [0043] In order to achieve a set of HDLC frames on the Ethernet transmission multiframe, implemented HDLC 0VERMAC, embodiments of the present invention add a new type of HOM type of Ethernet frames based on the Ethernet protocol 802. IQ, HOM complex frames as the payload of an Ethernet frame carrying thereon.

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

[0045] HOM类型以太网帧包括:以太网帧帧头域、HOM复帧域、PAD域(可选),FCS (Frame Check Sequence,帧检查序列)域。 [0045] HOM type of Ethernet frames comprises: FCS (Frame Check Sequence, a frame check sequence) field domain in the Ethernet frame header, the HOM multiframe domain, the PAD field (optional).

[0046] 其中,以太网帧帧头域包括以下内容: [0046] wherein the Ethernet frame header includes the following fields:

[0047] DA域(Destination MAC,目的介质访问控制地址);SA域(Source MAC,源介质访问控制地址);Tag域,四个字节的802. IQ标签头;Type域,即报文类型。 [0047] DA field (Destination MAC, destination Media Access Control address); field SA (Source MAC, the source media access control address); the Tag field, four bytes 802. IQ tag header; the Type field, i.e. the message type .

[0048] Tag包含了2个字节长度的TPID (Tag Protocol Identifier,标签协议标识)和2 个字节长度的TCI (Tag Control ^formation,标签控制信息)。 [0048] Tag contains 2-byte length TCI TPID (Tag Protocol Identifier, Tag Protocol ID) and a 2-byte length (Tag Control ^ formation, tag control information). TPID 是IEEE Qnstitute of Electrical and Electronics Engineers,电气电子工程师协会)定义的新的类型,表明这是一个加了802. IQ标签的帧。 TPID is IEEE Qnstitute of Electrical and Electronics Engineers, a new type of Institute of Electrical and Electronics Engineers) defined, it indicates that this is a plus frame 802. IQ tag. TPID包含了一个固定的值0x8100。 TPID contains a fixed value 0x8100. TCI包含帧的控制信息,包括以下元素:优先级I^riority、CFI (Canonical Format hdicator,规范格式指示器)、VLAN ID (VLAN Identif ied,虚拟局域网标识)。 TCI contains control information frame, comprising the following elements: a priority I ^ riority, CFI (Canonical Format hdicator, Canonical Format Indicator), VLAN ID (VLAN Identif ied, VLAN ID). Priority,长度为3bits,它指明帧的优先级,一共有8种优先级即优先级0-7 ;CFI,长度为lbit,CFI值为0说明是规范格式,1 为非规范格式,CFI被用在令牌环/源路由FDDI介质访问方法中来指示封装帧中所带地址的比特次序信息;VLAN ID,长度为12位,指明VLAN的ID,一共4096个,每个支持802. IQ协议的交换机发送出来的数据包都包含这个域,以指明自己属于哪一个VLAN(Virtual Local Area Network)即虚拟局域网)。 The Priority, 3bits length, which indicates the priority of the frame, a total of eight priorities i.e. priority 0-7; CFI, length lbit, CFI value of 0 indicates a standardized format, a non-canonical format, with the CFI is token ring / FDDI media access source routing methods in order to indicate the information bit address carried in the encapsulated frame; VLAN ID, a length of 12 bits specified VLAN ID, in a total of 4096, for each supported protocol 802. IQ switch sends out packets contain this field, to indicate which VLAN (virtual Local Area Network) that is, they belong to the virtual local area network).

[0049] Type域字段的定义如下:0x0800,表示IP类型;0x0806,表示ARP类型;0x0F20,表示HDLC over MAC类型以太网帧,简称HOM类型以太网帧。 [0049] The definition of the Type field contains the following fields: 0x0800, indicates the type of IP; 0x0806, represents an ARP type; 0x0F20, represents HDLC over MAC Ethernet frame type, referred to as HOM type of Ethernet frames. 这里用0x0F20这个Type值来表示HOM类型以太网帧,也可以根据实际需要选定其他数值来表示。 Type value used here to represent this 0x0F20 HOM type of Ethernet frames, may be selected according to actual needs represent other values.

[0050] PAD域,为可选项,当以太网帧总长度不足64字节时,需要填充PAD域是总长度达到64字节,确保满足以太网帧最小长度。 [0050] PAD field, is optional, when the Ethernet frame is less than the total length of 64 bytes, padding PAD field is required total length of 64 bytes, Ethernet frame ensure that the minimum length.

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

[0052] 需说明是,这里所述的以太网帧是以带Tag域的以太网帧举例说明但不局限于此,对于不带Tag域的以太网帧,其组成原理是一样的。 [0052] It should be noted that, where the Ethernet frame is an Ethernet frame with a Tag fields of illustration and not limitation, for the Ethernet frames without the Tag field, the principle is the same composition.

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

[0054] 组成HOM类型以太网数据帧后,通过以太网传输到另一个系统当中。 [0054] After the composition HOM type Ethernet frame, which is transmitted to another system via Ethernet. HOM类型以太网数据帧中已经包括路由信息:本端的源HDLC链路号;本端的源MAC地址;对端的目的MAC 地址;对端的目的HDLC链路号,因此,根据对端目的MAC地址通过以太网将以太网帧进行发送。 HOM type of Ethernet data frames already includes the routing information: the local source HDLC link number; local source MAC address; destination MAC address of the peer; purpose HDLC link number of the terminal, and therefore, according to the peer destination MAC address Ether network Ethernet frames for transmission.

[0055] 对端接收以太网帧后,将以太网帧进行分离并还原成HDLC帧,即进行反向转化过程:以太网帧-> HOM复帧-> HOM单帧-> HDLC帧。 [0055] After the end of the Ethernet frame is received, the Ethernet frames separated and reduced to an HDLC frame, i.e., the reverse conversion process: Ethernet frame -> HOM multiframe -> HOM single frame -> HDLC frame. 反向转化过程需要将各帧头进行层层分离,首先将以太网帧头分离,然后根据HOM复帧当中的HOM单帧总数和HOM单帧的净荷长度,逐个将HOM单帧从复帧中分离出来。 Reverse conversion process is necessary to separate layers for each header, the Ethernet header is first separated, then the total number of single frame according to the payload length HOM HOM single frame and multi-frame among HOM, one by one from a single frame multiframe HOM separated out.

[0056] 在读取数据之前,将所有HOM单帧中的净荷长度相加与HOM复帧帧头中的HOM净荷总长度进行长度校验,如相同,则可以将HDLC帧的数据净荷从HOM单帧中逐个读取出来, 最后将其还原成HDLC帧,根据对端目的HDLC链路号将HDLC帧发送到目的地。 [0056] Before data is read, all the payload length HOM single frame check and adding the length multiplex frame header HOM HOM the total length of the payload, such as the same, the data can be HDLC frame net charge is read out one by one from HOM single frame, and finally reduced to the HDLC frames, in accordance with the purpose of the peer HDLC link number will be sent to the destination of the HDLC frame.

[0057] 通过上述方法,在一个以太网帧中携带多个由HDLC帧转换的HOM单帧,可以充分利用以太网帧的MTU长度,大大提高传输效率,而且HDLC帧和HOM类型的以太网帧在同一个数据链路层就可以转换,不需要利用其他层协议进行转换,也更简单。 [0057] By the above method, a single frame carrying a plurality of HOM converted in the HDLC frame in an Ethernet frame, can take advantage of MTU size Ethernet frames, the transmission efficiency is greatly improved, and the HDLC frame and the Ethernet frame type HOM in the same data link layer can be converted, using another layer of protocol does not require conversion, more simple.

[0058] 以下详细介绍本发明的具体应用实例。 [0058] The following detailed description of an application example of the present invention.

[0059] 请参阅图6,是本发明应用实例一方案示意图。 [0059] Please refer to FIG. 6, the present invention is a program application example FIG.

[0060] 如图6所示通信系统中,存在如下应用场景,A系统和C系统之间存在多条HDLC点到点链路,B系统和D系统存在多条HDLC点到点链路,而在A系统和B系统之间使用以太网进行传输。 [0060] The communication system shown in FIG. 6, there is a scenario, there are multiple links between point A HDLC system and the C system, B, and D systems there are multiple HDLC system point to point link, and A system using Ethernet between the transmission and the B system.

[0061] 在这种应用场景当中,A系统和C系统之间,以及B系统和D系统之间存在多条HDLC链路,并且它们之间传输的HDLC帧的长度较短而数量较多,而在A系统和B系统之间又可以利用以太网进行传输。 [0061] In this application scenario which, between the A system and the C system, and there are multiple HDLC link between the system and the B system D, and the length of the HDLC frame transmitted between short and large number thereof, in between the A system and the B system and can be transmitted using the Ethernet. 此时,就可以利用本发明实施例提供的技术方案,将HDLC帧中的数据净荷与其他部分分离后的数据净荷部分组成HOM单帧,将多个HOM单帧组成HOM 复帧,为HOM复帧添加以太网帧帧头组成以太网帧,然后进行传输,可以增大A、B系统之间的传输带宽,从而大大提高系统间的数据传输效率。 In this case, the present invention can use the technical solutions provided in the embodiments, the data payload of HDLC frame data payload portion and the other part of the separated HOM single frame, a single frame composed of a plurality of HOM HOM multiframe, as HOM Ethernet frame header adding multiframe composed of an Ethernet frame, and then transmitted, the transmission bandwidth can be increased between the a, B system, thereby greatly improving the efficiency of data transmission between systems. 例如A系统通过HDLC链路接收C系统发送的HDLC帧,将HDLC帧中的数据净荷与其他部分分离后的数据净荷部分组成HOM单帧, 将多个HOM单帧组成HOM复帧,为HOM复帧添加以太网帧帧头组成以太网帧,然后根据目的MAC地址并通过以太网传输给B系统,B系统接收以太网帧后,将以太网帧头分离,然后根据HOM复帧当中的HOM单帧总数和HOM单帧的净荷长度,逐个将HOM单帧从复帧中分离出来, 从HOM单帧中逐个读取HDLC帧的数据净荷,最后将其还原成HDLC帧,通过HDLC链路传输给D系统。 A system e.g. HDLC frames transmitted by the HDLC link receiving system C, the data payload of HDLC frame data payload portion of the other of the separated components HOM single frame, a single frame composed of a plurality of HOM HOM multiframe, as HOM Ethernet frame header adding multiframe composed of an Ethernet frame, and then transmitted via the Ethernet system B according to the destination MAC address, the Ethernet frame receiving system B, the separated Ethernet header, then among the multiframe according HOM Total payload length HOM and HOM single frame of a single frame, one by one single frame HOM separated out from the multiplex frame, the payload data is read from HOM HDLC frame by one single frame, and finally reduced to the HDLC frame by HDLC D-link transmission to the system.

[0062] 需说明的是,图中各系统之间是双向的传输过程,上述只是以C系统到D系统方向举例进行了描述,反向传输过程的原理是相同的。 [0062] It should be noted that the figures are two-way transmission system between the system only to the C direction, for example D system has been described, the reverse transfer process principle is the same. 反向传输时,B系统进行将HDLC帧最终转换成以太网帧的过程,A系统进行将以太网帧还原成HDLC帧的过程。 When the reverse transmission, B system will eventually converts HDLC frames into an Ethernet frame process, A system is reduced to the Ethernet frame process of the HDLC frame.

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

[0064]如图 7 所示,在GSM(GlcAal System for Mobile Communications,全球移动通讯系统)中,BSC (Base Station Controller,基站控制器)控制器系统当中存在A处理单元和A'处理单元。 [0064] As shown in FIG 7, in the GSM (GlcAal System for Mobile Communications, Global System for Mobile communication system), which BSC (Base Station Controller, Base Station Controller) A controller system processing unit and the presence of A 'processing unit. A处理单元作为和其他单板直接相连的接口处理单元通过HDLC链路分别和B、C、D. · · N、N+1基站系统相连接。 A processing unit as a processing unit and an interface directly connected to another board HDLC link respectively by B, C, D. · · N, N + 1 is connected to the base station system.

[0065] 在现有技术原来的设计方案当中,是只存在A处理单元,当A处理单元收到B、C、 D. . . N.N+1系统发送的数据后,送到应用层进行数据处理,这种方案的缺陷是当与A处理单元连接的其他系统增多时,A处理单元需要通过HDLC链路与各系统传输以及传输给应用层处理的数据将随之成正比增加,当基站的数量增大到一定程度时,A处理单元也将成为整个系统的瓶颈部分,限制BSC扩展连接基站的能力。 [0065] In the prior art of which the original design, the presence of only A processing unit when the processing unit receives the A B, C, D... The N.N + 1 data transmission system, to the application layer data processing, the defect of this solution is increased when the system is connected to other processing units a, a data processing unit to the application layer required will follow increases in proportion with the HDLC link transmission systems and transmission, when the base station when the amount is increased to a certain extent, a processing unit will become the bottleneck of the whole system, the ability to limit the expansion connector of the base station BSC. 而本发明实施例二方案中,是在BSC控制器系统中采用A处理单元和A'处理单元代替原来的A处理单元的方案,A处理单元只保留接口处理单元的主功能,而分出的A'处理单元就负责处理原来的应用层的数据。 While the embodiment of the invention two embodiments, is the use of the system controller in the BSC processing unit A and A 'of the processing unit to replace the original processing program unit A, the processing unit A to retain only the main function of the interface processing unit, and separated a 'data processing unit is responsible for processing the original application layer. A处理单元通过HDLC链路收到HDLC帧之后,将HDLC帧取其净荷组成HOM单帧,将多个HOM单帧组成HOM复帧,为HOM复帧添加以太网帧帧头组成以太网帧,根据目的MAC地址并通过以太网传输到A'处理单元。 A processing unit after receipt of an HDLC frame by HDLC link, whichever is the HDLC frame payload composition HOM single frame, a single frame composed of a plurality of HOM HOM multiframe, add an Ethernet frame header is composed of an Ethernet frame multiframe HOM the destination MAC address and transmits to A 'processing unit via Ethernet. A'处理单元在接收以太网帧后,将以太网帧头分离,然后根据HOM复帧当中的HOM单帧总数和HOM单帧的净荷长度,逐个将HOM单帧从复帧中分离出来,最后分离HOM单帧帧头,只剩下HDLC净荷,交给应用层去处理。 A 'processing unit after receiving the Ethernet frame, the Ethernet header separation, then, separated one by one from HOM single frame multiframe according to the total number of the single frame and the payload length HOM HOM HOM among a single frame multiframe, HOM finally separated single frame header, payload only HDLC, to the application layer to handle. 这样,就将原来需A处理单元处理的数据,转而由A'处理单元处理,使得A处理单元的功能单一化,并使其作为接口处理单元的能力得到提高,解决了原存在的瓶颈问题,提高了整个系统的传输性能。 Thus, the original data will be required A processing unit is, in turn, by the A 'processing unit, so that the single function processing unit A, and the ability to act as an interface processing unit is improved to solve the bottleneck problem of the presence of the original , improving the transmission performance of the entire system.

[0066] 需要说明的是,在应用实例一中,A系统和B系统各自的HDLC链路是物理存在的, 维护路由表时,只需要将本端和对端的HDLC链路号和MAC地址填入路由表即可;而在应用实例二中,由于A'处理单元中没有HDLC物理链路,此时可以虚拟一个A'处理单元的HDLC 链路,将A处理单元的物理HDLC链路和A'处理单元的虚拟HDLC链路关联起来填入路由表, 同样将A处理单元的MAC地址和A,处理单元的MAC地址也填入路由表,在A和A,处理单元通过以太网建立连接。 [0066] Incidentally, in an application example, A is a respective system and the B system are physical HDLC link, routing table maintenance, just to fill the local and peer HDLC link number and a MAC address to the routing table; and two application examples, since a 'HDLC processing unit without a physical link, a case can be virtually a' link HDLC processing unit, the physical link HDLC processing unit a and a 'HDLC link associated virtual processing units fill up the routing table, the same MAC address a and a processing unit, the processing unit may also fill the MAC address of the routing table, via an Ethernet connection is established in the a and a, the processing unit.

[0067] 上述内容详细介绍了本发明实施例的数据传输方法,相应的,本发明实施例提供一种数据传输装置。 [0067] Details of the above embodiment of the data transmission method of the present invention, accordingly, an embodiment provides a data transmission apparatus according to the present invention.

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

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

[0070] 第一处理单元81,用于获取需转换数据帧的净荷部分。 [0070] The first processing unit 81, configured to obtain the data to be converted payload portion of the frame. 假设需转换数据帧为HDLC 帧,第一处理单元81从HDLC点到点链路收到HDLC帧后,将HDLC帧其他部分分离,仅将数据净荷部分保留。 Is assumed to be converted to data frames HDLC frame, from a first processing unit 81 receives point to point link HDLC HDLC frame, other portions of the HDLC frame to separate only the payload portion of the data retention.

[0071] 第二处理单元82,用于在数据链路层将所述第一处理单元81获取的净荷部分添加HOM帧头组成HOM单帧。 [0071] The second processing unit 82 for adding a header composed HOM HOM single frame in the data link layer to the first processing unit 81 acquires the payload portion. 每个HOM单帧包括帧头域(HOMHead)、HOM净荷域(HOM PayLoad) 和填充域(PAD),其中填充域为可选项。 Each single frame includes a header field HOM (HOMHead), HOM payload field (HOM PayLoad) and filled domain (PAD), wherein the fill-in fields is optional. 第一处理单元81获取的需转换数据帧的净荷部分就作为HOM单帧的HOM净荷。 To be converted first data processing unit 81 acquires the payload portion of a frame on a single frame HOM HOM payload. HOM单帧的帧头包含了HOM单帧的管理信息,包括:对端的目的HDLC链路号Peer Link ID、本端的源HDLC链路号Local Link ID、类型HOM Type和净荷长度Len。 HOM single frame header contains the management information HOM single frame, comprising: a number of purposes Peer Link ID HDLC link end, this end of the source HDLC link number Local Link ID, Payload Length and the Type HOM type Len.

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

[0073] 所述第三处理单元83具体是将多个所述HOM单帧组成HOM复帧作为净荷承载在以太网帧中。 [0073] The third processing unit 83 is specifically composed of a plurality of the HOM HOM single frame multiframe carried as payload in the Ethernet frame. HOM复帧(HOM MultiFrame),由HOM复帧的帧头和多个HOM单帧组成。 HOM multiframe (HOM MultiFrame), the header frame and a plurality of complex HOM HOM single frame components. HOM复帧的帧头包括HOM单帧总数(H0MNUMBER)域和所有HOM单帧的净荷总长度(HOM LENGTH) 域。 HOM header multiframe comprises a payload total length HOM Total (H0MNUMBER) domain and a single frame of a single frame for all HOM (HOM the LENGTH) field.

[0074] 这里所述的以太网帧,是指HOM类型以太网帧,包括:以太网帧帧头域、HOM复帧域、PAD域(可选)、FCS域。 [0074] Ethernet frame described herein, refer to HOM type of Ethernet frames, comprising: an Ethernet frame header field, field HOM multiframe, the PAD field (optional), the FCS field. 其中,以太网帧帧头域包括以下内容:DA域(Destination MAC, 目的MAC地址);SA域(Source MAC,源MAC地址);Tag域,四个字节的802. IQ标签头;Type 域,即报文类型。 Wherein the Ethernet frame header includes the following fields: DA field (the Destination MAC, the destination MAC address); SA field (the Source MAC, the source MAC address); the Tag field, four bytes 802. IQ tag header; the Type field that packet type. Type域字段采用0x0F20,表示HDLC over MAC类型以太网帧,简称HOM类型以太网帧。 Type field uses 0x0F20 field, represents HDLC over MAC Ethernet frame type, referred to as HOM type of Ethernet frames. PAD域,为可选项,当以太网帧总长度不足64字节时,需要填充PAD域是总长度达到64字节,确保满足以太网帧最小长度。 PAD field, is optional, when the Ethernet frame is less than the total length of 64 bytes, padding PAD field is required total length of 64 bytes, Ethernet frame ensure that the minimum length.

[0075] 以太网帧中路由信息包括:本端的源HDLC链路号;本端的源MAC地址;对端的目的MAC地址;对端的目的HDLC链路号。 [0075] The routing information in the Ethernet frame comprising: a source terminal of the present HDLC link number; local source MAC address; destination MAC address of the peer; peer HDLC link number of the object. 当通过以太网传输时,是根据对端的目的MAC地址进行传输,当通过HDLC链路传输时,是根据对端的目的HDLC链路号进行传输。 When transmitted via Ethernet, based on the destination MAC address of the transmission side, when the HDLC link transmission through, based on transmission of the HDLC link number object side.

[0076] 请参阅图9,是本发明实施例数据传输装置二结构示意图。 [0076] Please refer to FIG. 9 is a diagram illustrating the structure of a data transmission device of two embodiments of the present invention.

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

[0078] 接收单元94,用于接收发送端发送的以太网帧,所述以太网帧是将多个HOM单帧组成HOM复帧作为净荷承载,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成。 [0078] The reception unit 94, an Ethernet frame, the Ethernet frame for receiving the sender sends a single frame is composed of a plurality of HOM HOM multiframe carried as the payload of the data to be converted by a single frame HOM frame Add header payload portion HOM composition. 每个HOM单帧包括帧头域(HOM Head)、Η0Μ净荷域(HOM PayLoad)和填充域(PAD),其中填充域为可选项。 Each single frame includes a header field HOM (HOM Head), Η0Μ payload field (HOM PayLoad) and filled domain (PAD), wherein the fill-in fields is optional.

[0079] 处理单元95,用于根据HOM单帧数目将多个HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。 [0079] The processing unit 95, for separating a plurality of single frame according to the number HOM HOM out a single frame, the payload portion of each read HOM and reduced to a single frame of data before frame conversion.

[0080] 所述处理单元95包括:分离单元951、校验单元952和还原单元953。 [0080] The processing unit 95 comprises: a unit 951, check unit 952 and the reduction unit 953 separated.

[0081] 分离单元951,用于根据HOM单帧数目将多个HOM单帧分离出来。 [0081] The separation unit 951 for separating a plurality of single frame according to the number HOM HOM single frame.

[0082] 校验单元952,用于将分离单元951分离出来的所有HOM单帧的净荷长度相加后与以太网帧中的HOM复帧的帧头所标识的净荷总长度进行校验。 [0082] The checking unit 952, the total length of the payload after the length of the payload for separating the separation unit 951 is added to all HOM single frame in the Ethernet frame header HOM multiframe identified verify .

[0083] 还原单元953,用于在所述校验单元952的校验结果为长度相同时,读取各HOM单帧的净荷部分并还原成转换前的数据帧。 [0083] The reduction unit 953, a result of the check in the check unit 952 is the same length, the payload portion of each read HOM and reduced to a single frame of data frames before conversion.

[0084] 综上所述,本发明实施例技术方案通过在数据链路层将需转换数据帧组成HOM单帧,并将多个所述HOM单帧作为净荷承载在以太网帧中进行复用传输,从而充分利用了以太网帧的MTU长度,大大提高了以太网的数据传输效率。 [0084] In summary, the technical solutions in the embodiments of the present invention by a data link layer to be converted to data frames HOM single frame, and a plurality of the payloads of the HOM as a single frame in an Ethernet frame multiplexing by a transmission, to take full advantage of the MTU size the Ethernet frame, greatly improving the efficiency of data transmission of Ethernet. 同时,因为在同一个数据链路层就可以实现转换,不需要象现有技术那样利用其他层协议进行转换,因此更简单。 Meanwhile, because the data link layer in the same conversion can be achieved, as the use of other layers of protocol converter is not required as in the prior art, and therefore easier.

[0085] 进一步的,本发明实施例技术方案中当目的端接收所述以太网帧后,可以根据HOM 单帧数目将多个HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。 [0085] Further, when the technical aspects of the object receives Ethernet frames may be separated according to the number of a plurality of single frame HOM HOM embodiments of the present invention, a single frame, reading a payload portion of each single frame and HOM reduction of a data frame before conversion.

[0086] 以上对本发明实施例所提供的一种数据传输方法和传输装置进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 It described in detail a data transmission method and a transmission apparatus provided in [0086] the above embodiment of the present invention, those of ordinary skill in the art, according to idea of ​​an embodiment of the present invention, in the particular embodiments and applications will place there is a change, Therefore, the specification shall not be construed as limiting the present invention.

Claims (11)

1. 一种数据传输方法,其特征在于,包括:获取需转换数据帧的净荷部分;在数据链路层将所述获取的净荷部分添加高级数据链路控制消息报文承载在媒体访问控制层HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;将多个所述HOM单帧组成HOM复帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。 1. A data transmission method, comprising: obtaining a payload portion of the data frame to be converted; data link layer adds the payload portion of the acquired level data link control message packets are carried in the media access HOM HOM control layer composed of a single frame header, said header comprising HOM packet length and a payload type; the single frame composed of a plurality of the HOM HOM multiframe carried as payload in the Ethernet frame, and in accordance with the routing information sending the Ethernet frame to the destination end.
2.根据权利要求1所述的数据传输方法,其特征在于:所述将获取的净荷部分添加HOM帧头后进一步包括添加填充字段组成HOM单帧。 The data transmission method according to claim 1, wherein: said payload portion acquired after adding further comprises adding padding HOM header fields HOM single frame.
3.根据权利要求1或2所述的数据传输方法,其特征在于:所述HOM复帧的帧头包括HOM单帧数目和所有HOM单帧的净荷总长度。 3. The data transmission method of claim 1 or claim 2, wherein: the header comprises a number of multiframe HOM HOM HOM single frame of a single frame, and all of the total length of the payload.
4.根据权利要求1所述的数据传输方法,其特征在于:所述路由信息包括本端源链路号和源媒体访问控制MAC地址,对端目的链路号和目的媒体访问控制MAC地址。 The data transmission method according to claim 1, wherein: the routing information comprises a local source link number and source media access control MAC address, the MAC address of the peer access control object and object media link number.
5.根据权利要求1所述的数据传输方法,其特征在于:所述需转换数据帧为高级数据链路控制HDLC帧。 The data transmission method according to claim 1, wherein: converting the data frame must be a high level data link control HDLC frame.
6. 一种数据传输方法,其特征在于,包括:接收由高级数据链路控制消息报文承载在媒体访问控制层HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM帧头组成;根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。 A data transmission method, comprising: receiving a high level data link control message packets are carried in a medium access control layer composed of a single frame HOM HOM multiframe as an Ethernet frame payload carried by the single-HOM add frame header consists of a payload portion of the HOM to be converted data frame; single frame according to the number HOM HOM separating out a single frame, the payload portion of each read HOM and reduced to a single frame of data before frame conversion.
7.根据权利要求6所述的数据传输方法,其特征在于:所述根据HOM单帧数目将HOM单帧分离出来后进一步包括:将所有分离出来的HOM单帧的净荷长度相加后与以太网帧中的HOM复帧的帧头所标识的净荷总长度进行校验,若相同,则读取各HOM单帧的净荷部分并还原成转换前的数据帧。 After adding all the separated payload length HOM and a single frame: 7. The data transmission method according to claim 6, wherein: said single frame according to the number of separating HOM HOM single frame further comprises the total length of the payload of an Ethernet frame header HOM multiplexed frames identified verify, if yes, reading the payload portion of each HOM and reduced to a single frame of a data frame before conversion.
8. 一种数据传输装置,其特征在于,包括:第一处理单元,用于获取需转换数据帧的净荷部分;第二处理单元,用于在数据链路层将所述第一处理单元获取的净荷部分添加高级数据链路控制消息报文承载在媒体访问控制层HOM帧头组成HOM单帧,所述HOM帧头含有报文类型和净荷长度;第三处理单元,用于将所述第二处理单元得到的多个HOM单帧组成HOM复帧作为净荷承载在以太网帧中,并根据路由信息将所述以太网帧向目的端发送。 A data transmission apparatus, characterized by comprising: a first processing unit, configured to obtain the payload portion of the data frame to be converted; a second processing unit for the data link layer to the first processing unit adding the acquired payload portion level data link control message packets are carried in a medium access control layer header HOM HOM single frame composed of the HOM type header and a payload containing a message length; a third processing unit configured to HOM single frame a plurality of the second processing unit to obtain a composition as HOM multiframe payload carried in an Ethernet frame, and transmits the Ethernet frame to the destination according to the routing information.
9.根据权利要求8所述的数据传输装置,其特征在于:所述HOM复帧的帧头包括HOM单帧数目和所有HOM单帧的净荷总长度。 A data transmission apparatus according to claim 8, wherein: the header comprises a number of multiframe HOM HOM HOM single frame of a single frame, and all of the total length of the payload.
10. 一种数据传输装置,其特征在于,包括:接收单元,用于接收由高级数据链路控制消息报文承载在媒体访问控制层HOM单帧组成HOM复帧作为净荷承载的以太网帧,所述HOM单帧由需转换数据帧的净荷部分添加HOM 帧头组成;处理单元,用于根据HOM单帧数目将HOM单帧分离出来,读取各HOM单帧的净荷部分并还原成转换前的数据帧。 10. A data transmission apparatus, characterized by comprising: a receiving unit for receiving a high level data link control message packets are carried in a medium access control layer composed of a single frame HOM HOM multiframe carried as the payload of an Ethernet frame the HOM single frame to be converted by the frame data payload portion of the frame header added HOM composition; a processing unit for separating the single frame according to the number HOM HOM out a single frame, reading a payload portion of each single frame and restore HOM before conversion to a data frame.
11.根据权利要求10所述的数据传输装置,其特征在于,所述处理单元包括: 分离单元,用于根据HOM单帧数目将HOM单帧分离出来;校验单元,用于将分离单元分离出来的所有HOM单帧的净荷长度相加后与以太网帧中的HOM复帧的帧头所标识的净荷总长度进行校验;还原单元,用于在所述校验单元的校验结果为长度相同时,读取各HOM单帧的净荷部分并还原成转换前的数据帧。 A data transmission apparatus according to claim 10, characterized in that the processing unit comprises: a separation unit for separating a single frame number HOM HOM single frame; check unit, the separation unit for separating All single frame payload length HOM out after the addition of the total length of the payload in the Ethernet frame header and HOM multiframe verify identified; reduction unit for the check in the check unit the result is the same length, the payload portion of each read HOM and reduced to a single frame of data frames before conversion.
CN 200710198607 2007-12-11 2007-12-11 Data transmission method and transmission apparatus CN101184098B (en)

Priority Applications (1)

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

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200710198607 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

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
CN 200710198607 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 (4)

* 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

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 Monitoring control communication system of sonet/sdh device

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 삼성전자주식회사 Implementing Method of Logical MAC in EPON and Computer Readable Recoding Medium for Performing it
CN1954574B (en) * 2003-12-08 2011-04-06 美国博通公司 Unified infrastructure over Ethernet
EP1605618A1 (en) * 2004-06-11 2005-12-14 Alcatel Alsthom Compagnie Generale D'electricite 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 Monitoring control communication system of sonet/sdh device

Also Published As

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

Similar Documents

Publication Publication Date Title
US9106586B2 (en) Multi-protocol support over ethernet packet-switched networks
AU2011244044B2 (en) Efficient encapsulation of packets transmitted on a packet-pseudowire over a Packet Switched Network
US6970419B1 (en) Method and apparatus for preserving frame ordering across aggregated links between source and destination nodes
EP1720024B1 (en) A method for realizing the pseudo wire emulation edge-to-edge protocol
US7746768B2 (en) System and method for supporting SDH/SONET APS on ethernet
US20030118053A1 (en) Methods and apparatus for encapsulating a frame for transmission in a storage area network
US20050026638A1 (en) Method and system for providing broadcast channels over an emulated subnetwork
US7386010B2 (en) Multiprotocol media conversion
KR20090067010A (en) Client/server adaptation scheme for communications traffic
EP1943785B1 (en) Multilink trunking for encapsulated traffic
US9025605B2 (en) Apparatus and method for providing a network termination point
EP2323342A1 (en) Data transmission method and network node and data transmission system
US8351352B1 (en) Methods and apparatus for RBridge hop-by-hop compression and frame aggregation
CN100508480C (en) Apparatus and method relating to Ethernet access system
US7385998B2 (en) Method and apparatus for encapsulating services for transportation over metallic physical mediums
JP5345942B2 (en) Ethernet OAM in intermediate nodes of PBT network
US7853691B2 (en) Method and system for securing a network utilizing IPsec and MACsec protocols
US6888798B2 (en) Embedded management channel for SONET path terminating equipment connectivity
CN102171998B (en) Method, device and system for services instances mapping
CN101953120B (en) Management of topology changes in layer two networks
JP2002198994A (en) Method and device for gfp frame transfer
CN101771607A (en) Routing frames in a computer network using bridge identifiers
CN101379797A (en) Transporting packets
EP1903723A1 (en) Method and apparatus for transmitting message
CN100563146C (en) Time division multiplex data transmitting method based on packet exchanging

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CF01