WO2016095344A1 - 链路切换方法、装置及线卡 - Google Patents

链路切换方法、装置及线卡 Download PDF

Info

Publication number
WO2016095344A1
WO2016095344A1 PCT/CN2015/073912 CN2015073912W WO2016095344A1 WO 2016095344 A1 WO2016095344 A1 WO 2016095344A1 CN 2015073912 W CN2015073912 W CN 2015073912W WO 2016095344 A1 WO2016095344 A1 WO 2016095344A1
Authority
WO
WIPO (PCT)
Prior art keywords
main control
control board
link
line card
standby
Prior art date
Application number
PCT/CN2015/073912
Other languages
English (en)
French (fr)
Inventor
阮亮
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016095344A1 publication Critical patent/WO2016095344A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Definitions

  • the present invention relates to the field of communications, and in particular, to a link switching method, apparatus, and line card.
  • the telecommunication communication system has high requirements for real-time communication and service protection. Therefore, the dual-machine main and standby devices are often provided at the same time.
  • the system When the main control board is abnormally shut down, the system immediately switches to the standby main control board to ensure The business is stable and reliable. Since the communication between the main control board and the service line card is frequent, how to quickly restore the communication between the new main control board and the service line card becomes an important indicator for business stability after the active/standby switchover. Otherwise, it will be due to Loss of message and business interruption.
  • TCP Transmission Control Protocol
  • the Transmission Control Protocol is mainly used because TCP is stable and reliable, and has low-level stability mechanisms such as flow control and automatic message retransmission.
  • the TCP link can be quickly monitored and switched when the system performs the active/standby switchover.
  • the detection of the TCP link disconnection is not very fast. Because the actual link is unstable after all, if the anti-shake and filtering are not performed, the false alarm of the link interruption may occur frequently, which will cause frequent interruption of the service, but the effect is even worse.
  • the present invention provides a link switching method, a device, and a line card, so as to at least solve the problem that the link switching can be quickly performed after the system switching cannot be implemented in the related art without affecting the service.
  • a link switching method including: establishing a link between a standby main control board and a line card; and in the case that the main main control board fails, passing the standby main control Board and the line card
  • the inter-link sends an indication message to the line card, where the indication message is used to indicate that the line card switches to a link between the standby main control board and the line card.
  • the method further includes: setting a timeout value of the standby main control board processing message to be smaller than a timeout period of processing the main main control board processing message After the line card is switched to the standby main control board and the line card, setting a timeout value of the main control board processing message is smaller than a timeout value of the standby main control board processing message.
  • the method further includes: establishing a communication link between the main main control board and the standby main control board, where The communication link is used for data synchronization between the active main control board and the standby main control board.
  • a link switching method including: receiving an indication message that a main control board fails, wherein the indication message is a chain between an alternate main control board and a line card. Transmitted by the road; according to the indication message, the link between the main control board and the active main control board is switched to the link with the standby main control board.
  • a link switching apparatus including: a first establishing module, configured to establish a link between a standby main control board and a line card; and a sending module configured to be in the main control In the case that the board is faulty, an indication message is sent to the line card through a link between the standby main control board and the line card, where the indication message is used to indicate that the line card is switched to the The link between the standby main control board and the line card.
  • the device further includes: a first setting module, configured to set a timeout value of the standby main control board processing message to be smaller than a timeout value of the main control board processing message; and a second setting module, set to After the line card is switched to the standby main control board and the line card, setting a timeout value of the main control board processing message is smaller than a timeout value of the processing information of the standby main control board.
  • the device further includes: a second establishing module, configured to establish a communication link between the active main control board and the standby main control board, wherein the communication link is used for the main Data synchronization is performed by using the main control board and the standby main control board.
  • a second establishing module configured to establish a communication link between the active main control board and the standby main control board, wherein the communication link is used for the main Data synchronization is performed by using the main control board and the standby main control board.
  • a link switching apparatus including: a receiving module, configured to receive an indication message that the main control board is faulty, wherein the indication message is through the standby main control board and the line The link between the cards is sent; the switching module is configured to switch from the link with the active main control board to the link with the standby main control board according to the indication message.
  • a line card is provided, including the apparatus described above.
  • a link between the standby main control board and the line card is established; in the case that the main main control board fails, the link between the standby main control board and the line card is adopted.
  • Sending an indication message to the line card where the indication message is used to indicate that the line card is switched to a link between the standby main control board and the line card, which solves the problem that system switching cannot be implemented in the related art.
  • the link switching can be performed quickly without affecting the effect of the service.
  • FIG. 1 is a flowchart 1 of a link switching method according to an embodiment of the present invention.
  • FIG. 2 is a second flowchart of a link switching method according to an embodiment of the present invention.
  • FIG. 3 is a block diagram 1 of a link switching apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 1 of a link switching device in accordance with a preferred embodiment of the present invention.
  • Figure 5 is a block diagram 2 of a link switching device in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a block diagram 2 of a link switching apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a system TCP link according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of an active/standby switching fast detection link according to an embodiment of the present invention.
  • FIG. 1 is a flowchart 1 of a link switching method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 establishing a link between the standby main control board and the line card
  • Step S104 in the case that the main control board is faulty, send an indication message to the line card through a link between the standby main control board and the line card, where the indication message is used to indicate the line card. Switch to the link between the standby main control board and the line card.
  • the link between the standby main control board and the line card is established through the foregoing steps.
  • the link between the standby main control board and the line card is sent to the line card.
  • sending the indication message where the indication message is used to indicate that the line card is switched to the link between the standby main control board and the line card, which solves the problem that the link switching cannot be performed quickly after the system switching cannot be implemented in the related art. Affecting business problems, and thus enabling fast link switching without affecting the effectiveness of the business.
  • the timeout value of the processing message of the standby main control board may be set to be smaller than the timeout value of the processing message of the main main control board; After the card is switched to the standby main control board and the line card, setting the timeout value of the processing message of the main control board to be smaller than the timeout value of the processing message of the standby main control board, so that the card can be implemented in a short time.
  • FIG. 2 is a second flowchart of a link switching method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 receiving an indication message that the main control board is faulty, where the indication message is sent through a link between the standby main control board and the line card;
  • Step S204 Switching from the link with the active main control board to the link with the standby main control board according to the indication message.
  • the embodiments of the present invention provide a link switching device, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 3 is a block diagram of a link switching apparatus according to an embodiment of the present invention. As shown in FIG. 3, the method includes: a first establishing module 32 and a sending module 34. The following briefly describes each module.
  • the first establishing module 32 is configured to establish a link between the standby main control board and the line card;
  • the sending module 34 is connected to the first establishing module 32, and is configured to send an indication message to the line card through a link between the standby main control board and the line card if the main main control board fails.
  • the indication message is used to indicate that the line card is switched to a link between the standby main control board and the line card.
  • FIG. 4 is a block diagram of a link switching apparatus according to a preferred embodiment of the present invention. As shown in FIG. 4, the apparatus further includes:
  • the first setting module 42 is connected to the first establishing module 32, and is configured to set the timeout value of the processing message of the standby main control board to be smaller than the timeout value of the processing message of the main control board;
  • the second setting module 44 is connected to the sending module 34, and is configured to set the timeout value of the processing message of the main main control board to be smaller than the standby main control board after the line card is switched to the standby main control board and the line card. The timeout value for processing messages.
  • FIG. 5 is a block diagram 2 of a link switching apparatus according to a preferred embodiment of the present invention. As shown in FIG. 5, the apparatus further includes:
  • the second establishing module 52 is connected to the first establishing module 32 and the sending module 34, and is configured to establish a communication link between the active main control board and the standby main control board, wherein the communication link is used for the The main control board and the standby main control board perform data synchronization.
  • FIG. 6 is a block diagram 2 of a link switching device according to an embodiment of the present invention. As shown in FIG. 6, the method includes:
  • the receiving module 62 is configured to receive an indication message that the main control board is faulty, where the indication message is sent by using a link between the standby main control board and the line card;
  • the switching module 64 is connected to the receiving module 62, and is configured to switch from the link with the active main control board to the link with the standby main control board according to the indication message.
  • Embodiments of the present invention also provide a line card including the above apparatus.
  • the optional embodiment can correctly and quickly detect and quickly switch to a new channel to restore services, which can make the active/standby protection mechanism of the telecommunication device more reliable and provide guarantee for the stability of the service.
  • the solution is solved.
  • the probability of active/standby switchover will cause the 30B+D service under the softswitch control to be interrupted. Coordinate work through multiple technical points to achieve the intended purpose, including:
  • FIG. 7 is a schematic diagram of a system TCP link according to an embodiment of the present invention.
  • the system implements a dual TCP communication link, one service line card establishes two TCP links, and one is built with the main control board.
  • the chain is connected to the standby main control board.
  • the host and the standby also establish a communication link for link status detection and some other message processing during peacetime.
  • the TCP link of the master and backup machines sets the timeout value of the processing message when the host and the standby machine process the message.
  • the TCP link receiving message is generally blocked, because there is no actual service on the standby machine.
  • the timeout value of the standby link In order to process the message quickly, set the timeout value of the standby link to be shorter, so that after the system is switched, the standby device can resume blocking in a short period of time and notify the line card; and because there is a large amount of services on the host, In order not to affect the efficiency and accuracy of the link, the timeout value is set to a large value, typically 5 seconds.
  • This alternative embodiment does not affect normal link state detection because the timeout value of the primary link is still relatively long. After the system is switched, the link can be quickly detected and switched to the new one to ensure smooth and seamless connection of services.
  • FIG. 8 is a flowchart of the active/standby switching fast detection link according to the embodiment of the present invention. As shown in FIG. 8, the following content is included:
  • the host and the standby device establish a communication link, which is mainly used for the synchronization of the active and standby data and the link detection of the active and standby devices.
  • the timeout value of the received message is large, usually 5 seconds. It is for anti-shake and efficiency considerations, while the standby setting is shorter, generally set to 2 seconds.
  • a TCP link is established between the host and the standby device. The link with the host is the active link, and the link established with the standby is the standby link. The message flow of the service is generally only taken. Use the link.
  • the communication link between the active and standby devices is on the host side.
  • the switchover may be a direct physical interrupt, the switchover is directly lost.
  • the link timeout value is short and short. Generally, the message processing is resumed within 2 seconds.
  • the link with the host is detected to be broken, and the system also confirms that the system has been switched.
  • the main task is to notify all the service line card systems to switch between the active and standby links, and set the switch itself.
  • the working state for the new host including setting the message blocking timeout value to the value of the previous host, such as 5 seconds.
  • the standby link of each service line card sets the previous standby link as the primary link, disconnects the previous primary link, and attempts to restart. Establish an alternate link.
  • the active and standby links can quickly detect the link interruption and quickly restore the link with the service line card.
  • the process is very fast and smooth, and the business is basically unaffected.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above embodiments and the preferred embodiments solve the problem that the link switching can be quickly performed after the system switching cannot be performed without affecting the service in the related art, and the link switching can be performed quickly without affecting the effect of the service.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了链路切换方法、装置及线卡,该方法包括:建立备用主控板与线卡之间的链路,在该主用主控板发生故障的情况下,通过该备用主控板与该线卡之间的链路向该线卡发送指示消息,其中,该指示消息用于指示该线卡切换到该备用主控板与该线卡之间的链路。通过本发明,解决了相关技术中不能实现系统倒换后快速的进行链路切换而不影响业务的问题,进而能够快速进行链路切换而不影响业务的效果。

