[go: up one dir, main page]

CN105024836B - A switching method, device and SR of an active service router SR and a standby SR - Google Patents

A switching method, device and SR of an active service router SR and a standby SR Download PDF

Info

Publication number
CN105024836B
CN105024836B CN201410150482.9A CN201410150482A CN105024836B CN 105024836 B CN105024836 B CN 105024836B CN 201410150482 A CN201410150482 A CN 201410150482A CN 105024836 B CN105024836 B CN 105024836B
Authority
CN
China
Prior art keywords
active
standby
state
olt
protocol
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
Application number
CN201410150482.9A
Other languages
Chinese (zh)
Other versions
CN105024836A (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.)
China Mobile Group Guangdong Co Ltd
Original Assignee
China Mobile Group Guangdong 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 China Mobile Group Guangdong Co Ltd filed Critical China Mobile Group Guangdong Co Ltd
Priority to CN201410150482.9A priority Critical patent/CN105024836B/en
Publication of CN105024836A publication Critical patent/CN105024836A/en
Application granted granted Critical
Publication of CN105024836B publication Critical patent/CN105024836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供了一种主用业务路由器SR和备用SR的切换方法、装置及SR,所述方法用于采用共享网关的城域网中,所述方法包括:根据光线路终端OLT的配置方式,通过相应的协议检测主用SR与所述OLT之间的链路的状态是否为可用状态,其中,当所述OLT采用双上行配置时,所述协议为以太网连通性故障管理ETH‑CFM协议,当所述OLT采用单上行配置时,所述协议为链路汇聚控制协议LACP;当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR由主用状态切换为备用状态;通知备用SR由备用状态切换为主用状态。采用本发明提供的技术方案,能够根据链路通信状态,自动实现主备用SR之间的切换,无需人工干预,提高了主备用SR的切换效率。

Figure 201410150482

The present invention provides a method, device and SR for switching between an active service router SR and a standby SR. The method is used in a metropolitan area network using a shared gateway, and the method includes: according to the configuration mode of the optical line terminal OLT, Detect whether the state of the link between the active SR and the OLT is available through a corresponding protocol, wherein, when the OLT adopts a dual uplink configuration, the protocol is the Ethernet connectivity fault management ETH-CFM protocol , when the OLT adopts a single uplink configuration, the protocol is the link aggregation control protocol LACP; when the state of the link between the active SR and the OLT is unavailable, the active SR is replaced by the active SR. The state is switched to the standby state; the standby SR is notified to switch from the standby state to the active state. By adopting the technical scheme provided by the present invention, the switching between the main and standby SRs can be automatically realized according to the link communication state, without manual intervention, and the switching efficiency of the main and standby SRs is improved.

Figure 201410150482

Description

一种主用业务路由器SR和备用SR的切换方法、装置及SRA switching method, device and SR of an active service router SR and a standby SR

技术领域technical field

本发明涉及通信领域,尤其涉及一种主用业务路由器SR和备用SR的切换方法、装置及SR。The present invention relates to the field of communications, and in particular, to a method, device and SR for switching between an active service router SR and a standby SR.

背景技术Background technique

根据不同的接入方式,城域网的接入层和汇聚层也对应不同的拓扑结构。SR(service router,业务路由器)根据不同的接入方式划分主备用端口。在现有技术中,主备用SR之间采用冷备份方式,主用段网元或链路发生故障时,通过手工的方式完成主备切换。即当需要进行主备用SR切换时,需要人工干预,效率低下。According to different access modes, the access layer and the convergence layer of the metropolitan area network also correspond to different topological structures. SR (service router, service router) divides the active and standby ports according to different access modes. In the prior art, a cold backup mode is adopted between the active and standby SRs, and when a network element or link in the active segment fails, the active-standby switchover is completed manually. That is, when the master/standby SR switchover needs to be performed, manual intervention is required, which is inefficient.

发明内容SUMMARY OF THE INVENTION

为了解决上述技术问题,本发明提供了一种主用业务路由器SR和备用SR的切换方法、装置及SR,能够根据链路通信状态,自动实现主备用SR之间的切换,无需人工干预,提高了主备用SR的切换效率。In order to solve the above technical problems, the present invention provides a method, device and SR for switching between an active service router SR and a standby SR, which can automatically realize the switching between the active and standby SRs according to the link communication state, without manual intervention, and improve the The switching efficiency of the active and standby SRs is improved.

为了实现上述目的,本发明提供了一种主用业务路由器SR和备用SR的切换方法,用于采用共享网关的城域网中,包括:根据光线路终端OLT的配置方式,通过相应的协议检测主用SR与所述OLT之间的链路的状态是否为可用状态,其中,当所述OLT采用双上行配置时,所述协议为以太网连通性故障管理ETH-CFM协议,当所述OLT采用单上行配置时,所述协议为链路汇聚控制协议LACP;当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR由主用状态切换为备用状态;通知备用SR由备用状态切换为主用状态。In order to achieve the above object, the present invention provides a method for switching between an active service router SR and a standby SR, which is used in a metropolitan area network using a shared gateway, including: according to the configuration mode of the optical line terminal OLT, detecting through a corresponding protocol Whether the status of the link between the active SR and the OLT is available, wherein when the OLT adopts a dual uplink configuration, the protocol is the Ethernet connectivity fault management ETH-CFM protocol. When the single uplink configuration is adopted, the protocol is the link aggregation control protocol LACP; when the state of the link between the active SR and the OLT is in the unavailable state, the active SR is switched from the active state to the standby state ; Notify the standby SR to switch from the standby state to the active state.

优选的,所述将主用SR由主用状态切换为备用状态具体为:将主用SR的业务接入点sap的状态设置为关闭状态。Preferably, the switching of the active SR from the active state to the standby state is specifically: setting the state of the service access point sap of the active SR to the off state.

