CN1756241A - Method for realizing message-switching in distributed environment and its device - Google Patents

Method for realizing message-switching in distributed environment and its device Download PDF

Info

Publication number
CN1756241A
CN1756241A CN 200410079337 CN200410079337A CN1756241A CN 1756241 A CN1756241 A CN 1756241A CN 200410079337 CN200410079337 CN 200410079337 CN 200410079337 A CN200410079337 A CN 200410079337A CN 1756241 A CN1756241 A CN 1756241A
Authority
CN
China
Prior art keywords
message
application system
domain name
control module
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200410079337
Other languages
Chinese (zh)
Other versions
CN100440872C (en
Inventor
冯永华
何兵
苏梦
邓宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB2004100793372A priority Critical patent/CN100440872C/en
Publication of CN1756241A publication Critical patent/CN1756241A/en
Application granted granted Critical
Publication of CN100440872C publication Critical patent/CN100440872C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for realizing the information interchange in the distributed condition comprising following steps: the information control modular detects the register request generated or retransmitted by the node adapting modular to transmit to the realm name server to check the validity of said register request; if it is validity, storing the relative information of realm name of said application system and building the long connection with said node adapting modular; the information control modular detects the service process information transmitted from the node adapting modular to attain the information route of said service and transmit the information to the node adapting modular relative to the first target application system of said route; said node adapting modular judges the completion of processing service of said application system to feed back response information, and the information control modular rewrites and transmit it to next target application system according to the received response information until the end of information route. The invention can apply the stable and fast demand of different application system integrated platform and realize the communication between different application systems.

Description

The implementation method of message and device thereof in a kind of distributed environment
Technical field
The present invention relates to the foundation structure of Message Processing, relate in particular to message switching apparatus and switching method in a kind of distributed environment.
Background technology
Message generally is that application system inside is sent to the another one assembly from an assembly, perhaps be sent to the information unit of Another application system from an application system, message is the means of communication between component software or the application system, and message is the central topic of application system integration.
Message must be the height architectureization, like this could analyzed and understanding.This architecture use abstractdesription the structured documents of message element between service and solution development personnel, communicate.The key message that comprises in the message structure has: whether masurium, data type (for example, integer), value constraint (for example, the integer of expression percentage requires between 0 to 100) and element are essential etc.
The message form comprises incident, monologue, request response, dialogue, session.Our the most familiar message form is the request response: the sender opens a connection to receiving port, sends message, receives affirmation then.Real process is usually more complicated, and the transmission of message will be passed through the intermediate layer usually, for example, and high-speed cache, filter fire-proof wall and voucher management system.These intermediate layers can be described as will intercept message, to carry out section processes or complete process.The intermediate layer may produce unusually, and for example, the mandate intermediate layer of denied access request causes returning to mistake of sender.
Intercepting is the basis of message, and sender of the message and message acceptance person must intercept message, and just because of intercepting, message is able to the path route along complexity, so that dedicated system can participate in Message Processing.Intercepting a more common application is, uses different message formats to ask conversion between application system.This pattern both can be used for providing standard compliant interface in the front of the system that uses proprietary protocol, can be used for changing the message of the service agreement of observing out-of-date version again.
As mentioned above, message switching apparatus is used to finish the search message route, message transmits and processing, and under distributed environment, the application system major part all is foreign peoples's a system in addition, comprises that message structure all is the foreign peoples, also needs to carry out the conversion of message structure.But these three links all are to seem the very complicated link of simple reality.The definition of message structure and the application system in the distributed environment itself is closely related, and the selection of message route relates to basic communication structure, and Message Processing is owing to the restriction of distributed environment becomes difficult unusually.
As shown in Figure 1, what have the message dedicated system now generally is network structure, the system of each manufacturer is independent separately, and also there is more system independently mutually each manufacturer inside, if integrate, generally independently increase in the system and the interface of another one autonomous system, as the 110-114 interface among the figure at each, the 114-billing interface, 1000-97 interface or the like.
This dedicated system can participate in Message Processing, but has following shortcoming: because the unreliability of Network Transmission (the especially transmission between heterogeneous network) is made mistakes in the message exchange procedure easily, cause a plurality of replying or no response of message; Secondly, because the selection mistake of route control strategy causes message to arrive each message recipient according to Business Processing sequencing (operation flow), or message recipient receives the message of incorrect order, or the transfer path confusion of message.
Therefore be necessary to provide new message switching method and the device that uses in a kind of distributed environment, can eliminate preceding two shortcomings, the while is simple in structure, does not influence the speed of message.
Summary of the invention
The technical problem to be solved in the present invention provides the implementation method of message in a kind of distributed environment, can realize the message between application system simply, reliably, fast.
In order to solve the problems of the technologies described above, the invention provides the implementation method of message in a kind of distributed environment, comprise the steps:
(a) after the message control module listens to the application system register requirement of initiation of node adaptation module or forwarding, be transmitted to name server;
(b) legitimacy of this register requirement of domain name server authentication, if it is legal, preservation comprises related informations such as the domain name (domain name of application system request or DNS distribute to the domain name of application system) of this application system and IP address, License Status, and return the response message that succeeds in registration, otherwise refusal registration;
(c) after described message control module was received the response message that succeeds in registration, the long of foundation and this node adaptation module was connected, in order to reciprocal exchange of business processing messages;
(d) after described message control module listens to the Business Processing message of node adaptation module forwarding, obtain this professional message route, transmit the node adaptation module that message is given first target application system correspondence in the route;
(e) this node adaptation module is given corresponding application system with the forwards that receives, judge that this application system Business Processing finishes after, transmit response message and give described message control module;
(f) described message control module judges whether that according to the message route needs are to next target application system forwards, as needs, rewrite and transmit Business Processing message to corresponding node adaptation module according to this response message of receiving, return step (e), as not needing, then finish.
Further, above-mentioned implementation method also can have following characteristics: further comprising the steps of:
Described message control module monitor and the node adaptation module between long connect disconnect after, go out or from preservation information, find out the application system domain name of this connection by domain name server reverse resolution;
The long of node adaptation module that described message control module attempts recovering corresponding with this application system connects, if connection is unsuccessful, carries out next step, if successful connection finishes;
Described message control module notice domain name server with the status modifier of this application system for disapproving.
Further, above-mentioned implementation method also can have following characteristics: the related information of preserving in the domain name server in the described step (b) also comprises one and multinomial information in listening port number, process number, thread number and the hour of log-on except that domain name, IP address and the License Status of application system.
Further, above-mentioned implementation method also can have following characteristics: message control module described in the described step (d) by domain name server authentication sender of the message's License Status, if License Status obtains route again, otherwise is returned error message earlier; And, after obtaining route, whether all be License Status also by all target application systems in the domain name server authentication route, if just carry out forwards, otherwise return error message.
Further, above-mentioned implementation method also can have following characteristics: if the target application system is arranged for disapproving state in the route, initiating earlier node adaptation module long corresponding with described target application system connects, if connect unsuccessful, return error message again, successful connection then continuation message is transmitted.
Further, above-mentioned implementation method also can have following characteristics: described message route is the chained list of the domain name of some target application system, the message control module connects chained list according to the length that this domain name chained list can directly navigate between the node adaptation module, thereby determines a complete message transfer path.
Further, above-mentioned implementation method also can have following characteristics: described node adaptation module when transmitting message, if between the application system or the message format between message control module and the application system not simultaneously, need carry out the conversion of message format.
Further, above-mentioned implementation method also can have following characteristics: self-defined a kind of standard message structure of described message control module or selection existing standard message structure are as its internal default structure.
Further, above-mentioned implementation method also can have following characteristics: described message control module sends before the message request domain name server parses domain name earlier, and the related information of the process number that comprises application system address, node adaptation module that obtains according to parsing finds corresponding long the connection then; Perhaps ask name server that all the application system domain names in the route are resolved, obtain the corresponding long chained list that connects.
Another technical problem that the present invention will solve provides the message switching apparatus in a kind of distributed environment, can realize the message between application system simply, reliably, fast.
In order to solve the problems of the technologies described above, the invention provides the message switching apparatus in a kind of distributed environment, it is characterized in that, comprise message control module, name server, message routing module control and a plurality of node adaptation module, application system of the corresponding connection of each node adaptation module, domain name server, message routing module control and each node adaptation module are connected with the message control module respectively, wherein:
Described node adaptation module further comprises the register requirement unit, is used for initiating or transmit register requirement to the message control module; Dispatch Unit, the forwards that is used for the source application system is sent are to the message control module, and the forwards that the message control module is sent arrives corresponding application system;
Described message routing module control is used for after the routing inquiry request of receiving described message control module, and carry out automatic route judgement or the message path is set according to information receiving and transmitting person identity and predefined type of service, and return results;
The domain name server further comprises: the domain name registration unit, be used for when receiving register requirement, verify the legitimacy of this register requirement, if legal preservation comprises the related information of domain name, IP address and the License Status of this application system, return the response message that succeeds in registration, otherwise the refusal registration; The domain name mapping unit is used for going out according to the request analysis of described message control module one or more item of information of domain name related information;
Described message control module further comprises: the long connection set up the unit, is used for setting up the message control module after succeeding in registration when maybe needing to recover and is connected with growing of node adaptation module; The message control unit is used for finishing legitimate verification, routing inquiry and the exchange control of register requirement and Business Processing.
Further, above-mentioned message switching apparatus also can have following characteristics: described node adaptation module also comprises the Structure Conversion unit, be used between the application system or the message format between message control module and the application system not simultaneously, finish the conversion operations of message format.
Further, above-mentioned message switching apparatus also can have following characteristics: the domain name server also comprises information updating unit, is used for the notice according to the message control module, the corresponding domain name related information of updated stored; Simultaneously, described message control module also comprises: long connection management unit, be used to monitor long connection status, and the long connection of triggering is set up the unit and is attempted the recovery connection after long connection disconnects, after repeatedly can't connecting, notice domain name server with the status modifier of corresponding application system for disapproving.
Further, above-mentioned message switching apparatus also can have following characteristics: described message control unit further comprises:
The registration control sub unit, be used for after the login request message of receiving the node adaptation module, being forwarded to name server, if name server returns failed message, send error message then for the node adaptation module, set up the unit and set up with the length of this node adaptation module and be connected otherwise trigger long the connection;
The routing inquiry subelement is used for sending routing inquiry request to the message routing module control, the information such as transmitting-receiving person's identity, type of service that in request, give information, and receive the routing inquiry result;
The Business Processing subelement is used for after receiving the Business Processing message that the node adaptation module is transmitted, and triggers the inquiry route, first application system in route sends message, after obtaining replying, rewrite message and also be transmitted to next application system, up to message route terminal point.
Further, above-mentioned message switching apparatus also can have following characteristics: described message control unit also comprises the state verification subelement, is used to ask the domain name server parses to go out the state of application system, and receives the state information of returning; Described Service Processing Unit is also verified the state of professional source application system and all target application systems, as has at least one to disapprove, then service fail.
As from the foregoing, the present invention long connection of setting up, can adapt to reliable and stable, the requirement fast of xenogenesis application system integrated platform by the centralized management of message control module between node adaptation module and message control module.In addition, adopt name server that the message control of xenogenesis application system is simplified, realize the communication between the xenogenesis application system easily; Under the cooperation of message routing module control and name server, its message path is very clear, and routing addressing will be finished in linear session, can also Based Intelligent Control message Route Selection.
Description of drawings
Fig. 1 is the structure chart of existing message switching system.
Fig. 2 is the structured flowchart of embodiment of the invention message switching apparatus.
Fig. 3 is the schematic diagram that embodiment of the invention node adaptation module is changed mutually to two kinds of message formats.
Fig. 4 is the Route Selection schematic diagram of embodiment of the invention device.
Fig. 5 is the exemplary plot that the thin middle information of embodiment of the invention domain name addresses is formed.
Fig. 6 is the message schematic diagram of an application example of embodiment of the invention method.
Fig. 7 is the flow chart of embodiment of the invention method application system registration.
Fig. 8 is the message flow chart of embodiment of the invention method application system Business Processing.
Embodiment
With reference to the accompanying drawings embodiments of the invention are elaborated.
Fig. 2 is the structured flowchart of present embodiment message switching apparatus, only shows the structure of module one-level among the figure.As shown in the figure, this message switching apparatus comprises message control module, name server, message routing module control and a plurality of node adaptation module.Each node adaptation module all is connected to a foreign peoples or similar application system, and name server, message routing module control and each node adaptation module are connected with the message control module respectively.Wherein:
Node adaptation module (NAM) adapts to the application-specific system, and the Message Agent operation of application system and message control module is provided.Further comprise: the register requirement unit is used for initiating or transmit register requirement (can carry out to the short connection of message control module by the node adaptation module) to the message control module; Dispatch Unit is used for the message stores that the source application system is sent is forwarded to the message control module, and the message stores that the message control module is sent is forwarded to corresponding application system, and the message of forwarding mainly is Business Processing message and relevant response message; And the Structure Conversion unit, be used between the application system or the message format between message control module and the application system not simultaneously, finish the conversion operations of message format.
The present embodiment device is used under the distributed environment, and the application system major part under this environment all is foreign peoples's a system, comprises that message structure all is the foreign peoples, so message conversion is important link.Fig. 3 has showed the transfer process example between two kinds of message formats.Figure is the source data conversion at the middle and upper levels, wherein the left side is the information field in the message structure, the centre is " type of service " element format in the message of application system 1, and the right side is " processing type " element format in the message of application system 2, and in fact implication is identical for these two kinds of elements.Lower floor is a data transaction among the figure, and wherein middle is the value of application system 1 " type of service " element, and the right side is the value of application system 1 " processing type " element.
This device of present embodiment can self-defined a kind of standard message structure, perhaps selects the existing standard message structure as this device internal default structure, adopts with the application system (also having the application system of transforming) of exploitation after an action of the bowels.Just can to select this relatively more excellent message format be its default message form to the message control module like this, and the message conversion example among the figure has represented that also the message format of message control module and the message format of application system change.
The message routing module control is used for after the routing inquiry request of receiving the message control module, and carry out automatic route judgement or the message path is set according to information receiving and transmitting person identity and predefined type of service, and return results.The application system domain name can reach Route Selection control purpose by the assistance messages routing module control.Message can be divided into following five kinds of situations:
1) only relate to two application systems, unidirectional, the message route is: domain name 1 → domain name 2.
2) only relate to two application systems, but two-way, the message route is: domain name 1 → domain name 2 → domain name 1.
3) relate to a plurality of application systems, unidirectional, the message route is: domain name 1 → domain name 2 → domain name 3 → ... → domain name n.
4) relate to a plurality of application systems, two-way, the message route is: domain name 1 → domain name 2 → domain name 3 → ... → domain name n → domain name n-1 → ... → domain name 1.
5) relate to a plurality of application systems, part is two-way, and the message route is: domain name 1 → domain name 2 → domain name ... → domain name n → ... → domain name k.
Automatically the route arbitration functions is used for very simple situation, relatively is convenient to automatic judgement such as the message situation between two application systems, can directly provide the target application system that needs forwarding.But, the message routing module control needs according to information receiving and transmitting person identity and predefined type of service the message path to be set more frequently, be the schematic diagram of a Route Selection as shown in Figure 4, the route list of having represented a business in the schematic diagram, use domain name to represent application system, domain name mapping function by name server can the location node adaptation module the position, thereby find the position of target application system.
The message route is different with the IP route, the message route is the path of message, if a certain application system in the professional route list is to disapprove state or a link is therein made mistakes, then should business not handle, belong to abnormality, the alternate routing that also can increase after unusual improves reliability.In addition, after certain application system is handled, the result data that obtains can be encapsulated in and issue the message control module in the response message, the message control module need be rewritten the message of issuing this application system according to route, comprise destination address (changing the address of next application system into), data volume (result that has just obtained) etc., issue next application system then, up to the terminal point of route.
Name server (DNS) is used to provide the function of similar general domain name resolution server, and in the present embodiment, the domain name of application system is that the overall situation is unique, is made up of module title and global unique sign (GUID) of corresponding node adaptation module.Clauses and subclauses during domain name approaches corresponding to domain name server address, as shown in Figure 5, these clauses and subclauses comprise domain name, computer address, listening port, process number, thread number etc., and these information relation of having levels singly is that possibly of address can't the position application system.
On function, can be further divided into domain name registration unit, domain name mapping unit and information updating unit to name server.Wherein, the domain name registration unit is used for when receiving register requirement, whether legal according to the domain name judgement that the domain name or the message control module of the request of node adaptation module are distributed, such as checking whether domain name repeats, whether computer address is correct etc., if legal then add respective entries on address book, the notification message control module succeeds in registration then, otherwise directly notifies registration failure.Domain name in a single day registration can not nullified easily, if application system is owing to reasons such as inefficacy need to nullify, and manual cancellation on name server so; If because reasons such as illegal, network failures, application system is unavailable, revises this domain name state so for disapproving, and do not nullify.
The domain name mapping unit is used for the request according to the message control module, parses one or more item of information in the address book domain name relevant entry.When transmitting message in the decision process of domain name registration with according to the application system domain name in the route, be all key messages that are used to parse this domain name correspondence, wherein the IP address is indispensable, and when Business Processing relates to message, because long the connection sets up, so analysis result mainly is the state of the application system of domain name correspondence.Whether the permission in the address book/disapprove this application system of state representation is in state available or that allow others to use, and disapproving may be because long the connection such as disconnects, this application system is illegal at reason.In addition, the domain name mapping unit also after receiving the reverse resolution request that the message control module sends, goes out domain name, the return messages control module according to information reverse resolutions such as node adaptation module title, address, process numbers.
Information updating unit is used for the notice according to the message control module, the corresponding information item during scheduler is thin, for example according to notice with the status modifier of application system for disapproving etc.
Message control module (MCM) comprises further and long the connection sets up unit, long connection management unit and message control unit that message control module and each intermodule exist request message and response message all the time.Wherein:
The long connection sets up long connection the (node adaptation module and application system are man-to-man, and connection wherein can be short the connection or the length connection, and the present invention does not do qualification) that the unit is used to set up message control module and node adaptation module.In the present embodiment, long connect set up the unit can initiate to set up long connection the: A under the following situation, after the node adaptation module succeeds in registration; B carries out reverse resolution at the long disconnection back request name server that connects, and initiates the long of the several times application system corresponding with the gained domain name again and connects; C is not having according to route under the corresponding long situation about connecting at the message control unit, can set up subelement by connection and initiate to set up long connection the, back and application corresponding systems exchange message earlier.
Long connection management unit is used to monitor the long state that connects, long connect initiatively disconnect because of the node adaptation module or network interruption etc. is former thus disconnect after, the long connection of triggering set up unit trial recovery connection (can carry out several times), if failure, notice name server with the status modifier of corresponding application system for disapproving.
The message control unit is used for finishing the functions such as legitimate verification, state verification, routing inquiry and exchange control of register requirement and Business Processing, comprises again:
The registration control sub unit, be used for after the login request message of receiving the node adaptation module, being forwarded to name server, if name server returns failed message, send error message then for the node adaptation module, set up the unit and set up with the length of this node adaptation module and be connected otherwise trigger long the connection;
The state verification subelement is used to ask the domain name server parses to go out the state of application system, and receives the state information of returning;
The routing inquiry subelement is used for sending routing inquiry request to the message routing module control, information such as the transmitting-receiving person's identity that in request, gives information (being domain name), predefined type of service, and receive the routing inquiry result;
The Business Processing subelement, be used for after receiving the Business Processing message that the node adaptation module is transmitted, trigger the inquiry route and to using the checking of system mode, first application system in route sends message, after obtaining replying, rewrite message and be transmitted to next application system, up to message route terminal point; If a certain application system state in source application system or the route is made mistakes when disapproving or handling, then this service fail.Above-mentioned registration control sub unit and state verification subelement also play the effect of the information receiving and transmitting person being carried out identity validation, further can also increase authentication functions such as authority, licence.
The message Route Selection of present embodiment is to decide and send a message to next node according to the message path (similar routing table) of predefine or dynamically generation, and the node here is meant the application system of managing business, and is not the address of next router.Present embodiment provides a concentrated routing module control to decide feasible path, does not have conventional router to be responsible for the function of transmit information data bag.
Distribute a global domain name because special-purpose name server is an application system, in fact simplify the Classification Management of application system and relevant information thereof, also simplified the message Route Selection simultaneously.Because the message control module must have the long foundation that is connected with the node adaptation module in message, domain name also has man-to-man relation with long the connection, so the selection speed of data link must be accelerated.The route of routing module control is no matter be predefined or dynamic the generation, it all is the chained list of the domain name of a series of application systems, the message control module produces the long chained list that connects between message control module and the node adaptation module according to this chained list, the long application system that connects direct location node adaptation module agency herein, thus determine a complete message transfer path.Domain name is to the location of node adaptation module, exactly by using domain name--〉system--〉node adaptation module among Fig. 4--〉and the correlation of long connection establishes.
As shown in Figure 6,110 receive the people's of a hand-set from stolen alarm call, and 110 forward the true identity and the operator of the stolen number of 114 inquiries after putting on record to, forward 1000 then to and report the loss shutdown, forward 110 places at last to.The message transfer path is 110 → message control module → 114 → message control module → 1000 → message control module → 110.
The present embodiment device can use one or more between the of the same race or xenogenesis application system in distributed computing environment (DCE), communication basis as each application system in the distributed environment, be equivalent to be connected in the another one said apparatus as an application system for each application system provides bus-type message structure.
Be the flow chart of present embodiment method application system registration as shown in Figure 7, may further comprise the steps:
Step 110, the message control module is inner creates a connection pool (such as creating thread pool, each thread can be set up and a TV is joined the long of module and is connected), and the message of initiation of interception node adaptation module or forwarding;
Step 120, the node adaptation module is initiated the login request message of (or forwarding) application system to the message control module, has the listening port number, process number, thread number of the IP address of this application system and node adaptation module etc. in the request;
Step 130, the message control module is transmitted register requirement and is given name server;
Step 140, domain name and related information thereof that name server distributes according to the domain name or the message control module of the request of node adaptation module judge whether register requirement is legal, if, carry out next step, otherwise, execution in step 170;
Step 150, name server approval registration, in the thin domain name of preserving this application system of domain name addresses, Computer IP address, listening port number, process number, thread number, hour of log-on and identity License Status information such as (being permission during registration), and return the response message of domain name registration success to the message control module;
Step 160, after the message control module was received the message that succeeds in registration, to grow connected mode connected node adaptation module, registration finished;
Step 170, the registration of name server refusal is returned the response message that domain name registration is failed to the message control module;
Step 180 after the message control module is received the message of registration failure, sends registration failure message to the node adaptation module.
Be the message flow chart that the present embodiment method is crossed over the application system Business Processing as shown in Figure 8, may further comprise the steps:
Step 210, the message that message control module interception node adaptation module is initiated or transmitted;
When step 220, source application system need other application systems to manage business, send the Business Processing request to corresponding node adaptation module;
Step 230, the message that node adaptation module storage forwarding source application system is initiated is given the message control module, carries out format conversion in case of necessity;
After step 240, message control module received this forwarding message, the License Status by name server checking source application system then returned error message to the node adaptation module if disapprove, otherwise carries out next step;
Step 250, message control module are obtained the domain name tabulation of all target application systems in the message route by the message routing module control;
Step 260, the message control module, is returned error message and is given the node adaptation module if having at least one to be in the state of disapproving by the License Status of all target application systems of name server checking message route, otherwise to carrying out next step;
Step 270, the node adaptation module of first the target application system correspondence of message control module in route sends Business Processing message, resolve domain name to name server earlier when sending message, the process number of the application system address that obtains according to parsing, node adaptation module finds corresponding long the connection then, this resolving also can be carried out in step 250, promptly ask name server that all domain names in the tabulation are resolved, obtain the corresponding long chained list that connects then;
Step 280, this node adaptation module receive message and are transmitted to corresponding application system, after this application system Business Processing finishes, transmit response message and give the message control module;
Step 290 after the message control module is received this response message, judges whether needs to next target application system forwards according to route, if need, carries out next step, otherwise has arrived message route terminal point, finishes;
Step 300, the message control module is rewritten according to the response message of a last node adaptation module and is transmitted message to the node adaptation module of next application system, returns step 280;
If Business Processing successfully or after makeing mistakes in follow-up link, the message control module also can return success or failed message to initial node adaptation module.In addition, in above-mentioned steps 260, if there is the target application system of the state that disapproves, also can attempts earlier setting up with the long of its and is connected, if successfully, then continue execution in step 270.
Except above-mentioned flow process, the present embodiment message switching apparatus is in running, if because network failure causes long the connection to disconnect, and the domain name mapping result is not temporarily stored in the message control module, then carries out following handling process:
The message control module monitor and the node adaptation module between disconnect long the connection, send the reverse resolution request to name server, information such as node adaptation module title, address, process number are provided;
Name server goes out corresponding domain name according to the clauses and subclauses reverse resolution in the address book, the return messages control module after receiving this reverse resolution request;
The long of node adaptation module that the message control module attempts recovering corresponding with the gained domain name connects (can carry out repeatedly), if successful connection then finishes, otherwise carries out next step;
Message control module notice name server with the status modifier of corresponding application system for disapproving.
After if long connection disconnects, temporary in the message control module have the domain name mapping result, just there is no need to resolve domain name.

