WO2009132542A1 - 报文传输的方法及装置 - Google Patents

报文传输的方法及装置 Download PDF

Info

Publication number
WO2009132542A1
WO2009132542A1 PCT/CN2009/071089 CN2009071089W WO2009132542A1 WO 2009132542 A1 WO2009132542 A1 WO 2009132542A1 CN 2009071089 W CN2009071089 W CN 2009071089W WO 2009132542 A1 WO2009132542 A1 WO 2009132542A1
Authority
WO
WIPO (PCT)
Prior art keywords
ethernet
message
ethernet frame
unit
obtaining
Prior art date
Application number
PCT/CN2009/071089
Other languages
English (en)
French (fr)
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 华为技术有限公司
Publication of WO2009132542A1 publication Critical patent/WO2009132542A1/zh

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. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection (CSMA-CD)
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting a message.
  • Ethernet With the continuous development of Ethernet technology, operators can directly use Ethernet technology to provide various services in the metropolitan area network. At the same time, the development of multi-type services also promotes the transition of Ethernet to a more reliable carrier-class Ethernet network. In this process, Ethernet faces the problem of interworking with other networks. Among them, in the traditional technology, the interconnection networking mode of other networks and Ethernets carries Ethernet services on other networks. As Ethernet gradually develops into the core of the metropolitan area network, other networks need to be connected to the Ethernet to carry services of other networks on the Ethernet.
  • the embodiment of the invention provides a method and a device for transmitting a message, so that the non-Ethernet service is transmitted through the Ethernet.
  • the embodiment of the invention provides a method for transmitting a message, and the method includes:
  • the Ethernet frame is sent to the Ethernet.
  • the embodiment of the invention further provides a method for transmitting a message, the method comprising:
  • the non-Ethernet is sent to the corresponding non-Ethernet.
  • the embodiment of the invention further provides a device for transmitting a message, the device comprising:
  • An obtaining unit configured to obtain an additional circuit connection identifier AC from the received non-Ethernet message ID
  • mapping unit configured to search for a pseudowire identifier corresponding to the AC ID obtained by the acquiring unit, PW
  • a packaging unit configured to obtain an Ethernet frame according to the PW ID and the simulated service type found by the mapping unit;
  • a sending unit configured to send the Ethernet frame obtained by the encapsulating unit to an Ethernet.
  • the embodiment of the invention further provides a device for transmitting a message, the device comprising:
  • An obtaining unit configured to obtain a pseudowire identifier PW ID from the received Ethernet frame
  • mapping unit configured to search for an additional circuit connection identifier AC ID corresponding to the PW ID obtained by the obtaining unit
  • a message unit configured to generate a non-Ethernet according to an AC ID obtained by the mapping unit and a simulated service type in an Ethernet frame;
  • the additional circuit connection identifier in the non-Ethernet message is used in the technical solution of the embodiment of the present invention.
  • AC ID is mapped to the corresponding Ethernet pseudowire identifier (PW ID), and the Ethernet frame corresponding to the non-Ethernet is obtained according to the PW ID and the emulation service type; correspondingly, the emulation service type is used for the Ethernet service at the other end.
  • the corresponding Ethernet frame is distinguished from the Ethernet frame corresponding to the non-Ethernet service. When the Ethernet frame passes through the Ethernet, the corresponding non-Ethernet message is generated according to the PW ID and the emulation service type in the Ethernet frame. This enables non-Ethernet services to be transmitted over Ethernet.
  • FIG. 1 is a schematic flowchart of a method for transmitting a message according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for transmitting a message according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for transmitting a message according to Embodiment 3 of the present invention.
  • Embodiment 4 is a schematic structural diagram of an apparatus for transmitting a message in Embodiment 4 of the present invention.
  • Embodiment 1 a method for transmitting a text, see FIG. 1, the method includes:
  • a non-Ethernet packet is a packet transmitted by other Layer 2 network services except the Ethernet service. This includes but is not limited to: Asynchronous Transfer (ATM) messages, Time Division Multiplexing (TDM) messages, Frame Relay messages, and so on.
  • ATM Asynchronous Transfer
  • TDM Time Division Multiplexing
  • Frame Relay messages and so on.
  • Obtaining an AC ID can include:
  • the local database may be set in the execution device of the method for transmitting the message, the local database is used to store the mapping relationship between the AC ID and the PW ID; the local database is searched according to the AC ID, and if the PW ID corresponding to the AC ID is found, 103 is performed; If the PW ID corresponding to the AC ID is not found,
  • the database of the mapping relationship between the AC ID and the PW ID the execution device of the packet transmission method searches the database according to the AC ID, and if the PW ID corresponding to the AC ID is found, executes 103; if the PW ID corresponding to the AC ID is not found, , then the process ends.
  • This packaging process can include:
  • the found PW ID is filled in the payload area of the Ethernet frame.
  • the Ether-type associated with the service in the Ethernet frame is set to the emulation service type corresponding to the non-Ethernet packet.
  • the Ether-type related to the service in the Ethernet frame is set to the non-Ethernet packet.
  • the corresponding emulation service type is used to indicate whether the Ethernet frame is an emulation service or an ordinary message, and the value set is a value that has not been defined in the Ethernet transmission protocol.
  • the PW ID found above is filled in the corresponding position of the I-TAG in the Ethernet frame, due to the ether.
  • the network frame can be transmitted over Ethernet through MPLS or not in Ethernet. Therefore, a field is used in the Ethernet frame to indicate whether it is transmitted over Ethernet through MPLS.
  • the PW ID can be identified by the 24-bit Service Identifier (I-SID) in the I-TAG, if the Ethernet frame is transmitted over Ethernet through Multiprotocol Label Switching (MPLS).
  • MPLS Multiprotocol Label Switching
  • a 32-bit MPLS label format is required, and the 32-bit I-SID in the I-TAG and the partially invalid client medium access control (MAC) address can be used to identify the 32-bit found PW ID.
  • the length of the data payload in the non-Ethernet packet may exceed the maximum length allowed by the Ethernet frame.
  • the data payload needs to be sliced. Alternatively, the length of the data payload in the non-Ethernet packet may not reach the length.
  • To the minimum length required for the Ethernet frame it is necessary to perform bit filling and other control on the data payload; or for the TDM bit stream, the receiving end needs to receive data in the order of transmission, and Ethernet cannot be guaranteed, so the Ethernet packet to be transmitted is required.
  • the serial frame scheduling control is performed; or, the fault indication bits appearing in some non-Ethernet messages need to be sent to the peer network; therefore, the Ethernet frame encapsulation may further include:
  • the determined control word is used to indicate the processing manner of the data payload, and may include, but is not limited to, fragmenting the data payload, or performing a sorting number, or performing fragmentation and sorting numbers, or performing bit filling, or flag filling. Wait.
  • the Ether-type related to the service in the Ethernet frame is set to the emulation service type corresponding to the non-Ethernet packet.
  • the Ether-type related to the service in the Ethernet frame is set to the non-Ethernet packet.
  • the value set is the value that has not been defined in the Ethernet transport protocol. If the emulation service transmitted by the non-Ethernet packet in the Ethernet is not distinguished from the original Ethernet service transmitted by the Ethernet packet in the Ethernet by the emulation service type, the Ethernet is based on the original Ethernet service transmitted.
  • the method directly forwards the received non-Ethernet packet, and the non-Ethernet packet cannot be transmitted in the Ethernet before being processed into an Ethernet frame by the technical solution provided in this embodiment, thereby causing the non-Ethernet packet to be in the Ethernet. The transfer in the failed.
  • the above-mentioned PW ID is filled in the corresponding position of the I-TAG in the Ethernet frame.
  • a field in the network frame indicates whether the transmission is performed in the Ethernet through MPLS.
  • the reserved field in the existing Ethernet frame can be directly used.
  • I-SID 24-bit service identification code
  • PW ID if the Ethernet frame is transmitted over Ethernet through Multiprotocol Label Switching (MPLS), which requires a 32-bit MPLS label format, you can use the 24-bit I-SID in the I-TAG and some invalid client media.
  • MPLS Multiprotocol Label Switching
  • the Access Control (MAC) address identifies the 32-bit found PW ID.
  • mapping relationship between the AC ID and the PW ID stored in the local database may be the corresponding relationship between the AC ID and the PW ID, or two or more AC IDs may be mapped to the same PW ID.
  • the many-to-one mapping relationship on the above, therefore, the many-to-one mapping can fill the AC ID of the non-Ethernet message into the corresponding position of the I-TAG.
  • Ethernet frames are placed in the port queue for sorting, waiting to be sent to the Ethernet.
  • the ID is mapped to the corresponding pseudo-line identifier (PW ID), and the Ethernet frame corresponding to the non-Ethernet is obtained according to the PW ID and the emulation service type, so that the non-Ethernet service is transmitted through the Ethernet.
  • PW ID pseudo-line identifier
  • the difference between the Ethernet frame corresponding to the Ethernet service and the Ethernet frame corresponding to the non-Ethernet service is used by the emulation service type. After the Ethernet frame passes through the Ethernet, the corresponding PW ID and the emulation service type in the Ethernet frame are generated. A non-Ethernet packet is transmitted, so that the Ethernet packet carries the Layer 2 non-Ethernet packet, that is, the non-Ethernet service is transmitted through the Ethernet.
  • the technical solution of the embodiment is used to map the AC ID in the non-Ethernet packet to the corresponding Ethernet pseudowire identifier PW ID, and obtain the Ethernet frame corresponding to the non-Ethernet packet according to the PW ID and the emulation service type, thereby Non-Ethernet messages can be transmitted over Ethernet.
  • the Ethernet frame needs to be converted into a non-Ethernet packet and sent to the non-Ethernet transmission.
  • the embodiment provides a method for transmitting a message. Referring to FIG. 2, the method includes:
  • Obtaining a PW ID can include:
  • the header of the Ethernet frame is stripped to determine whether the Ether-type related to the service in the Ethernet frame is a simulated service type. If it is not an emulation service, the process ends; if it is an emulation service, the process continues.
  • Obtain a PW ID from the I-TAG that is, obtain a PW ID from a location corresponding to the I-TAG.
  • Obtaining the PW ID can be performed before the simulation service type is obtained, or after the simulation service type is obtained, and simultaneously with the acquisition of the simulation service type.
  • the mapping between the AC ID and the PW ID is stored in the local database.
  • the local database is searched according to the PW ID. If the corresponding AC ID is found, the process is continued. If the corresponding AC ID is not found, the process ends.
  • the mapping relationship between the AC ID and the PW ID stored in the local database may be the corresponding relationship between the AC ID and the PW ID, or two or more AC IDs may be mapped to the same PW ID.
  • a many-to-one mapping relationship Therefore, when two or more AC IDs are found in the local database according to the PW ID, the AC ID is obtained from the Ethernet frame as the corresponding AC ID.
  • the non-Ethernet message may be obtained in the following two manners. Only the first mode is shown in FIG. 2:
  • control word is not included in the Ethernet frame.
  • the packet header of the non-Ethernet packet is generated after receiving all the fragmented Ethernet frames; when the control word indicates that the data payload is sorted, then After the Ethernet frame is sorted, the packet header of the non-Ethernet packet is generated.
  • the Ethernet frame is received after all the Ethernet frames are received.
  • the message header of the non-Ethernet message when the control word indicates that the data payload is bit-filled, the padding bit is removed to generate a message header of the non-Ethernet message; when the control word indicates that the data payload is performed
  • the flag bit is filled, the flag bit is filled to the corresponding position of the message header that generates the non-Ethernet message.
  • the non-Ethernet packets are placed in the port queue for sorting, waiting to be sent to the corresponding non-Ethernet.
  • the technical solution of the embodiment is used to distinguish between an Ethernet frame corresponding to an Ethernet service and an Ethernet frame corresponding to a non-Ethernet service by using an emulation service type, and when the Ethernet frame passes through the Ethernet, according to the PW in the Ethernet frame.
  • the ID and the emulation service type are generated corresponding to the non-Ethernet, so that the non-Ethernet service is transmitted through the Ethernet.
  • Embodiment 3 corresponding to the first embodiment, a device for transmitting a message, see FIG. 3, the device may include:
  • the obtaining unit 301 is configured to obtain an AC ID from the received non-Ethernet packet.
  • the mapping unit 302 is configured to search for a PW ID corresponding to the AC ID obtained by the obtaining unit 301.
  • the encapsulating unit 303 is configured to obtain an Ethernet frame according to the PW ID found by the mapping unit 302 and the emulation service type corresponding to the non-Ethernet message.
  • the sending unit 304 is configured to send the Ethernet frame obtained by the encapsulating unit 303 to the Ethernet. Further, the obtaining unit 301 can include:
  • the receiving subunit 301-1 is configured to receive a non-Ethernet message.
  • the obtaining subunit 301-2 is configured to obtain an AC ID from a header of the non-Ethernet packet received by the receiving subunit 301-1. Further, the mapping unit 302 can include:
  • the storage subunit 302-1 is configured to store a mapping relationship between the AC ID and the PW ID.
  • the lookup subunit 302-2 is configured to search the storage subunit 302-1 according to the AC ID acquired by the obtaining unit 301.
  • the sending unit 304 can include:
  • the sorting subunit 304-1 is configured to put the Ethernet frames obtained by the encapsulating unit 303 into a port queue for sorting;
  • the transmitting subunit 304-2 is configured to wait for the Ethernet frame sorted by the sorting subunit 304-1 to be sent to the Ethernet.
  • a device for transmitting a message referring to FIG. 4, the device may include:
  • the obtaining unit 401 is configured to obtain a PW ID from the received Ethernet frame.
  • the mapping unit 402 is configured to search for an AC ID corresponding to the PW ID acquired by the obtaining unit 401.
  • the message unit 403 is configured to generate a non-Ethernet according to the AC ID obtained by the mapping unit 402 and the simulated service type in the Ethernet frame.
  • the sending unit 404 is configured to send the non-Ethernet generated by the text unit 403 to the corresponding non-Ethernet.
  • the obtaining unit 401 may include:
  • a receiving subunit 401-1 configured to receive an Ethernet frame
  • the determining sub-unit 401-2 is configured to strip the header of the Ethernet frame received by the receiving sub-unit 401-1, and determine whether the Ether-type related to the service in the Ethernet frame is an emulation service type;
  • the obtaining sub-unit 401-3 is configured to obtain the PW ID from the I-TAG of the Ethernet frame received by the receiving sub-unit 401-1 when the determining sub-unit 401-2 determines that the Ether-type is the emulation service type.
  • mapping unit 401 can include: a storage subunit 402-1, configured to store a mapping relationship between an AC ID and a PW ID;
  • the lookup subunit 402-2 is configured to search for the storage subunit according to the PW ID obtained by the obtaining unit 401. Further, the sending unit 404 can include:
  • the sorting sub-unit 404-1 is configured to put the non-Ethernet packets obtained by the message unit 403 into the port queue for sorting;
  • the sending sub-unit 404-2 is configured to send the non-Ethernet message sequenced by the sorting sub-unit 404-1 to the corresponding non-Ethernet.
  • the emulation service type is used for the Ether service.
  • the corresponding Ethernet frame is distinguished from the Ethernet frame corresponding to the non-Ethernet service. When the Ethernet frame passes through the Ethernet, the corresponding non-Ethernet report is generated by the 4 ⁇ text unit according to the PW ID and the emulation service type in the Ethernet frame. Therefore, the non-Ethernet service is transmitted through the Ethernet.

