Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 3 is the flow chart of data backup method for transmission processing embodiment one of the present invention, and as shown in Figure 3, this method comprises:
The first passage control information transmission between the MPU fully of step 301, the main MPU that passes through host apparatus and stand-by equipment.
The embodiment of the invention can be applied to carry multiple services gateway device SR/MSCG and carry out in the process of Backup Data.Wherein comprise host apparatus and stand-by equipment, host apparatus comprises main MPU and at least one main veneer, and stand-by equipment comprises MPU and at least one standby plane fully.
Gateway device can comprise a plurality of MSCG equipment, and a plurality of MSCG negotiate a host apparatus and one or more stand-by equipment according to VRRP.Wherein, the normal users flow process of reaching the standard grade is walked in the request of reaching the standard grade of host apparatus process user, comprises authentication, real time billing, mandate etc.; Stand-by equipment will abandon user's request message.MSCG equipment includes a MPU and at least one veneer, and wherein veneer can be LPU or business board; For centralized value-added service, this service set is handled at business board, needs the user's data information of backup all to concentrate on each business board; For distributed value-added service, value-added service concentrates on LPU and handles, and needs the user's data information of backup all to concentrate on each LPU.
After the user reached the standard grade by host apparatus, this user's information will be by real-time backuping in the stand-by equipment.The information that wherein needs to back up comprises user profile and data message; User profile is the information such as action that user name, User IP, password, user need be carried out.User profile is transmitted by main MPU and the first passage that is equipped with between the MPU, data message transmits by the second channel between main veneer and the standby plane, that is to say, main MPU sends to MPU fully by first passage with user profile, main veneer sends to standby plane by second channel with data message, so that user profile and data message are backed up.In order to set up the second channel between main veneer and the standby plane, main MPU receives the single board information of each standby plane of MPU transmission fully by first passage, and main MPU sends the overall control information that is used to set up passage between main veneer and the standby plane by first passage; In the present embodiment, user profile, single board information and overall control information are referred to as control information.
Before carrying out control information transmission, at first set up first passage.The process of setting up first passage can be the relevant information of local configuration stand-by equipment in host apparatus (comprising IP address, the TCP/UDP port numbers of MPU fully), after configuration enables, main MPU sets up TCP between the MPU and is connected with being equipped with, promptly at main MPU and set up first passage between the MPU fully.After setting up first passage,, in the present embodiment, can be specially by first passage transmission by the first passage control information transmission and to be used to set up the single board information of second channel and the user profile that is used to back up by the first passage control information transmission.
Step 302, by the second channel between main veneer and standby plane transmission data backup information.
In order to alleviate the treating capacity of MPU, between main veneer and standby plane, set up second channel in advance, will need backed up data information to be transferred to standby plane by the second channel transmission then from main veneer.Wherein the embodiment of the invention does not limit the sequential relationship of step 301 and step 302.
Wherein, set up second channel process can for:
Step a, host apparatus obtain the main single board information of host apparatus, and obtain the standby plane information of stand-by equipment by first passage.
Host apparatus obtains the single board information of local each main veneer, and by main MPU be equipped with the single board information that first passage between the MPU obtains each standby plane in the stand-by equipment; Wherein the single board information of each main veneer is main single board information, and the single board information of each standby plane is standby plane information; Main single board information can comprise: the corresponding relation of each backed-up instance and at least one main veneer, main veneer IP address and port numbers, main veneer information on the throne; Standby plane information can comprise: standby plane IP address and port numbers, standby plane information on the throne.Wherein, backed-up instance can be corresponding one by one with veneer, also can be corresponding one by one with the user; When backed-up instance and veneer one by one at once, the data message on veneer will backup to same position as a backed-up instance, promptly can backup to same standby plane; When backed-up instance and user one by one at once, may be that the corresponding a plurality of backed-up instances of a veneer (have a plurality of user's data information on the veneer, the corresponding backed-up instance of each user's data information), the data message of each backed-up instance correspondence will backup to same position, promptly can backup to same standby plane.Need to prove, on host apparatus, store the corresponding relation between each backed-up instance and each the main veneer.
Step b, host apparatus set up second channel between at least one main veneer and at least one standby plane according to main single board information and standby plane information.
Host apparatus is set up the corresponding relation of each backed-up instance and at least one standby plane according to main single board information and standby plane information, to obtain being used for setting up the overall control information of second channel between main veneer and standby plane; Should overall situation control information send to each main veneer then, and should overall situation control information send to the MPU that is equipped with of stand-by equipment, should overall situation control information send to each standby plane so that be equipped with MPU by first passage.Wherein, this overall situation control information can comprise: the corresponding relation of the corresponding relation of each backed-up instance and at least one main veneer, each backed-up instance and at least one standby plane, main veneer IP address and port numbers, standby plane IP address and port numbers.When a certain main veneer needs data message on will this main veneer to backup to stand-by equipment, main veneer is at first determined the backed-up instance of this data message correspondence, then according to the corresponding relation of this backed-up instance and standby plane, can get access to the IP address and the port numbers of the standby plane corresponding with this backed-up instance, thereby can set up being connected between this main veneer and this standby plane, promptly set up second channel.
Wherein, backed-up instance mainly is clearly to remove which information back-up to which veneer of stand-by equipment.
The embodiment of the invention, by main MPU be equipped with first passage control information transmission between the MPU, and the data message by the second channel transmission backup between main veneer and the standby plane, avoided thus between main MPU and each the main veneer and be equipped with data information transfer between MPU and each standby plane, made to send the very big data message of data volume by second channel; And because MPU processing control information, and the control information data amount is little, thus the disposal ability of MPU is taken little, thereby can not influence the processing of MPU to key business, improve the transfer capability of gateway device.
Fig. 4 is the flow chart of data backup method for transmission processing embodiment two of the present invention, and as shown in Figure 4, on the basis of method embodiment one, this method comprises:
Step 401, main MPU be according to the attribute information of stand-by equipment, and is equipped with MPU and is connected, to set up first passage.
In the present embodiment, first passage can be parent channel, and second channel can be subchannel.
At first, a plurality of MSCG equipment negotiate host apparatus and at least one stand-by equipment by VRRP, and present embodiment is that example describes with a stand-by equipment, but the embodiment of the invention does not limit the quantity of stand-by equipment, and stand-by equipment can have a plurality of.The relevant information of local configuration stand-by equipment in host apparatus then, this relevant information can comprise: be equipped with the IP address, TCP/UDP port numbers of MPU etc.After above-mentioned configuration enabled, main MPU set up TCP between the MPU and is connected with being equipped with, promptly main MPU and set up parent channel between the MPU fully.
Step 402, send control information by main MPU and the parent channel that is equipped with between the MPU.
Come mutual control information by parent channel between host apparatus and the stand-by equipment, this control information can comprise the single board information of standby plane, overall control information and user profile; Wherein about backed-up instance referring to the specific descriptions among the method embodiment one, do not repeat them here.
Main MPU obtains main single board information; Be equipped with MPU and obtain standby plane information, and the standby plane information that gets access to is sent to main MPU by parent channel.
On parent channel, main MPU and the connection status of coming the maintained parent passage by Hello mechanism between the MPU fully.
Step 403, main MPU set up the corresponding relation of each backed-up instance and at least one standby plane according to main single board information and standby plane information, to obtain being used for setting up the overall control information of subchannel between at least one main veneer and at least one standby plane.Main single board information comprises: the corresponding relation of each backed-up instance and at least one main veneer, main veneer IP address and port numbers, main veneer information on the throne.Standby plane information comprises: standby plane IP address and port numbers, standby plane information on the throne.Overall situation control information comprises: the corresponding relation of the corresponding relation of each backed-up instance and at least one main veneer, each backed-up instance and at least one standby plane, main veneer IP address and port numbers, standby plane IP address and port numbers.
Main MPU obtains the corresponding relation between backed-up instance and main veneer and the standby plane according to the main veneer that gets access to and the single board information of standby plane, obtains being used to set up the overall control information of subchannel thus.
Step 404, main MPU send at least one main veneer with overall control information, so that each main veneer is set up subchannel between the standby plane with corresponding same backed-up instance according to overall control information; And main MPU sends to MPU fully with overall control information by the main channel, so that be equipped with MPU overall control information is sent at least one standby plane.
Step 405, be equipped with MPU and receive the overall control information that main MPU sends from the main channel, should overall situation control information send to each standby plane then.
Step 406, when backed-up instance need back up, main veneer is according to the identification information of this backed-up instance, select with the corresponding standby plane of this backed-up instance carry out related, to set up the subchannel between main veneer and the standby plane.
Set up subchannel detailed process can for:
After main MPU sends to each main veneer with overall control information, when on the main veneer backed up data of needs information being arranged, this main veneer is according to the backed-up instance of this data message correspondence, in overall control information, find the standby plane corresponding with this backed-up instance, the i.e. data of this backed-up instance standby plane to be backed up, be specially: main veneer finds and the corresponding standby plane of the sign of this backed-up instance according to the sign of backed-up instance;
The TCP/UDP port numbers of the IP address of the standby plane that main veneer basis finds, the passage that is used to back up is connected with this standby plane, has set up subchannel thus.Wherein, when main veneer is connected with standby plane, can sets up TCP and connect, also can set up UDP and connect; For example: when higher, can set up TCP and connect, when not being very high, can setting up UDP and connect as if reliability requirement to the Backup Data transmission as if the reliability requirement that Backup Data is transmitted; Be connected with TCP and compare, UDP connects the performance that can improve data passes.
Step 407, the transmission of the subchannel by above-mentioned foundation data backup information.
But all control informations, for example: user profile, single board information and overall control information etc. are still backed up by parent channel.
Further, this method can also comprise:
Step 408, if detect main single board information or standby plane information changes, then host apparatus rebulids subchannel according to main single board information and standby plane information after changing.
Main MPU and be equipped with the real-time or regular single board information that detects main veneer and standby plane respectively of MPU, if detecting the single board information of main veneer or standby plane changes, for example: the IP address or the port numbers of the increase/deletion of backed-up instance, the insertion of veneer/extract, back up join dependency change etc., then at first can upgrade local single board information, single board information after upgrading by the parent channel transmission then, situation of change according to single board information generates new overall control information again, and adds, deletes or the change subchannel.
In addition, a MSCG equipment can comprise a plurality of veneers, these a plurality of veneers can be further divided into main and standby boards, to realize a backup in the MSCG equipment.
Need to prove that the veneer in the present embodiment can be a business board, also can be LPU.For centralized value-added service, this business all concentrates on business board and handles, and needs the user's data information of backup all to concentrate on each business board, and in centralized value-added service, the veneer in the present embodiment can be business board thus.For distributed value-added service, value-added service all concentrates on LPU and handles, and needs the user's data information of backup all to concentrate on each LPU, and in distributed value-added service, the veneer in the present embodiment can be LPU thus.
In the present embodiment owing to used the subchannel between the veneer to come the Data transmission backup information, and subchannel ability and complete machine between veneer are complementary, can pass through the bigger data of this subchannel transmitted data amount thus, and the problem of transferring large number of data Time Bandwidth deficiency between existing MPU and the veneer can not occur.And, in the present embodiment control information is transmitted by different passages with the data message branch, and data information transmission is not high to reliability requirement, can adopt TCP to connect to the transmission of control information thus, can adopt UDP to connect to data information transmission, and adopt UDP to connect the performance that can improve data information transfer.
The embodiment of the invention, by main MPU be equipped with parent channel control information transmission between the MPU, and the data message by the subchannel transmission backup between main veneer and the standby plane, avoided thus between main MPU and each the main veneer and be equipped with data information transfer between MPU and each standby plane, made to send the very big data message of data volume by subchannel; And because MPU processing control information, and the control information data amount is little, thus the disposal ability of MPU is taken little, thereby can not influence the processing of MPU to key business, improve the transfer capability of gateway device.
Fig. 5 is the schematic diagram of data backup transmission processing device embodiment one of the present invention, and as shown in Figure 5, this device comprises: a MPU51 and at least one first veneer 53.
Wherein the data backup transmission processing device that provides of present embodiment is equivalent to host apparatus or the stand-by equipment among the said method embodiment.Need to prove that the structure of host apparatus and stand-by equipment can be identical, after distinguishing host apparatus and stand-by equipment through negotiation, host apparatus and stand-by equipment are just carried out primary and backup function respectively; After host apparatus goes wrong, determine a current stand-by equipment as host apparatus through consultation meeting, promptly host apparatus and stand-by equipment can be changed mutually.
The one MPU51 comprises: first processing unit 511, second processing unit 513, first acquiring unit 515 and set up unit 517.
First processing unit 511 is used for by the first passage control information transmission between a MPU and the 2nd MPU.
Second processing unit 513 is used for sending data backup information by the second channel between at least one first veneer and at least one second veneer.
First acquiring unit 515 is used for when the data backup transmission processing device is host apparatus, obtains first single board information and obtains second single board information by first passage.
Setting up unit 517 is used for first single board information obtained according to first acquiring unit 515 and second single board information and sets up second channel between at least one first veneer and at least one second veneer.
The workflow of each module and unit and operation principle do not repeat them here referring to the description among above-mentioned each method embodiment in the present embodiment.
The embodiment of the invention, host apparatus is by main MPU and be equipped with first passage control information transmission between the MPU, and the data message by the second channel transmission backup between main veneer and the standby plane, avoided thus between main MPU and each the main veneer and be equipped with data information transfer between MPU and each standby plane, made to send the very big data message of data volume by second channel; And because MPU processing control information, and the control information data amount is little, thus the disposal ability of MPU is taken little, thereby can not influence the processing of MPU to key business, improve the transfer capability of gateway device.
Fig. 6 is the schematic diagram of data backup transmission processing device embodiment two of the present invention, and as shown in Figure 6, on the basis of device embodiment one, a MPU51 also comprises: second acquisition unit 519, receiving element 522, transmitting element 524, the 3rd processing unit 526; Setting up unit 517 comprises: first subelement 5171, second subelement 5173, the 3rd subelement 5175.
Second acquisition unit 519 is used for obtaining first single board information when the data backup transmission processing device is stand-by equipment, and first single board information is sent to the 2nd MPU by first passage.Receiving element 522 is used for receiving first single board information of the 2nd MPU according to second single board information and second acquisition unit 519 transmissions, the overall control information that is used for setting up second channel between second veneer and first veneer that obtains by first passage.Transmitting element 524 is used for the overall control information that receiving element 522 receives is sent to first veneer.
The 3rd processing unit 526 is used for if detect first single board information or second single board information changes, and then triggers to set up unit 517 and rebulid second channel according to first single board information and second single board information after changing.
First subelement 5171 is used for according to first single board information and second single board information, set up the corresponding relation of each backed-up instance and at least one second veneer, with the overall control information that obtains being used between at least one first veneer and at least one second veneer, setting up second channel.First single board information comprises: the corresponding relation of each backed-up instance and at least one first veneer, the first veneer IP address and port numbers, first veneer information on the throne.Second single board information comprises: the second veneer IP address and port numbers, second veneer information on the throne.Overall situation control information comprises: the corresponding relation of the corresponding relation of each backed-up instance and at least one first veneer, each backed-up instance and at least one second veneer, the first veneer IP address and port numbers, second veneer IP address and the port numbers.
Second subelement 5173 is used for overall control information is sent at least one first veneer, so that each first veneer is set up second channel between second veneer with corresponding same backed-up instance according to overall control information.
The 3rd subelement 5175 is used for overall control information is sent to the 2nd MPU by first passage, so that the 2nd MPU sends at least one second veneer with overall control information.
The data backup transmission processing device that provides when present embodiment is during as host apparatus, first processing unit 511 among the MPU51, second processing unit 513, first acquiring unit 515, sets up unit 517 and the 3rd processing unit 526 and cooperatively interacts and carry out work; The one MPU is equivalent to aforesaid main MPU, and first veneer is equivalent to aforesaid main veneer, and the 2nd MPU is equivalent to the aforesaid MPU of being equipped with, and second veneer is equivalent to aforesaid standby plane.The data backup transmission processing device that provides when present embodiment is during as stand-by equipment, and first processing unit 511, second processing unit 513, second acquisition unit 519, receiving element 522 and transmitting element 524 among the MPU51 cooperatively interact and carry out work; The one MPU is equivalent to the aforesaid MPU of being equipped with, and first veneer is equivalent to aforesaid standby plane, and the 2nd MPU is equivalent to aforesaid main MPU, and second veneer is equivalent to aforesaid main veneer.
The workflow of each module and unit and operation principle do not repeat them here referring to the description among above-mentioned each method embodiment in the present embodiment.
The embodiment of the invention, by main MPU be equipped with first passage control information transmission between the MPU, and the data message by the second channel transmission backup between main veneer and the standby plane, avoided thus between main MPU and each the main veneer and be equipped with data information transfer between MPU and each standby plane, made to send the very big data message of data volume by second channel; And because MPU processing control information, and the control information data amount is little, thus the disposal ability of MPU is taken little, thereby can not influence the processing of MPU to key business, improve the transfer capability of gateway device.
The embodiment of the invention also provides a kind of data backup transmission process system, and the arbitrary equipment that provides at least two the various embodiments described above is provided in this system.One of them is as host apparatus, and another is as stand-by equipment.
The workflow of each module and unit and operation principle do not repeat them here referring to the description among above-mentioned each method embodiment in the present embodiment.
The embodiment of the invention, by main MPU be equipped with first passage control information transmission between the MPU, and the data message by the second channel transmission backup between main veneer and the standby plane, avoided thus between main MPU and each the main veneer and be equipped with data information transfer between MPU and each standby plane, made to receive the very big data message of data volume by second channel; And because MPU processing control information, and the control information data amount is little, thus the disposal ability of MPU is taken little, thereby can not influence the processing of MPU to key business, improve the transfer capability of gateway device.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (ROM) or stores memory body (RAM) etc. at random.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.