Claims (14)

1, the implementation method of message in a kind of distributed environment comprises the steps:
(a) after the message control module listens to the application system register requirement of initiation of node adaptation module or forwarding, be transmitted to name server;
(b) if legitimacy of this register requirement of domain name server authentication legal, preserved the related information of the domain name, IP address and the License Status that comprise this application system, and is returned the response message that succeeds in registration, otherwise the refusal registration;
(c) after described message control module was received the response message that succeeds in registration, the long of foundation and this node adaptation module was connected, in order to reciprocal exchange of business processing messages;
(d) after described message control module listens to the Business Processing message of node adaptation module forwarding, obtain this professional message route, transmit the node adaptation module that message is given first target application system correspondence in the route;
(e) this node adaptation module is given corresponding application system with the forwards that receives, judge that this application system Business Processing finishes after, transmit response message and give described message control module;
(f) described message control module judges whether that according to the message route needs are to next target application system forwards, as needs, rewrite and transmit Business Processing message to corresponding node adaptation module according to this response message of receiving, return step (e), as not needing, then finish.
2, implementation method as claimed in claim 1 is characterized in that, and is further comprising the steps of:
Described message control module monitor and the node adaptation module between long connect disconnect after, go out or from preservation information, find out the application system domain name of this connection by domain name server reverse resolution;
The long of node adaptation module that described message control module attempts recovering corresponding with this application system connects, if connection is unsuccessful, carries out next step, if successful connection finishes;
Described message control module notice domain name server with the status modifier of this application system for disapproving.
3, implementation method as claimed in claim 1, it is characterized in that, the related information of preserving in the domain name server in the described step (b) also comprises one and multinomial information in listening port number, process number, thread number and the hour of log-on except that domain name, IP address and the License Status of application system.
4, implementation method as claimed in claim 1 is characterized in that, message control module described in the described step (d) by domain name server authentication sender of the message's License Status, if License Status obtains route again, otherwise is returned error message earlier; And, after obtaining route, whether all be License Status also by all target application systems in the domain name server authentication route, if just carry out forwards, otherwise return error message.
5, implementation method as claimed in claim 4, it is characterized in that, if the target application system is arranged in the route for disapproving state, initiating earlier node adaptation module long corresponding with described target application system connects, if connect unsuccessful, return error message again, successful connection then continuation message is transmitted.
6, implementation method as claimed in claim 1, it is characterized in that, described message route is the chained list of the domain name of some target application system, the message control module connects chained list according to the length that this domain name chained list can directly navigate between the node adaptation module, thereby determines a complete message transfer path.
7, implementation method as claimed in claim 1 is characterized in that, described node adaptation module when transmitting message, if between the application system or the message format between message control module and the application system not simultaneously, need carry out the conversion of message format.
8, implementation method as claimed in claim 1 is characterized in that, self-defined a kind of standard message structure of described message control module or selection existing standard message structure are as its internal default structure.
9, implementation method as claimed in claim 1, it is characterized in that, described message control module sends before the message request domain name server parses domain name earlier, and the related information of the process number that comprises application system address, node adaptation module that obtains according to parsing finds corresponding long the connection then; Perhaps ask name server that all the application system domain names in the route are resolved, obtain the corresponding long chained list that connects.
10, the message switching apparatus in a kind of distributed environment, it is characterized in that, comprise message control module, name server, message routing module control and a plurality of node adaptation module, application system of the corresponding connection of each node adaptation module, domain name server, message routing module control and each node adaptation module are connected with the message control module respectively, wherein:
Described node adaptation module further comprises the register requirement unit, is used for initiating or transmit register requirement to the message control module; Dispatch Unit, the forwards that is used for the source application system is sent are to the message control module, and the forwards that the message control module is sent arrives corresponding application system;
Described message routing module control is used for after the routing inquiry request of receiving described message control module, and carry out automatic route judgement or the message path is set according to information receiving and transmitting person identity and predefined type of service, and return results;
The domain name server further comprises: the domain name registration unit, be used for when receiving register requirement, verify the legitimacy of this register requirement, if legal preservation comprises the related information of domain name, IP address and the License Status of this application system, return the response message that succeeds in registration, otherwise the refusal registration; The domain name mapping unit is used for going out according to the request analysis of described message control module one or more item of information of domain name related information;
Described message control module further comprises: the long connection set up the unit, is used for setting up the message control module after succeeding in registration when maybe needing to recover and is connected with growing of node adaptation module; The message control unit is used for finishing legitimate verification, routing inquiry and the exchange control of register requirement and Business Processing.
11, message switching apparatus as claimed in claim 10, it is characterized in that, described node adaptation module also comprises the Structure Conversion unit, be used between the application system or the message format between message control module and the application system not simultaneously, finish the conversion operations of message format.
12, message switching apparatus as claimed in claim 10 is characterized in that, the domain name server also comprises information updating unit, is used for the notice according to the message control module, the corresponding domain name related information of updated stored; Simultaneously, described message control module also comprises: long connection management unit, be used to monitor long connection status, and the long connection of triggering is set up the unit and is attempted the recovery connection after long connection disconnects, after repeatedly can't connecting, notice domain name server with the status modifier of corresponding application system for disapproving.
13, message switching apparatus as claimed in claim 10 is characterized in that, described message control unit further comprises:
The registration control sub unit, be used for after the login request message of receiving the node adaptation module, being forwarded to name server, if name server returns failed message, send error message then for the node adaptation module, set up the unit and set up with the length of this node adaptation module and be connected otherwise trigger long the connection;
The routing inquiry subelement is used for sending routing inquiry request to the message routing module control, the information such as transmitting-receiving person's identity, type of service that in request, give information, and receive the routing inquiry result;
The Business Processing subelement is used for after receiving the Business Processing message that the node adaptation module is transmitted, and triggers the inquiry route, first application system in route sends message, after obtaining replying, rewrite message and also be transmitted to next application system, up to message route terminal point.
14, message switching apparatus as claimed in claim 13 is characterized in that, described message control unit also comprises the state verification subelement, is used to ask the domain name server parses to go out the state of application system, and receives the state information of returning; Described Service Processing Unit is also verified the state of professional source application system and all target application systems, as has at least one to disapprove, then service fail.
CNB2004100793372A 2004-10-01 2004-10-01 Method for realizing message-switching in distributed environment and its device Expired - Fee Related CN100440872C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100793372A CN100440872C (en) 2004-10-01 2004-10-01 Method for realizing message-switching in distributed environment and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100793372A CN100440872C (en) 2004-10-01 2004-10-01 Method for realizing message-switching in distributed environment and its device