Description

报文传输的方法及装置
本申请要求于 2008 年 4 月 30 日提交中国专利局、 申请号为 200810094466.7、 发明名称为 艮文传输的方法及装置,,的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域, 特别涉及报文传输的方法及装置。
背景技术
随着以太网技术的不断发展,运营商在城域网内可直接利用以太网技术提 供各种服务,同时多类型业务的发展也促使以太网向更高可靠性的电信级以太 网过渡。 在这个过程中, 以太网面临和其他网络实现互通的问题。 其中, 在传 统技术中, 其他网络和以太网的互联组网方式,是在其他网络上承载以太网业 务。 而随着以太网逐渐发展成为城域网核心, 则需要将其他网络接入到以太网 中, 在以太网上承载其他网络的业务。
发明内容
本发明实施例提供报文传输的方法及装置,实现非以太业务通过以太网进 行传输。
本发明实施例提供了一种报文传输的方法, 该方法包括:
从接收到的非以太报文中获取附加电路连接标识符 AC ID;
查找所述 AC ID对应的伪线标识符 PW ID;
才艮据所述非以太 文对应的仿真业务类型和查找到的 PW ID得到以太网 帧;
将所述以太网帧发送至以太网。
本发明实施例还提供了一种报文传输的方法, 该方法包括:
通过接收到的以太网帧获取伪线标识符 PW ID;
查找所述 PW ID对应的附加电路连接标识符 AC ID;
根据所述 AC ID和仿真业务类型得到非以太报文;
将所述非以太^艮文发送至对应的非以太网。
本发明实施例还提供了一种报文传输的装置, 该装置包括:
获取单元, 用于从接收到的非以太报文中获取附加电路连接标识符 AC ID;
映射单元, 用于查找所述获取单元获取的 AC ID对应的伪线标识符 PW
ID;
封装单元, 用于根据所述映射单元查找到的 PW ID和仿真业务类型得到 以太网帧;
发送单元, 用于将所述封装单元得到的以太网帧发送至以太网。
本发明实施例还提供了一种报文传输的装置, 该装置包括:
获取单元, 用于从接收到的以太网帧中获取伪线标识符 PW ID;
映射单元, 用于查找所述获取单元获取的 PW ID对应的附加电路连接标 识符 AC ID;
报文单元, 用于根据所述映射单元得到的 AC ID和以太网帧中的仿真业 务类型生成非以太 文; 网。
釆用本发明实施例的技术方案, 将非以太报文中的附加电路连接标识符
( AC ID ) 映射为对应的以太网伪线标识符( PW ID ), 根据 PW ID和仿真业 务类型得到非以太 文对应的以太网帧; 相应的,在另一端釆用仿真业务类型 对以太业务对应的以太网帧和非以太业务对应的以太网帧进行区别,当以太网 帧通过以太网后, 才艮据以太网帧中的 PW ID和仿真业务类型, 生成对应的非 以太 ^艮文, 从而实现非以太业务通过以太网进行传输。
附图说明
图 1是本发明实施例一中报文传输的方法的流程示意图;
图 2是本发明实施例二中报文传输的方法的流程示意图;
图 3是本发明实施例三中报文传输的装置的结构示意图;
图 4是本发明实施例四中报文传输的装置的结构示意图。
具体实施方式
实施例一, 一种 "^文传输的方法, 参见图 1 , 该方法包括:
101、 从接收到的非以太报文中获取 AC ID。
非以太报文是指除了以太业务以外, 其他二层网络业务传输的报文, 可以 包括但不限于: 异步传输 (ATM)报文、 时分复用 (TDM )报文、 帧中继报文 等。
获取 AC ID可以包括:
101-1、 接收非以太报文。
101-2、 从接收到的非以太报文的头部获取 AC ID。
102、 查找 AC ID对应的伪线标识符 PW ID。
可以在报文传输的方法的执行设备中设置本地数据库,本地数据库用于存 储 AC ID和 PW ID的映射关系; 根据 AC ID查找本地数据库, 如果查找到 AC ID对应的 PW ID, 则执行 103; 如果没有查找到 AC ID对应的 PW ID, 则
AC ID和 PW ID的映射关系的数据库,报文传输的方法的执行设备根据 AC ID 查找该数据库, 如果查找到 AC ID对应的 PW ID, 则执行 103; 如果没有查找 到 AC ID对应的 PW ID , 则结束流程。
103、根据所述非以太报文对应的仿真业务类型和查找到的 PW ID得到以 太网帧。
这个封装过程可以包括:
103-1、 从非以太报文中获取数据净荷。
103-2、 将获取的数据净荷封装到以太网帧的净荷区域。
103-3、 将查找到的 PW ID 填入以太网帧中骨干以太网业务实例标记 ( I-TAG )相应的位置上。
当以太网帧中没有 I-TAG时, 将查找到的 PW ID填入以太网帧的净荷区 域。
103-4、以太网帧中与业务相关的以太类型 Ether-type设为非以太报文对应 的仿真业务类型。
为了能将非以太报文在以太网中传输的仿真业务与以太报文在以太网中 传输的原始以太网业务进行区分, 将以太网帧中与业务相关的 Ether-type设为 非以太报文对应的仿真业务类型,用于表示该以太网帧是仿真业务还是普通报 文, 所设的值为以太传输协议中尚未定义的值。
以上将查找到的 PW ID填入以太网帧中 I-TAG相应的位置上, 由于以太 网帧可以通过 MPLS在以太网中进行传输, 也可以不通过 MPLS在以太网中 进行传输,因此在以太网帧中釆用一个字段表示是否通过 MPLS在以太网中进 行传输, 可以直接釆用现有以太网帧中的保留字段实现, 例如, 保留字段 Resl=l表示通过 MPLS在以太网中进行传输, Res 1=0表示不通过 MPLS在以 太网中进行传输;如果以太网帧不需要通过 MPLS在以太网中进行传输,则可 以用 I-TAG中 24bit的服务识别码 (I-SID)标识查找到的 PW ID, 如果以太网帧 是通过多协议标签交换(MPLS )在以太网中进行传输, 需要 32bit的 MPLS 标签格式, 则可以用 I-TAG中的 24bit的 I-SID以及部分无效的客户介质访问 控制 ( MAC )地址标识 32bit的查找到的 PW ID。
由于非以太报文中的数据净荷的长度可能会超过以太网帧允许的最大长 度, 需要对数据净荷进行分片控制; 或者, 非以太报文中的数据净荷的长度也 可能达不到以太网帧要求的最小长度, 需要对数据净荷进行比特填充等控制; 或者对于 TDM比特流要求接收端按发送顺序接收数据, 而以太网是无法保证 的, 因此需要对发送的以太网报文进行序列号编排控制; 或者, 某些非以太报 文中出现的故障指示位需要发送到对端网络;因此,以太网帧封装还可以包括:
1、 从非以太报文中获取数据净荷。
2、 根据业务特性, 以及非以太报文确定控制字。
确定的控制字用于表示对数据净荷的处理方式,可以包括但不限于对数据 净荷进行分片, 或者进行编排序号, 或者进行分片及编排序号, 或者进行比特 填充, 或者标志位填充等。
3、 根据确定的控制字将数据净荷封装到以太网帧的净荷区域。
4、 将查找到的 PW ID填入以太网帧中 I-TAG相应的位置上。
5、 以太网帧中与业务相关的 Ether-type设为非以太报文对应的仿真业务 类型。
为了能将非以太报文在以太网中传输的仿真业务与以太报文在以太网中 传输的原始以太网业务区分开, 将以太网帧中与业务相关的 Ether-type设为非 以太报文对应的仿真业务类型, 所设的值为以太传输协议中尚未定义的值。如 果不通过仿真业务类型将非以太报文在以太网中传输的仿真业务与以太报文 在以太网中传输的原始以太网业务区分开,以太网根据传输的原始以太网业务 的方式直接转发接收到的非以太报文,而非以太报文在经过本实施例提供的技 术方案处理成以太网帧之前是无法在以太网中传输的,从而造成非以太报文在 以太网中的传输失败。
以上将查找到的 PW ID填入以太网帧中 I-TAG相应的位置上, 由于以太 网帧可以通过 MPLS在以太网中进行传输, 也可以不通过 MPLS在以太网中 进行传输,因此在以太网帧中釆用一个字段表示是否通过 MPLS在以太网中进 行传输, 可以直接釆用现有以太网帧中的保留字段实现, 例如, 保留字段 Resl=l表示通过 MPLS在以太网中进行传输, Res 1=0表示不通过 MPLS在以 太网中进行传输;如果以太网帧不需要通过 MPLS在以太网中进行传输,则可 以用 I-TAG中 24bit的服务识别码 (I-SID)标识查找到的 PW ID, 如果以太网帧 是通过多协议标签交换(MPLS )在以太网中进行传输, 需要 32bit的 MPLS 标签格式, 则可以用 I-TAG中的 24bit的 I-SID以及部分无效的客户介质访问 控制 ( MAC )地址标识 32bit的查找到的 PW ID。
进一步地, 由于在本地数据库中存储的 AC ID和 PW ID的映射关系, 可 能是 AC ID和 PW ID——对应的关系, 也可能是两个或两个以上的 AC ID映 射到同一个 PW ID上的多对一的映射关系, 因此, 多对一映射时可以将非以 太才艮文的 AC ID填入 I-TAG相应的位置上。
104、 将以太网帧发送至以太网。
将以太网帧放入端口队列中进行排序, 等待发送至以太网。
釆用本实施例的技术方案, 将非以太报文中的附加电路连接标识符 (AC
ID ) 映射为对应的伪线标识符(PW ID ), 根据 PW ID和仿真业务类型得到非 以太 4艮文对应的以太网帧, 从而实现非以太业务通过以太网进行传输。
釆用仿真业务类型对以太业务对应的以太网帧和非以太业务对应的以太 网帧进行区别, 当以太网帧通过以太网后, 根据以太网帧中的 PW ID和仿真 业务类型,生成对应的非以太报文,从而实现以太网报文承载二层非以太报文, 即实现非以太业务通过以太网进行传输。
釆用本实施例的技术方案, 将非以太报文中的 AC ID映射为对应的以太 网伪线标识符 PW ID, 根据 PW ID和仿真业务类型得到非以太报文对应的以 太网帧, 从而可以将非以太报文通过以太网传输。 实施例二, 与实施例一相对应,将非以太 ^艮文封装成以太网帧通过以太网 传输达到对端后,需要将以太网帧转换成非以太报文,发送到非以太网中传输, 本实施例提供一种报文传输的方法, 参见图 2, 该方法包括:
201、 通过接收到的以太网帧获取 PW ID。
获取 PW ID可以包括:
201-1、 接收以太网帧。
201-2、 获取仿真业务类型:
剥离以太网帧的头部, 判断以太网帧中与业务相关的 Ether-type是否为仿 真业务类型,如果不是仿真业务,则结束流程; 如果是仿真业务,则继续流程。
201-3、 从 I-TAG中获取 PW ID, 即从 I-TAG对应的位置上获取 PW ID。 获取 PW ID可以在获取仿真业务类型之前, 也可以在获取仿真业务类型 之后, 还可以与获取仿真业务类型同时进行。
202、 查找 PW ID对应的 AC ID。
在本地数据库存储 AC ID和 PW ID的映射关系; 根据 PW ID查找本地数 据库,如果查找到对应的 AC ID,则继续流程;如果没有查找到对应的 AC ID, 则结束流程。
进一步地, 由于在本地数据库中存储的 AC ID和 PW ID的映射关系, 可 能是 AC ID和 PW ID——对应的关系, 也可能是两个或两个以上的 AC ID映 射到同一个 PW ID上的多对一的映射关系, 因此, 当根据 PW ID在本地数据 库中查找到两个或两个以上的 AC ID, 则从以太网帧中获取 AC ID作为对应 的 AC ID。
203、 根据 AC ID和仿真业务类型得到非以太报文。
由于以太网帧中可能包括控制字,也可能不包括控制字, 因此得到非以太 报文可以包括以下两种方式, 在图 2中仅示出第一种方式:
一、 在以太网帧中没有包括控制字
203-1、 将 AC ID填充到仿真业务类型对应的非以太 文的 "^文头部。
203-2、 将以太网帧中的以太网净荷填充到非以太 ^艮文净荷中。
二、 在以太网帧中包括控制字 1、 将 AC ID填充到仿真业务类型对应的非以太报文的报文头部。
2、 从 I-TAG中获取控制字。
3、 根据控制字生成非以太报文的报文头部。
当控制字表示对数据净荷进行了分片,则收到全部分片的以太网帧后生成 非以太报文的报文头部; 当控制字表示对数据净荷进行了编排序号, 则对以太 网帧进行排序后生成非以太报文的报文头部;当控制字表示对数据进行了分片 和编排序号, 则收到全部分片的以太网帧后,对以太网帧进行排序生成非以太 报文的报文头部; 当控制字表示对数据净荷进行了比特填充, 则将填充的比特 去掉生成非以太报文的报文头部; 当控制字表示对数据净荷进行了标志位填 充, 则将标志位填充到生成非以太报文的报文头部的相应位置。
4、 将以太网帧中的以太网净荷填充到非以太>¾文净荷中。
204、 将非以太 4艮文发送至对应的非以太网。
将非以太报文放入端口队列中进行排序, 等待发送至对应的非以太网。 釆用本实施例的技术方案,釆用仿真业务类型对以太业务对应的以太网帧 和非以太业务对应的以太网帧进行区别, 当以太网帧通过以太网后,根据以太 网帧中的 PW ID和仿真业务类型, 生成对应的非以太 ^艮文, 从而实现非以太 业务通过以太网进行传输。 实施例三, 与实施例一相对应, 一种报文传输的装置, 参见图 3 , 该装置 可以包括:
获取单元 301 , 用于从接收到的非以太报文中获取 AC ID。
映射单元 302 , 用于查找获取单元 301获取的 AC ID对应的 PW ID。 封装单元 303 ,用于根据映射单元 302查找到的 PW ID和非以太报文对应 的仿真业务类型得到以太网帧。
发送单元 304 , 用于将封装单元 303得到的以太网帧发送至以太网。 进一步的, 获取单元 301可以包括:
接收子单元 301-1 , 用于接收非以太报文。
获取子单元 301-2 , 用于从接收子单元 301-1接收的非以太报文的头部获 取 AC ID。 进一步的, 映射单元 302可以包括:
存储子单元 302-1 , 用于存储 AC ID和 PW ID的映射关系;
查找子单元 302-2, 用于根据获取单元 301获取的 AC ID查找存储子单元 302-1。
进一步的, 发送单元 304可以包括:
排序子单元 304-1 , 用于将封装单元 303得到的以太网帧放入端口队列中 进行排序;
发送子单元 304-2, 用于等待将排序子单元 304-1排序后的以太网帧发送 至以太网。
釆用本实施例的技术方案,将通过映射单元 302将非以太报文中的 AC ID 映射为对应的以太网伪线标识符 PW ID, 由封装单元根据 PW ID和仿真业务 类型得到非以太报文对应的以太网帧, 从而可以将非以太报文通过以太网传 输。 实施例四, 与实施例二相对应, 一种报文传输的装置, 参见图 4, 该装置 可以包括:
获取单元 401 , 用于从接收到的以太网帧中获取 PW ID。
映射单元 402 , 用于查找获取单元 401获取的 PW ID对应的 AC ID。 报文单元 403 ,用于根据映射单元 402得到的 AC ID和以太网帧中的仿真 业务类型生成非以太 文。
发送单元 404, 用于将 文单元 403生成的非以太 文发送至对应的非以 太网。
进一步的, 获取单元 401可以包括:
接收子单元 401-1 , 用于接收以太网帧;
判断子单元 401-2, 用于剥离接收子单元 401-1接收的以太网帧的头部, 判断以太网帧中与业务相关的 Ether-type是否为仿真业务类型;
获取子单元 401-3 ,用于当判断子单元 401-2判断 Ether-type为仿真业务类 型时, 从接收子单元 401-1接收的以太网帧的 I-TAG中获取 PW ID。
进一步的, 映射单元 401可以包括: 存储子单元 402-1 , 用于存储 AC ID和 PW ID的映射关系;
查找子单元 402-2,用于根据获取单元 401获得的 PW ID查找存储子单元。 进一步的, 发送单元 404可以包括:
排序子单元 404-1 , 用于将报文单元 403得到的非以太报文放入端口队列 中进行排序;
发送子单元 404-2, 用于等待将排序子单元 404-1排序后的非以太"¾文发 送至对应的非以太网。 釆用本实施例的技术方案,釆用仿真业务类型对以太业务对应的以太网帧 和非以太业务对应的以太网帧进行区别, 当以太网帧通过以太网后, 由 4艮文单 元根据以太网帧中的 PW ID和仿真业务类型, 生成对应的非以太报文, 从而 实现非以太业务通过以太网进行传输。 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明 可借助软件加必需的硬件平台的方式来实现, 当然也可以全部通过硬件来实 施。基于这样的理解, 本发明的技术方案对背景技术做出贡献的全部或者部分 可以以软件产品的形式体现出来, 该计算机软件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备(可以 是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例或者实施例 的某些部分所述的方法。
以上所述仅是本发明的具体实施方式,应当指出,对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种 ^艮文传输的方法, 其特征在于, 该方法包括:
从接收到的非以太报文中获取附加电路连接标识符 AC ID;
查找所述 AC ID对应的伪线标识符 PW ID;
根据所述非以太报文对应的仿真业务类型和查找到的 PW ID得到以太网 帧;
将所述以太网帧发送至以太网。
2、 根据权利要求 1所述的方法, 其特征在于, 所述查找所述 AC ID对应 的 PW ID包括:
根据所述 AC ID查找本地数据库 ,所述本地数据库用于存储 AC ID和 PW
ID的映射关系;
如果查找到所述 AC ID对应的 PW ID, 则继续流程; 如果没有查找到所 述 AC ID对应的 PW ID , 则结束流程。
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述非以太报文 对应的仿真业务类型和查找到的 PW ID得到以太网帧包括:
从所述非以太报文中获取数据净荷;
将所述数据净荷封装到以太网帧的净荷区域;
将查找到的 PW ID填入以太网帧中骨干以太网业务实例标记 I-TAG相应 的位置上;
以太网帧中与业务相关的以太类型 Ether-type设为所述非以太报文对应的 仿真业务类型。
4、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述非以太报文 对应的仿真业务类型和查找到的 PW ID得到以太网帧包括:
从所述非以太报文中获取数据净荷;
根据所述非以太报文确定控制字;
根据确定的控制字将所述数据净荷封装到以太网帧的净荷区域; 将查找到的 PW ID填入以太网帧中 I-TAG相应的位置上;
以太网帧中与业务相关的以太类型 Ether-type设为所述非以太报文对应的 仿真业务类型。
5、 根据权利要求 3或 4所述的方法, 其特征在于, 所述根据所述非以太 报文对应的仿真业务类型和查找到的 PW ID得到以太网帧还包括:
6、 根据权利要求 1所述的方法, 其特征在于, 所述将所述以太网帧发送 至以太网包括:
将所述以太网帧放入端口队列中进行排序, 等待发送至以太网。
7、 一种 ^艮文传输的方法, 其特征在于, 该方法包括:
通过接收到的以太网帧获取伪线标识符 PW ID;
查找所述 PW ID对应的附加电路连接标识符 AC ID;
根据所述 AC ID和仿真业务类型得到非以太报文;
将所述非以太^艮文发送至对应的非以太网。
8、 根据权利要求 7所述的方法, 其特征在于, 所述通过接收到的以太网 帧获取 PW ID包括:
接收以太网帧;
剥离所述以太网帧的头部, 确定所述以太网帧中与业务相关的 Ether-type 为仿真业务类型时,从骨干以太网业务实例标记 I-TAG对应的位置上获取 PW ID。
9、 根据权利要求 7所述的方法, 其特征在于, 所述查找所述 PW ID对应 的 AC ID包括:
根据所述 PW ID查找本地数据库 ,所述本地数据库用于存储 AC ID和 PW
ID的映射关系;
如果查找到对应的 AC ID, 则继续流程; 如果没有查找到对应的 AC ID, 则结束流程。
10、 根据权利要求 9所述的方法, 其特征在于, 所述查找所述 PW ID对 应的 AC ID还包括:
当根据所述 PW ID在本地数据库中查找到两个或两个以上的 AC ID , 则 从所述以太网帧中获取 AC ID作为对应的 AC ID。
11、 根据权利要求 7所述的方法, 其特征在于, 所述根据所述 AC ID和 仿真业务类型得到非以太 ^^文包括: 将所述 AC ID填充到所述仿真业务类型对应的非以太报文的报文头部; 将所述以太网帧中的以太网净荷填充到所述非以太>¾文净荷中。
12、 根据权利要求 7所述的方法, 其特征在于, 所述根据所述 AC ID和 仿真业务类型得到非以太 ^^文包括:
将所述 AC ID填充到所述仿真业务类型对应的非以太报文的报文头部; 从所述 I-TAG中获取控制字;
根据所述控制字生成所述非以太报文的报文头部;
将所述以太网帧中的以太网净荷填充到所述非以太>¾文净荷中。
13、 根据权利要求 7所述的方法, 其特征在于, 所述将所述非以太报文发 送至对应的非以太网包括:
将所述非以太报文放入端口队列中进行排序, 等待发送至对应的非以太 网。
14、 一种报文传输的装置, 其特征在于, 该装置包括:
获取单元, 用于从接收到的非以太报文中获取附加电路连接标识符 AC ID;
映射单元, 用于查找所述获取单元获取的 AC ID对应的伪线标识符 PW
ID;
封装单元, 用于根据所述映射单元查找到的 PW ID和仿真业务类型得到 以太网帧;
发送单元, 用于将所述封装单元得到的以太网帧发送至以太网。
15、 根据权利要求 14所述的装置, 其特征在于, 所述映射单元包括: 存储子单元, 用于存储 AC ID和 PW ID的映射关系;
查找子单元, 用于根据获取单元获取的所述 AC ID查找所述存储子单元。
16、 根据权利要求 14所述的装置, 其特征在于, 所述发送单元包括: 排序子单元,用于将所述封装单元得到的所述以太网帧放入端口队列中进 行排序;
发送子单元, 用于等待将所述排序子单元排序后的以太网帧发送至以太 网。
17、 一种报文传输的装置, 其特征在于, 该装置包括: 获取单元, 用于从接收到的以太网帧中获取伪线标识符 PW ID;
映射单元, 用于查找所述获取单元获取的 PW ID对应的附加电路连接标 识符 AC ID;
报文单元, 用于根据所述映射单元得到的 AC ID和以太网帧中的仿真业 务类型生成非以太 文; 网。
18、 根据权利要求 17所述的装置, 其特征在于, 所述获取单元包括: 接收子单元, 用于接收以太网帧;
判断子单元, 用于剥离所述接收子单元接收的以太网帧的头部, 判断所述 以太网帧中与业务相关的 Ether-type是否为仿真业务类型;
获取子单元, 用于当所述判断子单元判断所述 Ether-type为仿真业务类型 时, 从所述接收子单元接收的以太网帧的 I-TAG中获取 PW ID。
19、 根据权利要求 17所述的装置, 其特征在于, 所述映射单元包括: 存储子单元, 用于存储 AC ID和 PW ID的映射关系;
查找子单元, 用于根据所述获取单元获得的 PW ID查找所述存储子单元。
20、 根据权利要求 19所述的装置, 其特征在于, 所述发送单元包括: 排序子单元,用于将所述报文单元得到的所述非以太报文放入端口队列中 进行排序; 的非以太网。
+
PCT/CN2009/071089 2008-04-30 2009-03-31 报文传输的方法及装置 WO2009132542A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810094466.7 2008-04-30
CN 200810094466 CN101572651B (zh) 2008-04-30 2008-04-30 报文传输的方法及装置