优选的,所述通知备用SR由备用状态切换为主用状态具体为:通过用户路由冗余协议SRRP,与备用SR进行通信,通知备用SR由备用状态切换为主用状态。Preferably, the notifying the standby SR to switch from the standby state to the active state is specifically: communicating with the standby SR through the user routing redundancy protocol SRRP, and informing the standby SR to switch from the standby state to the active state.

本发明还提供了一种主用业务路由器SR和备用SR的切换方法,用于采用独立网关的城域网中,包括:获取主用SR与备用SR的通信状态;当所述主用SR与备用SR的通信状态表明备用SR无法接收到主用SR发送的消息时,检测备用SR与交换机SW之间的链路是否可用;当备用SR与交换机SW之间的链路可用时,将备用SR由备用状态切换为主用状态。The present invention also provides a switching method between the active service router SR and the standby SR, which is used in a metropolitan area network using an independent gateway, including: acquiring the communication status of the active SR and the standby SR; When the communication status of the standby SR indicates that the standby SR cannot receive the message sent by the active SR, check whether the link between the standby SR and the switch SW is available; when the link between the standby SR and the switch SW is available, the standby SR is Switch from the standby state to the active state.

优选的,所述获取主用SR与备用SR的通信状态具体为:通过ETH-CFM协议,获取主用SR与备用SR的通信状态。Preferably, the acquiring the communication status of the active SR and the standby SR is specifically: acquiring the communication status of the active SR and the standby SR through the ETH-CFM protocol.

本发明还提供了一种主用业务路由器SR和备用SR的切换装置,用于采用共享网关的城域网中,包括:第一检测模块,用于根据光线路终端OLT的配置方式,通过相应的协议检测主用SR与所述OLT之间的链路的状态是否为可用状态,其中,当所述OLT采用双上行配置时,所述协议为以太网连通性故障管理ETH-CFM协议,当所述OLT采用单上行配置时,所述协议为链路汇聚控制协议LACP;切换模块,用于当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR由主用状态切换为备用状态;通知模块,用于通知备用SR由备用状态切换为主用状态。The present invention also provides a switching device for the active service router SR and the standby SR, which is used in a metropolitan area network using a shared gateway, comprising: a first detection module, which is used for, according to the configuration mode of the optical line terminal OLT, through corresponding The protocol detects whether the status of the link between the active SR and the OLT is available, wherein, when the OLT adopts the dual uplink configuration, the protocol is the Ethernet connectivity fault management ETH-CFM protocol, when When the OLT adopts a single uplink configuration, the protocol is the Link Aggregation Control Protocol LACP; the switching module is configured to switch the active SR when the state of the link between the active SR and the OLT is unavailable. Switch from the active state to the standby state; the notification module is used to notify the standby SR to switch from the standby state to the active state.

优选的,所述切换模块进一步用于将主用SR的业务接入点sap的状态设置为关闭状态。Preferably, the switching module is further configured to set the state of the service access point sap of the active SR to a closed state.

优选的,所述通知模块通过用户路由冗余协议SRRP,与备用SR进行通信,通知备用SR由备用状态切换为主用状态。Preferably, the notification module communicates with the standby SR through the user routing redundancy protocol SRRP, and notifies the standby SR to switch from the standby state to the active state.

本发明还提供了一种主用业务路由器SR和备用SR的切换装置,用于采用独立网关的城域网中,包括:获取模块,用于获取主用SR与备用SR的通信状态;第二检测模块,用于当所述主用SR与备用SR的通信状态表明备用SR无法接收到主用SR发送的消息时,检测备用SR与交换机SW之间的链路是否可用;切换模块,用于当备用SR与交换机SW之间的链路可用时,将备用SR由备用状态切换为主用状态。The present invention also provides a switching device for the main service router SR and the standby SR, which is used in a metropolitan area network using an independent gateway, comprising: an acquisition module for acquiring the communication status of the main SR and the standby SR; a second The detection module is used to detect whether the link between the backup SR and the switch SW is available when the communication state between the primary SR and the backup SR indicates that the backup SR cannot receive the message sent by the primary SR; the switching module is used for When the link between the standby SR and the switch SW is available, the standby SR is switched from the standby state to the active state.

优选的,所述获取模块通过ETH-CFM协议,获取主用SR与备用SR的通信状态。Preferably, the acquisition module acquires the communication status of the active SR and the standby SR through the ETH-CFM protocol.

本发明还提供了一种SR,包括如上所述的主用业务路由器SR和备用SR的切换装置。The present invention also provides an SR, including the above-mentioned switching device of the active service router SR and the standby SR.

本发明的上述技术方案的有益效果如下:The beneficial effects of the above-mentioned technical solutions of the present invention are as follows:

本发明提供了一种主用业务路由器SR和备用SR的切换方法、装置及SR,能够根据链路通信状态,自动实现主备用SR之间的切换,无需人工干预,提高了主备用SR的切换效率。The present invention provides a method, device and SR for switching between an active service router SR and a standby SR, which can automatically realize the switching between the active and standby SRs according to the link communication state, without manual intervention, and improve the switching of the active and standby SRs. efficiency.

附图说明Description of drawings

图1为本发明实施例1提供的一种主用业务路由器SR和备用SR的切换方法流程图。FIG. 1 is a flowchart of a method for switching between an active service router SR and a standby SR according to Embodiment 1 of the present invention.

图2为本发明实施例2提供的一种主用业务路由器SR和备用SR的切换方法流程图。FIG. 2 is a flowchart of a method for switching between an active service router SR and a standby SR according to Embodiment 2 of the present invention.

图3为本发明实施例1提供的一种主用业务路由器SR和备用SR的切换装置的结构示意图。FIG. 3 is a schematic structural diagram of a device for switching between an active service router SR and a standby SR according to Embodiment 1 of the present invention.

图4为本发明实施例2提供的一种主用业务路由器SR和备用SR的切换装置的结构示意图。FIG. 4 is a schematic structural diagram of a device for switching between an active service router SR and a standby SR according to Embodiment 2 of the present invention.

