Background technology
In general, different with individual application system such as this class operation level system of mobile communication system, fixed communications and data communication system, they belong to the system of requirement high reliability.And this type systematic is more complicated than general system, in a system a lot of service sub-systems is arranged, and interknits between each service sub-system, has a large amount of business datums to intercourse.Each subsystem may operate in again on the different physical entities, and for example different machine frames is between the different veneer of perhaps identical machine frame.
Under the situation of the different service sub-system of operation on the different veneers of same machine frame, generally all there is the exchange of data-message between each service sub-system is mutual.For example, in the SGW of UTStarcom, operation signalling system No.7 administration module, system HA module on master control borad, certain piece veneer operation MTP2 module is moved the MTP3 module on certain piece veneer therein, operation Sigtran module on other veneer.There are the exchange of administrative messag and the mutual transmission of protocol data bag between these modules.
The mutual conveyer to bottom of the data-message between the different business is shaped on different requirements.For example, the subsystem that has is very sensitive to the time delay of message, for example in the No.7 nation-wide Network Central Shanxi Plain, a message enters SGW from traditional No.7 nation-wide Network, through the processing of gateway, from IP network output, the time delay during this can not surpass the requirement of national Specification.The subsystem that has is not very sensitive to the time delay of message, but to message whether reliably arrive, whether order arrives very sensitive message, for example in the No.7 nation-wide Network Central Shanxi Plain, signaling management module on the master control borad is sent out an administration order to veneer, if this order has been lost, then may cause signaling link to use.The subsystem possibility message data piece that also has is very big, but does not wish again message is carried out burst, so just maximum message length is had special requirement.
Because in the communication system of complexity, the communication between each subsystem is inevitably, and different subsystems has different requirements, thereby, the communication means between the subsystem that a kind of difference that can satisfy each subsystem of needs requires.
Below simple description two kinds of existing communication mechanism being used at present address the above problem.
1. based on the communication mechanism of Ethernet.
Each veneer all has a minimum Ethernet interface, operation ICP/IP protocol stack on the veneer.At this moment, if each veneer directly goes out Ethernet interface, meaning so needs to be equipped with in addition corresponding switch outside system; And if the backboard ether bus by the PIGMG2.16 standard, then meaning needs to add in addition a veneer that serves as function of exchange in the system.Any mode no matter, communication between each subsystem all is that framework is on the ICP/IP protocol stack, this just means, if take the problem of UDP communication, and if take TCP communication to connect and the difficult problem of the HA of system to realize with regard to there being all TCP of management with regard to existing information drop-out, order to arrive.For example, a veneer is communicated by letter with master control borad by TCP, and when master control borad found that mistake switches to standby master control borad, the connection of this TCP will be cut off, being connected and need rebuliding between veneer and the master control borad, the message data of veneer and master control borad will be lost like this.In addition, still be the problem that may there be message delay in UDP based on TCP, because message all must be through two ICP/IP protocol stacks completely from a subsystem to the another one subsystem, and the performance of protocol stack becomes the difficult problem that must solve.
2. based on the communication mechanism of serial ports.
For this communication mechanism, if between each veneer, veneer is with all needing communication between the master control borad, these plates must all have the Serial Port Line of physics to be connected in twos so.If not from these lines of backboard design, and connect, will make system very chaotic from structure from panel or back plate; And if connect these Serial Port Lines from backboard, then backboard is with nonstandard.And, if adopt third-party veneer is arranged, third-party veneer is intercomed mutually with the veneer of oneself.Have, the bandwidth of serial ports will be the bottleneck of communicating by letter between each subsystem again.
In view of the specific (special) requirements of above-mentioned exploitation next generation communication system, above two kinds of communication mechanisms shortcoming is respectively arranged, all can not satisfy requirement based on the communication system of standard platform.
In addition, the VME bus of using in the existing communication mechanism, the bus standard as the eighties proposes has certain limitation, and for example its theoretical bandwidth is 80Mbps, can only arrive 40Mbps in the general practical application, and cPCI can arrive 264Mbps in theory.The producer that supports the VME bus simultaneously is not a lot, and the product that the integrated circuit board of integrated other manufacturers and quick exploitation so fast makes new advances is difficulty very.
Summary of the invention
Therefore, to the objective of the invention is the problems referred to above of existing in the existing communication mechanism in order overcoming, a kind of shared drive communication means with double engines and system to be provided, to realize the high-performance and the high reliability of shared drive.
The present invention disclose a kind of framework on the CompactPCI of standard bus the master control borad that is independent of specific transactions and the communication mechanism of peripheral single board, satisfy the highly reliable communication mechanism of high-performance that in communication equipment, requires especially, this communication mechanism is finished master control borad and the peripheral single board of data in communication equipment, and the exchange between the peripheral single board, nucleus module wherein is a shared drive engine at a high speed, in the master control borad of backup mutually, the shared drive engine that a high speed is respectively arranged, these two mutual Hot Spares of shared drive engine, an engine breaks down, the perhaps main control board occurs fault at place, what the another one engine was seamless takes over job, without any losing of data-message.
According to an aspect of the present invention, a kind of communication system is provided, comprise the main control board of operation main business module and the veneer of at least one operation subservice module, it is characterized in that: described veneer comprises and is divided into tetrameric physical memory, wherein, the message header that veneer sends a message to other plates is deposited by first, second portion is deposited the message header that veneer is accepted the message of other plates, third part is to deposit the message body that veneer sends a message to other plates, and the 4th part is deposited the message body that veneer is accepted the message of other plates; And described master control borad comprises a virtual memory, is used to shine upon the physical memory of described veneer.
According to a further aspect in the invention, a kind of service board that uses in above-mentioned communication system is provided, it is characterized in that described veneer comprises is divided into tetrameric physical memory, wherein, the message header that veneer sends a message to other plates is deposited by first, second portion is deposited the message header that veneer is accepted the message of other plates, and third part is to deposit the message body that veneer sends a message to other plates, and the 4th part is deposited the message body that veneer is accepted the message of other plates.
According to a further aspect in the invention, provide a kind of master control borad that in above-mentioned communication system, uses, it is characterized in that described master control borad comprises a virtual memory, be used for shining upon the physical memory of the service board that communication system uses.
In accordance with a further aspect of the present invention, provide a kind of shared drive communication means with double engines based on the cPCI bus, it is characterized in that comprising step: a) shared drive of mapping veneer is to the master control borad virtual memory; B) poll veneer shared drive information header zone is until obtaining an information header; C), determine Target Board according to the information header that is obtained; D) obtain the position of imformosome in shared drive, the shared drive information of Target Board; And e) starts direct memory read-write, finish message and transmit.
In addition, also provide the computer program that is recorded at least a computer-readable medium, comprise when computer uses, make computer carry out the functional descriptions material of the step of above-mentioned shared drive communication means with double engines based on the cPCI bus.
According to said method of the present invention and system, the cPCI bus of 64 66M frequencies of employing has solved the problem of bandwidth, the order that has guaranteed message based on the mechanism of shared bus arrives, and has solved the delay requirement that message is transmitted based on the communication means of internal memory direct read.
Embodiment
The object of the present invention is to provide a kind of communication system and method for high reliability of shared drive of measured cPCI bus, and this communication means is independent of any concrete business.For example: this communication means according to the present invention can be applied in the SGW, the reliable transmission of messages of high speed of each protocol layer, also can be applied in the Tandem Gateway, be distributed in the communication of the submodule on each veneer, also can be applicable in the call server, mutual, the mirror image of the call information between each service sub-system or the like.
Be that example specifies the present invention with the different service sub-system of operation on the different veneers of same machine frame below.
Here at first should be noted that, following description only is an exemplary in nature, the subsystem that the present invention is not limited only to move different business is positioned at the situation of same machine frame, and comprises that each subsystem operates on the different physical entities, the situation of for example different machine frames.
Fig. 1 illustrates the situation of the different service sub-system of operation on the different veneers of same machine frame, and wherein, all there is the exchange of data-message between mutually in each service sub-system.As shown in Figure 1, at main control board with from master control borad operation main business module, and to veneer N, move each subservice module at veneer 1.For example, on the SGW of UTStarcom, operation signalling system No.7 administration module, system HA module on master control borad, certain piece veneer 1 is gone up to veneer N and is moved the MTP2 module therein, to veneer N, move the MTP3 module at certain piece veneer 1, to veneer N, move the Sigtran module at other veneer 1.There are the exchange of administrative messag and the mutual transmission of protocol data bag between these modules.The mutual of all these modules all finished by the communication means of the shared drive based on high reliability with double engines of the present invention that below will describe in detail.
Should also be noted that the bus standard that proposes as the eighties here, the VME bus has certain limitation, and for example its theoretical bandwidth is 80Mbps, can only arrive 40Mbps in the general practical application, and cPCI can arrive 264Mbps in theory.In addition, the producer that supports the VME bus is not a lot, does not resemble the cPCI bus, has a lot of third party manufacturers that the cPCI plate of various functions is provided.Therefore, as preferred implementation, the present invention adopts the cPCI bus as the connecting bus between each plate (comprising master control borad and veneer), is convenient to the integrated circuit board of integrated other manufacturers fast like this, thereby develops the product that makes new advances fast.
According to communication system of the present invention, each veneer in above-mentioned machine frame and advocate peace and from master control borad, all distribute the physical memory of one section suitable size according to concrete demand, simultaneously the application heap on each veneer is divided into four major parts, the physical memory of specifically seeing each veneer shown in Fig. 2 and Fig. 3 distributes and advocates peace from the virtual memory mappings of master control borad.
As shown in Figure 2, on each piece veneer, all distribute one section physical memory PM-DAT and it is divided into four parts.Wherein, the message header P-M-Q that veneer sends a message to other plates deposits in first, second portion is deposited the message header M-P-Q that veneer is accepted the message of other plates, third part is to deposit the message body P-M-D (being designated as the DATA part among the figure) that veneer sends a message to other plates, and the 4th part is deposited veneer and accepted the message body M-P-D of the message of other plates (being designated as the DATA part among the figure).
Each part of above-mentioned four parts is divided into three segments again.For example: P-M-Q-H, P-M-Q-N and P-M-Q-L are arranged in first, divide other meaning to be, veneer sends a message to other plates P-M-Q-H with limit priority, veneer sends a message to other plates P-M-Q-N with normal priority, and veneer sends a message to other plates P-M-Q-L with low priority.
Simultaneously, the corresponding virtual memory VM-DAT of mapping on master control borad is corresponding respectively with the above-mentioned physical memory PM-DAT of each veneer.
In addition, as shown in Figure 3, on master control borad, also comprise overall controll block SME-CB, communication engines higher management module SMP, communication engines administration module SMM, HA administration module HAM, real-time data base-message route mark SM-MRT and unshowned hot-swappable detection module HSD.These modules are mirror images at main control board with from master control borad.
Overall situation controll block SME-CB has preserved the corresponding relation of the physical memory PM-DAT of each veneer with virtual memory VM-DAT on the master control borad.
Communication engines higher management module SMP is a module that priority is very high, the first of the shared drive of each veneer of inquiry that it does not stop according to priority policy.If communication engines higher management module SMP finds that certain piece veneer has message will send to other plates, then take out this message from the internal memory of this piece veneer immediately, and send to the purpose subsystem on the purpose plate.
Communication engines administration module SMM and each veneer have heartbeat mechanism, manage the state of each veneer.Communication engines administration module SMM also has message interface with the HA administration module HAM of system, and can stop and starting communication engines higher management module SMP.
In addition, according to communication system of the present invention, on each master control borad, all move a system-level HA administration module HAM.This HA administration module HAM is managing the health status of whole system, for whole system provides the active-standby switching service.In case mistake appears in main control board, it is notifying communication engine management module SMM immediately, and communication engines administration module SMM then stops current communication engines higher management module SMP immediately.Thereby HA administration module HAM will become current main control board from master control borad, and becoming main control board from master control borad, and notifying communication engine management module SMM.After receiving this notice, communication engines administration module SMM starts communication engines higher management module SMP immediately.Like this, second communication engines starts immediately.Because shared drive is kept on the veneer, so without any the losing of message data, two very level and smooth switchings of communication engines are come.
On master control borad, also be provided with a real-time data base-message route mark SM-MRT.According to this message route mark SM-MRT, communication engines higher management module SMP is dispatch messages better.Because the submodule on veneer is if send a message to the another one veneer, this is fine processing concerning communication engines, and it can number directly send this message to the destination according to the groove of purpose veneer.
But sometimes the submodule on the veneer is not known the groove number of purpose veneer, and perhaps target single board uses active and standby usefulness or other modes to carry out redundancy backup, and at this moment the ID that submodule can the application target module carries out addressing.Like this, communication engines higher management module SMP just can translate into module I D the purpose plate of managing business according to message route mark SM-MRT.
When the purpose plate switches, outside administration module will cooperate with communication engines higher management module SMP, finish handoff procedure.Fig. 4 illustrates the active and standby performed flow process of master control borad when switching with veneer.
At first, as shown in Figure 4,, stop the business on the main veneer at step SP41.After the master obtains oneself being about to be switched to standby notice with veneer, the master will stop inquiry with the local search task on the veneer.At this moment, the message on this service channel will be buffered in the shared drive of this veneer.
Then, at step SP42, send the message that does not distribute as yet on the described main veneer.Then, at step SP43, the message that does not receive on this main veneer is sent to standby board.
Then,, finish active and standby switching, upgrade the routing iinformation of main and standby relation with veneer at step SP44.Communication engines higher management module SMP " fetches message buffered on the old plate ", and sends to the new veneer of this business of processing.Simultaneously, message route mark SM-MRT is updated, and service message after this will directly send to new service board.In this process, if the shared drive of old plate can not be accessed (corresponding to because the uncontrolled switching that old plate software and hardware causes unusually), then skip " fetching " process, sent to the information drop-out of old plate.
Afterwards, at step SP45, enable the message pick-up on the new main veneer and send service.New main veneer begins inquiry and manages business.
Preferably, thus the interpretative function that articulates expansion in message route target visit is realized the function of load sharing.
In addition, utilize cPCI to have the characteristic of hot-swappable (Hot Swap), also support veneer hot-swappable in system according to communication system of the present invention.Fig. 5 and Fig. 6 illustrate new veneer insertion process and veneer withdrawal process respectively.
As shown in Figure 5, at step SP51, when inserting new veneer in the machine frame, be positioned at hot-swappable detection module HSD on the master control borad and detect this incident and board type is judged.When this veneer was supported the shared drive engine, at step SP52, hot-swappable detection module HSD was configured the pci interface chip of this veneer, was the mapping of the shared drive on this veneer PCI address.Then, at step SP53, hot-swappable detection module HSD is with relevant parameter notifying communication engine management module SMM.
Afterwards, at step SP54, communication engines administration module SMM starts the heartbeat detection of this veneer.After the heartbeat detection success, at step SP55, the physical memory PM-DAT that upgrades this veneer of being preserved among the overall controll block SME-CB is with the corresponding relation of virtual memory VM-DAT on the master control borad, and confirms that in step SP56 control communication engines higher management module SMP is this single board starting communication service after this single board activated.Thereby, finish the insertion process of new veneer.
For the withdrawal process of veneer, as shown in Figure 6, at step SP60, the plug spanner that detects certain veneer as hot-swappable detection module HSD is pulled following time, and hot-swappable detection module HSD is with this message informing plate driver in step SP61.And, if started the shared drive communication service on this veneer, then at the hot-swappable detection module HSD of step SP62 notifying communication engine management module SMM immediately.
Afterwards, at step SP63, communication engines administration module SMM control communication engines higher management module SMP stops the communication service of this veneer.Then, at step SP64, communication engines administration module SMM stops this plate heartbeat detection, and nullifies this plate to overall controll block SME-CB in step SP65.
After finishing aforesaid operations, notify hot-swappable detection module HSD to pull out the plate processing at step SP66 and finish, this veneer can normally be extracted maintenance in step SP67.
Below describe in detail in conjunction with the accompanying drawings according to the shared drive communication system of the high reliability with double engines based on the cPCI bus of the present invention and in this system the processing procedure of hot-swappable service board.
Describe shared drive communication means in detail below in conjunction with accompanying drawing according to the high reliability with double engines based on the cPCI bus of the present invention.
Performed basic handling flow process on master control borad when Fig. 7 is illustrated in operation according to the shared drive communication means of the high reliability with double engines based on the cPCI bus of the present invention.
As shown in Figure 7, at step SP71, master control borad shines upon the shared drive of each veneer to this plate address space.Then, at step SP72, number mapping of record veneer shared drive information and function-groove.
After finishing above-mentioned initial work, at step SP73, master control borad begins poll veneer shared drive information header zone, until obtaining an information header.
Then, in step SP74, judge whether there is purpose groove number in this information header.If in information header, there is purpose groove number, then in step SP75, this information header sent to the veneer of purpose groove number specified groove number.Afterwards, handling process advances to step SP78.
If in step SP74, judge in information header, not have purpose groove number, then this information header sent to the appointed function veneer at step SP76.Then, in step SP77 by function, main and standby relation, meet the relation shared and translate purpose groove number.
Then, in step SP78, master control borad obtains the position of imformosome in shared drive, the shared drive information of Target Board, and starts direct memory read-write according to the above-mentioned information of being obtained in step SP79.Thereby, finish the transmission of an information at step SP80.
Finish in step SP80 after the transmission of an information, handling process is returned step SP73, and master control borad continues poll veneer shared drive information header zone, to carry out the transmission of next bar information.
In addition, on veneer, provide a cover API and give concrete business module, to use according to communication means of the present invention the message that each business module uses this cover API to send a message to other plates and accept to send here from other plates easily.The enquiry module that also has a this locality on veneer, the shared drive piece of the inquiry second portion that does not stop according to predetermined priority policy: M-P-Q if there is message to arrive, then notifies concrete business module to accept message immediately.
From above specific descriptions as can be seen, shared drive communication system and method according to the high reliability with double engines based on the cPCI bus of the present invention, its M-P-Q/P-M-Q mechanism makes that when the message bang path was " veneer-veneer ", directly memory read-write became possibility.And the CPU of master control borad decision message route do not participated in message copying.Because the traffic of " veneer-veneer " accounts for more than 95% of the whole traffic in the system, thereby, can high performance realization data communication according to the shared drive communication system and the method for the high reliability with double engines based on the cPCI bus of the present invention.
In addition, owing to shared drive is present on the veneer, rather than on the master control borad, therefore, when master control borad switched, the information in the shared drive can not lost.Thereby, for guaranteeing the complete, unique of message fully and the most basic guarantee condition being provided in proper order.
In addition, SM-MRT mechanism then makes the peripheral single board on the cPCI also can realize active and standby switching when using shared drive to communicate by letter with other veneer.Hot-swappable detection and heartbeat detection mechanism then guarantee the fastest single board default that detects, thereby guarantee the message time delay in the veneer handoff procedure.The process of " fetching " has guaranteed the complete of in veneer handoff procedure message, and " with double engines " guarantees that then shared drive communication still can normally be carried out when the master control borad fault.
Thus, as can be seen,, can realize the high-performance and the high reliability of whole communication system according to the shared drive communication system and the method for the high reliability with double engines based on the cPCI bus of the present invention.
More than although the present invention has been described according to the preferred embodiment, can in the spirit and scope of present disclosure, further revise the present invention.Thereby the application covers any modification of the present invention, use or modification by its general principles.In addition, the application is intended to cover from the relevant with the present invention technically of present disclosure and the known or coml practice within the qualification of appended claims.