Description

链路切换方法、装置及线卡 技术领域
本发明涉及通信领域,具体而言,涉及链路切换方法、装置及线卡。
背景技术
电信通讯系统对于通讯的实时性以及业务的保护要求很高,所以常常会提供双机主备同时运行,当主用主控板由于异常宕机后,系统马上切换到备机主控板,以保证业务的稳定和可靠。由于主控板和业务线卡之间的通讯比较频繁,在主备倒换后,如何快速恢复新主控板与业务线卡之间的通讯成为业务稳定很重要的指标,不然的话,就会由于丢失消息而导致业务中断。
通讯设备对业务的稳定性和实时性都要求很高,系统构架一般都是主备保护以及业务分布式为主,所以通讯链路的稳定性要求很高,在嵌入式操作系统中,一般以传输控制协议(Transmission Control Protocol,简称为TCP)方式为主,因为TCP是稳定可靠,有流量控制、有消息自动重发等底层稳定机制。但是由于有主备保护的需求,所以也需要在系统发生主备倒换的时候,TCP链路能够迅速监测到并进行链路切换,但是实际上,TCP链路断开的检测并不很迅速,因为毕竟存在实际链路不稳定的情况,如果不进行防抖和过滤的话,可能会频繁出现链路中断的假告警,这样的话会造成业务的频繁中断,反而效果更不好。
因此,需要提供一种方案,可以在系统倒换后快速的进行链路切换而不影响业务,而在平时链路状态检测中也比较准确。
针对相关技术中不能实现系统倒换后快速的进行链路切换而不影响业务的问题,目前尚未提出有效的解决方案。
发明内容
本发明提供了链路切换方法、装置及线卡,以至少解决相关技术中不能实现系统倒换后快速的进行链路切换而不影响业务的问题。
根据本发明的一个方面,提供了一种链路切换方法,包括:建立备用主控板与线卡之间的链路;在主用主控板发生故障的情况下,通过所述备用主控板与所述线卡之 间的链路向所述线卡发送指示消息,其中,所述指示消息用于指示所述线卡切换到所述备用主控板与所述线卡之间的链路。
进一步地,在建立所述备用主控板与所述线卡之间的链路之前,还包括:设置所述备用主控板处理消息的超时值小于所述主用主控板处理消息的超时值;在所述线卡切换到所述备用主控板与所述线卡之后,设置所述主用主控板处理消息的超时值小于所述备用主控板处理消息的超时值。
进一步地,在建立所述备用主控板与所述线卡之间的链路之后还包括:在所述主用主控板和所述备用主控板之间建立通讯链路,其中,所述通讯链路用于所述主用主控板和所述备用主控板进行数据同步。
根据本发明的另一方面,提供了一种链路切换方法,包括:接收主用主控板发生故障的指示消息,其中,所述指示消息是通过备用主控板与线卡之间的链路发送的;根据所述指示消息由与主用主控板之间的链路切换到与所述备用主控板之间的链路。
根据本发明的另一方面,提供了一种链路切换装置,包括:第一建立模块,设置为建立备用主控板与线卡之间的链路;发送模块,设置为在主用主控板发生故障的情况下,通过所述备用主控板与所述线卡之间的链路向所述线卡发送指示消息,其中,所述指示消息用于指示所述线卡切换到所述备用主控板与所述线卡之间的链路。
进一步地,所述装置还包括:第一设置模块,设置为设置所述备用主控板处理消息的超时值小于所述主用主控板处理消息的超时值;第二设置模块,设置为在所述线卡切换到所述备用主控板与所述线卡之后,设置所述主用主控板处理消息的超时值小于所述备用主控板处理消息的超时值。
进一步地,所述装置还包括:第二建立模块,设置为在所述主用主控板和所述备用主控板之间建立通讯链路,其中,所述通讯链路用于所述主用主控板和所述备用主控板进行数据同步。
根据本发明的另一方面,提供了一种链路切换装置,包括:接收模块,设置为接收主用主控板发生故障的指示消息,其中,所述指示消息是通过备用主控板与线卡之间的链路发送的;切换模块,设置为根据所述指示消息由与主用主控板之间的链路切换到与所述备用主控板之间的链路。
根据本发明的另一方面,提供了一种线卡,包括上述的装置。
通过本发明,采用建立备用主控板与线卡之间的链路;在所述主用主控板发生故障的情况下,通过所述备用主控板与所述线卡之间的链路向所述线卡发送指示消息,其中,所述指示消息用于指示所述线卡切换到所述备用主控板与所述线卡之间的链路,解决了相关技术中不能实现系统倒换后快速的进行链路切换而不影响业务的问题,进而能够快速进行链路切换而不影响业务的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的链路切换方法的流程图一;
图2是根据本发明实施例的链路切换方法的流程图二;
图3是根据本发明实施例的链路切换装置的框图一;
图4是根据本发明优选实施例的链路切换装置的框图一;
图5是根据本发明优选实施例的链路切换装置的框图二;
图6是根据本发明实施例的链路切换装置的框图二;
图7是根据本发明实施例的系统TCP链路的示意图;
图8是根据本发明实施例的主备倒换快速检测链路的流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种链路切换方法,图1是根据本发明实施例的链路切换方法的流程图一,如图1所示,该流程包括如下步骤:
步骤S102,建立备用主控板与线卡之间的链路;
步骤S104,在该主用主控板发生故障的情况下,通过该备用主控板与该线卡之间的链路向该线卡发送指示消息,其中,该指示消息用于指示该线卡切换到该备用主控板与该线卡之间的链路。
通过上述步骤,建立备用主控板与线卡之间的链路,在该主用主控板发生故障的情况下,通过该备用主控板与该线卡之间的链路向该线卡发送指示消息,其中,该指示消息用于指示该线卡切换到该备用主控板与该线卡之间的链路,解决了相关技术中不能实现系统倒换后快速的进行链路切换而不影响业务的问题,进而能够快速进行链路切换而不影响业务的效果。
进一步地,在建立该备用主控板与该线卡之间的链路之前,还可以设置该备用主控板处理消息的超时值小于该主用主控板处理消息的超时值;在该线卡切换到该备用主控板与该线卡之后,设置该主用主控板处理消息的超时值小于该备用主控板处理消息的超时值,从而可以在短时间实现。
进一步地,在建立备用主控板与线卡之间的链路之后,在该主用主控板和该备用主控板之间建立通讯链路,其中,该通讯链路用于该主用主控板和该备用主控板进行数据同步。
本发明实施例还提供了一种链路切换方法,图2是根据本发明实施例的链路切换方法的流程图二,如图2所示,该流程包括如下步骤:
步骤S202,接收主用主控板发生故障的指示消息,其中,该指示消息是通过备用主控板与线卡之间的链路发送的;
步骤S204,根据该指示消息由与主用主控板之间的链路切换到与该备用主控板之间的链路。
本发明实施例提供了一种链路切换装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。
图3是根据本发明实施例的链路切换装置的框图一,如图3所示,包括:第一建立模块32和发送模块34,下面对各个模块进行简要说明。
第一建立模块32,设置为建立备用主控板与线卡之间的链路;
发送模块34,连接至上述第一建立模块32,设置为在该主用主控板发生故障的情况下,通过该备用主控板与该线卡之间的链路向该线卡发送指示消息,其中,该指示消息用于指示该线卡切换到该备用主控板与该线卡之间的链路。
图4是根据本发明优选实施例的链路切换装置的框图一,如图4所示,该装置还包括:
第一设置模块42,连接至上述第一建立模块32,设置为设置该备用主控板处理消息的超时值小于该主用主控板处理消息的超时值;
第二设置模块44,连接至上述发送模块34,设置为在该线卡切换到该备用主控板与该线卡之后,设置该主用主控板处理消息的超时值小于该备用主控板处理消息的超时值。
图5是根据本发明优选实施例的链路切换装置的框图二,如图5所示,该装置还包括:
第二建立模块52,连接至上述第一建立模块32和发送模块34,设置为在该主用主控板和该备用主控板之间建立通讯链路,其中,该通讯链路用于该主用主控板和该备用主控板进行数据同步。
本发明实施例还提供了一种链路切换装置,图6是根据本发明实施例的链路切换装置的框图二,如图6所示,包括:
接收模块62,设置为接收主用主控板发生故障的指示消息,其中,该指示消息是通过备用主控板与线卡之间的链路发送的;
切换模块64,连接至上述接收模块62,设置为根据该指示消息由与主用主控板之间的链路切换到与该备用主控板之间的链路。
本发明实施例还提供了一种线卡,包括上述的装置。
下面结合可选实施例对本发明实施例进行进一步说明。
本可选实施例能够正确快速的检测并快速切换到新的通道以恢复业务,可以使得电信通讯设备的主备保护机制更可靠,为业务的稳定性提供了保障,通过实施,该方案解决了一些实际业务存在的问题,比如MSAG设备中,主备倒换有概率会导致软交换控制下的30B+D业务中断。通过多个技术点协调工作以达到预期目的,包括:
图7是根据本发明实施例的系统TCP链路的示意图,如图7所示,系统实行双TCP通讯链路,一块业务线卡建立两条TCP链路,一条和主用主控板进行建链,另外一条和备用主控板进行建链,主机和备机也建立一条通讯链路,用于链路状态的检测和平时的一些其他的消息处理。主备机的TCP链路,在主机和备机处理消息的时候,设置的处理消息的超时值不一样,在嵌入式系统中,TCP链路收取消息一般是阻塞式,由于备机上没有实际业务,为了快速处理消息,将备机链路的超时值设置较短,这样在系统倒换后,备机能够在较短的时间内恢复阻塞,并通知线卡;而在主机上由于有大量业务,为了不影响效率和链路的准确性,超时值设置较大,一般为5秒。增加一条链路切换的链路消息,在主备倒换发生时,备机能够通知到线卡,线卡接受到消息后,立即断开之前的业务主用链路,切换到新的链路(由于以前的主用链路可能是直接物理断开,所以是没法直接通知到线卡的)。
本可选实施例不会影响到正常的链路状态检测,因为主用链路的超时值还是比较长。而在系统发生倒换后,则可以快速检测到链路中断,并切换到新的中,保证了业务的平滑无缝衔接。
本可选实施例的核心是通过多条TCP链路和协同处理,图8是根据本发明实施例的主备倒换快速检测链路的流程图,如图8所示,包括以下内容:
系统启动后,主机和备机建立一条通讯链路,主要用于主备数据同步以及主备机链路检测;其中,主机的进程中,设置的消息接受超时值较大,一般为5秒,是为了防抖和以及效率的考虑,而备机设置的较短,一般设置为2秒。线卡启动后,分别和主机备机都建立一条TCP链路,其中和主机的链路为主用链路,和备机建链的链路为备用链路;业务的消息流一般只走主用链路。当系统发生倒换时候,主备间的通讯链路,在主机侧,由于倒换可能是直接物理中断,所以倒换后直接失联;而在备机侧,由于链路超时值较短,短时间(一般2秒)内恢复消息处理,这个时候检测到和主机链路断,并且系统也确认系统发生了倒换,其工作主要是通知所有的业务线卡系统发生主备链路切换,并将自己设置为新主机工作状态,包括把消息阻塞超时值设置为之前主机的值,比如5秒。各业务线卡的备用链路收到了之前备机发过来的主备链路切换消息后,将之前的备用链路设置为主用链路,并断开之前的主用链路,并尝试重新建立一条备用链路。
本可选实施例中,系统的主备倒换后,主备链路可以快速检测到链路的中断,并迅速的恢复与业务线卡的链路。在实际使用中,这个过程非常迅速和平滑,业务基本上不受影响。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,通过上述实施例及优选实施方式,解决了相关技术中不能实现系统倒换后快速的进行链路切换而不影响业务的问题,进而能够快速进行链路切换而不影响业务的效果。