Publications (1)

Publication Number Publication Date
WO2009132542A1 true WO2009132542A1 (zh) 2009-11-05

Family

ID=41231890

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071089 WO2009132542A1 (zh) 2008-04-30 2009-03-31 报文传输的方法及装置

Country Status (2)

Country Link
CN (1) CN101572651B (zh)
WO (1) WO2009132542A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107370654B (zh) * 2016-05-11 2019-12-24 华为技术有限公司 一种伪线数据报文的封装、解封装方法和相关装置
CN112087477B (zh) * 2019-06-14 2021-12-03 华为技术有限公司 建立非以太网业务的方法和网络设备
CN112383418B (zh) * 2020-11-02 2023-07-14 北京左江科技股份有限公司 一种基于fpga的以太网报文高速可靠传输的设计方法

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625176A (zh) * 2003-12-03 2005-06-08 华为技术有限公司 边缘到边缘伪线仿真协议的实现方法
CN1714544A (zh) * 2002-11-21 2005-12-28 思科技术公司 用于互连异构的第2层vpn应用的系统和方法
US20060002423A1 (en) * 2004-06-30 2006-01-05 Rembert James W Methods, systems, and computer program products for direct interworking between pseudo wires associated with different services
CN1822570A (zh) * 2005-02-17 2006-08-23 朗迅科技公司 在基于以太网的网络中进行的伪线路对等体地址的自动发现
CN1852236A (zh) * 2005-09-28 2006-10-25 华为技术有限公司 一种在bgp/mpls vpn实现组播的方法
CN1866923A (zh) * 2006-02-24 2006-11-22 华为技术有限公司 一种实现捆绑接口边到边伪线仿真服务的方法及系统
CN1878136A (zh) * 2006-01-23 2006-12-13 华为技术有限公司 一种识别多条仿真业务流路径方法
US20070053366A1 (en) * 2005-09-08 2007-03-08 Booth Earl H Iii Layer-two interworking applied to L2-L3 pseudowires
US20070127479A1 (en) * 2005-12-05 2007-06-07 David Sinicrope A method and arrangement for distributed pseudo-wire signaling
CN1984069A (zh) * 2006-05-29 2007-06-20 华为技术有限公司 一种端到端伪线模拟接入的方法及系统
CN101001196A (zh) * 2007-01-25 2007-07-18 华为技术有限公司 一种建立伪线隧道并利用其传送报文的方法和装置
CN101047636A (zh) * 2006-06-07 2007-10-03 华为技术有限公司 端到端伪线仿真虚拟租用线接入虚拟专用网的方法及系统
WO2007125433A2 (en) * 2006-04-27 2007-11-08 Alcatel Lucent Ethernet vll spoke termination at an ip interface
CN101102261A (zh) * 2006-07-03 2008-01-09 华为技术有限公司 以太网承载异步传输模式信元的方法及装置
CN101132365A (zh) * 2007-08-31 2008-02-27 华为技术有限公司 报文的透传方法和装置

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1714544A (zh) * 2002-11-21 2005-12-28 思科技术公司 用于互连异构的第2层vpn应用的系统和方法
CN1625176A (zh) * 2003-12-03 2005-06-08 华为技术有限公司 边缘到边缘伪线仿真协议的实现方法
US20060002423A1 (en) * 2004-06-30 2006-01-05 Rembert James W Methods, systems, and computer program products for direct interworking between pseudo wires associated with different services
CN1822570A (zh) * 2005-02-17 2006-08-23 朗迅科技公司 在基于以太网的网络中进行的伪线路对等体地址的自动发现
US20070053366A1 (en) * 2005-09-08 2007-03-08 Booth Earl H Iii Layer-two interworking applied to L2-L3 pseudowires
CN1852236A (zh) * 2005-09-28 2006-10-25 华为技术有限公司 一种在bgp/mpls vpn实现组播的方法
US20070127479A1 (en) * 2005-12-05 2007-06-07 David Sinicrope A method and arrangement for distributed pseudo-wire signaling
CN1878136A (zh) * 2006-01-23 2006-12-13 华为技术有限公司 一种识别多条仿真业务流路径方法
CN1866923A (zh) * 2006-02-24 2006-11-22 华为技术有限公司 一种实现捆绑接口边到边伪线仿真服务的方法及系统
WO2007125433A2 (en) * 2006-04-27 2007-11-08 Alcatel Lucent Ethernet vll spoke termination at an ip interface
CN1984069A (zh) * 2006-05-29 2007-06-20 华为技术有限公司 一种端到端伪线模拟接入的方法及系统
CN101047636A (zh) * 2006-06-07 2007-10-03 华为技术有限公司 端到端伪线仿真虚拟租用线接入虚拟专用网的方法及系统
CN101102261A (zh) * 2006-07-03 2008-01-09 华为技术有限公司 以太网承载异步传输模式信元的方法及装置
CN101001196A (zh) * 2007-01-25 2007-07-18 华为技术有限公司 一种建立伪线隧道并利用其传送报文的方法和装置
CN101132365A (zh) * 2007-08-31 2008-02-27 华为技术有限公司 报文的透传方法和装置

