Switching system and method based on RCPU quick table-refreshing
Technical Field
The present invention relates to the field of packet transport network technology, and in particular, to a switching system and method based on RCPU (Remote central processing Unit) fast table-flushing.
Background
A PTN (Packet Transport Network) device supports three types of protection modes, i.e., protection of NNI interfaces, where NNI is an inter-Network interface, protection of access links (i.e., protection of UNI interfaces, where UNI is a user Network interface), and device level protection. The linear protection in the PTN network includes three network levels of PW (Pseudowire), LSP (label switched Path), and segment layer (optional), and the LSP protection is to protect an MPLS-TP (multi protocol label switching-transport subset) connection by using a dedicated end-to-end protection structure, and when a working channel fails, all services on the channel are converted to a protection channel for transport. The PW protection is that a pseudowire forwarder connects a set of redundant pseudowires PW1, PW2, … …, PWn through several virtual pseudowire ports, these pseudowires are generally carried on the physical paths of different MPLS LSPs (multi-protocol label switching, layered service provider), and when a working channel fails, the pseudowires are switched to a backup channel, thereby protecting the service.
Both the two types of protection are overlapped in practical engineering application, but in the implementation process, for the sake of simple service implementation, the protection of partial system PW is separated from the protection of LSP, so that the switching of PW and the switching of LSP are not sensed each other, and there is no coupling condition.
As shown in fig. 1, PW protection is already implemented in the process from the service port 2 to the loopback port 2, after a service is switched, a packet sent to the loopback port 1 for LSP SWAP (label switching of a label switched path) is already a label after PW switching, and at this time, if LSP switching occurs, LSP protection can be implemented only by switching FRR (Fast Reroute) of LSP SWAP, and PW overlapping LSP can be implemented without considering PW value, and without mutual interference. In fig. 1, VPWS: virtual private line service, VPLS: virtual private local area network service, DATA: data, ETH: ethernet, 10G: 10 gigabits per second.
Although the scheme of utilizing the loop back port is simple, the bandwidth of the switching chip is wasted, the switching capacity of the whole machine is reduced, and the maximum switching capacity of the chip is not reached. With the rapid development of networks, it is very important to increase the capacity of the equipment, so that it is urgently needed to cancel the internal loopback port to achieve the increase of the capacity of the whole machine. However, after the loopback is cancelled, because part of chips only support one-level protection, the two-level protection of PW overlay LSP and the multi-level protection of other application scenes are not supported.
Referring to fig. 2, in an overlay protection process of VPWS (virtual private line service)/VPLS (virtual private local area network service), VFP is a virtual local area network domain processor, and vp (vision presence) is a virtual port. In the figure, a chip only provides one-stage protection, and protection switching of the frr part or PW protection switching can be implemented by using the chip, so that PW protection switching or protection switching of the frr part cannot be implemented. Therefore, there is a need for solutions to the problem of two-level as well as multi-level protection of PTNs.
Disclosure of Invention
The present invention is directed to overcome the above drawbacks of the background art, and provides a switching system and method based on RCPU fast table-refreshing. The invention sends RCPU message to the chip through the FPGA module to operate the hardware table entry of the chip, thereby realizing the rapid switching of the service and further solving the problem of two-stage and multi-stage protection of the PTN.
The invention provides a switching system based on RCPU fast table-refreshing, which comprises a service processing module, an APS (Automatic Protection switching) module, an FPGA (Field-Programmable gate array) module and a chip, wherein the APS module is used for carrying out Automatic Protection switching on the data;
the service processing module is used for receiving and analyzing the service data, filling the analyzed service data information into corresponding entries of the chip, receiving the main service protection information and the standby service protection information returned by the chip, and issuing the address and the content of the corresponding entries of the operation chip to the FPGA module; the system is also used for corresponding the service protection information with the entry information of the RCPU message in the FPGA module, then transmitting the corresponding information to the APS module, continuously polling the main alarm and the standby alarm, and transmitting the alarm information to the APS module;
the FPGA module is used for receiving the address and the content of the corresponding table entry carrying the chip sent by the service processing module, editing the RCPU message containing the address and the content of the corresponding table entry of the chip, receiving the switching command sent by the APS module and sending the RCPU message to the chip;
the APS module is used for receiving the corresponding information and the alarm information sent by the service processing module and sending a switching command to the FPGA module according to the corresponding information after receiving the alarm information;
and the chip is used for establishing a service according to the service data information sent by the service processing module, returning the main service protection information and the standby service protection information to the service processing module, receiving the RCPU message sent by the FPGA module and switching the service.
On the basis of the technical scheme, the service processing module comprises a service receiving module and a drive adapting module;
a service receiving module, configured to receive and analyze service data, write the analyzed service data information into a driver adaptation module, correspond service protection information received from the driver adaptation module to an OAM (operation and administration and maintenance) entry in the service receiving module, correspond OAM entry information to entry information of an RCPU message in the FPGA module, and then transmit the corresponding information to an APS module;
and the driving adaptation module is used for integrating the service data information, filling the service data information into the corresponding table entry of the chip, sending information carrying the address and the content of the corresponding table entry of the operation chip to the FPGA module, and returning the main protection service information and the standby protection service information received from the chip to the service receiving module.
On the basis of the technical scheme, the system also comprises a network management system, wherein the network management system is used for configuring the expected service by the user and sending the service data to the service receiving module.
On the basis of the technical scheme, the service receiving module is also used for returning confirmation information to the network management system after receiving the service data; the network management system is also used for issuing the service data to the service receiving module again when the confirmation information is not received, and if the confirmation information is not sent for two times, the network management system does not issue the configuration data any more.
On the basis of the technical scheme, the chip is further used for returning a confirmation message format to the FPGA module, the FPGA module is further used for analyzing the confirmation message format, confirming whether the RCPU message is successfully sent or not, sending the information of whether the RCPU message is successfully sent or not to the drive adaptation module, and sending the RCPU message to the chip again after confirming that the RCPU message is not successfully sent.
The invention also provides a switching method for the RCPU fast table-refreshing based on the system, which comprises the following steps:
s1, the service processing module receives and analyzes the service data, and fills the analyzed service data information into the corresponding table entry of the chip, and the chip establishes the service according to the service data information;
s2, the chip sends the main and standby service protection information to the service processing module, the service processing module sends the address and content of the corresponding table entry of the operation chip to the FPGA module, the FPGA module edits the RCPU message containing the address and content of the corresponding table entry of the chip and waits for the command of sending the RCPU message;
s3, the service processing module makes the service protection information correspond to the items of the RCPU message in the FPGA module, and then transmits the corresponding information to the APS module;
and S4, when the APS module receives the alarm information of the service processing module, the APS module issues a switching command to the FPGA module according to the corresponding information, the FPGA module sends the RCPU message edited in advance to the chip, and the chip is triggered to switch the services, thereby completing one service switching.
On the basis of the above technical solution, in step S1, the service data is configured through a visual network management system, and the network management system is used for configuring a desired service by a user.
Based on the above technical solution, in step S1, after receiving the service data, the service processing module returns a confirmation message to the network management system, if the network management system does not receive the confirmation message, the network management system issues the service data again, and if the confirmation message is not received twice consecutively, the network management system does not issue the configuration data any more.
On the basis of the above technical solution, in step S4, after the FPGA module sends the RCPU message edited in advance to the chip, the chip returns a confirmation message format, the FPGA module analyzes the confirmation message format to confirm whether the RCPU message is successfully sent, and the FPGA module returns information whether the RCPU message is successfully sent to the service processing module.
On the basis of the technical scheme, the FPGA module analyzes the confirmation message format, confirms that the RCPU message is not successfully sent, and sends the RCPU message to the chip again.
Compared with the prior art, the invention has the following advantages: based on the function of fast refreshing the RCPU, the APS module issues a switching command according to the main service protection information and the standby service protection information, the FPGA module encapsulates RCPU messages in advance, and sends the RCPU messages to the chip according to the command of the APS module to operate the hardware table entries of the chip, thereby realizing the fast switching of the services. The invention solves the problem that part of chips only provide one-level protection, and can realize one-level protection (such as LSP layer protection or PW layer protection), two-level protection (such as LSP protection and PW protection superposition), three-level protection (such as ring network protection and LSP protection and then PW protection superposition) and more levels of protection.
Drawings
Fig. 1 is a flow chart of a conventional method for implementing two-stage PTN protection through a loopback interface.
FIG. 2 is a flow chart of an existing overlay protection of VPWS/VPLS.
Fig. 3 is a block diagram of a switching system based on RCPU fast table refreshing according to an embodiment of the present invention.
Fig. 4 is a flowchart of a switching method based on RCPU fast table refreshing according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the embodiments.
Example one
The embodiment of the invention provides a switching system based on RCPU quick table refreshing, which comprises a service processing module, an automatic protection switching APS module, a field programmable gate array FPGA module and a chip, wherein the automatic protection switching APS module is connected with the chip through a bus;
the service processing module is used for receiving and analyzing the service data, filling the analyzed service data information into corresponding entries of the chip, receiving the main service protection information and the standby service protection information returned by the chip, and issuing the address and the content of the corresponding entries of the operation chip to the FPGA module; and the APS module is also used for corresponding the service protection information with the entry information of the RCPU message in the FPGA module, then transmitting the corresponding information to the APS module, continuously polling the main alarm and the standby alarm, and sending the alarm information to the APS module.
The FPGA module is used for receiving the address and the content of the corresponding table entry carrying the operation chip sent by the service processing module, editing the RCPU message containing the address and the content of the corresponding table entry of the chip, receiving the switching command sent by the APS module and sending the RCPU message to the chip.
The APS module is used for receiving the corresponding information and the alarm information sent by the service processing module and sending a switching command to the FPGA module according to the corresponding information after receiving the alarm information;
the chip is used for establishing a service according to the service data information sent by the service processing module, returning the main service protection information and the standby service protection information to the service processing module, receiving the RCPU message sent by the FPGA module and switching the service. In practical applications, it is the traffic that will need protection to be switched.
Example two
On the basis of the technical scheme of the second embodiment, the service processing module comprises a service receiving module and a drive adapting module;
the service receiving module is used for receiving and analyzing service data, writing the analyzed service data information into the drive adaptation module, corresponding the service protection information received from the drive adaptation module with operation, administration and maintenance (OAM) entries in the service receiving module, corresponding the OAM entry information with entry information of RCPU messages in the FPGA module, and then transmitting the corresponding information to the APS module.
The driving adaptation module is used for integrating the service data information, filling the service data information into the corresponding table entry of the chip, sending information carrying the address and the content of the corresponding table entry of the operation chip to the FPGA module, and returning the main protection service information and the standby protection service information received from the chip to the service receiving module.
The chip is also used for returning a confirmation message format to the FPGA module, the FPGA module is also used for analyzing the confirmation message format, confirming whether the RCPU message is successfully sent or not, sending the information of whether the RCPU message is successfully sent or not to the drive adaptation module, and sending the RCPU message to the chip again after confirming that the RCPU message is not successfully sent.
EXAMPLE III
Referring to fig. 3, on the basis of the technical solution of the second embodiment, the system further includes a network management system, and the network management system is configured to configure a desired service by a user and send service data to the service receiving module.
The service receiving module is also used for returning confirmation information to the network management system after receiving the service data; the network management system is also used for issuing the service data to the service receiving module again when the confirmation information is not received, and if the confirmation information is not sent for two times, the network management system does not issue the configuration data any more.
Example four
Referring to fig. 4, an embodiment of the present invention provides a switching method for RCPU fast table flushing based on the foregoing system, where the method includes the following steps:
and S1, the service processing module receives and analyzes the service data, and fills the analyzed service data information into the corresponding table entry of the chip, and the chip establishes the service according to the service data information.
S2, the chip sends the main and standby service protection information to the service processing module, the service processing module sends the address and content of the corresponding table entry of the operation chip to the FPGA module, the FPGA module edits the RCPU message containing the address and content of the corresponding table entry of the chip and waits for the command of sending the RCPU message.
S3, the service processing module makes the service protection information correspond to the RCPU message items in the FPGA module, and then transmits the corresponding information to the APS module.
And S4, when the APS module receives the alarm information of the service processing module, the APS module issues a switching command to the FPGA module according to the corresponding information, the FPGA module sends the RCPU message edited in advance to the chip, and the chip is triggered to switch the services, thereby completing one service switching.
EXAMPLE five
On the basis of the technical solution of the fourth embodiment, in step S1, the service data is configured through a visual network management system, and the network management system is used for configuring a desired service by a user.
In this embodiment, before step S1, the user configures the desired service through the visual network management system, and the network management system sends the service data to the service processing module.
EXAMPLE six
On the basis of the technical scheme of the fourth embodiment, the service processing module comprises a service receiving module and a drive adapting module.
The method specifically comprises the following steps: the service receiving module receives and analyzes the service data, and writes the analyzed service data information into the driving adaptation module;
after integrating the service data information, the driving adaptation module fills the service data information into the corresponding table entry of the chip, and the chip establishes a service according to the service data information and sends main service protection information and standby service protection information to the driving adaptation module; meanwhile, the driving adaptation module issues the address and the content of the corresponding table entry of the operation chip to the FPGA module, and the FPGA module assembles an RCPU message containing the address and the content of the corresponding table entry of the chip and waits for a trigger command;
the driving adaptation module returns the main service protection information and the standby service protection information to the service receiving module, the service receiving module corresponds the service protection information to operation, administration and maintenance (OAM) entries in the service receiving module, corresponds the OAM entries to entries of RCPU messages in the FPGA module, and then transmits the corresponding information to the Automatic Protection Switching (APS) module.
The service receiving module continuously polls the main alarm and the standby alarm and sends the alarm information to the APS module.
After the FPGA module sends the RCPU message edited in advance to the chip, the chip returns a confirmation message format, the FPGA module analyzes the confirmation message format to confirm whether the RCPU message is successfully sent, and the FPGA module returns the information of whether the RCPU message is successfully sent to the drive adaptation module.
And after receiving the service data, the service processing module returns confirmation information to the network management system, if the network management system does not receive the confirmation information, the network management system issues the service data again, and if the confirmation information is not received for two consecutive times, the network management system does not issue the configuration data any more.
And the FPGA module analyzes the confirmation message format, confirms that the RCPU message is not successfully sent, and sends the RCPU message to the chip again. In practical application, the FPGA module sends 3000 entry switching frames according to a configured time interval, the chip sends back a confirmation frame according to whether the table change is successful, and the confirmation frame only needs to see bit 0 of the first 4 bytes in the DATA field of the RCPU message. After receiving the confirmation frame, the FPGA module sends the switching frame of the corresponding item again, and the session is ended no matter whether the table switching is successful or not.
In practical application, when a main channel fails, a main alarm is generated to convert the service on the main channel to a standby channel for transmission. Similarly, when the standby channel fails, a standby alarm is generated to transfer the service on the standby channel back to the main channel.
The principle of the invention for realizing two-stage and multi-stage protection is as follows: referring to fig. 2, a case of implementing two-stage protection by PW protection switching is described. In the figure, the chip only provides one-stage protection, and the protection of the frr part, i.e. LSP layer protection, is implemented by the frr of the chip itself, so the PW protection switching chip of the second stage cannot support. Therefore, if PW protection switching is realized by the RCPU fast table-refreshing mode of the invention, two-stage protection can be realized. Similarly, in the case of the ring network protection, LSP protection, and PW protection, the protection scheme of the present invention or the combination of the present invention and other protection schemes can be used to implement two-level protection and more-level protection, except that the chip itself supports one-level protection.
Various modifications and variations of the embodiments of the present invention may be made by those skilled in the art, and they are also within the scope of the present invention, provided they are within the scope of the claims of the present invention and their equivalents.
What is not described in detail in the specification is prior art that is well known to those skilled in the art.