Claims (9)

  1. 一种链路切换方法,包括:
    建立备用主控板与线卡之间的链路;
    在主用主控板发生故障的情况下,通过所述备用主控板与所述线卡之间的链路向所述线卡发送指示消息,其中,所述指示消息用于指示所述线卡切换到所述备用主控板与所述线卡之间的链路。
  2. 根据权利要求1所述的方法,其中,在建立所述备用主控板与所述线卡之间的链路之前,还包括:
    设置所述备用主控板处理消息的超时值小于所述主用主控板处理消息的超时值;
    在所述线卡切换到所述备用主控板与所述线卡之后,设置所述主用主控板处理消息的超时值小于所述备用主控板处理消息的超时值。
  3. 根据权利要求1所述的方法,其中,在建立所述备用主控板与所述线卡之间的链路之后,还包括:
    在所述主用主控板和所述备用主控板之间建立通讯链路,其中,所述通讯链路用于所述主用主控板和所述备用主控板进行数据同步。
  4. 一种链路切换方法,包括:
    接收主用主控板发生故障的指示消息,其中,所述指示消息是通过备用主控板与线卡之间的链路发送的;
    根据所述指示消息由与主用主控板之间的链路切换到与所述备用主控板之间的链路。
  5. 一种链路切换装置,包括:
    第一建立模块,设置为建立备用主控板与线卡之间的链路;
    发送模块,设置为在主用主控板发生故障的情况下,通过所述备用主控板与所述线卡之间的链路向所述线卡发送指示消息,其中,所述指示消息用于指示所述线卡切换到所述备用主控板与所述线卡之间的链路。
  6. 根据权利要求5所述的装置,其中,所述装置还包括:
    第一设置模块,设置为设置所述备用主控板处理消息的超时值小于所述主用主控板处理消息的超时值;
    第二设置模块,设置为在所述线卡切换到所述备用主控板与所述线卡之后,设置所述主用主控板处理消息的超时值小于所述备用主控板处理消息的超时值。
  7. 根据权利要求5所述的装置,其中,所述装置还包括:
    第二建立模块,设置为在所述主用主控板和所述备用主控板之间建立通讯链路,其中,所述通讯链路用于所述主用主控板和所述备用主控板进行数据同步。
  8. 一种链路切换装置,包括:
    接收模块,设置为接收主用主控板发生故障的指示消息,其中,所述指示消息是通过备用主控板与线卡之间的链路发送的;
    切换模块,设置为根据所述指示消息由与主用主控板之间的链路切换到与所述备用主控板之间的链路。
  9. 一种线卡,包括权利要求8所述的装置。
