[go: up one dir, main page]

CN101217470B - Method and device for forwarding message - Google Patents

Method and device for forwarding message Download PDF

Info

Publication number
CN101217470B
CN101217470B CN2007103060714A CN200710306071A CN101217470B CN 101217470 B CN101217470 B CN 101217470B CN 2007103060714 A CN2007103060714 A CN 2007103060714A CN 200710306071 A CN200710306071 A CN 200710306071A CN 101217470 B CN101217470 B CN 101217470B
Authority
CN
China
Prior art keywords
pseudowire
port
group
edge device
network
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
CN2007103060714A
Other languages
Chinese (zh)
Other versions
CN101217470A (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 CN2007103060714A priority Critical patent/CN101217470B/en
Publication of CN101217470A publication Critical patent/CN101217470A/en
Application granted granted Critical
Publication of CN101217470B publication Critical patent/CN101217470B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种转发报文的方法和设备,应用于多归属组网,属于通信技术领域。所述方法包括:接收CE发来的报文;在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口,该伪线捆绑组中的伪线与至少一个第一PE相连,该端口捆绑组中的端口与至少一个第二PE相连;通过选择的伪线或端口转发报文给相应的PE。所述设备包括:接收模块、选择模块和转发模块。本发明通过选择一条伪线或选择一个端口进行报文转发,使多条链路共同分担报文的转发工作,与现有技术中备份链路处于空闲状态不进行报文转发相比,充分地提高了带宽利用率,且保证了中间的PE设备不会收到相同的报文,提高了转发的准确率以及传输的可靠性。

Figure 200710306071

The invention discloses a method and equipment for forwarding messages, which are applied to multi-homing networking and belong to the technical field of communication. The method includes: receiving a message sent by CE; selecting a pseudowire in a pre-established pseudowire binding group, or selecting a port in a pre-established port binding group, and the pseudowire in the pseudowire binding group is connected to the At least one first PE is connected, and the ports in the port bundling group are connected to at least one second PE; the message is forwarded to the corresponding PE through the selected pseudowire or port. The device includes: a receiving module, a selecting module and a forwarding module. In the present invention, by selecting a pseudowire or a port for message forwarding, multiple links share the forwarding work of the message. Compared with the backup link in the prior art that is idle and does not forward the message, it fully The bandwidth utilization rate is improved, and the intermediate PE device is guaranteed not to receive the same message, which improves the accuracy of forwarding and the reliability of transmission.

Figure 200710306071

Description

转发报文的方法和设备Method and device for forwarding message

技术领域 technical field

本发明涉及通信技术领域,特别涉及一种转发报文的方法和设备。The invention relates to the technical field of communications, in particular to a method and device for forwarding messages.

背景技术 Background technique

MPLS(Multiprotocol Label Switch,多协议标签交换)L2VPN(Layer 2Virtual PrivateNetwork,二层虚拟专用网)提供基于MPLS网络的二层VPN服务,即在MPLS网络上透明传输用户二层数据。从用户的角度来看,MPLS网络是一个二层交换网络,可以在不同节点间建立二层连接。如图1所示为L2VPN基本组网示意图,CE1(Customer Edge Device,用户网络边缘设备)和PE1(Provider Edge Device,运营商网络边缘设备)相连,PE1和PE2相连,PE2和CE2相连。目前电信网络对传输可靠性提出来了越来越高的要求,对于传输过程中发生的故障,现有技术中存在多种保护手段,如FRR(Fast ReRoute,快速重路由)技术,双归属技术等等。MPLS (Multiprotocol Label Switch, Multi-Protocol Label Switching) L2VPN (Layer 2Virtual Private Network, Layer 2 Virtual Private Network) provides Layer 2 VPN services based on MPLS networks, that is, transparently transmits user Layer 2 data on MPLS networks. From the user's point of view, the MPLS network is a Layer 2 switching network, which can establish Layer 2 connections between different nodes. Figure 1 is a schematic diagram of the basic L2VPN network. CE1 (Customer Edge Device, user network edge device) is connected to PE1 (Provider Edge Device, operator network edge device), PE1 is connected to PE2, and PE2 is connected to CE2. At present, telecommunication networks have put forward higher and higher requirements for transmission reliability. For faults that occur during transmission, there are various protection methods in the existing technology, such as FRR (Fast ReRoute, fast rerouting) technology, dual-homing technology etc.

现有的多归属技术方案如下:如图2所示为CE双归属组网示意图,CE1与交换机S1相连,S1通过端口PORT1与PE1,且通过端口PORT2与PE1’相连,PE1和PE1’均与PE2相连,PE2和CE2相连;在CE1和CE2之间存在两条转发路径:CE1->PORT1->PE1->PE2->CE2和CE1->PORT2->PE1’->PE2->CE2;其中一条链路为另一条链路的备份链路,当其中一条发生故障时,由另一条路径代替转发流量。The existing multi-homing technical solution is as follows: Figure 2 is a schematic diagram of CE dual-homing networking. CE1 is connected to switch S1, S1 is connected to PE1 through port PORT1, and connected to PE1' through port PORT2. Both PE1 and PE1' are connected to PE2 is connected, and PE2 is connected to CE2; there are two forwarding paths between CE1 and CE2: CE1->PORT1->PE1->PE2->CE2 and CE1->PORT2->PE1'->PE2->CE2; One link is the backup link of the other link. When one of the links fails, another path forwards the traffic instead.

在实现本发明的过程中,发明人发现上述现有技术至少具有以下缺点:In the process of realizing the present invention, the inventors have found that the above-mentioned prior art has at least the following disadvantages:

采用多归属技术时,正常情况下备份链路不工作,带宽利用率较低,当发生故障切换到备份链路时,若CE设备是ETHERNET(以太网)介质,则普遍通过清除PE的MAC地址然后广播数据流量来达到切换链路的目的,因此会导致产生一些不必要的广播流量,浪费资源。When multi-homing technology is used, the backup link does not work under normal circumstances, and the bandwidth utilization rate is low. When a failover occurs to switch to the backup link, if the CE device is an ETHERNET (Ethernet) medium, it is generally cleared by clearing the MAC address of the PE. Then broadcast data traffic to achieve the purpose of switching links, so some unnecessary broadcast traffic will be generated and resources will be wasted.

发明内容 Contents of the invention

为了提高传输报文时带宽的利用率,本发明实施例提供了一种转发报文的方法和设备。所述技术方案如下:In order to improve the utilization rate of bandwidth when transmitting messages, the embodiments of the present invention provide a method and device for forwarding messages. Described technical scheme is as follows:

一方面,一种转发报文的方法,应用于多归属组网,所述方法包括:On the one hand, a method for forwarding a message is applied to a multi-homing network, and the method includes:

在至少一个第一运营商网络边缘设备和与用户网络边缘设备相连的运营商网络边缘设备之间建立伪线;在与所述用户网络边缘设备相连的运营商网络边缘设备上,对每个与所述用户网络边缘设备相连的端口都将该端口对应的伪线捆绑在一起,得到伪线捆绑组;A pseudowire is established between at least one first operator network edge device and the operator network edge device connected to the user network edge device; on the operator network edge device connected to the user network edge device, for each The ports connected to the edge device of the user network all bind the pseudowires corresponding to the ports together to obtain a pseudowire binding group;

在与所述用户网络边缘设备相连的交换机上,将与所述至少一个第一运营商网络边缘设备相连的端口按照与已得到的伪线捆绑组进行对称的捆绑,得到端口捆绑组;其中,对所述交换机上的端口进行对称的捆绑是指所述端口捆绑组和所述伪线捆绑组有对应关系,相对应的端口捆绑组与PW捆绑组,其中的端口数目与PW数目相同;On the switch connected to the user network edge device, the port connected to the at least one first operator network edge device is symmetrically bundled with the obtained pseudowire bonding group to obtain a port bonding group; wherein, Symmetrically bundling the ports on the switch means that the port bundling group and the pseudowire bundling group have a corresponding relationship, and the corresponding port bundling group and the PW bundling group, wherein the number of ports is the same as the number of PWs;

接收用户网络边缘设备发来的报文;Receive the message sent by the edge device of the user network;

在预所述伪线捆绑组中选择一条伪线,或在所述端口捆绑组中选择一个端口,所述伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,所述端口捆绑组中的端口与所述至少一个第一运营商网络边缘设备相连;Select a pseudowire in the pseudowire bundling group, or select a port in the port bundling group, the pseudowire in the pseudowire bundling group is connected to at least one edge device of the first operator's network, the Ports in the port bundling group are connected to the at least one edge device of the first operator's network;

通过所述选择的伪线或端口转发所述报文给相应的运营商网络边缘设备。forwarding the packet to the corresponding edge device of the operator's network through the selected pseudowire or port.

另一方面,一种转发报文的设备,应用于多归属组网,所述设备包括:On the other hand, a device for forwarding messages is applied to a multi-homing network, and the device includes:

建立模块,用于在所述设备与至少一个第一运营商网络边缘设备之间建立伪线,对所述设备上每个与用户网络边缘设备相连的端口都将该端口对应的伪线捆绑在一起,得到伪线捆绑组;An establishment module, configured to establish a pseudowire between the device and at least one edge device of the first operator's network, and bind the pseudowire corresponding to the port on each port connected to the edge device of the user network on the device together, to get the pseudowire bundle group;

接收模块,用于接收用户网络边缘设备发来的报文;The receiving module is used to receive the message sent by the edge device of the user network;

选择模块,用于在所述伪线捆绑组中选择一条伪线,或在端口捆绑组中选择一个端口;所述伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,所述端口捆绑组由交换机上与所述至少一个第一运营商网络边缘设备相连的端口按照与预先建立的伪线捆绑组进行对称的捆绑得到;其中,对交换机上的端口进行对称的捆绑是指所述端口捆绑组和所述伪线捆绑组有对应关系,相对应的端口捆绑组与PW捆绑组,其中的端口数目与PW数目相同;所述端口捆绑组中的端口与至少一个第一运营商网络边缘设备相连;A selection module, configured to select a pseudowire in the pseudowire bundling group, or select a port in the port bundling group; the pseudowire in the pseudowire bundling group is connected to at least one edge device of the first operator's network, The port binding group is obtained by symmetrically binding the ports connected to the at least one first carrier network edge device on the switch with a pre-established pseudowire binding group; wherein, the symmetrical binding of the ports on the switch is It means that there is a corresponding relationship between the port bundling group and the pseudowire bundling group, the corresponding port bundling group and the PW bundling group, and the number of ports in the port bundling group is the same as the number of PWs; the ports in the port bundling group are connected to at least one first The edge devices of the operator's network are connected;

转发模块,用于通过所述选择模块选择的伪线或端口,转发所述接收模块收到的报文给相应的运营商网络边缘设备。The forwarding module is configured to forward the message received by the receiving module to a corresponding operator network edge device through the pseudowire or port selected by the selecting module.

本发明实施例提供的技术方案的有益效果是:The beneficial effects of the technical solution provided by the embodiments of the present invention are:

通过当收到报文后在伪线捆绑组中选择一条伪线或在端口捆绑组中选择一个端口进行报文转发,使多条链路共同分担报文的转发工作,与现有技术中备份链路处于空闲状态不进行报文转发相比,充分地提高了带宽利用率。转发报文时只选择一条PW或一个端口进行转发,保证了中间的PE设备不会收到相同的报文,提高了转发的准确率以及传输的可靠性。By selecting a pseudowire in the pseudowire binding group or selecting a port in the port binding group to forward the message after receiving the message, multiple links share the forwarding work of the message, which is different from the backup in the prior art. Compared with the link in the idle state without packet forwarding, the bandwidth utilization rate is fully improved. When forwarding a message, only one PW or one port is selected for forwarding, which ensures that the intermediate PE device will not receive the same message, and improves the accuracy of forwarding and the reliability of transmission.

附图说明 Description of drawings

图1是现有技术中L2VPN基本组网示意图;FIG. 1 is a schematic diagram of a basic L2VPN network in the prior art;

图2是现有技术中CE双归属组网示意图;FIG. 2 is a schematic diagram of CE dual-homing networking in the prior art;

图3是本发明实施例1提供的转发报文的方法流程图;FIG. 3 is a flowchart of a method for forwarding a message provided in Embodiment 1 of the present invention;

图4是本发明实施例1提供的CE双归属组网示意图;FIG. 4 is a schematic diagram of CE dual-homing networking provided by Embodiment 1 of the present invention;

图5是本发明实施例2提供的转发报文的设备结构图。FIG. 5 is a structural diagram of a device for forwarding packets provided by Embodiment 2 of the present invention.

具体实施方式 Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

本发明实施例提供的转发报文的方法,具体包括:接收用户网络边缘设备发来的报文;在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口;所述伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,所述端口捆绑组中的端口与至少一个第二运营商网络边缘设备相连;通过所选择的伪线或端口转发收到的报文给相应的运营商网络边缘设备。由于与PE相连的多条链路都转发报文,而不是主备链路切换的方式,可以极大地提高带宽的利用率。The method for forwarding a packet provided by the embodiment of the present invention specifically includes: receiving a packet sent by a user network edge device; selecting a pseudowire in a pre-established pseudowire binding group, or selecting a pseudowire in a pre-established port binding group One port; the pseudowires in the pseudowire bundling group are connected to at least one edge device of the first operator's network, and the ports in the port bundling group are connected to at least one edge device of the second operator's network; through the selected pseudowire The line or port forwards the received message to the corresponding operator's network edge device. Since the multiple links connected to the PE forward packets instead of switching between active and standby links, bandwidth utilization can be greatly improved.

实施例1Example 1

参见图3,本发明实施例提供了一种转发报文的方法,应用于多归属组网,具体包括:Referring to Fig. 3, the embodiment of the present invention provides a method for forwarding a message, which is applied to a multi-homing network, and specifically includes:

步骤101:在网络中间的至少一个第一PE和与CE相连的PE之间的每条链路上建立PW(Pseudo Wire,伪线),对于多归属组网的情况,可以得到多条PW。Step 101: Establish a PW (Pseudo Wire, Pseudo Wire) on each link between at least one first PE in the middle of the network and the PE connected to the CE. In the case of a multi-homing network, multiple PWs can be obtained.

步骤102:在与CE相连的PE上,对与CE相连的每个端口,将该端口对应的所有PW进行捆绑,得到PW捆绑组,并且在与CE相连的交换机上,对与至少一个第二PE相连的多个端口进行对称的捆绑,得到端口捆绑组。Step 102: On the PE connected to the CE, for each port connected to the CE, bind all the PWs corresponding to the port to obtain a PW bundle group, and on the switch connected to the CE, bind the Multiple ports connected to PEs are bundled symmetrically to obtain a port bundle group.

对PW进行捆绑是以与CE相连的端口为单位进行捆绑,即PE上每个与CE相连的端口都对应一个PW捆绑组,多个PW捆绑组是按与CE相连的端口进行标识的,如PE上有两个端口与CE相连,分别为端口1和端口2,其中端口1对应PW捆绑组1,包括PW1和PW2,端口2对应PW捆绑组2,包括PW3和PW4等等。PWs are bundled in units of ports connected to CE, that is, each port connected to CE on a PE corresponds to a PW bundle group, and multiple PW bundle groups are identified by ports connected to CE, for example There are two ports on the PE connected to the CE, port 1 and port 2. Port 1 corresponds to PW bonding group 1, including PW1 and PW2, and port 2 corresponds to PW bonding group 2, including PW3 and PW4.

对交换机上的端口进行对称的捆绑是指端口捆绑组与PW捆绑组有对应关系,相对应的端口捆绑组与PW捆绑组,其中的端口数目与PW数目相同,通过对称捆绑,可以保证交换机转发报文时不丢包并且避免造成环路广播等等。Symmetric binding of the ports on the switch means that there is a corresponding relationship between the port binding group and the PW binding group. The corresponding port binding group and the PW binding group have the same number of ports as the number of PWs. Symmetric binding can ensure that the switch forwards Packets are not lost and loop broadcasts are avoided.

步骤103:与CE相连的PE或交换机接收CE发来的报文。Step 103: The PE or the switch connected to the CE receives the message sent by the CE.

步骤104:与CE相连的PE在预先建立的PW捆绑组中选择一条PW;或者与CE相连的交换机在端口捆绑组中选择一个端口。Step 104: The PE connected to the CE selects a PW in the pre-established PW binding group; or the switch connected to the CE selects a port in the port binding group.

其中,选择PW或选择端口有多种方式,包括但不限于以下两种方式:Among them, there are many ways to select PW or port, including but not limited to the following two ways:

1)逐流方式1) Flow by flow