图5为采用大V型结构的城域网结构示意图。FIG. 5 is a schematic diagram of a metropolitan area network structure using a large V-shaped structure.

图6为采用小V型结构的城域网结构示意图。FIG. 6 is a schematic diagram of a metropolitan area network structure using a small V-shaped structure.

图7为采用独立网关结构的城域网结构示意图。FIG. 7 is a schematic diagram of a metropolitan area network structure using an independent gateway structure.

具体实施方式Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, the following will be described in detail with reference to the accompanying drawings and specific embodiments.

本发明针对现有技术中当需要进行主备用SR切换时,需要人工干预,效率低下的问题,提供了一种主用业务路由器SR和备用SR的切换方法、装置及SR,能够根据链路通信状态,自动实现主备用SR之间的切换,无需人工干预,提高了主备用SR的切换效率。Aiming at the problem of manual intervention and low efficiency in the prior art when the main and standby SRs need to be switched, the present invention provides a switching method, device and SR for the main service router SR and the standby SR, which can communicate according to the link. The switch between the active and standby SRs is automatically realized without manual intervention, which improves the switching efficiency of the active and standby SRs.

图1为本发明实施例1提供的一种主用业务路由器SR和备用SR的切换方法流程图,用于采用共享网关结构的城域网中,如图所示,所述方法包括:1 is a flowchart of a method for switching between an active service router SR and a standby SR according to Embodiment 1 of the present invention, which is used in a metropolitan area network with a shared gateway structure. As shown in the figure, the method includes:

步骤S100,根据光线路终端OLT的配置方式,通过相应的协议检测主用SR与所述OLT之间的链路的状态是否为可用状态,其中,当所述OLT采用双上行配置时,所述协议为以太网连通性故障管理ETH-CFM协议,当所述OLT采用单上行配置时,所述协议为链路汇聚控制协议LACP;Step S100, according to the configuration mode of the OLT of the optical line terminal, detect whether the status of the link between the active SR and the OLT is an available state through a corresponding protocol, wherein, when the OLT adopts a dual uplink configuration, the The protocol is the Ethernet connectivity fault management ETH-CFM protocol, and when the OLT adopts a single uplink configuration, the protocol is the Link Aggregation Control Protocol LACP;

步骤S102,当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR由主用状态切换为备用状态;Step S102, when the state of the link between the active SR and the OLT is unavailable, switch the active SR from the active state to the standby state;

步骤S104,通知备用SR由备用状态切换为主用状态。Step S104, notify the standby SR to switch from the standby state to the active state.

在上述技术方案中,检测主用SR与OLT之间的链路状态是否可用,当不可用时,将主用SR由主用状态切换为备用状态,并通知备用SR由备用状态切换为主用状态,从而实现了主备用SR的自动切换,无需人工干预,提高了主备用SR的切换效率。In the above technical solution, it is detected whether the link state between the active SR and the OLT is available, and when it is unavailable, the active SR is switched from the active state to the standby state, and the standby SR is notified to switch from the standby state to the active state , so that the automatic switching of the active and standby SRs is realized without manual intervention, and the switching efficiency of the active and standby SRs is improved.

其中,当所述OLT采用双上行配置时,通过ETH-CFM协议,检测主用SR与光线路终端OLT之间的链路的状态是否为可用状态。Wherein, when the OLT adopts a dual uplink configuration, it is detected whether the state of the link between the active SR and the optical line terminal OLT is an available state through the ETH-CFM protocol.

在上述技术方案中,OLT采用双上行配置,即:OLT双接入2台交换机,检测主用SR到OLT的链路状态,即检测主用SR到OLT的跨交换机的链路状态,需要采用能够支持跨网元的端到端的链路检测协议,因此,可以采用ETH-CFM(Ethernet Connectivity FaultManagement,以太网连通性故障管理)协议,检测主用SR与OLT之间的链路状态。In the above technical solution, the OLT adopts a dual-uplink configuration, that is, the OLT is dual-connected to two switches to detect the link status from the active SR to the OLT, that is, to detect the link status between the active SR and the OLT across switches. It can support the end-to-end link detection protocol across network elements. Therefore, the ETH-CFM (Ethernet Connectivity Fault Management, Ethernet Connectivity Fault Management) protocol can be used to detect the link status between the active SR and the OLT.

其中,当所述OLT采用单上行配置时,通过链路汇聚控制协议LACP,检测主用SR与光线路终端OLT之间的链路的状态是否为可用状态。Wherein, when the OLT adopts a single uplink configuration, the link aggregation control protocol LACP is used to detect whether the status of the link between the active SR and the optical line terminal OLT is available.

在上述技术方案中,OLT采用单上行配置,即:OLT接入1台交换机,OLT采用LACP协议连接到交换机,检测主用SR到OLT的链路状态,可以分别检测SR到交换机的链路状态及交换机到OLT的链路状态,其中,SR与交换机之间采用LACP协议,因此,可以采用LACP协议,检测主用SR与OLT之间的链路状态。In the above technical solution, the OLT adopts a single uplink configuration, that is, the OLT is connected to one switch, the OLT is connected to the switch using the LACP protocol, and the link status from the active SR to the OLT can be detected, and the link status from the SR to the switch can be detected separately. and the link status from the switch to the OLT. The LACP protocol is used between the SR and the switch. Therefore, the LACP protocol can be used to detect the link status between the active SR and the OLT.

其中,所述将主用SR由主用状态切换为备用状态具体为:将主用SR的业务接入点sap的状态设置为关闭状态。The switching of the active SR from the active state to the standby state is specifically: setting the state of the service access point sap of the active SR to the off state.