Also Published As

Publication number Publication date
CN101572651A (zh) 2009-11-04
CN101572651B (zh) 2013-06-05

Similar Documents

Publication Publication Date Title
US7782906B2 (en) Method for carrying frame relay over Ethernet
US8913623B2 (en) Method and apparatus for processing labeled flows in a communications access network
EP1585260B1 (en) Apparatus and method for terminating service emulation instances
Martini et al. Transport of layer 2 frames over MPLS
WO2007009349A1 (fr) Méthode et appareil de transmission de message
US20080304476A1 (en) Ethernet over mpls circuit emulation service
WO2008006307A1 (fr) Procédé et dispositif d'un ethernet supportant des cellules atm
WO2013059991A1 (zh) 数据报文处理方法和系统、报文转发设备
WO2011132104A1 (en) Efficient encapsulation of packets transmitted on a packet-pseudowire over a packet switched network
AU2011244044A1 (en) Efficient encapsulation of packets transmitted on a packet-pseudowire over a Packet Switched Network
WO2013097459A1 (zh) 一种业务路径的探测方法及设备
WO2009012688A1 (fr) Procédé, système et appareil de réacheminement de message dans un réseau privé virtuel à trois couches
WO2021083332A1 (zh) 发送报文的方法、装置及系统
WO2008080315A1 (fr) Procédé, équipement et système de transmission de données
CN100433714C (zh) 一种ip分片报文传输处理方法
KR101140453B1 (ko) Ip 인터워킹 vll을 통한 회로 에뮬레이션 방법 및 시스템
WO2009086774A1 (zh) 数据传输方法、传输装置及传输系统
CN114422432A (zh) 基于可靠传输层的可靠覆盖
WO2009129721A1 (zh) 一种业务数据的发送、接收方法、装置和系统
WO2008028383A1 (fr) Procédé d'identification de protocole de couche 3 dans une interconnexion à supports hétérogènes dans un réseau privé virtuel de protocole l2 et appareil et système correspondants
WO2009132542A1 (zh) 报文传输的方法及装置
CN103269300A (zh) 一种实现异构网络互联的方法和设备
WO2012149846A1 (zh) 发送报文的方法、转发报文的方法及装置
WO2012034412A1 (zh) 选择性虚拟局域网中的环路检测方法和装置
WO2013004184A1 (en) L2 virtual private network interworking

Legal Events

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

Ref document number: 09737653

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09737653

Country of ref document: EP

Kind code of ref document: A1