对具有相同特征的报文选择同一条PW或同一个端口转发报文,相同的特征包括但不限于报文的目的MAC地址相同、源MAC地址相同或者既目的MAC地址相同又源MAC地址相同等等。例如,采用哈希算法对目的MAC地址与PW捆绑组中的PW数量相除取余,以取余结果为PW的序号选择相应的PW进行转发等等。Select the same PW or the same port to forward packets with the same characteristics, including but not limited to the same destination MAC address, the same source MAC address, or both the same destination MAC address and the same source MAC address, etc. wait. For example, a hash algorithm is used to divide the destination MAC address by the number of PWs in the PW bundle group to obtain a remainder, and the remainder is used as the serial number of the PW to select the corresponding PW for forwarding, and so on.

2)逐包方式2) Packet-by-packet mode

按照报文的先后顺序,在PW捆绑组中选择一条PW或在端口捆绑组中选择一个端口转发报文,包括但不限于顺序选择、反序选择等等。例如,PW捆绑组中有两条PW,分别为PW1和PW2,采用哈希算法对报文的序号与PW捆绑组中的PW数量相除取余,以取余结果为PW的序号选择相应的PW来实现顺序选择,即报文1选择PW1进行转发,报文2选择PW2进行转发,报文3选择PW1进行转发,报文4选择PW2进行转发等等。According to the order of the packets, select a PW in the PW bundle group or select a port in the port bundle group to forward packets, including but not limited to sequence selection, reverse sequence selection, and so on. For example, if there are two PWs in the PW bundle group, namely PW1 and PW2, the hash algorithm is used to divide the serial number of the packet by the number of PWs in the PW bundle group, and the remainder is used to select the corresponding PW serial number. PW is used to implement sequential selection, that is, packet 1 selects PW1 for forwarding, packet 2 selects PW2 for forwarding, packet 3 selects PW1 for forwarding, packet 4 selects PW2 for forwarding, and so on.