在上述技术方案中,当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR的业务接入点sap的状态设置为关闭状态,此时,主用SR的状态由主用状态主用SR由主用状态切换为备用状态,如从master切换为initialize,从而使得主用SR不会进行用户业务的传输。In the above technical solution, when the state of the link between the active SR and the OLT is in an unavailable state, the state of the service access point sap of the active SR is set to a closed state. At this time, the active SR The state of the active SR is switched from the active state to the standby state, such as switching from master to initialize, so that the active SR will not transmit user services.

其中,所述通知备用SR由备用状态切换为主用状态可以具体为:通过用户路由冗余协议SRRP,与备用SR进行通信,通知备用SR由备用状态切换为主用状态。The notifying the standby SR to switch from the standby state to the active state may specifically include: communicating with the standby SR through the user routing redundancy protocol SRRP, and informing the standby SR to switch from the standby state to the active state.

在上述技术方案中,主用SR与备用SR之间可以通过用户路由冗余协议进行通信,从而通知备用SR将其状态由备用状态切换为主用状态,如从backupshunt切换为master。In the above technical solution, the active SR and the standby SR can communicate through the user routing redundancy protocol, thereby informing the standby SR to switch its state from the standby state to the active state, such as switching from backupshunt to master.

图2为本发明实施例2提供的一种主用业务路由器SR和备用SR的切换方法流程图,用于采用独立网关结构的城域网中的备用SR,所述方法包括:2 is a flowchart of a method for switching an active service router SR and a standby SR according to Embodiment 2 of the present invention, which is used for a standby SR in a metropolitan area network with an independent gateway structure, and the method includes:

步骤S200,获取主用SR与备用SR的通信状态;Step S200, obtaining the communication status of the active SR and the standby SR;

步骤S202,当所述主用SR与备用SR的通信状态表明备用SR无法接收到主用SR发送的消息时,检测备用SR与交换机SW之间的链路是否可用;Step S202, when the communication state of the primary SR and the backup SR indicates that the backup SR cannot receive the message sent by the primary SR, detect whether the link between the backup SR and the switch SW is available;

步骤S204,当备用SR与交换机SW之间的链路可用时,将备用SR由备用状态切换为主用状态。Step S204, when the link between the standby SR and the switch SW is available, the standby SR is switched from the standby state to the active state.

在上述技术方案中,在独立网关结构中,主用SR与备用SR可以通过交换机SW进行通信,即独立网关结构中的链路链接是:主用SR—交换机SW—备用SR,当备用SR能够接收到来自主用SR的消息时,表明主用SR、交换机SW及备用SR之间的链路正常,主用SR可以向外传输数据,因此,无需进行主备用SR的切换,当备用SR无法接收到来自主用SR的消息时,则表明主用SR、交换机SW及备用SR之间的链路出现问题,有可能为主用SR与交换机SW之间的链路出现问题,也有可能是备用SR与交换机SW之间出现问题,当主用SR与交换机SW出现问题时,需要进行主备用SR切换,即:备用SR的备用状态切换为主用状态,当备用SR与交换机SW出现问题时,则无需进行主备切换,因此,通过检测备用SR与交换机SW之间的链路是否可用,当备用SR与交换机SW之间的链路可用时,进行主备用SR切换。In the above technical solution, in the independent gateway structure, the active SR and the standby SR can communicate through the switch SW, that is, the link link in the independent gateway structure is: the active SR—the switch SW—the standby SR. When the standby SR can When the message from the active SR is received, it indicates that the link between the active SR, the switch SW and the standby SR is normal, and the active SR can transmit data. Therefore, there is no need to switch the active and standby SRs. When the standby SR cannot receive When a message arrives from the active SR, it indicates that there is a problem with the link between the active SR, the switch SW, and the backup SR. There may be a problem with the link between the active SR and the switch SW, or the backup SR and the backup SR may have problems. If there is a problem between the switches SW, when there is a problem with the active SR and the switch SW, it is necessary to switch the active and standby SRs, that is, the standby state of the standby SR is switched to the active state. Active-standby switchover, therefore, by detecting whether the link between the standby SR and the switch SW is available, when the link between the standby SR and the switch SW is available, the active-standby SR switchover is performed.

其中,所述获取主用SR与备用SR的通信状态可以具体为:通过ETH-CFM协议,获取主用SR与备用SR的通信状态。Wherein, the acquiring the communication state of the active SR and the standby SR may specifically be: acquiring the communication state of the active SR and the standby SR through the ETH-CFM protocol.

在独立网关结构中,由于没有空闲的IP用于SRRP的虚拟及真实网关IP地址配置,不能支持SRRP协议,因此,可以采用ETH-CFM协议的OAM特性,在主备用SR之间运行ETH-CFM协议。In the independent gateway structure, since there is no idle IP for SRRP virtual and real gateway IP address configuration, the SRRP protocol cannot be supported. Therefore, the OAM feature of the ETH-CFM protocol can be used to run ETH-CFM between the primary and backup SRs. protocol.

图3为本发明实施例1提供的一种主用业务路由器SR和备用SR的切换装置的结构示意图,用于采用共享网关结构的城域网中,所述主用业务路由器SR和备用SR的切换装置30包括:3 is a schematic structural diagram of a switching device for an active service router SR and a standby SR according to Embodiment 1 of the present invention, which is used in a metropolitan area network using a shared gateway structure, and the active service router SR and the standby SR switch The switching device 30 includes:

第一检测模块31,用于根据光线路终端OLT的配置方式,通过相应的协议检测主用SR与所述OLT之间的链路的状态是否为可用状态,其中,当所述OLT采用双上行配置时,所述协议为以太网连通性故障管理ETH-CFM协议,当所述OLT采用单上行配置时,所述协议为链路汇聚控制协议LACP;The first detection module 31 is configured to detect whether the state of the link between the active SR and the OLT is available according to the configuration mode of the optical line terminal OLT through the corresponding protocol, wherein, when the OLT adopts the dual uplink When configuring, the protocol is the Ethernet connectivity fault management ETH-CFM protocol, and when the OLT adopts a single uplink configuration, the protocol is the link aggregation control protocol LACP;