Publications (2)

Publication Number Publication Date
CN1756241A true CN1756241A (en) 2006-04-05
CN100440872C CN100440872C (en) 2008-12-03

Family

ID=36689181

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100793372A Expired - Fee Related CN100440872C (en) 2004-10-01 2004-10-01 Method for realizing message-switching in distributed environment and its device

Country Status (1)

Country Link
CN (1) CN100440872C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010096989A1 (en) * 2009-02-27 2010-09-02 华为技术有限公司 Method, apparatus and system for discovering p2p traffic optimization service
CN102291254A (en) * 2011-07-05 2011-12-21 厦门雅迅网络股份有限公司 Method for managing communication between subsystems of application systems
CN103188771A (en) * 2011-12-27 2013-07-03 腾讯科技(深圳)有限公司 Method and device for breaking and recovering long link
CN104348924A (en) * 2013-07-30 2015-02-11 深圳市腾讯计算机系统有限公司 Method, system and device for domain name resolution
CN105279036A (en) * 2015-12-04 2016-01-27 上海斐讯数据通信技术有限公司 Inter-process communication method and device and electronic equipment
CN106470247A (en) * 2015-08-19 2017-03-01 互联网域名系统北京市工程研究中心有限公司 Domain name agency of trademark registration method and apparatus
CN111064713A (en) * 2019-02-15 2020-04-24 腾讯科技(深圳)有限公司 Node control method and related device in distributed system
CN113805788A (en) * 2020-06-12 2021-12-17 华为技术有限公司 Distributed storage system and exception handling method and related device thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101990256A (en) * 2010-08-27 2011-03-23 中兴通讯股份有限公司 Long-connection management device and method for managing link resources of long-connection communication

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6396820B1 (en) * 1997-06-24 2002-05-28 Lucent Technologies Inc. Wireless telecommunications system for improving performance and compatibility
CN1368810A (en) * 2001-02-02 2002-09-11 北京翔智信息技术有限公司 Distributed information switch and processing system and method
CN1266886C (en) * 2001-03-10 2006-07-26 华为技术有限公司 Intercommunication deputizing device and system and method for intercommunicating networks of different protocol
KR100385136B1 (en) * 2001-05-07 2003-05-23 엘지전자 주식회사 MAP Message Processing System And Method For Heterogenous Network Interworking

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010096989A1 (en) * 2009-02-27 2010-09-02 华为技术有限公司 Method, apparatus and system for discovering p2p traffic optimization service
CN102291254A (en) * 2011-07-05 2011-12-21 厦门雅迅网络股份有限公司 Method for managing communication between subsystems of application systems
CN102291254B (en) * 2011-07-05 2016-06-01 厦门雅迅网络股份有限公司 A kind of communication management method between the subsystem of application system
CN103188771A (en) * 2011-12-27 2013-07-03 腾讯科技(深圳)有限公司 Method and device for breaking and recovering long link
CN104348924A (en) * 2013-07-30 2015-02-11 深圳市腾讯计算机系统有限公司 Method, system and device for domain name resolution
US10419387B2 (en) 2013-07-30 2019-09-17 Tencent Technology (Shenzhen) Company Limited Domain name resolution method, system, and device
CN106470247A (en) * 2015-08-19 2017-03-01 互联网域名系统北京市工程研究中心有限公司 Domain name agency of trademark registration method and apparatus
CN106470247B (en) * 2015-08-19 2019-08-20 互联网域名系统北京市工程研究中心有限公司 Domain name agency of trademark registration method and apparatus
CN105279036A (en) * 2015-12-04 2016-01-27 上海斐讯数据通信技术有限公司 Inter-process communication method and device and electronic equipment
CN105279036B (en) * 2015-12-04 2019-10-25 上海斐讯数据通信技术有限公司 Inter-process communication methods, device and electronic equipment
CN111064713A (en) * 2019-02-15 2020-04-24 腾讯科技(深圳)有限公司 Node control method and related device in distributed system
CN111064713B (en) * 2019-02-15 2021-05-25 腾讯科技(深圳)有限公司 Node control method and related device in distributed system
CN113805788A (en) * 2020-06-12 2021-12-17 华为技术有限公司 Distributed storage system and exception handling method and related device thereof
CN113805788B (en) * 2020-06-12 2024-04-09 华为技术有限公司 Distributed storage system and exception handling method and related device thereof