例如,参见图4,采用双归属组网方式。与CE1相连的交换机S1通过端口PORT1与PE1相连,通过端口PORT2与PE1’相连,与CE2相连的PE2分别与PE1和PE1’相连,在PE1和PE2之间的链路上建立PW1,在PE1’和PE2之间的链路上建立PW2,两条PW都通过同一个端口与CE2相连,将PW1和PW2捆绑在一起,得到PW捆绑组。当PE2收到CE2发来的报文时,按照逐流的方式从PW1和PW2中选择一条PW转发该报文给相应的PE,如选择PW1转发报文给PE1或选择PW2转发报文给PE1’。For example, referring to FIG. 4 , a dual-homing networking mode is adopted. The switch S1 connected to CE1 is connected to PE1 through port PORT1, and connected to PE1' through port PORT2. PE2 connected to CE2 is connected to PE1 and PE1' respectively, and PW1 is established on the link between PE1 and PE2. PW2 is established on the link with PE2, and both PWs are connected to CE2 through the same port. PW1 and PW2 are bound together to obtain a PW binding group. When PE2 receives a packet from CE2, it selects a PW from PW1 and PW2 to forward the packet to the corresponding PE in a flow-by-flow manner, such as selecting PW1 to forward the packet to PE1 or selecting PW2 to forward the packet to PE1 '.