切换模块32,用于当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR由主用状态切换为备用状态;a switching module 32, configured to switch the active SR from the active state to the standby state when the state of the link between the active SR and the OLT is an unavailable state;

通知模块33,用于通知备用SR由备用状态切换为主用状态。The notification module 33 is configured to notify the standby SR to switch from the standby state to the active state.

在上述技术方案中,第一检测模块31检测主用SR与OLT之间的链路状态是否可用,当不可用时,切换模块32将主用SR由主用状态切换为备用状态,通知模块33通知备用SR由备用状态切换为主用状态,从而实现了主备用SR的自动切换,无需人工干预,提高了主备用SR的切换效率。In the above technical solution, the first detection module 31 detects whether the link state between the active SR and the OLT is available, and when it is unavailable, the switching module 32 switches the active SR from the active state to the standby state, and the notification module 33 notifies the The standby SR is switched from the standby state to the active state, thereby realizing the automatic switching of the active and standby SRs without manual intervention, and improving the switching efficiency of the active and standby SRs.

优选的,所述切换模块进一步用于将主用SR的业务接入点sap的状态设置为关闭状态。Preferably, the switching module is further configured to set the state of the service access point sap of the active SR to a closed state.

优选的,所述通知模块通过用户路由冗余协议SRRP,与备用SR进行通信,通知备用SR由备用状态切换为主用状态。Preferably, the notification module communicates with the standby SR through the user routing redundancy protocol SRRP, and notifies the standby SR to switch from the standby state to the active state.

图4为本发明实施例2提供的一种主用业务路由器SR和备用SR的切换装置的结构示意图,用于采用独立网关结构的城域网中的备用SR,所述主用业务路由器SR和备用SR的切换装置40包括:4 is a schematic structural diagram of a device for switching between a primary service router SR and a backup SR according to Embodiment 2 of the present invention, which is used for a backup SR in a metropolitan area network with an independent gateway structure, the primary service router SR and the backup SR The switching device 40 of the standby SR includes:

获取模块41,用于获取主用SR与备用SR的通信状态;an acquisition module 41, used to acquire the communication status of the main SR and the standby SR;

第二检测模块42,用于当所述主用SR与备用SR的通信状态表明备用SR无法接收到主用SR发送的消息时,检测备用SR与交换机SW之间的链路是否可用;The second detection module 42 is configured to detect whether the link between the standby SR and the switch SW is available when the communication state of the primary SR and the standby SR indicates that the standby SR cannot receive the message sent by the primary SR;

切换模块43,用于当备用SR与交换机SW之间的链路可用时,将备用SR由备用状态切换为主用状态。The switching module 43 is configured to switch the standby SR from the standby state to the active state when the link between the standby SR and the switch SW is available.

在上述技术方案中,在独立网关结构中,主用SR与备用SR可以进行通信,当备用SR能够接收到来自主用SR的消息时,表明主用SR可以向外传输数据,因此,无需进行主备用SR的切换,当备用SR无法接收到来自主用SR的消息时,则表明主用SR、交换机SW及备用SR之间的链路出现问题,有可能为主用SR与交换机SW之间的链路出现问题,也有可能是备用SR与交换机SW之间出现问题,当主用SR与交换机SW出现问题时,需要进行主备用SR切换,即:备用SR的备用状态切换为主用状态,获取模块41获取主用SR与备用SR的通信状态,当主用SR与备用SR的通信状态表明备用SR无法接收到主用SR发送的消息时,当备用SR与交换机SW出现问题时,则无需进行主备切换,因此,第二检测模块42通过检测备用SR与交换机SW之间的链路是否可用,当备用SR与交换机SW之间的链路可用时,切换模块43将备用SR由备用状态切换为主用状态。In the above technical solution, in the independent gateway structure, the active SR and the standby SR can communicate. When the standby SR can receive messages from the active SR, it indicates that the active SR can transmit data to the outside. Switchover of the standby SR. When the standby SR cannot receive messages from the active SR, it indicates that there is a problem with the link between the active SR, the switch SW, and the standby SR, and there may be a link between the active SR and the switch SW. If there is a problem with the road, there may also be a problem between the standby SR and the switch SW. When there is a problem between the active SR and the switch SW, it is necessary to switch the active and standby SRs, that is, the standby state of the standby SR is switched to the active state, and the acquisition module 41 Obtain the communication status between the active SR and the standby SR. When the communication status between the active SR and the standby SR indicates that the standby SR cannot receive the messages sent by the active SR, and if there is a problem with the switch SW, the active/standby switchover is not required. , therefore, the second detection module 42 detects whether the link between the standby SR and the switch SW is available, and when the link between the standby SR and the switch SW is available, the switching module 43 switches the standby SR from the standby state to the active state state.

优选的,所述获取模块通过ETH-CFM协议,获取主用SR与备用SR的通信状态。Preferably, the acquisition module acquires the communication status of the active SR and the standby SR through the ETH-CFM protocol.

一种SR,包括如上所述的主用业务路由器SR和备用SR的切换装置。An SR includes the above-mentioned switching device of an active service router SR and a standby SR.

图5为采用大V型结构的城域网结构示意图。FIG. 5 is a schematic diagram of a metropolitan area network structure using a large V-shaped structure.

大V型接入方式的城域网结构特点是:OLT双接入2台SW(switch,交换机),如图所示,当主用业务路由器为SR1,则用户业务路由下行流量由SR1传输,经过交换机SW1,发送至OLT,经由光网络单元ONU发送到各个用户。当SR1到OLT的链路发生中断时,则该链路无法传输数据,如果仍由SR1作为主用业务路由器,则会出现问题,故需要进行主备用业务路由器的切换,因此,主用业务路由器可以根据主用业务路由器到OLT的全程跨越SW链路状态确定是否进行主备用业务路由器切换。The characteristics of the MAN structure of the large V-type access mode are: OLT dual access to 2 SWs (switches, switches), as shown in the figure, when the main service router is SR1, the downlink traffic of user service routing is transmitted by SR1, and passes through SR1. The switch SW1 is sent to the OLT, and sent to each user via the optical network unit ONU. When the link from SR1 to OLT is interrupted, the link cannot transmit data. If SR1 is still used as the main service router, there will be problems. Therefore, it is necessary to switch the main and backup service routers. Therefore, the main service router Whether to switch between the active and standby service routers can be determined according to the state of the entire spanning SW link from the active service router to the OLT.