PCT/CN2015/073912 2014-12-17 2015-03-09 链路切换方法、装置及线卡 WO2016095344A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410789877.3 2014-12-17
CN201410789877.3A CN105790965A (zh) 2014-12-17 2014-12-17 链路切换方法、装置及线卡

Publications (1)

Publication Number Publication Date
WO2016095344A1 true WO2016095344A1 (zh) 2016-06-23

Family

ID=56125725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073912 WO2016095344A1 (zh) 2014-12-17 2015-03-09 链路切换方法、装置及线卡

Country Status (2)

Country Link
CN (1) CN105790965A (zh)
WO (1) WO2016095344A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274763A (zh) * 2018-10-24 2019-01-25 厦门科华恒盛股份有限公司 一种信息同步方法及双机热备设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123889B (zh) * 2016-11-30 2021-08-27 阿里巴巴集团控股有限公司 一种流计算数据链路保障方法及系统
CN110213065B (zh) * 2018-02-28 2022-11-25 杭州宏杉科技股份有限公司 一种路径切换的方法及装置
CN110932970B (zh) * 2019-12-04 2022-03-18 锐捷网络股份有限公司 传输控制协议tcp会话的处理方法及装置
CN114531475A (zh) * 2020-11-02 2022-05-24 中兴通讯股份有限公司 一种业务传输方法、通信设备及存储介质
CN112954722B (zh) * 2021-01-26 2023-02-03 深圳震有科技股份有限公司 一种5g upf主备链路快速切换系统和方法
CN115190003A (zh) * 2021-03-22 2022-10-14 中兴通讯股份有限公司 一种网络设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731696A (zh) * 2004-08-06 2006-02-08 华为技术有限公司 通信设备中实现单板主备倒换的系统及方法
CN101710865A (zh) * 2009-12-23 2010-05-19 中兴通讯股份有限公司 一种网络设备中主备快速倒换的方法和装置
CN203482216U (zh) * 2013-09-24 2014-03-12 浙江大华系统工程有限公司 一种网络设备
CN103825817A (zh) * 2014-02-18 2014-05-28 杭州华三通信技术有限公司 路由协议重启后不间断路由的实现方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931550B (zh) * 2009-06-23 2014-01-01 中兴通讯股份有限公司 用于主备同步的方法和装置
CN101964719B (zh) * 2009-07-23 2015-11-25 中兴通讯股份有限公司 基于主控板倒换的数据处理方法、线卡及主控板

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731696A (zh) * 2004-08-06 2006-02-08 华为技术有限公司 通信设备中实现单板主备倒换的系统及方法
CN101710865A (zh) * 2009-12-23 2010-05-19 中兴通讯股份有限公司 一种网络设备中主备快速倒换的方法和装置
CN203482216U (zh) * 2013-09-24 2014-03-12 浙江大华系统工程有限公司 一种网络设备
CN103825817A (zh) * 2014-02-18 2014-05-28 杭州华三通信技术有限公司 路由协议重启后不间断路由的实现方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274763A (zh) * 2018-10-24 2019-01-25 厦门科华恒盛股份有限公司 一种信息同步方法及双机热备设备
CN109274763B (zh) * 2018-10-24 2022-06-07 科华恒盛股份有限公司 一种信息同步方法及双机热备设备