进一步地,当与CE相连的PE检测到至少一个第一PE设备故障或检测到链路故障,或与CE相连的交换机检测到至少一个第二PE设备故障或检测到链路故障时,步骤104具体为:Further, when the PE connected to the CE detects at least one first PE device failure or detects a link failure, or the switch connected to the CE detects at least one second PE device failure or detects a link failure, step 104 Specifically:

在PW捆绑组中选择一条未发生故障且所连的PE设备也未发生故障的PW,或在端口捆绑组中选择一个所连链路和所连PE均未发生故障的端口,从而保证通过无故障的链路转发报文。其中,与CE相连的PE或交换机可以采用端到端的检测技术,如BFD(BidirectionalForwarding Detection,双向转发检测)协议或OAM(Operations Administration and Maintenance,操作管理和维护)协议等等,对PW捆绑组中的PW链路进行检测,也可以通过其它故障检测及通告手段,来检测链路是否发生故障。In the PW bundle group, select a PW that is not faulty and the connected PE device is not faulty, or select a port in the port bund The faulty link forwards packets. Among them, the PE or switch connected to CE can adopt end-to-end detection technology, such as BFD (Bidirectional Forwarding Detection, bidirectional forwarding detection) protocol or OAM (Operations Administration and Maintenance, operation management and maintenance) protocol, etc. It can also detect whether the link is faulty through other fault detection and notification methods.

步骤105:通过所选择的PW或端口转发收到的报文给相应的PE,然后结束。Step 105: forward the received message to the corresponding PE through the selected PW or port, and then end.