为了检测主用业务路由器与OLT的链路状态,可以使业务路由器与OLT之间运行ETH-CFM协议,根据该协议检测主用业务路由器与OLT的链路状态。具体实施方式为:如图所示,在OLT上联的2个端口及该2个端口对应的2台业务路由器下联端口分别启用ETH-CFM协议,OLT与主用业务路由器之间通过SW1透传ETH-OAM(ethernet operation、administration and management以太网操作、管理和维护)报文。当主用业务路由器SR1与SW1之间的链路或SW1与OLT之间的链路发生中断时,主用业务路由器SR1将无法接收到OLT发送的ETH-OAM报文,从而可以确定主用业务路由器SR1与OLT之间的链路发生中断,主用业务路由器SR1的关联用户接口sap点的状态由up变为down,主用业务路由器SR1的状态由master切换为initialize。In order to detect the link status between the active service router and the OLT, the ETH-CFM protocol can be run between the service router and the OLT, and the link status between the active service router and the OLT can be detected according to the protocol. The specific implementation is as follows: as shown in the figure, the ETH-CFM protocol is respectively enabled on the two ports connected to the OLT and the downlink ports of the two service routers corresponding to the two ports, and the OLT and the main service router are transparently transmitted through SW1 ETH-OAM (ethernet operation, administration and management) message. When the link between the active service router SR1 and SW1 or the link between SW1 and the OLT is interrupted, the active service router SR1 cannot receive the ETH-OAM message sent by the OLT, so the active service router can be determined. The link between SR1 and the OLT is interrupted, the state of the associated user interface sap point of the active service router SR1 changes from up to down, and the state of the active service router SR1 is switched from master to initialize.

通过主用业务路由器与备用业务路由器之间运行的SRRP,主备用业务路由器的虚拟冗余接口可以传输状态同步信息,主用业务路由器可以通知备用业务路由器SR2的状态由backupshunt切换为master,即:原备用业务路由器SR2切换为主用业务路由器,此时,当前的主用业务路由器即原备用业务路由器SR2发布切换后的用户业务路由,该段的用户业务路由下行流量由SR1切换到SR2。Through the SRRP running between the active service router and the standby service router, the virtual redundant interface of the active and standby service routers can transmit state synchronization information, and the active service router can notify the standby service router SR2 The state is switched from backupshunt to master, that is: The original standby service router SR2 is switched to the active service router. At this time, the current active service router, the original standby service router SR2, advertises the switched user service route, and the downlink traffic of the user service route in this segment is switched from SR1 to SR2.

图6为采用小V型结构的城域网结构示意图。FIG. 6 is a schematic diagram of a metropolitan area network structure using a small V-shaped structure.

小V型接入方式的城域网结构特点是:OLT接入1台SW(switch,交换机),如图所示,当主用业务路由器为SR1,则用户业务路由下行流量由SR1传输,经过交换机SW,发送至OLT,经由光网络单元ONU发送到各个用户。当SR1到SW的链路发生中断或SW到OLT的链路发生中断时,则SR1到OLT无法传输数据,如果仍由SR1作为主用业务路由器,则会出现问题,故需要进行主备用业务路由器的切换,因此,主用业务路由器可以根据主用业务路由器到OLT的全程跨越SW链路状态确定是否进行主备用业务路由器切换,无需检测主用业务路由器到OLT的全程跨越SW链路状态,只需要检测各段链路的状态。The characteristics of the MAN structure of the small V-type access mode are: OLT accesses one SW (switch, switch), as shown in the figure, when the main service router is SR1, the downlink traffic of user service routing is transmitted by SR1, and passes through the switch. SW, sent to the OLT, and sent to each user via the optical network unit ONU. When the link from SR1 to SW is interrupted or the link from SW to OLT is interrupted, SR1 to OLT cannot transmit data. If SR1 is still used as the main service router, problems will occur, so it is necessary to configure the primary and backup service routers. Therefore, the active service router can determine whether to switch the active and standby service routers according to the state of the entire spanning SW link from the active service router to the OLT. The status of each link needs to be detected.

为了检测主用业务路由器与OLT的链路状态,可以使业务路由器与SW之间运行LACP协议,根据该协议检测主用业务路由器与SW的链路状态,而在SW和OLT之间通过双链路捆绑实现链路级的保护,当然也可以采用LACP协议去检测SW和OLT之间的链路状态。具体实施方式为:如图所示,在SW及业务路由器之间启用LACP协议。当主用业务路由器SR1与SW之间的链路发生中断时,主用业务路由器SR1将无法接收到SW发送的LACPDU(LinkAggregation Control Protocol Data Unit,链路汇聚控制协议数据单元),从而可以确定主用业务路由器SR1与OLT之间的链路发生中断,主用业务路由器SR1的关联用户接口sap点的状态由up变为down,主用业务路由器SR1的状态由master切换为initialize。In order to detect the link status between the active service router and the OLT, the LACP protocol can be run between the service router and the SW. Road bundling implements link-level protection. Of course, the LACP protocol can also be used to detect the link status between the SW and the OLT. The specific implementation is as follows: as shown in the figure, the LACP protocol is enabled between the SW and the service router. When the link between the active service router SR1 and the SW is interrupted, the active service router SR1 will not be able to receive the LACPDU (LinkAggregation Control Protocol Data Unit, Link Aggregation Control Protocol Data Unit) sent by the SW, so that the active service router SR1 can be determined. The link between the service router SR1 and the OLT is interrupted, the state of the associated user interface sap point of the active service router SR1 changes from up to down, and the state of the active service router SR1 is switched from master to initialize.