Also Published As

Publication number Publication date
CN105790965A (zh) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2016095344A1 (zh) 链路切换方法、装置及线卡
EP3029893B1 (en) Method, controller, device and system for protecting service path
CN110149220B (zh) 一种管理数据传输通道的方法及装置
RU2633527C1 (ru) Способ, устройство и система переключения линии связи
US10911295B2 (en) Server apparatus, cluster system, cluster control method and program
CN106533736B (zh) 一种网络设备重启方法和装置
CN107948063B (zh) 一种建立聚合链路的方法和接入设备
KR20150088559A (ko) 네트워크의 장애를 복구하는 방법 및 장치
CN102882704B (zh) 一种issu的软重启升级过程中的链路保护方法和设备
US20130235718A1 (en) Path switch-back method and apparatus in transport network
CN105429814B (zh) 利用多板卡保护bfd的方法和设备
CN104113428A (zh) 一种设备管理装置和方法
CN105024798A (zh) 一种时间同步的方法及装置
WO2020052687A1 (zh) 一种网元防成环方法、装置、设备及可读存储介质
CN104901834A (zh) 一种网络服务器自动切换的方法及系统
CN104065569A (zh) 信息处理系统和设备及其控制方法以及数据传输设备
US11258666B2 (en) Method, device, and system for implementing MUX machine
WO2017000096A1 (zh) 一种链路恢复方法和网络设备
WO2016065751A1 (zh) 恢复链路通讯的方法、业务线卡及系统
CN110545198B (zh) Erps环路的破环方法及主节点
CN102571458A (zh) 隧道保护组的切换方法及装置
WO2014050493A1 (ja) 予備系装置、運用系装置、冗長構成システム、及び負荷分散方法
CN111698157B (zh) 一种链路管理方法、板卡及交换机
WO2015180265A1 (zh) 多链路保护倒换的方法及装置
CN101247213A (zh) 一种主备倒换的方法及系统

Legal Events

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

Ref document number: 15868861

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15868861

Country of ref document: EP

Kind code of ref document: A1