本实施例通过当收到报文后,在预先建立的PW捆绑组中选择一条PW或在预先建立的端口捆绑组中选择一个端口进行报文转发,使多条链路共同分担报文的转发工作,与现有技术中备份链路处于空闲状态不进行报文转发相比,充分地提高了带宽利用率。转发报文时只选择一条PW或一个端口进行转发,保证了中间的PE设备不会收到相同的报文,提高了转发的准确率。发生故障时,只需选择未发生故障的PW或所连链路未发生故障的端口转发报文,处理简单,容易实现,降低了对设备的要求,且有效地减少了故障引发的丢包数量。In this embodiment, after receiving the message, select a PW in the pre-established PW binding group or select a port in the pre-established port binding group to forward the message, so that multiple links share the forwarding of the message Compared with the prior art where the backup link is in an idle state and does not perform message forwarding, the bandwidth utilization rate is fully improved. When forwarding a packet, only one PW or one port is selected for forwarding, which ensures that the intermediate PE device will not receive the same packet and improves the accuracy of forwarding. When a failure occurs, you only need to select the unfailed PW or the unfailed port of the connected link to forward the message, which is simple and easy to implement, reduces the requirements for equipment, and effectively reduces the number of packet loss caused by the failure .

实施例2Example 2

参见图5,本发明实施例还提供了一种转发报文的设备,应用于多归属组网,具体包括:Referring to FIG. 5, the embodiment of the present invention also provides a device for forwarding messages, which is applied to a multi-homing network, and specifically includes:

接收模块,用于接收用户网络边缘设备发来的报文;The receiving module is used to receive the message sent by the edge device of the user network;

选择模块,用于在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口;该伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,该端口捆绑组中的端口与至少一个第二运营商网络边缘设备相连;A selection module, configured to select a pseudowire in a pre-established pseudowire bundling group, or select a port in a pre-established port bundling group; the pseudowires in the pseudowire bundling group are connected to at least one first operator network edge The device is connected, and the ports in the port bundle group are connected to at least one edge device of the second operator's network;

转发模块,用于通过选择模块选择的伪线或端口,转发接收模块收到的报文给相应的运营商网络边缘设备。The forwarding module is used to forward the message received by the receiving module to the corresponding edge device of the operator's network through the pseudowire or port selected by the selection module.

当上述设备具体为运营商网络边缘设备时,该设备还可以包括:When the above-mentioned device is specifically an edge device of an operator's network, the device may also include:

建立模块,用于在该设备与上述至少一个第一网络中间的运营商网络边缘设备之间建立伪线,对设备上每个与所述用户网络边缘设备相连的端口都将该端口对应的伪线捆绑在一起,得到上述伪线捆绑组。An establishment module, configured to establish a pseudowire between the device and the edge device of the operator's network in the middle of the at least one first network, and for each port connected to the edge device of the user network on the device, a pseudowire corresponding to the port is set. The wires are bundled together to obtain the bundled group of pseudowires described above.

当上述设备具体为交换机时,上述预先建立的伪线捆绑组具体为第一伪线捆绑组,该设备还可以包括:When the above-mentioned device is specifically a switch, the above-mentioned pre-established pseudowire bundling group is specifically the first pseudowire bundling group, and the device may also include:

建立模块,用于将设备上与上述至少一个第二运营商网络边缘设备相连的端口按照与预先建立的第二伪线捆绑组对称的方式进行捆绑,得到所述端口捆绑组,该第二伪线捆绑组为与用户网络边缘设备相连的运营商网络边缘设备预先建立的伪线捆绑组。The establishment module is configured to bind the port on the device connected to the edge device of the at least one second operator network in a manner symmetrical to the pre-established second pseudowire binding group to obtain the port binding group, the second pseudowire binding group The wire bonding group is a pre-established pseudowire bonding group of the operator's network edge device connected to the user network edge device.

其中,选择模块具体包括:Among them, the selection module specifically includes:

逐流选择单元,用于按照具有相同特征的报文选择同一条伪线或选择同一个端口的规则,在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口;该伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,该端口捆绑组中的端口与至少一个第二运营商网络边缘设备相连。The flow-by-flow selection unit is used to select the same pseudowire or select the same port according to the rules of packets with the same characteristics, and select a pseudowire in the pre-established pseudowire binding group, or in the pre-established port binding group A port is selected; the pseudowires in the pseudowire bundling group are connected to at least one first operator's network edge device, and the ports in the port bundling group are connected to at least one second operator's network edge device.

或者选择模块具体包括:Or select modules specifically including:

逐包选择单元,用于按照收到的报文以固定的顺序对应伪线或端口的规则,在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口;该伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,该端口捆绑组中的端口与至少一个第二运营商网络边缘设备相连。The packet-by-packet selection unit is used to select a pseudowire in a pre-established pseudowire binding group or select a Ports; the pseudowires in the pseudowire bundling group are connected to at least one edge device of the first operator's network, and the ports in the port bundling group are connected to at least one edge device of the second operator's network.

进一步地,选择模块具体包括:Further, the selection module specifically includes:

故障选择单元,用于如果检测到与预先建立的伪线捆绑组中的伪线相连的至少一个第一运营商网络边缘设备故障,或检测到与预先建立的端口捆绑组中的端口相连的至少一个第二运营商网络边缘设备故障,或检测到链路故障,则在该伪线捆绑组中选择一条未发生故障且所连的运营商网络边缘设备也未发生故障的伪线,或在该端口捆绑组中选择一个所连的链路和所连的运营商网络边缘设备都未发生故障的端口。The failure selection unit is configured to detect a failure of at least one first operator network edge device connected to a pseudowire in a pre-established pseudowire bundling group, or to detect at least one edge device connected to a port in a pre-established port bundling group. If a second operator's network edge device fails, or a link failure is detected, select a pseudowire in the pseudowire bundle group that has not failed and the connected operator's network edge device has not failed, or in the pseudowire bundle group. In the port bundle group, select a port whose connected links and edge devices of the carrier network are not faulty.