通过主用业务路由器与备用业务路由器之间运行的SRRP,主备用业务路由器的虚拟冗余接口可以传输状态同步信息,主用业务路由器可以通知备用业务路由器SR2的状态由backupshunt切换为master,即:原备用业务路由器SR2切换为主用业务路由器,此时,当前的主用业务路由器即原备用业务路由器SR2发布切换后的用户业务路由,该段的用户业务路由下行流量由SR1切换到SR2。Through the SRRP running between the active service router and the standby service router, the virtual redundant interface of the active and standby service routers can transmit state synchronization information, and the active service router can notify the standby service router SR2 The state is switched from backupshunt to master, that is: The original standby service router SR2 is switched to the active service router. At this time, the current active service router, the original standby service router SR2, advertises the switched user service route, and the downlink traffic of the user service route in this segment is switched from SR1 to SR2.

图7为采用独立网关结构的城域网结构示意图。FIG. 7 is a schematic diagram of a metropolitan area network structure using an independent gateway structure.

独立网关接入方式的城域网结构特点是:每个用户都分配一段独立的地址空间,有独立的网关。在独立网关接入方式的城域网中,主用业务路由器的业务接入点sap的状态为up,而备用业务路由器的业务接入点sap的状态为down。The characteristics of the MAN structure of the independent gateway access method are: each user is allocated an independent address space and has an independent gateway. In a metropolitan area network with independent gateway access, the service access point sap of the active service router is up, and the service access point sap of the standby service router is down.

由于在独立网关接入方式的城域网中,没有空闲的2个IP地址资源用于SRRP的真实网关IP,不支持SRRP协议即主用业务服务器和备用业务服务器之间无法运行SRRP协议,因此,如图所示,为了控制主用业务路由器SR1和备用业务路由器SR2的业务接入点sap的状态,可以通过在主用业务路由器SR1和备用业务路由器SR2之间运行ETH-CFM协议,通过SW透传的方式实现,主用业务路由器SR1只发不收ETH-CFM协议的OAM报文,备用业务路由器SR2只收不发ETH-CFM协议的OAM报文,主用业务路由器SR1一侧的链路中断时,主用业务路由器SR1的sap的状态将变为down,此时备用业务路由器SR2无法接收到主用业务路由器SR1发出的ETH-CFM协议的OAM报文,从而可以确定主用业务路由器SR1一侧的链路发生中断,备用业务路由器SR2的关联用户接口sap点的状态由down变为up,此时,当前的主用业务路由器即原备用业务路由器SR2发布切换后的用户业务路由,该段的用户业务路由下行流量由SR1切换到SR2。In the metropolitan area network with independent gateway access mode, there are no free two IP address resources for the real gateway IP of SRRP, and the SRRP protocol is not supported, that is, the SRRP protocol cannot be run between the active service server and the standby service server. Therefore, , as shown in the figure, in order to control the status of the service access point sap of the active service router SR1 and the standby service router SR2, the ETH-CFM protocol can be run between the active service router SR1 and the standby service router SR2, and the SW The transparent transmission method is implemented. The main service router SR1 only sends and does not receive OAM packets of the ETH-CFM protocol, and the standby service router SR2 only receives and does not send OAM packets of the ETH-CFM protocol. When the road is interrupted, the sap status of the active service router SR1 will become down. At this time, the standby service router SR2 cannot receive the OAM packet of the ETH-CFM protocol sent by the active service router SR1, so that the active service router can be determined. The link on the SR1 side is interrupted, and the status of the associated user interface sap point of the standby service router SR2 changes from down to up. At this time, the current active service router, that is, the original standby service router SR2, advertises the switched user service routes. The downlink traffic of the user service route of this segment is switched from SR1 to SR2.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (5)

1.一种主用业务路由器SR和备用SR的切换方法,用于采用共享网关的城域网中,其特征在于,包括:1. a switching method of main service router SR and standby SR, for adopting in the metropolitan area network of shared gateway, it is characterized in that, comprising: 根据光线路终端OLT的配置方式,通过相应的协议检测主用SR与所述OLT之间的链路的状态是否为可用状态,其中,当所述OLT采用双上行配置时,所述协议为以太网连通性故障管理ETH-CFM协议,当所述OLT采用单上行配置时,所述协议为链路汇聚控制协议LACP;According to the configuration mode of the OLT of the optical line terminal, whether the status of the link between the active SR and the OLT is available is detected through the corresponding protocol, wherein, when the OLT adopts the dual uplink configuration, the protocol is Ethernet Network connectivity fault management ETH-CFM protocol, when the OLT adopts a single uplink configuration, the protocol is the link aggregation control protocol LACP; 当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR由主用状态切换为备用状态;When the state of the link between the active SR and the OLT is an unavailable state, switching the active SR from the active state to the standby state; 通过用户路由冗余协议SRRP,与备用SR进行通信,通知备用SR由备用状态切换为主用状态。Through the user routing redundancy protocol SRRP, it communicates with the standby SR to notify the standby SR to switch from the standby state to the active state. 2.如权利要求1所述方法,其特征在于,所述将主用SR由主用状态切换为备用状态具体为:2. The method according to claim 1, wherein the switching of the active SR from the active state to the standby state is specifically: 将主用SR的业务接入点sap的状态设置为关闭状态。Set the status of the service access point sap of the active SR to the off state. 3.一种主用业务路由器SR和备用SR的切换装置,用于采用共享网关的城域网中,其特征在于,包括:3. A switching device of a main service router SR and a backup SR, used in a metropolitan area network using a shared gateway, characterized in that it comprises: 第一检测模块,用于根据光线路终端OLT的配置方式,通过相应的协议检测主用SR与所述OLT之间的链路的状态是否为可用状态,其中,当所述OLT采用双上行配置时,所述协议为以太网连通性故障管理ETH-CFM协议,当所述OLT采用单上行配置时,所述协议为链路汇聚控制协议LACP;The first detection module is configured to detect whether the state of the link between the active SR and the OLT is available according to the configuration mode of the optical line terminal OLT through the corresponding protocol, wherein, when the OLT adopts the dual uplink configuration When the protocol is the Ethernet connectivity fault management ETH-CFM protocol, when the OLT adopts a single uplink configuration, the protocol is the link aggregation control protocol LACP; 切换模块,用于当所述主用SR与OLT之间的链路的状态为不可用状态时,将主用SR由主用状态切换为备用状态;a switching module, configured to switch the active SR from the active state to the standby state when the state of the link between the active SR and the OLT is unavailable; 通知模块,用于通过用户路由冗余协议SRRP,与备用SR进行通信,通知备用SR由备用状态切换为主用状态。The notification module is used to communicate with the standby SR through the user routing redundancy protocol SRRP, and notify the standby SR to switch from the standby state to the active state. 4.如权利要求3所述装置,其特征在于,所述切换模块进一步用于将主用SR的业务接入点sap的状态设置为关闭状态。4 . The apparatus according to claim 3 , wherein the switching module is further configured to set the state of the service access point sap of the active SR to a closed state. 5 . 5.一种SR,其特征在于,包括如权利要求3-4任一项所述的主用业务路由器SR和备用SR的切换装置。5. An SR, characterized in that it comprises the switching device of the active service router SR and the standby SR according to any one of claims 3-4.
CN201410150482.9A 2014-04-15 2014-04-15 A switching method, device and SR of an active service router SR and a standby SR Active CN105024836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410150482.9A CN105024836B (en) 2014-04-15 2014-04-15 A switching method, device and SR of an active service router SR and a standby SR

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410150482.9A CN105024836B (en) 2014-04-15 2014-04-15 A switching method, device and SR of an active service router SR and a standby SR

