Summary of the invention
Technical problem to be solved by this invention is, a kind of switching system is provided, this system adopts empty, real address identification technology, can be with lower cost, and realization connects the various device of platform information switch and load balancing, redundancy backup and the consistency between the application handled.
Another technical problem to be solved by this invention is, providing a kind of carries out equipment and uses the method that identifies respectively switching system, utilize this identification method, can be with lower cost, solve the problems referred to above that prior art exists, realize that load balancing, redundancy and the consistency of the various device of connection platform information switch handled.
First technical scheme of the present invention is to realize like this, construct and a kind ofly comprise switch and be connected and undertaken the switching system of a plurality of switching equipment of information exchange by this switch with this switch, it is characterized in that: each equipment that is connected with described switch all has a unique real address, each application in the described switching system all has a virtual address, comprises an exchange record sheet that comprises real address, virtual address, the whether normal state of virtual address busy condition and real address that keeps all to participate in exchange in described switch.
In according to switching system provided by the invention, also comprise with described each to empty, the corresponding speed buffering storage area of depositing exchange message of real address combination temporarily, also comprise virtual address busy-idle condition decision maker, be used for determining the not busy busy condition of this virtual address according to data quantity stored size or message number between the corresponding void of described speed buffering storage area, the real address, and it is kept in the described exchange record sheet, when storage data volume or message number surpass predetermined value, be defined as busy condition, otherwise be defined as idle condition.
In according to switching system provided by the invention, be applied in when moving on the different equipment when same, comprise a plurality of exchange records that comprise same virtual address, different real addresses in the described exchange record sheet; When a plurality of different application of same equipment operation, described exchange record sheet comprises a plurality of exchange records that comprise same real address, different virtual addresses.
Another technical scheme of the present invention is to realize like this, construct and a kind ofly comprise switch and be connected with this switch and carry out identification method in the switching system of a plurality of switching equipment of information exchange by this switch at one, may further comprise the steps:, a virtual address is set for the application on each switching equipment for each switching equipment that is connected with described switch is provided with a unique real address; And in described switch, being provided with and preserving the exchange record sheet, each record of this exchange record sheet comprises the corresponding virtual address that exchanges application in real address and institute of equipment, and the whether normal state of the busy condition of described virtual address and described real address.
In according to identification method provided by the invention, one when being applied on a plurality of equipment, be expressed as in described exchange record sheet and comprise a plurality of exchange records that contain same virtual address, different real addresses, an equipment has a plurality of being applied in to be expressed as a plurality of exchange records that comprise same real address, different virtual addresses in the described exchange record sheet.
In according to identification method provided by the invention, may further comprise the steps: during the exchange of the application of the operation application of a virtual address a and another one virtual address b, switch checks whether there is the exchange record that comprises virtual address b in the described exchange record sheet, if exist, then according to the real address and the virtual address busy condition thereof that from this exchange record sheet, obtain virtual address b correspondence, the record of real address normal condition, select wherein real address to be in normal and the virtual address is in idle virtual address b and exchanges, give the equipment at the application place of virtual address b with the information exchange of the application of virtual address a, the application of virtual address b is from the equipment receiving information at its place and finish processing; If in the exchange record sheet, do not have the exchange record that comprises virtual address b, then return virtual address a, this exchange can not be finished.
In according to identification method provided by the invention, may further comprise the steps: when virtual address a and virtual address b exchange, switch, forms the mapping relations of void in the expression exchange, real address and is stored in state information in the described exchange record sheet when virtual address b sends solicited message in virtual address a.
In according to method provided by the invention,, can select then that wherein any one exchanges if having two or more real addresses to be in normal and the virtual address is in idle virtual address b.
In according to identification method provided by the invention, described each empty, real address combination are had a speed buffering storage area of temporarily depositing exchange message; The not busy busy condition of virtual address is to determine according to data volume size in the described speed buffering storage area or message number in the described exchange record sheet, when storage data volume or message number surpass predetermined value, be defined as busy condition, otherwise be defined as idle condition.
In according to identification method provided by the invention, further comprising the steps of: when carrying out information exchange between the application that two virtual addresses are represented, after switch was received the response message that includes described mapping relations, then this switch exchanged according to the real address of determining in the described mapping relations.
In according to identification method provided by the invention, further comprising the steps of: as to detect certain real address corresponding device and occur when unusual, in the exchange record sheet, this real address state is made as unusually, find when beginning to exchange that the real address is unusual, according to pairing virtual address in the record that comprises this real address in the described exchange record sheet, the information translation of exchange is comprised the represented switching equipment in the real address that is in normal condition of this virtual address to other; The real address of finding to be in exchange process in the exchange occurs then this exchange message being turned to another real address corresponding with the virtual address unusually.
Implement switching system provided by the invention and actual situation address designation method thereof, can realize and effectively support message switching equipment to external connection apparatus or the load balancing between using; Can effectively improve the operating efficiency of message switching equipment external connection apparatus or application load; Can the support information switch be handled by the redundancy backup of external connection apparatus or application; Can realize the equipment that is connected with message switching equipment or use redundancy backup; The consistency of information exchange under guarantee information switch processes load balancing and the redundant environment.
Embodiment
As shown in Figure 1, in switching system, with message switching equipment 1 is that the center is connected with a plurality of switching equipment 2, each switching equipment 2 can carry out information exchange by switch 1, according to system and method for the present invention, each equipment 2 to link information switch 1 distributes a unique real address for example A, B, C, D and E respectively, and for example a1, a2, a3, c label with a virtual address respectively to each application in the switching system.Connection solid line among the figure is represented being connected of switching equipment and switch, and dotted line is represented real address equipment and the virtual address corresponding relation between using.When a real address is distributed in a virtual address, then expression applications (switching task) appointment that this virtual address is represented is finished by a switching equipment of real address correspondence, when several virtual addresses being distributed to a real address, mean that then the several switching tasks that the virtual address is represented specify an equipment of being represented by this real address to finish.In other words, between virtual address and the real address can be the mapping relations of many-one, one-to-many and multi-to-multi.At any time, virtual address can corresponding a plurality of real addresses, and real address can corresponding a plurality of virtual addresses, like this, have just formed the mapping relations of corresponding a plurality of virtual addresses, a plurality of real addresses in this system.As shown in Figure 1, the real address is to have three to use a1, a2, a3 on the switching equipment of A, and exchange use a1 corresponding simultaneously switching equipment A and switching equipment D, use a2, a3 except that being connected in the represented switching equipment of real address A, also be connected in the represented switching equipment of real address C, use c and also finish by real address B and the represented switching equipment of D simultaneously.Can understand the situation of equipment and application in order to make switch, be provided with an exchange record sheet at switch, this table stores the real address of all switching equipment that are connected in message switching equipment 1 and corresponding with it passes through the virtual address that message switching equipment 1 carries out the application of information exchange, and corresponding relation and the busy-idle condition of virtual address and the normal/abnormal state of real address between real address and the virtual address have been shown, as shown in the table, following table has been listed the example of the exchange record sheet that concerns between real address among Fig. 1 and virtual address.
The real address | The virtual address | The virtual address state | The real address state |
A | a1 | Idle | Normally |
A | a2 | Busy | Normally |
A | a3 | Idle | Normally |
B | c | Idle | Normally |
C | a2 | Idle | Normally |
C | a3 | Busy | Normally |
D | a1 | Idle | Normally |
D | c | Busy | Normally |
E | a3 | - | Unusually |
Particularly, each in the above-mentioned table comprises whether real address, virtual address and virtual address be busy/idle state and real address normal state whether.Switch when operation, can institute move the virtual address of using and the real address of moving the equipment of this application according to the configuration of switching system and be added to together and exchange in the record sheet.More particularly, when the exchange of the application of the application of a virtual address a1 of switch operation and another one virtual address c, switch is at first checked the exchange record of virtual address c in the exchange record sheet, message switching equipment is checked through record two that comprise virtual address c in the table, respectively to there being the real address that B and D are arranged, and B pairing virtual address c in real address is in idle condition, and D pairing virtual address c in real address is in busy state, therefore, the application that message switching equipment will be represented virtual address a1 according to this state exchanges by the represented application of the represented switching equipment of real address B and virtual address c, and does not carry out exchange (because it is busy) between the represented application of virtual address a1 and c by the represented switching equipment of real address D.Certainly, pairing virtual address c all is in idle condition if message switching equipment is checked through real address B, D, then the exchange between the represented application of virtual address a1, c both can exchange by the represented switching equipment of real address B, also can exchange by the represented switching equipment of real address D.For can being detected, switch exchanges unusually and makes alignment processing; also keep a normal or unusual operating status record of each real address corresponding device of record; occur when unusual when detecting certain real address corresponding device; to the information translation of exchange be comprised the represented switching equipment in the real address that is in normal condition of this virtual address to other according to the operating status record in the described exchange record sheet.In the time of will carrying out information exchange with the represented application of virtual address a3 such as the represented application of virtual address a2, message switching equipment is checked through the pairing virtual address a3 of real address A and is in idle condition, C pairing virtual address a3 in real address is in busy state, and the real address E that virtual address a3 should be arranged is in abnormality, therefore, message switching equipment will be arranged the represented application of the represented application of virtual address a2 and virtual address a3 is carried out information exchange by real address A.
The speed buffering bunkerage that has the exchange message deposited in the message switching equipment, this speed buffering bunkerage is divided into each speed buffering storage area that group is empty, the real address indicates, be that each has a speed buffering storage area to empty, real address combination, be equivalent to each constituting the slow storage area of a high speed between void, the real address; The idle busy state of the application that the virtual address is represented is then judged according to data volume size in the speed buffering storage area or message number.When exchanging, decision maker in the message switching equipment is then judged data quantity stored size or message number in the high-speed buffer of each void, real address correspondence, therefrom select the high-speed buffer that data volume is few or the message number is less, promptly comparatively idle virtual address, the information that will exchange is put into this idle speed buffering storage area, and reset state and revise the exchange record sheet according to the situation of speed buffering storage area, from this speed buffering storage area, information exchange is given the application of the virtual address correspondence on this real address then.The idle busy state of virtual address can be provided with a boundary to the amount of information size of its corresponding high-speed buffer or message number to be determined, is busy on this boundary, then is idle condition under boundary.As previously mentioned when the application of the application of virtual address a1 and virtual address c exchanges, message switching equipment finds the corresponding of virtual address c and the corresponding of real address B and virtual address c and real address D, and judge the amount of information or the message number of the cache memory section between these two correspondences, amount of information in cache memory section corresponding between virtual address c and the real address B is less or the message number is less, and the big or message number of the amount of information in the corresponding cache memory section is more for a long time between virtual address c and the real address D, message switching equipment will be put into corresponding cache memory section between virtual address c and the real address B to the information that will exchange between virtual address a1 and the virtual address c, information be sent to the application of the virtual address c correspondence on the B of real address then from this speed buffering storage area.By this actual situation address designation, thereby realized load balancing, make that message switching equipment can be according to virtual address and application (equipment) state (busy not busy), from a plurality of real addresses of virtual address correspondence, select suitable device to exchange, reach the equipment of link information switch or the load balancing of application.
When carrying out information exchange between the application that two virtual addresses are represented, message switching equipment is received the response message that comprises real address and virtual address, and then this message switching equipment exchanges according to the real address, the consistency of guarantee information.Working as the application of virtual address a1 and the application of virtual address c as the aforementioned exchanges, the information that message switching equipment will exchange virtual address a1 is put into corresponding cache memory section between virtual address c and the real address B, from this speed buffering storage area, information is sent to the application of the virtual address c correspondence on the B of real address then, in this process, message switching equipment also adds the pairing real address of virtual address a1 (supposing that this pairing switching equipment of virtual address a1 that sends information exchange requests is real address A), and formation will be carried out the void between the application of information exchange, real mapping relations (a1, A; C, B).When c represented application in virtual address during to the represented application responds of virtual address a1, switch is according to mapping relations (a1, A; C, B) in virtual address a1 and real address A information exactly response message is sent to the virtual address a1 of the exchange request of sending, and can not send this response message to real address D pairing virtual address a1, thereby guarantee the consistency of information.
When message switching equipment by checking the state of the corresponding switching equipment in real address, whether promptly normal or unusual, when finding certain real address unit exception, it is unusual that correspondence table is set, and promptly in the exchange record sheet this real address state is made as unusually.When exchanging, switch finds out several real addresses corresponding with the virtual address from the exchange record sheet, and judges whether the pairing switching equipment in these real addresses all is in normal condition, selects wherein normal real address to carry out information exchange; If the real address that switch is found to be in the exchange in exchange process occurs then this exchange message being turned to another real address corresponding with the virtual address unusually.So just realized redundancy backup, be that message switching equipment can be according to virtual address and application (equipment) state (normal and unusual), from a plurality of real addresses of virtual address correspondence, select normal equipment to exchange, work as machine if guarantee to have application or equipment, information will exchange in another identical application, thereby realize the equipment of link information switch or the redundancy backup of application.
In the embodiment of system according to the invention shown in Fig. 2 and method, wherein the cellphone subscriber can realize speculation in stocks and banking by mobile phone, be that the switching equipment mobile phone has two application: mobile banking and mobile stock market, handset allocation has real address A, B, and it uses mobile banking and mobile stock market then is assigned virtual address a1 and a2; There are China Merchants Bank, industrial and commercial bank and security in service provider, and they are connected in message switching equipment by access device, and then its access device is assigned real address C, D and E, and China Merchants Bank, industrial and commercial bank and security are assigned virtual address b1, b2 and s1 respectively.Shown in the exchange record sheet that the following tabular of the corresponding relation of above-mentioned real address and virtual address goes out.
The real address | The virtual address | The virtual address state | The real address state |
A | a1 | Idle | Normally |
A | a2 | Idle | Normally |
A | s1 | Busy | Normally |
B | a1 | Idle | Normally |
B | a2 | Idle | Normally |
C | b1 | Idle | Normally |
C | b2 | Busy | Normally |
D | s1 | - | Unusually |
E | b1 | Busy | Normally |
E | s1 | Idle | Normally |
Suppose that the mobile phone A user wants that being actually mobile stock market a2 and security s1 will carry out information exchange by switch with the mobile phone speculation in stocks.When use mobile stock market a2 by the represented mobile phone of real address A after message switching equipment sends exchange instruction, message switching equipment is then checked the situation of the access device of security s1 correspondence in the exchange record sheet, there is C the real address that can be checked through virtual address s1 correspondence, D and E, in these three real addresses wherein real address D be in abnormal conditions, the state that then is in the virtual address s1 of normal real address C correspondence is in busy state, the virtual address s1 that only is in normal real address E correspondence is in the free time, so the speculation in stocks information that message switching equipment sends mobile phone A sends virtual address s1 to by real address E, and form mapping relations (a2 simultaneously, A; S1, E), when s1 represented security in virtual address responded this speculation in stocks request, switch was according to mapping relations (a2, A; S1, E) in virtual address a2 and real address A information exactly response message is sent to mobile stock market a2 on the mobile phone A, and can not send this response message to mobile phone B pairing mobile stock market a2, can not be sent to the pairing a1 of mobile banking of mobile phone A to response message yet.So, in the process of exchange of this speculation in stocks, guaranteed load balancing, redundancy backup simultaneously and guaranteed the consistency of information.
Utilize the identification method of switching system of the present invention, can improve and balanced equipment or the application load that is connected with message switching equipment; Equipment or application that the increase of guarantee information exchanger capacity can not cause connecting switch become bottleneck; The equipment that is connected with switch or the redundancy backup method of application are provided, also satisfy the redundancy backup demand of telecommunications simultaneously, satisfy growing amount of information exchange demand, make message-switching technique can adapt to ever-increasing demand.