本实施例中的设备可以为与CE相连的PE设备,也可以为与CE相连的交换机。The device in this embodiment may be a PE device connected to the CE, or may be a switch connected to the CE.

本实施例通过当收到报文后,在伪线捆绑组中选择一条伪线或在端口捆绑组中选择一个端口进行报文转发,使多条链路共同分担报文的转发工作,与现有技术中备份链路处于空闲状态不进行报文转发相比,充分地利用了带宽资源,提高了带宽利用率。转发报文时只选择一条PW或一个端口进行转发,保证了中间的PE设备不会收到相同的报文,提高了转发的准确率。发生故障时,只需选择未发生故障的PW或所连链路未发生故障的端口转发报文,处理简单,容易实现,降低了对设备的要求,且有效地减少了故障引发的丢包数量。In this embodiment, when a packet is received, a pseudowire is selected in the pseudowire bundling group or a port is selected in the port bundling group to forward the packet, so that multiple links share the packet forwarding work, which is different from the existing Compared with the prior art where the backup link is in an idle state and does not perform message forwarding, the bandwidth resource is fully utilized and the bandwidth utilization rate is improved. When forwarding a packet, only one PW or one port is selected for forwarding, which ensures that the intermediate PE device will not receive the same packet and improves the accuracy of forwarding. When a failure occurs, you only need to select the unfailed PW or the unfailed port of the connected link to forward the message, which is simple and easy to implement, reduces the requirements for equipment, and effectively reduces the number of packet loss caused by the failure .

本发明实施例可以利用软件实现,相应的软件可以存储在可读取的存储介质中,如PE或交换机的硬盘或缓存中。The embodiment of the present invention can be realized by software, and the corresponding software can be stored in a readable storage medium, such as a hard disk or cache of a PE or a switch.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (7)