Publications (2)

Publication Number Publication Date
CN105024836A CN105024836A (en) 2015-11-04
CN105024836B true CN105024836B (en) 2020-01-07

Family

ID=54414570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410150482.9A Active CN105024836B (en) 2014-04-15 2014-04-15 A switching method, device and SR of an active service router SR and a standby SR

Country Status (1)

Country Link
CN (1) CN105024836B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936613B (en) * 2015-12-31 2020-03-31 北京网御星云信息技术有限公司 Method and system for rapidly switching main and standby Openflow switch
CN105656677A (en) * 2016-01-26 2016-06-08 中国银行股份有限公司 Switching method for main and standby merchant bank front ends and application server
CN107306231B (en) * 2016-04-20 2021-06-08 中国移动通信集团广东有限公司 Service scheduling method, equipment and system
CN107635017A (en) * 2017-10-27 2018-01-26 上海京颐科技股份有限公司 Portable movable medical terminal and medical care communication system
CN110022236B (en) * 2019-05-30 2022-03-22 新华三技术有限公司 Message forwarding method and device
CN110267290A (en) * 2019-07-29 2019-09-20 苏州泰铭玥智能科技有限公司 The data processing method and device of intelligence control system
CN112787917A (en) * 2019-11-11 2021-05-11 中兴通讯股份有限公司 Protection method, end node, protection group network and storage medium for flexible Ethernet
CN113542932B (en) * 2020-04-15 2023-03-21 中国联合网络通信集团有限公司 Main/standby switching method, system, equipment and storage medium of network
CN116054929B (en) * 2022-12-29 2024-07-30 中国联合网络通信集团有限公司 Business protection system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7843831B2 (en) * 2006-08-22 2010-11-30 Embarq Holdings Company Llc System and method for routing data on a packet network
CN100512128C (en) * 2007-01-19 2009-07-08 华为技术有限公司 Method and system for protecting multicast repeat path and service router
CN101834687A (en) * 2009-03-11 2010-09-15 华为技术有限公司 Active-standby switching method, system and equipment for optical access network
CN102255633B (en) * 2010-05-20 2015-08-12 中兴通讯股份有限公司 A kind of method and system of multi-stand user backup
CN102448095A (en) * 2012-01-20 2012-05-09 杭州华三通信技术有限公司 Double-homing protection method and equipment

Also Published As

Publication number Publication date
CN105024836A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
CN105024836B (en) A switching method, device and SR of an active service router SR and a standby SR
CN103534982B (en) The protection method of service reliability, equipment and network virtualization system
US10554542B2 (en) Label distribution method and device
WO2012000234A1 (en) Method, apparatus and system for fast switching between links
CN102638389B (en) The redundancy backup method and system of a kind of TRILL network
CN104168193B (en) A kind of method and routing device of Virtual Router Redundancy Protocol fault detect
WO2018054156A1 (en) Vxlan message forwarding method, device and system
CN109672619A (en) A kind of method, equipment and system handling message
US9288140B2 (en) Multichassis failover and recovery for MLPPP wireless backhaul
WO2011157151A2 (en) Method, device and system for realizing disaster-tolerant backup
CN103581025B (en) Method and system for processing routing information and equipment
CN102480423B (en) A kind of guard method of L2TP network and system
EP2533474A1 (en) Method, apparatus and system for forwarding data
CN106797332B (en) Method and system for managing network traffic
EP3217608B1 (en) Switchback delay methods and devices
WO2013113228A1 (en) Method, routing device and system for redundant backup of network device
CN102984014A (en) Data transmission method and network system
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
WO2011091696A1 (en) Method, device and system for establishing connection between neighbouring base stations
JP2012529805A5 (en)
WO2013159549A1 (en) Method, device and system for establishing and using floating network segment
CN104038362A (en) Network system
CN105490937A (en) Ethernet virtual network gateway switching method and service provider edge node equipment
WO2011113395A2 (en) A method and apparatus for load balance
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant