CN102104529B - Method and equipment for realizing message transmission in provider bridge transfer (PBT) network - Google Patents
Method and equipment for realizing message transmission in provider bridge transfer (PBT) network Download PDFInfo
- Publication number
- CN102104529B CN102104529B CN200910260662.1A CN200910260662A CN102104529B CN 102104529 B CN102104529 B CN 102104529B CN 200910260662 A CN200910260662 A CN 200910260662A CN 102104529 B CN102104529 B CN 102104529B
- Authority
- CN
- China
- Prior art keywords
- primary
- detection
- main
- service
- standby
- 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.)
- Active
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明公开了一种PBT网络中实现报文的传输方法和设备,所述PBT网络存在多个运营商边缘设备PE;其中,该方法中,预先在第一PE和第二PE之间配置所述第一PE和所述第二PE支持的一服务实例对应的主虚电路PW,以及在第一PE和第三PE之间配置主PW对应的备PW,第三PE也支持所述服务实例;该方法包括:所述第一PE对所述主PW进行检测,当检测出所述主PW异常时,将所述主PW对应的服务实例中业务报文的转发工作切换到所述主PW对应的备PW上。采用本发明,能够避免现有技术在检测出主ESP异常时将该主ESP承载的所有服务实例中的业务报文转发工作都集中到备ESP上所带来的问题。
The invention discloses a method and equipment for realizing message transmission in a PBT network. There are multiple operator edge equipment PEs in the PBT network; A primary virtual circuit PW corresponding to a service instance supported by the first PE and the second PE, and a standby PW corresponding to the primary PW is configured between the first PE and the third PE, and the third PE also supports the service instance The method includes: the first PE detects the primary PW, and when detecting that the primary PW is abnormal, switches the forwarding of service packets in the service instance corresponding to the primary PW to the primary PW on the corresponding standby PW. The present invention can avoid the problem in the prior art that when the primary ESP detects that the primary ESP is abnormal, the forwarding work of service messages in all service instances carried by the primary ESP is concentrated on the backup ESP.
Description
技术领域 technical field
本发明涉及网络技术领域,特别涉及一种运营商骨干网传输(PBT:Provider Bridge Transfer)网络中实现报文的传输方法和设备。The present invention relates to the field of network technology, in particular to a method and device for realizing message transmission in a provider backbone network transmission (PBT: Provider Bridge Transfer) network.
背景技术 Background technique
PBT网络,又称为PBBN-TE中,以太网转发路径(ESP:Ethernet SwitchPath)能够实现高可靠、灵活的点到点传输业务。这里,ESP可以用<BDMAC,BVLAN)来标识,其中,BDMAC为ESP的目的MAC地址,BVLAN为该ESP所属的VLAN。In the PBT network, also known as PBBN-TE, the Ethernet forwarding path (ESP: Ethernet SwitchPath) can realize highly reliable and flexible point-to-point transmission services. Here, the ESP can be identified by <BDMAC, BVLAN), where BDMAC is the destination MAC address of the ESP, and BVLAN is the VLAN to which the ESP belongs.
为了提高ESP转发业务的可靠性,可以配置到同一个BDMAC的多个ESP,其中一个作为主ESP,其他作为备ESP;如图1所示,从运营商边缘设备(PE)1到PE3中就存在两条互为备份的ESP,即主ESP和备ESP。通常,一条ESP可以承载多个MAC-IN-MAC服务实例(简称服务实例)。正常转发情况下,服务实例中的业务报文沿着主ESP转发,如果在业务报文转发过程中主ESP出现异常时,比如该服务实例对延时要求比较高,当主ESP发生比较少的延迟时即确定该主ESP发生异常,则进行主备倒换,使备ESP替换出现异常的主ESP,即此时,该出现异常的主ESP承载的所有服务实例中的业务报文转发工作都切换到备ESP上。In order to improve the reliability of ESP forwarding services, multiple ESPs can be configured to the same BDMAC, one of which is used as the primary ESP, and the others are used as backup ESPs; as shown in Figure 1, from the carrier edge equipment (PE) 1 to PE3 There are two mutually backup ESPs, the main ESP and the backup ESP. Usually, one ESP can carry multiple MAC-IN-MAC service instances (referred to as service instances). In the case of normal forwarding, the business packets in the service instance are forwarded along the main ESP. If the main ESP is abnormal during the service packet forwarding process, for example, the service instance has relatively high delay requirements, when the main ESP has relatively little delay When it is determined that the active ESP is abnormal, the active-standby switchover is performed so that the standby ESP replaces the abnormal active ESP. That is, at this time, the service packet forwarding work in all service instances carried by the abnormal active ESP is switched to Prepare the ESP.
但是,由于一个ESP可以承载多个服务实例,不同的服务实例对ESP的延时要求也不同,比如,服务实例A对延时要求较高,主ESP发生很小延迟时就需要将主ESP立刻切换到备ESP;而服务实例B对延迟要求低,可以接受较长时间的延迟。这样,当前若执行到沿着主ESP转发服务实例A中的业务报文时如果主ESP的延时达不到服务实例A的要求,则确定该主ESP发生异常,就会使该主ESP进行主备倒换,如此,将使主ESP后续承载的其他服务实例比如服务实例B中业务报文的转发工作都集中到备ESP上,而实际上服务实例B对延迟要求低,其中的业务报文转发工作还可以通过主ESP执行,没有必要集中到备ESP上。本领域技术人员知道,备ESP的资源非常宝贵,如果将没有必要由备ESP执行的业务报文的转发工作集中到备ESP上,这显然大大浪费了备ESP的资源,并且加重了备ESP的报文转发负担。However, since one ESP can carry multiple service instances, different service instances have different delay requirements for ESP. For example, service instance A has higher delay requirements. Switch to the standby ESP; while service instance B has low latency requirements and can accept a longer delay. In this way, if the delay of the main ESP does not meet the requirements of the service instance A when the service message in the service instance A is forwarded along the main ESP, it is determined that the main ESP is abnormal, and the main ESP will be executed. Active/standby switchover, in this way, other service instances carried by the active ESP, such as the forwarding of business packets in service instance B, will be concentrated on the standby ESP. In fact, service instance B has low latency requirements, and the service packets in it The forwarding work can also be performed through the main ESP, and there is no need to concentrate on the standby ESP. Those skilled in the art know that the resources of the standby ESP are very valuable. If the forwarding work of service messages that is not necessary to be performed by the standby ESP is concentrated on the standby ESP, this obviously greatly wastes the resources of the standby ESP and increases the burden on the standby ESP. Packet forwarding burden.
发明内容 Contents of the invention
本发明提供了一种PBT网络中实现报文的传输方法和设备,以避免现有技术在检测出主ESP异常时将该主ESP承载的所有服务实例中的业务报文转发工作都集中到备ESP上所带来的问题。The present invention provides a method and equipment for realizing message transmission in a PBT network, so as to prevent the forwarding work of service messages in all service instances carried by the main ESP from being centralized to the backup in the prior art when the main ESP is detected to be abnormal. The problems brought on by ESP.
一种PBT网络中实现报文的传输方法,所述PBT网络存在多个运营商边缘设备PE;预先在第一PE和第二PE之间创建所述第一PE和所述第二PE支持的一服务实例对应的主虚电路PW,以及在第一PE和第三PE之间创建主PW对应的备PW,第三PE也支持所述服务实例;该方法包括:A method for transmitting messages in a PBT network, where there are multiple operator edge devices PEs in the PBT network; pre-created between the first PE and the second PE supported by the first PE and the second PE A primary virtual circuit PW corresponding to a service instance, and creating a standby PW corresponding to the primary PW between the first PE and the third PE, and the third PE also supports the service instance; the method includes:
所述第一PE对所述主PW进行检测,当检测出所述主PW异常时,将所述主PW对应的服务实例中业务报文的转发工作切换到所述主PW对应的备PW上。The first PE detects the primary PW, and when detecting that the primary PW is abnormal, switches the forwarding of service packets in the service instance corresponding to the primary PW to the standby PW corresponding to the primary PW .
一种PBT网络中实现报文的传输设备,所述PBT网络存在多个运营商边缘设备PE;所述设备包括检测单元、主PW控制单元、备PW控制单元和切换单元;其中,A packet transmission device in a PBT network, where there are multiple operator edge devices PE in the PBT network; the device includes a detection unit, a main PW control unit, a standby PW control unit, and a switching unit; wherein,
所述主PW控制单元控制所述设备与所述PBT网络中一PE之间的主PW,所述主PW与所述设备和所述PE支持的一服务实例对应;The main PW control unit controls the main PW between the device and a PE in the PBT network, and the main PW corresponds to a service instance supported by the device and the PE;
所述备PW控制单元控制所述设备与所述PBT网络中另一PE之间的备PW,所述备PW与所述主PW对应,所述另一PE支持所述服务实例;The standby PW control unit controls a standby PW between the device and another PE in the PBT network, the standby PW corresponds to the primary PW, and the other PE supports the service instance;
所述检测单元用于对所述主PW控制单元控制的主PW进行检测,当检测出所述主PW异常时,发送切换通知给所述切换单元;The detection unit is used to detect the main PW controlled by the main PW control unit, and when the main PW is detected to be abnormal, send a switching notification to the switching unit;
所述切换单元用于接收所述切换通知,将所述主PW对应的服务实例中业务报文的转发工作切换到所述备PW控制单元控制的与主PW对应的备PW上。The switching unit is configured to receive the switching notification, and switch the forwarding of service packets in the service instance corresponding to the primary PW to the standby PW corresponding to the primary PW controlled by the standby PW control unit.
由以上技术方案可以看出,本发明中,通过建立对应一个服务实例的主PW,利用该主PW转发对应的服务实例中业务报文,当该主PW发生异常时,只是将该主PW对应的服务实例中业务报文的转发工作都集中到该主PW对应的备PW,维持其他未出现异常的主PW的正常工作状态,如此,避免了现有技术在检测出主ESP异常时将该主ESP承载的所有服务实例中的业务报文转发工作都集中到备ESP上所带来的问题。It can be seen from the above technical solutions that in the present invention, by establishing a primary PW corresponding to a service instance, the primary PW is used to forward service packets in the corresponding service instance. When the primary PW is abnormal, only the primary PW is corresponding The forwarding of business packets in the service instance of the service instance is concentrated to the standby PW corresponding to the main PW, and the normal working status of other main PWs that have not experienced abnormalities is maintained. The problem caused by the centralized forwarding of service packets in all service instances carried by the active ESP to the standby ESP.
进一步地,由于本发明实现了将不同服务实例对应的PW分开检测和保护,这样,能够针对不同服务实例的用户需求,为用户提供不同链路质量的服务,也大大提高了备PW的工作效率。Furthermore, since the present invention realizes the separate detection and protection of PWs corresponding to different service instances, it can provide users with services of different link qualities according to the user needs of different service instances, and greatly improves the work efficiency of the standby PW. .
附图说明 Description of drawings
图1为现有技术中PBT网络中ESP的示意图;Fig. 1 is the schematic diagram of ESP in the PBT network in the prior art;
图2为本发明实施例提供的基本流程图;Fig. 2 is the basic flowchart provided by the embodiment of the present invention;
图3为本发明实施例提供的详细流程图;FIG. 3 is a detailed flowchart provided by an embodiment of the present invention;
图4为本发明实施例提供的PBT网络示意图;FIG. 4 is a schematic diagram of a PBT network provided by an embodiment of the present invention;
图5为本发明实施例提供的设备结构图。Fig. 5 is a device structure diagram provided by an embodiment of the present invention.
具体实施方式 Detailed ways
本发明实施例中,为避免现有技术中在主ESP执行一服务实例中业务报文的转发时出现异常而将该主ESP承载的所有服务实例的业务报文转发工作都集中到备ESP所带来的缺陷,则提出了针对不同服务实例分别提供对应的链路保护的方案,具体下述。为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。In the embodiment of the present invention, in order to avoid abnormalities in the prior art when the master ESP executes the forwarding of service messages in a service instance, the business message forwarding work of all service instances carried by the master ESP is centralized to the backup ESP. In view of the defects caused, a solution to provide corresponding link protection for different service instances is proposed, which is as follows. In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
参见图2,图2为本发明实施例提供的基本流程图。本实施例中,预先根据用户实际需求在第一PE和第二PE之间配置所述第一PE和所述第二PE支持的一服务实例对应的主虚电路(PW,这里,PW为两个二层VPN实例比如PE之间的一条双向连接),以及在第一PE和第三PE之间配置主PW对应的备PW,第三PE也支持所述服务实例,之后,如图2所示,该流程可包括以下步骤:Referring to FIG. 2, FIG. 2 is a basic flowchart provided by an embodiment of the present invention. In this embodiment, a primary virtual circuit (PW, where PW is two Layer 2 VPN instance such as a two-way connection between PEs), and configure the standby PW corresponding to the primary PW between the first PE and the third PE, the third PE also supports the service instance, after that, as shown in Figure 2 As indicated, the process may include the following steps:
步骤201,第一PE对所述主PW进行检测,当检测出所述主PW异常时,执行下述步骤202。In step 201, the first PE detects the main PW, and when it is detected that the main PW is abnormal, the following step 202 is performed.
步骤202,将所述主PW对应的服务实例中业务报文的转发工作切换到所述主PW对应的备PW上。Step 202: Switch the forwarding of service packets in the service instance corresponding to the primary PW to the standby PW corresponding to the primary PW.
至此,通过上述步骤,实现了本发明实施例提供的流程。So far, through the above steps, the process provided by the embodiment of the present invention is realized.
上述对本发明实施例提供的方法进行了简单描述,下面结合具体实施例对上述方法进行详细描述。The method provided by the embodiments of the present invention is briefly described above, and the above method will be described in detail below in conjunction with specific embodiments.
参见图3,图3为本发明实施例提供的详细流程图。如图3所示,该实施例可包括以下步骤:Referring to FIG. 3, FIG. 3 is a detailed flowchart provided by an embodiment of the present invention. As shown in Figure 3, this embodiment may include the following steps:
步骤301,在PE1上创建服务实例1,并配置该服务实例1对应的主PW(记为主PW1)所涉及的对端(记为PE2)的MAC地址。Step 301, create a service instance 1 on PE1, and configure the MAC address of the opposite end (denoted as PE2) involved in the primary PW (denoted as primary PW1) corresponding to the service instance 1.
这里,可根据用户实际需求创建服务实例1,并确定用于传输该服务实例1中业务报文的主PW1所涉及的对端(记为PE2),之后,将确定的对端(记为PE2)的MAC地址配置在PE1上。Here, the service instance 1 can be created according to the actual needs of the user, and the peer end (denoted as PE2) involved in the main PW1 used to transmit the service message in the service instance 1 is determined, and then the determined peer end (denoted as PE2) is determined. ) MAC address is configured on PE1.
如此,通过本步骤301,PE1即可确定出自身和PE2之间存在服务实例1对应的主PW1。In this way, through this step 301, PE1 can determine that there is a primary PW1 corresponding to the service instance 1 between itself and PE2.
需要说明的是,本实施例中,创建的服务实例1具体可包括:该服务实例的标识(记为I-SID)和指定该服务实例外层封装的VLAN标识(记为BVLAN)。实际应用中,在进行PBT组网时,可根据用户实际需求在PE1上配置多个服务实例,这里,只针对其中一个服务实例进行描述,其他情况与该服务实例的情况类似。It should be noted that in this embodiment, the created service instance 1 may specifically include: an identifier of the service instance (marked as I-SID) and a VLAN identifier specifying the outer encapsulation of the service instance (marked as BVLAN). In practical applications, multiple service instances can be configured on PE1 according to the actual needs of users during PBT networking. Here, only one of the service instances is described, and other situations are similar to those of the service instance.
步骤302,在PE1上配置该主PW1对应的备PW1所涉及的对端(记为PE3)的MAC地址。Step 302, configure the MAC address of the peer end (denoted as PE3) involved in the standby PW1 corresponding to the primary PW1 on PE1.
这里,本步骤302可根据用户实际需求确定用于传输该服务实例1中业务报文的主PW1对应的备PW1(实质上,该备PW1也与服务实例1对应)所涉及的对端(记为PE3),之后,将确定的对端(记为PE3)的MAC地址配置在PE1上。Here, in step 302, the peer end involved in the standby PW1 corresponding to the primary PW1 (in essence, the standby PW1 also corresponds to the service instance 1) used to transmit service packets in the service instance 1 can be determined according to the actual needs of the user (record PE3), and then configure the MAC address of the determined peer (denoted as PE3) on PE1.
如此,通过本步骤302,PE1即可确定出自身和PE3之间存在的备PW1。In this way, through this step 302, PE1 can determine the standby PW1 existing between itself and PE3.
至此,通过上述步骤301至步骤302完成了PE1上的配置,具体实现时,以图4所示的PBT网络为例,若PE1的MAC地址为00-00-00-01-01-01,PE2的MAC地址为00-00-00-02-01-01,PE3的MAC地址为00-00-00-03-01-01,则步骤301至步骤302的配置操作可通过下面的代码表示:So far, the configuration on PE1 has been completed through the above steps 301 to 302. For specific implementation, take the PBT network shown in Figure 4 as an example. If the MAC address of PE1 is 00-00-00-01-01-01, PE2 The MAC address of PE3 is 00-00-00-02-01-01, and the MAC address of PE3 is 00-00-00-03-01-01, then the configuration operations from step 301 to step 302 can be represented by the following codes:
i-sid 4532create //创建的服务实例标识I-SID为4532;i-sid 4532create //created service instance ID I-SID is 4532;
i-sid 4532name″60574″ //提供服务实例的设备名称为“60574”;i-sid 4532name″60574″ //The name of the device that provides the service instance is "60574";
i-sid 4532b-vlan 300 //指定服务实例外层封装的BVLAN为300;i-sid 4532b-vlan 300 //Specify the BVLAN encapsulated in the outer layer of the service instance as 300;
i-sid peer 00-00-00-02-01-01master id 1 //指定I-SID实例对应的PW所涉及的对端的MAC地址和身份标识,这里,该PW的身份标识为主(master);i-sid peer 00-00-00-02-01-01master id 1 //Specify the MAC address and identity of the peer involved in the PW corresponding to the I-SID instance. Here, the identity of the PW is master (master) ;
i-sid peer 00-00-00-03-01-01slave id 1 //指定I-SID实例对应的PW所涉及的对端的MAC地址和身份标识,这里,该PW的身份标识为备(slave)。i-sid peer 00-00-00-03-01-01slave id 1 //Specify the MAC address and identity of the peer involved in the PW corresponding to the I-SID instance. Here, the identity of the PW is the standby (slave) .
优选地,为了便于PE1检测服务实例1对应的主PW1,本实施例还可执行步骤303。Preferably, in order to facilitate PE1 to detect the primary PW1 corresponding to service instance 1, step 303 may also be executed in this embodiment.
步骤303,在PE1上配置主PW1对应的PW检测时间间隔T和检测报文接收不到的最大次数N;Step 303, configure the PW detection time interval T corresponding to the primary PW1 on PE1 and the maximum number of times N that the detection message cannot be received;
这里,PE1可采用连通错误检测(cfd)检测协议实现主PW的检测,其中,在检测主PW1时,需要每隔该主PW1对应的PW检测时间间隔T向主PW1的对端PE(记为PE2)发送检测报文,并同时接收对端PE2每隔该主PW1对应的PW检测时间间隔T发送的检测报文(具体见PE2的配置),其中,N为PE1接收不到主PW1涉及的对端PE发送的检测报文的最大次数,当到达该次数N时,PE1即可确定该主PW1出现异常,具体可参见后续步骤307至步骤309的描述。Here, PE1 can use the connectivity error detection (cfd) detection protocol to realize the detection of the primary PW, wherein, when detecting the primary PW1, it needs to send the peer PE of the primary PW1 every PW detection time interval T corresponding to the primary PW1 (denoted as PE2) sends a detection message, and at the same time receives the detection message sent by the peer PE2 every PW detection time interval T corresponding to the primary PW1 (see the configuration of PE2 for details), where N is that PE1 cannot receive the detection message related to the primary PW1 The maximum number of detection packets sent by the peer PE. When the number N is reached, PE1 can determine that the primary PW1 is abnormal. For details, refer to the description of subsequent steps 307 to 309.
仍以图4所示的网络为例,则步骤303具体可通过下面代码实现:Still taking the network shown in Figure 4 as an example, step 303 can be specifically implemented by the following code:
i-sid peer 00-00-00-02-01-01 cfd enable T N。其中,T为检测时间间隔,N为PE1连续接收不到主PW1涉及的对端PE发送的检测报文的最大次数。i-sid peer 00-00-00-02-01-01 cfd enable T N. Wherein, T is the detection time interval, and N is the maximum number of times that PE1 fails to receive detection packets sent by peer PEs involved in the primary PW1.
需要说明的是,步骤301至步骤303并没有固定的时间先后顺序,比如,其可同时进行等,这里不进行限定。It should be noted that there is no fixed time sequence from step 301 to step 303, for example, they may be performed at the same time, etc., which are not limited here.
步骤304,在PE2上创建服务实例1,并配置主PW1所涉及的对端即PE1的MAC地址。Step 304, create a service instance 1 on PE2, and configure the MAC address of PE1, which is the opposite end involved in the primary PW1.
这里,根据步骤301的描述可以知道,服务实例1对应的主PW1实质为PE1和PE2之间的链路,因此,为便于实施,在完成PE1的配置后,还需在PE2进行相应配置,即,创建服务实例1,并配置该主PW1所涉及的对端(相对于PE2而言,主PW所涉及的对端应该为PE1)的MAC地址,具体可通过下面代码所示:Here, according to the description of step 301, it can be known that the primary PW1 corresponding to service instance 1 is essentially a link between PE1 and PE2. Therefore, for the convenience of implementation, after completing the configuration of PE1, corresponding configurations need to be performed on PE2, that is, , create service instance 1, and configure the MAC address of the peer involved in the primary PW1 (relative to PE2, the peer involved in the primary PW should be PE1), as shown in the following code:
i-sid 4532create //创建服务实例,指定I-SIDi-sid 4532create //Create a service instance and specify the I-SID
i-sid 4532name″60574″i-sid 4532name "60574"
i-sid 4532b-vlan 300 //为服务实例指定外层封装的BVLANi-sid 4532b-vlan 300 //Specify the outer encapsulation BVLAN for the service instance
i-sid peer 00-00-00-01-01-01 //指定I-SID实例对应的PW所涉及的PE1的MAC地址。i-sid peer 00-00-00-01-01-01 //Specify the MAC address of PE1 involved in the PW corresponding to the I-SID instance.
为便于检测服务实例1对应的主PW1,在PE2上还可执行下述步骤305。In order to detect the primary PW1 corresponding to the service instance 1, the following step 305 may also be executed on PE2.
步骤305,在PE2上配置主PW1对应的PW检测时间间隔T。Step 305, configure the PW detection time interval T corresponding to the primary PW1 on PE2.
这里,步骤305中的PW检测时间间隔T分别与步骤303中的PW检测时间间隔可相同,具体可通过下述代码实现:Here, the PW detection time interval T in step 305 can be the same as the PW detection time interval in step 303, which can be specifically implemented by the following code:
i-sid peer 00-00-00-01-01-01 cfd enable T。其中,00-00-00-01-01-01为对端,即PE1的MAC地址。i-sid peer 00-00-00-01-01-01 cfd enable T. Among them, 00-00-00-01-01-01 is the peer end, that is, the MAC address of PE1.
至此,通过上述步骤304至步骤305,即可完成PE2的配置。So far, through the above steps 304 to 305, the configuration of PE2 can be completed.
步骤306,在PE3上创建服务实例1,并配置该服务实例1对应的备PW1所涉及的对端(这里,相对于PE3而言,备PW1所涉及的对端应该为PE1)的MAC地址。Step 306, create service instance 1 on PE3, and configure the MAC address of the peer involved in the standby PW1 corresponding to the service instance 1 (here, relative to PE3, the peer involved in the standby PW1 should be PE1).
这里,本步骤306可与上述步骤304类似。Here, this step 306 may be similar to the above step 304 .
至此,通过上述步骤,实现了在PE1和PE2之间创建PE1和PE2支持的服务实例对应的主PW,以及在PE1和PE3之间创建主PW对应的备PW的操作。So far, through the above steps, the operation of creating a primary PW corresponding to the service instance supported by PE1 and PE2 between PE1 and PE2, and creating a backup PW corresponding to the primary PW between PE1 and PE3 is realized.
需要说明的是,本发明实施例可按照上述类似的操作在PE1和PE2之间创建多个服务实例对应的多个主PW,以及在PE1和PE3之间创建各个主PW分别对应的备PW的操作,针对每一主PW,其具体操作与本实施例中的主PW1执行的操作类似,这里不再赘述。It should be noted that, in this embodiment of the present invention, multiple primary PWs corresponding to multiple service instances can be created between PE1 and PE2 according to the above-mentioned similar operations, and standby PWs corresponding to each primary PW can be created between PE1 and PE3. Operation, for each primary PW, its specific operation is similar to the operation performed by the primary PW1 in this embodiment, and will not be repeated here.
步骤307,PE1每隔预先设置的主PW1对应PW检测时间间隔发送增加了MAC-in-MAC隧道头的第一检测报文给PE2,并接收PE2每隔预先设置的主PW1对应PW检测时间间隔发送的携带了MAC-in-MAC隧道头的第二检测报文。Step 307: PE1 sends the first detection message with added MAC-in-MAC tunnel header to PE2 every preset PW detection time interval corresponding to primary PW1, and receives PE2 every preset primary PW1 corresponding PW detection time interval The sent second detection packet carrying the MAC-in-MAC tunnel header.
本实施例中,第一检测报文或者第二检测报文携带的MAC-in-MAC隧道头中携带了I-SID1,BVLAN、源MAC地址和目的MAC地址,以第一检测报文为例,则第一检测报文携带的MAC-in-MAC隧道头中,目的MAC地址为00-00-00-02-01-01,源MAC地址为00-00-00-01-01-01,I-SID为4532,BVLAN为300。这里,之所以使第一检测报文或第二检测报文携带I-SID1,BVLAN、源MAC地址和目的MAC地址,主要是使接收到第一检测报文或者第二检测报文的PE获知出接收的检测报文是用于检测哪一主PW的,因此,可以明确知道检测报文携带的I-SID、BVLAN、源MAC地址和目的MAC地址是用于标识主PW的,其可简称为主PW标识信息。比如,当PE1接收到第二检测报文时,根据第二检测报文携带的I-SID1,BVLAN、源MAC地址和目的MAC地址很容易识别出该第二检测报文是用于检测I-SID1对应的主PW1。同样,PE2接收到携带第一检测报文后,根据I-SID1,BVLAN、源MAC地址和目的MAC地址就知道该检测报文是用于检测I-SID1对应的主PW1。In this embodiment, the MAC-in-MAC tunnel header carried in the first detection message or the second detection message carries I-SID1, BVLAN, source MAC address and destination MAC address, taking the first detection message as an example , then in the MAC-in-MAC tunnel header carried by the first detection message, the destination MAC address is 00-00-00-02-01-01, and the source MAC address is 00-00-00-01-01-01, The I-SID is 4532 and the BVLAN is 300. Here, the reason why the first detection packet or the second detection packet carries I-SID1, BVLAN, source MAC address and destination MAC address is mainly to let the PE receiving the first detection packet or the second detection packet know Therefore, it can be clearly known that the I-SID, BVLAN, source MAC address, and destination MAC address carried in the detection packet are used to identify the primary PW, which can be referred to as Indicates the identification information of the primary PW. For example, when PE1 receives the second detection packet, according to the I-SID1, BVLAN, source MAC address and destination MAC address carried in the second detection packet, it is easy to identify that the second detection packet is used to detect the I-SID1. Primary PW1 corresponding to SID1. Similarly, after receiving the first detection packet, PE2 knows that the detection packet is used to detect the primary PW1 corresponding to I-SID1 according to I-SID1, BVLAN, source MAC address and destination MAC address.
具体地,本实施例中,步骤307中PE1在转发第一检测报文时,可先将要发送的第一检测报文发送给中间设备BCB,由该BCB根据MAC-in-MAC隧道头中携带的源MAC地址和目的MAC地址转发第一检测报文。PE2转发第二检测报文的情况与PE1转发第一检测报文的情况类似。Specifically, in this embodiment, when PE1 forwards the first detection packet in step 307, it can first send the first detection packet to be sent to the intermediate device BCB, and the BCB can transmit the first detection packet according to the MAC-in-MAC tunnel header. Forward the first detection packet with the source MAC address and destination MAC address. The situation that PE2 forwards the second detection packet is similar to the situation that PE1 forwards the first detection packet.
步骤308,如果PE1连续接收不到主PW1涉及的对端即PE2发送的第二检测报文的次数达到配置的最大次数N,则确定该主PW1发生异常。之后,执行步骤309。Step 308, if PE1 fails to continuously receive the second detection packets sent by the peer end involved in the primary PW1, that is, PE2, for a configured maximum number of times N, determine that the primary PW1 is abnormal. Afterwards, step 309 is performed.
比如,由于PE2是每隔配置的主PW1对应的PW检测时间间隔发送第二检测报文给PE1的,因此,步骤308中的PE1连续接收不到主PW1涉及的对端即PE2发送的第二检测报文的次数达到配置的最大次数N实质上为PE1从最后接收到PE2发送的第二检测报文起N个PW检测时间间隔都没有接收到该第二检测报文,则确定主PW1发生异常。For example, since PE2 sends the second detection packet to PE1 every PW detection time interval configured corresponding to the primary PW1, PE1 in step 308 cannot continuously receive the second detection packet sent by the peer end involved in the primary PW1, that is, PE2. The number of detection packets reaches the configured maximum number N. In essence, PE1 has not received the second detection packet for N PW detection intervals since it last received the second detection packet sent by PE2. abnormal.
这里,为节省资源,可在确定出主PW1异常时,将该异常通知给PE2,其中,该异常通知携带主PW1出现异常的信息,如此,当PE2接收到通知后,将自身与PE1之间的主PW1的状态置为无效或者block。Here, in order to save resources, when it is determined that the primary PW1 is abnormal, the abnormality can be notified to PE2, wherein the abnormality notification carries information about the abnormality of the primary PW1. The status of the primary PW1 is set to invalid or block.
步骤309,将主PW1对应的服务实例中业务报文的转发工作切换到所述主PW1对应的备PW1上,由该备PW1接替出现异常的主PW1的业务转发工作。Step 309: Switch the forwarding of service packets in the service instance corresponding to the active PW1 to the standby PW1 corresponding to the active PW1, and the standby PW1 takes over the service forwarding work of the abnormal active PW1.
至此,通过上述操作,能够实现本发明实施例提供的流程。可以看出,通过上述步骤,实现了当主PW发生异常时,只是将该主PW对应的服务实例中业务报文的转发工作都集中到该主PW对应的备PW,与其他服务实例对应的主PW无关,即维持其他未出现异常的服务实例对应的主PW的正常工作状态。如此,避免了现有技术在检测出主ESP异常时将该主ESP承载的所有服务实例中的业务报文转发工作都集中到备ESP上所带来的问题。So far, through the above operations, the process provided by the embodiment of the present invention can be realized. It can be seen that through the above steps, when an abnormality occurs on the primary PW, only the forwarding of service packets in the service instance corresponding to the primary PW is centralized to the standby PW corresponding to the primary PW, and the primary PW corresponding to other service instances PW has nothing to do, that is, maintain the normal working state of the main PW corresponding to other service instances that do not have abnormalities. In this way, the problem caused by the prior art that when the primary ESP is detected to be abnormal, the forwarding of service packets in all service instances carried by the primary ESP is avoided.
比如,以图4所示的PBT网络为例,如果PE1与PE2上存在多个服务实例,其中,每个服务实例对应了一个主PW,如此,针对每个主PW,可按照该主PW的检测时间和精度要求对该主PW进行检测,对于延迟小的服务实例中业务如语音、视频等,检测精度高,则配置该服务实例对应的主PW的检测时间就小,对于延迟大的服务实例中业务,如邮件、短信等,检测精度低,配置检测时间就长。这样,当其中一个服务实例对应的主PW发生异常时,只是将该主PW对应的服务实例中的业务报文转发工作切换到备PW上,而针对一些并未出现异常的主PW,仍然维持该主PW的正常工作状态,即仍然沿着原有路径在主PW上转发,实现了不同服务实例对应的PW分开检测和保护的目的,从而针对不同服务实例的用户需求,为用户提供不同链路质量的服务,也大大提高了备PW的工作效率。For example, taking the PBT network shown in Figure 4 as an example, if there are multiple service instances on PE1 and PE2, each service instance corresponds to a primary PW, so for each primary PW, the The detection time and accuracy require that the primary PW be detected. For services in service instances with small delays, such as voice and video, the detection accuracy is high, and the detection time of the primary PW corresponding to the service instance is configured to be short. For services with large delays Services in the example, such as emails and text messages, have low detection accuracy and long configuration detection time. In this way, when an abnormality occurs on the primary PW corresponding to one of the service instances, only the service packet forwarding work in the service instance corresponding to the primary PW is switched to the standby PW, and for some primary PWs that do not have abnormalities, the service is still maintained. The normal working state of the primary PW, that is, still forwarding on the primary PW along the original path, realizes the purpose of separate detection and protection of PWs corresponding to different service instances, so as to provide users with different links according to the user needs of different service instances The road quality service also greatly improves the work efficiency of the standby PW.
以上对本发明实施例提供的方法进行了描述,下面结合具体实施例对本发明提供的设备进行描述。The method provided by the embodiment of the present invention has been described above, and the device provided by the present invention will be described below in conjunction with specific embodiments.
参见图5,图5为本发明实施例提供的设备结构图。如图5所示,该设备包括主PW控制单元501、备PW控制单元502、检测单元503、切换单元504;Referring to FIG. 5, FIG. 5 is a device structure diagram provided by an embodiment of the present invention. As shown in Figure 5, the device includes a main PW control unit 501, a standby PW control unit 502, a detection unit 503, and a switching unit 504;
其中,主PW控制单元501控制所述设备与所述PBT网络中一PE之间的主PW,所述主PW与所述设备和所述PE支持的一服务实例对应;Wherein, the main PW control unit 501 controls the main PW between the device and a PE in the PBT network, and the main PW corresponds to a service instance supported by the device and the PE;
备PW控制单元502控制所述设备与所述PBT网络中另一PE之间的备PW,所述备PW与所述主PW对应,所述另一PE支持所述服务实例;The standby PW control unit 502 controls a standby PW between the device and another PE in the PBT network, the standby PW corresponds to the primary PW, and the other PE supports the service instance;
检测单元503用于对主PW控制单元501控制的主PW进行检测,当检测出所述主PW异常时,发送切换通知给切换单元504;The detection unit 503 is configured to detect the main PW controlled by the main PW control unit 501, and when detecting that the main PW is abnormal, send a switching notification to the switching unit 504;
切换单元504用于接收所述切换通知,将所述主PW对应的服务实例中业务报文的转发工作切换到备PW控制单元502控制的与主PW对应的备PW上。The switching unit 504 is configured to receive the switching notification, and switch the forwarding of service packets in the service instance corresponding to the primary PW to the standby PW corresponding to the primary PW controlled by the standby PW control unit 502 .
优选地,当所述设备和所述PE之间存在多个服务实例对应的多个主PW时,所述检测单元针对每一主PW进行检测,当检测出其中一个主PW异常时,仅将该异常的主PW对应的服务实例中业务报文的转发工作切换到所述主PW对应的备PW上,维持其他未出现异常的主PW的正常工作状态。Preferably, when there are multiple primary PWs corresponding to multiple service instances between the device and the PE, the detection unit detects each primary PW, and when one of the primary PWs is detected to be abnormal, only the The forwarding of service packets in the service instance corresponding to the abnormal primary PW is switched to the backup PW corresponding to the primary PW, and the normal working status of other primary PWs that are not abnormal is maintained.
优选地,检测单元503可包括:Preferably, the detection unit 503 may include:
发送子单元5031,用于针对所述设备和所述PE之间存在的每一主PW,每隔预先配置在自身上的该主PW对应的PW检测时间间隔发送第一检测报文给所述主PW所涉及的对端;The sending subunit 5031 is configured to, for each primary PW existing between the device and the PE, send a first detection message to the Peers involved in the primary PW;
接收子单元5032,用于接收所述主PW所涉及的对端每隔预先配置在自身上的该主PW对应的PW检测时间间隔发送的第二检测报文;The receiving subunit 5032 is configured to receive the second detection message sent by the peer involved in the main PW every PW detection time interval corresponding to the main PW pre-configured on itself;
确定子单元5033,用于在接收子单元5032连续预设值N个PW检测时间间隔接收不到对端发送的第二检测报文,则确定所述主PW出现异常;否则,确定所述主PW正常。The determining subunit 5033 is configured to determine that the main PW is abnormal if the receiving subunit 5032 fails to receive the second detection message sent by the opposite end for N consecutive preset PW detection time intervals; otherwise, determine that the main PW PW is normal.
优选地,检测单元503还包括:Preferably, the detection unit 503 also includes:
使能子单元5034,用于使能预先配置的所述主PW的检测功能;The enabling subunit 5034 is configured to enable the pre-configured detection function of the main PW;
发送子单元5032用于在使能子单元5034使能了所述主PW的检测功能时发送第一检测报文给所述主PW所涉及的对端。The sending subunit 5032 is configured to send a first detection message to the peer involved in the main PW when the enabling subunit 5034 enables the detection function of the main PW.
优选地,发送子单元5032发送的第一检测报文中增加了携带主PW标识信息的MAC-in-MAC隧道头,其中,所述主PW标识信息包括:服务实例ID、该服务实例的外层封装VLAN标识、源MAC地址和目的MAC地址。Preferably, a MAC-in-MAC tunnel header carrying primary PW identification information is added to the first detection message sent by the sending subunit 5032, wherein the primary PW identification information includes: service instance ID, external Layer encapsulation VLAN identification, source MAC address and destination MAC address.
由以上技术方案可以看出,本发明中,通过建立对应一个服务实例的主PW,利用该主PW转发对应的服务实例中业务报文,当该主PW发生异常时,只是将该主PW对应的服务实例中业务报文的转发工作都集中到该主PW对应的备PW,与其他服务实例无关,如此,避免了现有技术在检测出主ESP异常时将该主ESP承载的所有服务实例中的业务报文转发工作都集中到备ESP上所带来的问题。It can be seen from the above technical solutions that in the present invention, by establishing a primary PW corresponding to a service instance, the primary PW is used to forward service packets in the corresponding service instance. When the primary PW is abnormal, only the primary PW is corresponding The forwarding of service packets in the service instance is centralized to the standby PW corresponding to the main PW, which has nothing to do with other service instances. In this way, all service instances carried by the main ESP when the main ESP is detected to be abnormal in the prior art are avoided. The problems caused by the centralization of the business message forwarding work in the network to the standby ESP.
进一步地,由于本发明实现了将不同服务实例对应的PW分开检测和保护,这样,能够针对不同服务实例的用户需求,为用户提供不同链路质量的服务,也大大提高了备PW的工作效率。Furthermore, since the present invention realizes the separate detection and protection of PWs corresponding to different service instances, it can provide users with services of different link qualities according to the user needs of different service instances, and greatly improves the work efficiency of the standby PW. .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。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 present invention. within the scope of protection.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910260662.1A CN102104529B (en) | 2009-12-18 | 2009-12-18 | Method and equipment for realizing message transmission in provider bridge transfer (PBT) network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910260662.1A CN102104529B (en) | 2009-12-18 | 2009-12-18 | Method and equipment for realizing message transmission in provider bridge transfer (PBT) network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102104529A CN102104529A (en) | 2011-06-22 |
CN102104529B true CN102104529B (en) | 2015-04-15 |
Family
ID=44157070
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910260662.1A Active CN102104529B (en) | 2009-12-18 | 2009-12-18 | Method and equipment for realizing message transmission in provider bridge transfer (PBT) network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102104529B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102916883B (en) * | 2012-10-11 | 2015-11-25 | 杭州华三通信技术有限公司 | LINK detection method and routing forwarding equipment |
CN111682996B (en) * | 2019-03-11 | 2024-01-05 | 华为技术有限公司 | Method for forwarding message in network, network node and network system |
CN111131035A (en) * | 2019-12-18 | 2020-05-08 | 新华三半导体技术有限公司 | Data transmission method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645810A (en) * | 2009-09-02 | 2010-02-10 | 杭州华三通信技术有限公司 | Method and equipment for detecting pseudo wire (PW) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008089305A2 (en) * | 2007-01-17 | 2008-07-24 | Nortel Networks Limited | Border gateway protocol procedures for mpls and layer-2 vpn using ethernet-based tunnels |
US8009558B2 (en) * | 2007-04-12 | 2011-08-30 | Cisco Technology, Inc. | Pseudowire load balancing |
-
2009
- 2009-12-18 CN CN200910260662.1A patent/CN102104529B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645810A (en) * | 2009-09-02 | 2010-02-10 | 杭州华三通信技术有限公司 | Method and equipment for detecting pseudo wire (PW) |
Also Published As
Publication number | Publication date |
---|---|
CN102104529A (en) | 2011-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102724117B (en) | Multi-protocol label switching traffic engineering tunnel establishing method and equipment | |
CN112118182B (en) | IP Path Tunnel for Send Traffic Engineering | |
JP5209116B2 (en) | Establishing pseudowires in packet-switched networks | |
CN102377601B (en) | LSP (Local Switched Path) fault notification method and LSP fault notification device | |
CN102571426B (en) | Double-homing protection method and device | |
KR102342286B1 (en) | DCN message processing method, network device, and network system | |
CN101924654B (en) | Point-to-multipoint service-based path switching method and system | |
CN102780635B (en) | The method of pretection switch, TOR switch and system is realized based on TRILL network | |
CN107078924A (en) | The method, apparatus and system of two-way converting detection are carried out to aggregated links | |
WO2013113218A1 (en) | Intersecting ring protection method, device and system | |
CN101159690A (en) | Multi-protocol label switching forwarding method, device and label switching path management module | |
CN102546357B (en) | Message forwarding method and network device | |
US20200044964A1 (en) | Defect detection in ip/mpls network tunnels | |
JP7536093B2 (en) | Packet forwarding method, first network device, and first device group | |
CN108075968A (en) | A kind of network system and pseudo-line service processing method | |
CN104702498B (en) | A kind of method and device reducing equipment room light connects quantity by harmonious protection | |
CN102104529B (en) | Method and equipment for realizing message transmission in provider bridge transfer (PBT) network | |
CN102255759A (en) | Method and device for transmitting data message based on PW (Packet Writing) redundant backup | |
CN112838982B (en) | Message transmission path switching method, device and system | |
CN102571534B (en) | Service transmission method based on ring network protection and node used for service transmission | |
JP6371399B2 (en) | Interface parameter synchronization method and apparatus | |
CN114205221A (en) | A kind of fault inquiry method and device | |
WO2013157256A1 (en) | Interworking device, method, and non-transitory computer-readable medium storing a program | |
CN103685024B (en) | Node protecting method and device | |
WO2022246693A1 (en) | Method and apparatus for path switchover management |
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 | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250208 Address after: Room 801, 8th Floor, Tsinghua International Science and Technology Exchange Center, East Gate of Tsinghua University, Shuangqing Road, Haidian District, Beijing 100080 Patentee after: Beijing Ziguang Communication Technology Group Co.,Ltd. Country or region after: China Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. Country or region before: China |
|
TR01 | Transfer of patent right |