1.一种转发报文的方法,其特征在于,应用于多归属组网,所述方法包括:1. A method for forwarding messages, characterized in that being applied to multi-homing networking, the method comprises: 在至少一个第一运营商网络边缘设备和与用户网络边缘设备相连的运营商网络边缘设备之间建立伪线;在与所述用户网络边缘设备相连的运营商网络边缘设备上,对每个与所述用户网络边缘设备相连的端口都将该端口对应的伪线捆绑在一起,得到伪线捆绑组;A pseudowire is established between at least one first operator network edge device and the operator network edge device connected to the user network edge device; on the operator network edge device connected to the user network edge device, for each The ports connected to the edge device of the user network all bind the pseudowires corresponding to the ports together to obtain a pseudowire binding group; 在与所述用户网络边缘设备相连的交换机上,将与所述至少一个第一运营商网络边缘设备相连的端口按照与已得到的伪线捆绑组进行对称的捆绑,得到端口捆绑组;其中,对所述交换机上的端口进行对称的捆绑是指所述端口捆绑组和所述伪线捆绑组有对应关系,相对应的端口捆绑组与PW捆绑组,其中的端口数目与PW数目相同;On the switch connected to the user network edge device, the port connected to the at least one first operator network edge device is symmetrically bundled with the obtained pseudowire bonding group to obtain a port bonding group; wherein, Symmetrically bundling the ports on the switch means that the port bundling group and the pseudowire bundling group have a corresponding relationship, and the corresponding port bundling group and the PW bundling group, wherein the number of ports is the same as the number of PWs; 接收用户网络边缘设备发来的报文;Receive the message sent by the edge device of the user network; 在所述伪线捆绑组中选择一条伪线,或在所述端口捆绑组中选择一个端口,所述伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,所述端口捆绑组中的端口与所述至少一个第一运营商网络边缘设备相连;Select a pseudowire in the pseudowire bundling group, or select a port in the port bundling group, the pseudowire in the pseudowire bundling group is connected to at least one edge device of the first operator's network, and the port Ports in the bundled group are connected to the at least one edge device of the first operator's network; 通过所述选择的伪线或端口转发所述报文给相应的运营商网络边缘设备。forwarding the packet to the corresponding edge device of the operator's network through the selected pseudowire or port. 2.根据权利要求1所述的转发报文的方法,其特征在于,所述在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口,具体为:2. The method for forwarding messages according to claim 1, characterized in that, selecting a pseudowire in a pre-established pseudowire binding group, or selecting a port in a pre-established port binding group, specifically : 按照具有相同特征的报文选择同一条伪线或选择同一个端口的规则,在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口;According to the rules of selecting the same pseudowire or selecting the same port for packets with the same characteristics, select a pseudowire in the pre-established pseudowire binding group, or select a port in the pre-established port binding group; 或按照收到的报文以固定的顺序对应伪线或端口的规则,在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口。Or select a pseudowire in a pre-established pseudowire binding group, or select a port in a pre-established port binding group according to the rule that received packets correspond to pseudowires or ports in a fixed order. 3.根据权利要求1所述的转发报文的方法,其特征在于,所述在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口,具体包括:3. The method for forwarding messages according to claim 1, wherein said selecting a pseudowire in a pre-established pseudowire binding group, or selecting a port in a pre-established port binding group, specifically comprises : 如果检测到与预先建立的伪线捆绑组中的伪线相连的至少一个第一运营商网络边缘设备故障,或检测到与预先建立的端口捆绑组中的端口相连的至少一个第一运营商网络边缘设备故障,或检测到链路故障,则在所述伪线捆绑组中选择一条未发生故障且所连的运营商网络边缘设备也未发生故障的伪线,或在所述端口捆绑组中选择一个所连的链路和所连的运营商网络边缘设备都未发生故障的端口。If at least one first carrier network edge device failure is detected connected to a pseudowire in a pre-established pseudowire bundle group, or at least one first carrier network edge device connected to a port in a pre-established port bundle group is detected If an edge device fails, or a link fault is detected, select a pseudowire in the pseudowire bonding group that has not failed and the edge device connected to the carrier network has not failed, or select a pseudowire in the port bonding group Choose a port that has no failures in the attached link and the attached carrier network edge device. 4.一种转发报文的设备,其特征在于,应用于多归属组网,所述设备包括:4. A device for forwarding messages, characterized in that it is applied to multi-homing networking, and the device includes: 建立模块,用于在所述设备与至少一个第一运营商网络边缘设备之间建立伪线,对所述设备上每个与用户网络边缘设备相连的端口都将该端口对应的伪线捆绑在一起,得到伪线捆绑组;An establishment module, configured to establish a pseudowire between the device and at least one edge device of the first operator's network, and bind the pseudowire corresponding to the port on each port connected to the edge device of the user network on the device together, to get the pseudowire bundle group; 接收模块,用于接收用户网络边缘设备发来的报文;The receiving module is used to receive the message sent by the edge device of the user network; 选择模块,用于在所述伪线捆绑组中选择一条伪线,或在端口捆绑组中选择一个端口;所述伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,所述端口捆绑组由交换机上与所述至少一个第一运营商网络边缘设备相连的端口按照与预先建立的伪线捆绑组进行对称的捆绑得到;其中,对交换机上的端口进行对称的捆绑是指所述端口捆绑组和所述伪线捆绑组有对应关系,相对应的端口捆绑组与PW捆绑组,其中的端口数目与PW数目相同;所述端口捆绑组中的端口与至少一个第一运营商网络边缘设备相连;A selection module, configured to select a pseudowire in the pseudowire bundling group, or select a port in the port bundling group; the pseudowire in the pseudowire bundling group is connected to at least one edge device of the first operator's network, The port binding group is obtained by symmetrically binding the ports connected to the at least one first carrier network edge device on the switch with a pre-established pseudowire binding group; wherein, the symmetrical binding of the ports on the switch is It means that there is a corresponding relationship between the port bundling group and the pseudowire bundling group, the corresponding port bundling group and the PW bundling group, and the number of ports in the port bundling group is the same as the number of PWs; the ports in the port bundling group are connected to at least one first The edge devices of the operator's network are connected; 转发模块,用于通过所述选择模块选择的伪线或端口,转发所述接收模块收到的报文给相应的运营商网络边缘设备。The forwarding module is configured to forward the message received by the receiving module to a corresponding operator network edge device through the pseudowire or port selected by the selecting module. 5.根据权利要求4所述的转发报文的设备,其特征在于,所述选择模块具体包括:5. The device for forwarding messages according to claim 4, wherein the selection module specifically comprises: 逐流选择单元,用于按照具有相同特征的报文选择同一条伪线或选择同一个端口的规则,在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口;所述伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,所述端口捆绑组中的端口与至少一个第一运营商网络边缘设备相连。The flow-by-flow selection unit is used to select the same pseudowire or select the same port according to the rules of packets with the same characteristics, and select a pseudowire in the pre-established pseudowire binding group, or in the pre-established port binding group Selecting a port; the pseudowires in the pseudowire bundling group are connected to at least one edge device of the first operator's network, and the ports in the port bundling group are connected to at least one edge device of the first operator's network. 6.根据权利要求4所述的转发报文的设备,其特征在于,所述选择模块具体包括:6. The device for forwarding messages according to claim 4, wherein the selection module specifically comprises: 逐包选择单元,用于按照收到的报文以固定的顺序对应伪线或端口的规则,在预先建立的伪线捆绑组中选择一条伪线,或在预先建立的端口捆绑组中选择一个端口;所述伪线捆绑组中的伪线与至少一个第一运营商网络边缘设备相连,所述端口捆绑组中的端口与至少一个第一运营商网络边缘设备相连。The packet-by-packet selection unit is used to select a pseudowire in a pre-established pseudowire binding group or select a Ports; the pseudowires in the pseudowire bundling group are connected to at least one edge device of the first operator's network, and the ports in the port bundling group are connected to at least one edge device of the first operator's network. 7.根据权利要求4所述的转发报文的设备,其特征在于,所述选择模块具体包括:7. The device for forwarding messages according to claim 4, wherein the selection module specifically comprises: 故障选择单元,用于如果检测到与预先建立的伪线捆绑组中的伪线相连的至少一个第一运营商网络边缘设备故障,或检测到与预先建立的端口捆绑组中的端口相连的至少一个第一运营商网络边缘设备故障,或检测到链路故障,则在所述伪线捆绑组中选择一条未发生故障且所连的运营商网络边缘设备也未发生故障的伪线,或在所述端口捆绑组中选择一个所连的链路和所连的运营商网络边缘设备都未发生故障的端口。The failure selection unit is configured to detect a failure of at least one first operator network edge device connected to a pseudowire in a pre-established pseudowire bundling group, or to detect at least one edge device connected to a port in a pre-established port bundling group. If a first operator network edge device fails, or a link failure is detected, a pseudowire that is not faulty and the connected operator network edge device is not faulty is selected in the pseudowire bundling group, or in the In the port bundling group, select a port whose connected links and edge devices of the operator's network are not faulty.
CN2007103060714A 2007-12-29 2007-12-29 Method and device for forwarding message Expired - Fee Related CN101217470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007103060714A CN101217470B (en) 2007-12-29 2007-12-29 Method and device for forwarding message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007103060714A CN101217470B (en) 2007-12-29 2007-12-29 Method and device for forwarding message