Also Published As

Publication number Publication date
CN100440872C (en) 2008-12-03

Similar Documents

Publication Publication Date Title
CN1287578C (en) A system and method for implementing user roaming between different places by routing server
CN1197297C (en) A platform information switch
CN1929472A (en) Method, system, signal and medium for managing data transmission in a data network
CN1677955A (en) Presence server, session control server, and packet relay system
CN1878072A (en) Communication method and system based on group
CN1698328A (en) Recursive querry for communications network data
CN1722729A (en) The system and method that is used between heterogeneous network, communicating by letter
CN1578310A (en) Method and system for providing a virtual protocol interlayer
CN101040556A (en) Callback services in a communication system
CN1993947A (en) A method and device for providing correlation means in hybrid telecommunication networks
CN1713610A (en) Session control system for hierarchical relaying processes
CN1716915A (en) Modular type node apparatus for packet communication
CN1893359A (en) Telematics system, and method for providing various content services
CN1856163A (en) Communication system with dialog board controller and its command transmitting method
CN1496088A (en) Server and method for special-purpose radio network short information service
CN1501659A (en) Communication device, edge router device, server device, communication system and communication method
CN1381969A (en) System and method for submitting service and receiving service to home network device
CN1694405A (en) System and method of remote computer service
CN1756241A (en) Method for realizing message-switching in distributed environment and its device
CN1606312A (en) Service providing system cooperative with sip and web systems and a method therefor
CN1863131A (en) Service apparatus exchange network and exchange method
CN1266623C (en) Conversational system, conversation control method and conversational control program
CN1659847A (en) System and method for supporting concurrent applications interoperability
CN1595890A (en) Virtual connectivity with subscribe-notify service
CN1223159C (en) Method of supporting address transfer application network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081203

Termination date: 20171001