Publications (2)

Publication Number Publication Date
CN101217470A CN101217470A (en) 2008-07-09
CN101217470B true CN101217470B (en) 2012-11-21

Family

ID=39623833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007103060714A Expired - Fee Related CN101217470B (en) 2007-12-29 2007-12-29 Method and device for forwarding message

Country Status (1)

Country Link
CN (1) CN101217470B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594310B (en) * 2009-07-14 2012-09-05 华为技术有限公司 Method, device and system for transmitting message
CN102025586B (en) 2009-09-09 2014-07-09 华为技术有限公司 Intercommunicating method, device and system for multiple protocol label switching network and Ethernet
CN102055647A (en) * 2009-11-03 2011-05-11 中兴通讯股份有限公司 Three-layer virtual private network (VPN) access method and system
CN102468977B (en) * 2010-11-19 2016-03-30 中兴通讯股份有限公司 The guard method of Packet Transport Network and device
CN102215167B (en) * 2011-06-03 2014-09-03 中国联合网络通信集团有限公司 Data transmission method, device and system
CN102301657B (en) * 2011-06-30 2013-10-09 华为技术有限公司 Tunnel configuration method and device
CN106992927A (en) * 2016-01-21 2017-07-28 中兴通讯股份有限公司 A kind of pseudo-line service retransmission method and device
CN106992929A (en) * 2016-01-21 2017-07-28 中兴通讯股份有限公司 A kind of pseudo-line service retransmission method and device
CN109165506B (en) * 2018-07-05 2021-07-20 河南中烟工业有限责任公司 A method for online virus detection and virus protection of industrial control fault-tolerant server
CN109995651B (en) * 2019-03-28 2021-05-14 新华三技术有限公司 Pseudo wire establishing method and device
CN110138605B (en) * 2019-04-30 2022-06-17 浙江亿邦通信科技有限公司 PW switching method and device based on virtual port
CN114389984A (en) * 2020-10-19 2022-04-22 华为技术有限公司 Traffic forwarding processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380801A (en) * 2001-04-12 2002-11-20 深圳市中兴通讯股份有限公司 Mutual conversion method of line link load-sharing general and backup mode in digital communication system
CN1866923A (en) * 2006-02-24 2006-11-22 华为技术有限公司 Method and system for realizing binding interface edge-to-edge pseudo wire simulation service
CN1866859A (en) * 2005-09-30 2006-11-22 华为技术有限公司 Method for carrying out protection inversion on pseudo wire in packet switch network
CN101083611A (en) * 2006-05-30 2007-12-05 中兴通讯股份有限公司 Apparatus for using color identification L-LSP tunnel packet forwarding priority

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380801A (en) * 2001-04-12 2002-11-20 深圳市中兴通讯股份有限公司 Mutual conversion method of line link load-sharing general and backup mode in digital communication system
CN1866859A (en) * 2005-09-30 2006-11-22 华为技术有限公司 Method for carrying out protection inversion on pseudo wire in packet switch network
CN1866923A (en) * 2006-02-24 2006-11-22 华为技术有限公司 Method and system for realizing binding interface edge-to-edge pseudo wire simulation service
CN101083611A (en) * 2006-05-30 2007-12-05 中兴通讯股份有限公司 Apparatus for using color identification L-LSP tunnel packet forwarding priority

Also Published As

Publication number Publication date
CN101217470A (en) 2008-07-09

Similar Documents

Publication Publication Date Title
CN101217470B (en) Method and device for forwarding message
CN101227397B (en) System, equipment and method for protecting link circuit
CN102025541B (en) Method and system for realizing multicast protection
CN101141330B (en) Method, system and equipment for establishing BFD detection for LSP tunnel
CN101150587B (en) A method, device and system for traffic switching of multi-protocol label switching traffic engineering
CN101902353B (en) Protecting method, device and system of packet network
US9722916B2 (en) Data-plane driven fast protection mechanism for MPLS pseudowire services
JP5484590B2 (en) Method, device and system for processing service traffic based on pseudowire
JP4899959B2 (en) VPN equipment
CN101523354B (en) Apparatus and method for protection of multi-segment pseudowire
JP4729119B2 (en) Communication device in label switching network
CN100459531C (en) Method for notifying pseudo-lines fault based on bidirectional transmission detecting protocol
US20130272114A1 (en) Pseudo wire switching method and device
CN102377607B (en) Data transmission method and data transmission device for special two-layer virtual network
CN101155076B (en) Method for checking pseudo wire trouble of two-layer special network
WO2006081767A1 (en) A method for implementing master and backup transmission path
WO2008083590A1 (en) Method and apparatus of rapid convergence of point-to-point service
CN101374075A (en) Method, device and system for protecting multicast source
WO2012079375A1 (en) Method and system for link protection in a virtual private network
EP2634978B1 (en) Message forwarding method and network device
CN102282805A (en) Method for service protection and access device
CN102143060B (en) Method and device for building primary pseudowire and spare pseudowire
CN111885630B (en) Data transmission method and communication device
WO2022166302A1 (en) Method and apparatus for performing protection switching in segment routing (sr) network
WO2017124685A1 (en) Service forwarding 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121121