CN1988448A - Communication device and its interactive method between modules - Google Patents

Communication device and its interactive method between modules Download PDF

Info

Publication number
CN1988448A
CN1988448A CN 200510111910 CN200510111910A CN1988448A CN 1988448 A CN1988448 A CN 1988448A CN 200510111910 CN200510111910 CN 200510111910 CN 200510111910 A CN200510111910 A CN 200510111910A CN 1988448 A CN1988448 A CN 1988448A
Authority
CN
China
Prior art keywords
module
client
message
service module
information
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 200510111910
Other languages
Chinese (zh)
Other versions
CN100456771C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005101119108A priority Critical patent/CN100456771C/en
Publication of CN1988448A publication Critical patent/CN1988448A/en
Application granted granted Critical
Publication of CN100456771C publication Critical patent/CN100456771C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

This invention discloses a communication device and an interaction method among modules in it, in which, a customer module in the device sends a message for asking subscribing messages to a service module, which feeds back the message after it receives it, if the customer module does not receive the response information in preset time, it triggers the re-sending unit to secure that the service module receives the request, after the service module receives the subscribing request of the customer module, it sets up a corresponding relation between the customer module and the subscribed information and sends the subscribed message to the customer module directly based on the corresponding relation not asking response.

Description

Communication equipment reaches wherein interactive method between modules
Technical field
The present invention relates to the communications field, particularly communication equipment internal module information interaction technology.
Background technology
Along with the continuous intensification of the level of informatization, the mankind are more and more higher to the requirement of capacity, speed, quality and the type service of communication.The popularizing of personal computer and Internet, data service have brought revolutionary variation with the develop rapidly of E-mail communication and various broadband access technologys to communication network and communication equipment.
In order to satisfy more and more higher communicating requirement, communication equipment becomes and becomes increasingly complex, and the function that requires to realize also gets more and more, and makes and must adopt standardization, modular development scheme.The a large amount of different integrated circuit boards of various tasks that use of the developer of communication equipment constitute each communication equipment module, are built into complete facility communication system by these modules with difference in functionality again, can reduce the required cost of the exclusive framework of exploitation thus in a large number.So adopt standardized module, shared module than the output that is easier to reach certain, cost reduces naturally.
This shows that communication equipment is actually by many relatively independent integrated circuit boards or module and constitutes, subsystem of each self-forming is combined into a complete system.Therefore, for whole system, utilizing the effective cooperation between a plurality of subsystems is the key of finishing systemic-function.In addition, be the main aspect that cooperatively interacts alternately between subsystem.
Can better to divide the work between each subsystem and cooperation in the system in order making, in modern software design procedure, generally to adopt message processing facility to reduce the degree of coupling between each subsystem greatly, and become important way mutual between subsystem.This information interaction is to be handled by the reception of the transmission of message and message to realize.
A kind of information in the communication equipment of prior art sends hairdo as shown in Figure 1, and this mode has adopted timer, and needs the response of message sink module.
In step 101, the module that module 2 sends as information sends message to module 1.
In step 102, module 2 starts timer when message sends.
In step 103, if module 2 is received the response message that module 1 is returned, then change step 104 over to, otherwise, handle by Fig. 2 or mode shown in Figure 3.
In step 104, module 2 timeing closing devices, and this information of mark sends successfully.
In the step 103 of above-mentioned information sender formula, if up to the timer expiry of module 2, still do not receive the response message that module 1 is returned, at this moment, the transmission of information can be handled by mode shown in Figure 2.
Step 201 is identical with step 101 and step 102 with step 202.
In step 203, up to timer expiry,, then return step 201, and move in circles, till module 1 response if module 2 is not received response message yet.
In addition, if, in step 103,, do not receive the situation of the response message that module 1 is returned yet, can also handle by mode shown in Figure 3 up to timer expiry by information sender formula shown in Figure 1.
Step 301 is identical with step 101 and step 102 with step 302.
In step 303, during timer expiry, module 2 is not received response message yet, and then this information of mark sends failure, stops to handle.
Another kind of information sender formula in the communication equipment as shown in Figure 4, this mode does not adopt timer, does not need the response of module 1 yet.
Step 401 is with step 201, and module 2 directly sends message to module 1.
In step 402, module 2 is after sending message, and just directly label information sends successfully.
In actual applications, there is following problem in such scheme: there is waste in system resource, and can influence the reliability of system equipment, and information transmits the losing probability height.
Cause the main cause of this situation to be, because, can make the information that can't receive in a large number in system equipment, send if the module of message pick-up starts when causing unusually normally moving, waste system resource, for example module 2 starts situations such as unusual;
Because when the module of information transmission need provide information to a plurality of modules, the also mode of wait-for-response that resends that adopts, can be because the serious waste of resource that mistake causes of a subsystem, the serious paralysis that may cause whole system, thereby influence the performance of system equipment, for example, information sender formula as shown in Figure 2;
Because if the module that information sends adopts overtime stopping to handle, for example, information sender formula as shown in Figure 3, mark sends successfully in case perhaps adopt information to send just, for example, and information sender formula as shown in Figure 4, when the module of message pick-up can't normally receive is because status error when causing, even the recovering state of the module of message pick-up is normal so, also can't receive and send information, cause information dropout.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of communication equipment to reach wherein interactive method between modules, and the system that makes is obtaining balance preferably aspect performance and the information dropout probability two.
For achieving the above object, the invention provides interactive method between modules in a kind of communication equipment, can trigger each the client's module that relies on this service module as the information receiver when resetting as the service module of information transmitter in this equipment and all reset, comprise following steps:
The described client's module of A sends the request message of appointed information that pulls subscription in the back that resets to described service module, if do not receive the response message from this service module after presetting duration, then retransmits this request message;
The described service module of B returns response message to this client's module behind the request message of receiving from described client's module;
When C changed when described appointed information, described service module directly sent corresponding notification message to described client's module.
Wherein, described service module is after described client's module sends a notification message, and directly this client's module of mark has been received this notification message, need not this client's module and acknowledges receipt of this notification message.
In this external described method, described step B also comprises following substep:
After described service module is received request message from described client's module, set up the corresponding relation of described client's module and its ordered appointed information,
Among the described step C, when described appointed information changed, described service module sent corresponding notification message according to described corresponding relation to described client's module.
In this external described method, if described appointed information is subscribed to by a plurality of client's modules, then described service module when this appointed information changes, sends corresponding notification message to all client's modules of subscribing to this appointed information according to described corresponding relation.
In this external described method, in the described steps A, described client's module is periodically retransmitted described request message to described service module by overtime retransmission mechanism, until the response message of receiving from this service module.
In this external described method, in the described steps A, described client's module is periodically retransmitted described request message to described service module by overtime retransmission mechanism, surpasses and presets thresholding until receiving from the response message of this service module or retransmitting number of times.
In this external described method, described client's module sends described request message to described service module when starting or resetting.
The present invention also provides a kind of communication equipment, comprise as the service module of information transmitter and at least one client's module as the information receiver, described client's module further comprises: be used to send message transmitting element, be used to receive the receiving element and the timer of message;
Wherein, described transmitting element sends the request message of appointed information that pulls subscription to described service module after client's module resets, and starts described timer; Described receiving element stops this timer when receiving the response message of this request message; The described transmitting element of indication is retransmitted described request message behind this timer expiry;
Described service module further comprises: be used to send message transmitting element, be used to receive message receiving element, be used to preserve client's module and its ordered appointed information corresponding relation memory cell and be used to judge whether subscribed described appointed information the judging unit that changes has taken place;
Wherein, after described receiving element is received request message from described client's module, the corresponding relation of setting up the appointed information of this client's module and its subscription also is kept at this corresponding relation in the described memory cell, and sends response message by described transmitting element to client's module; When described judging unit judges that variation has taken place described appointed information, indicate described transmitting element to send a notification message to client's module of having subscribed to this appointed information according to the corresponding relation in the described memory cell.
By relatively finding, the main distinction of technical scheme of the present invention and prior art is, send the message of the information that pulls subscription earlier to service module by the client's module in the equipment, service module is after receiving this message, return response message, if client's module is not received response message in preset time, then trigger retransmission mechanism, receive the subscribe request of this client's module to guarantee service module.Service module is set up the corresponding relation of client's module and its ordered information after the subscribe request that receives client's module, and directly the information of its subscription is sent to this client's module by the disposable mode that need not to respond according to this corresponding relation.
Difference on this technical scheme, brought comparatively significantly beneficial effect, promptly reduced the probability of information dropout in the system equipment, avoided simultaneously causing hanging of whole system unusually owing to the startup of individual customer module, save system resource, improved systematic function.
Because the startup stage of unusually often the occurring in of module, therefore, the subscribe request that client's module sends during startup need adopt retransmission mechanism to receive this request to guarantee service module, and after subscription is finished, whole system has entered stable state, service module sends to the ordered information of client's module and is difficult for losing, and therefore, can reduce the probability of information dropout in the system equipment.
In addition, because service module is that the information that client's module is subscribed to is sent to this client's module by the disposable mode that need not to respond, therefore, even certain client's module can't normally be moved, can not cause service module to carry out transmission flow repeatedly yet, thereby cause hanging of whole system.And, therefore prevented the invalid information in the system because service module has been set up the corresponding relation of client's module and its ordered information, and saved system resource, improved systematic function.
Description of drawings
Fig. 1 is the method for sending information flow chart of intermodule in the communication equipment in the prior art;
Fig. 2 is the method for sending information flow chart of intermodule in the communication equipment in the prior art;
Fig. 3 is the method for sending information flow chart of intermodule in the communication equipment in the prior art;
Fig. 4 is the method for sending information flow chart of intermodule in the communication equipment in the prior art;
Fig. 5 is the flow chart according to intermodule information subscribing mode in the communication equipment of first embodiment of the invention;
Fig. 6 is according to intermodule method for sending information flow chart in the communication equipment of first embodiment of the invention;
Fig. 7 is the flow chart according to intermodule information subscribing mode in the communication equipment of second embodiment of the invention;
Fig. 8 is the structural representation according to service module in the communication equipment of third embodiment of the invention and client's module.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The invention provides interactive method between modules in a kind of communication equipment,, will be called service module, be called client's module as information receiver's module as the module of information transmitter at this.
In this equipment, when service module resets, can trigger corresponding each client's module and all reset.Client's module sends the request message of appointed information that pulls subscription to service module when resetting back or startup, if do not receive the response message from this service module after presetting duration, then retransmit this request message.
Service module is set up the corresponding relation of this client's module and its ordered appointed information behind the request message of receiving from client's module, and returns response message to this client's module.When subscribed appointed information changed, service module just sent corresponding notification message according to this corresponding relation to client's module, and sending the directly successful information of mark transmission of back, need not to wait for that this client's module acknowledges receipt of this notification message.Because service module is that the information that client's module is subscribed to is sent to this client's module by the disposable mode that need not to respond, therefore, even certain client's module can't normally be moved, can not cause service module to carry out transmission flow repeatedly yet, thereby cause hanging of whole system.And, therefore prevented the invalid information in the system because service module has been set up the corresponding relation of client's module and its ordered information, and saved system resource, improved systematic function.
Wherein, the information of service module can be subscribed to by a plurality of client's modules, and service module when this information changes, sends corresponding notification message to all client's modules of having subscribed to according to subscribing to the corresponding relation that forms.
Intermodule information subscribing mode as shown in Figure 5 in the communication equipment of first embodiment of the invention.Because the startup stage of unusually often the occurring in of module, therefore, the subscribe request that client's module sends during startup need adopt retransmission mechanism to receive this request to guarantee service module.
In step 501, client's module 1 sends subscribe request to service module when starting.
In step 502, client's module 1 starts timer when sending subscribe request.
In step 503,,, and change step 505 over to then according to the corresponding relation of this this client's module 1 of request record with appointed information if service module has been received the subscribe request of 1 pair of appointed information of client's module.
In step 504, if the timer timing of client's module 1 arrives, do not receive the subscription response message of service module yet, then restart timer, turn back to step 501, wait-for-response.
In step 505, service module returns subscription response for client's module 1, notifies client's module 1 to subscribe to successfully.
In step 506, client's module 1 receives and subscribes to successful notice that the timeing closing device has been finished the subscription of appointed information.
This programme is that information subscribing with client's module is an example, and for the information subscribing that a plurality of client's modules are carried out, each client's module can be carried out identical operations.
After appointed information was subscribed to successfully, in a single day the appointed information in the service module had change, then can send a notification message to client's module of having subscribed to this information, and its send mode as shown in Figure 6.
In step 601, subscribed information has change in the service module.
In step 602, service module is searched the subscribing relationship table, finds all client's module lists that subscribing relationship is arranged with this modification information, finds client's module 1 and client's module 2.
In step 603, service module sends the notification message of this information-change according to this unidirectional client's module 1.
In step 604, service module sends the notification message of this information-change according to this unidirectional client's module 2.After subscription is finished, whole system has entered stable state, the ordered information of client's module that service module sends is difficult for losing, therefore, thisly send a request message when restarting and require response, information sends the interactive method between modules do not require response, reduced the probability of information dropout in the system equipment, simultaneously also avoided causing hanging of whole system unusually, saved system resource, improved systematic function owing to the startup of individual customer module.
Intermodule information subscribing mode as shown in Figure 7 in the communication equipment of second embodiment of the invention.Because service module is restarted, and has caused that client's module 1,2 resets, make client's module 1,2 all will initiate again to subscribe to, wherein, initiate to subscribe to as shown in the drawing after client's module 2 resets again.
In step 701, client's module 2 presets the thresholding number of times that sends subscribe request.
In step 702, client's module 2 is to the subscribe request of service module transmission appointed information, and wait-for-response.If do not receive the response message of service module, then repeating step 702.
In step 703, when the subscribe request transmission number of times of this appointed information reached the thresholding number of times that presets, client's module 2 was not received the response message of service module yet, then stops this subscribe request.Because repeatedly retransmit not response, client's module 2 judges that serious fault has taken place service module, and normal service can not be provided, and there is no need to retransmit again.Entire equipment resets again after generally getting rid of the fault of service module by the attendant, and each client's module is subscribed to trial once more.
The structure of module as shown in Figure 8 in the communication equipment of third embodiment of the invention.Comprise the client's module as the information receiver in this equipment as the service module of information transmitter and one (or a plurality of).
Specifically, comprise in client's module: be used to send message transmitting element, be used to receive the receiving element and the timer of message.
Wherein, the transmitting element of client's module sends the request message of appointed information that pulls subscription to service module after this client's module resets, and starts the timer in it; The receiving element of client's module then when the response message of receiving this request message, stops this timer; The function of this timer is the transmitting element re-transmission request message in regularly overtime this client's module of back indication.
Service module then comprises: be used to send message transmitting element, be used to receive message receiving element, be used to preserve client's module and its ordered appointed information corresponding relation memory cell and be used to judge whether subscribed appointed information the judging unit that changes has taken place.
Wherein, the receiving element of service module is set up the corresponding relation of the appointed information of this client's module and its subscription behind the request message of receiving from client's module, and this corresponding relation is kept in the memory cell; And send response message to client's module by transmitting element; When judging unit judged that variation has taken place subscribed appointed information, the indication transmitting element sent a notification message to client's module of having subscribed to this appointed information according to the corresponding relation in the memory cell.
According to two kinds of modular structures of above-mentioned communication equipment, persons skilled in the art are appreciated that these two kinds of structures can be present in the module simultaneously, make this module possess the function of service module and client's module simultaneously.
Though pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (8)

1. interactive method between modules in the communication equipment can trigger each the client's module that relies on this service module as the information receiver when resetting as the service module of information transmitter in this equipment and all reset, and it is characterized in that, comprises following steps:
The described client's module of A sends the request message of appointed information that pulls subscription in the back that resets to described service module, if do not receive the response message from this service module after presetting duration, then retransmits this request message;
The described service module of B returns response message to this client's module behind the request message of receiving from described client's module;
When C changed when described appointed information, described service module directly sent corresponding notification message to described client's module.
2. interactive method between modules in the communication equipment according to claim 1, it is characterized in that, described service module is after described client's module sends a notification message, and directly this client's module of mark has been received this notification message, need not this client's module and acknowledges receipt of this notification message.
3. interactive method between modules in the communication equipment according to claim 1 is characterized in that, described step B also comprises following substep:
After described service module is received request message from described client's module, set up the corresponding relation of described client's module and its ordered appointed information,
Among the described step C, when described appointed information changed, described service module sent corresponding notification message according to described corresponding relation to described client's module.
4. interactive method between modules in the communication equipment according to claim 3, it is characterized in that, if described appointed information is subscribed to by a plurality of client's modules, then described service module is according to described corresponding relation, when this appointed information changes, send corresponding notification message to all client's modules of subscribing to this appointed information.
5. interactive method between modules in the communication equipment according to claim 1, it is characterized in that, in the described steps A, described client's module is periodically retransmitted described request message to described service module by overtime retransmission mechanism, until the response message of receiving from this service module.
6. interactive method between modules in the communication equipment according to claim 1, it is characterized in that, in the described steps A, described client's module is periodically retransmitted described request message to described service module by overtime retransmission mechanism, surpasses and presets thresholding until receiving from the response message of this service module or retransmitting number of times.
7. according to interactive method between modules in each described communication equipment in the claim 1 to 6, it is characterized in that described client's module sends described request message to described service module when starting or resetting.
8. communication equipment, comprise service module and at least one client's module as the information receiver as information transmitter, it is characterized in that described client's module further comprises: be used to send message transmitting element, be used to receive the receiving element and the timer of message;
Wherein, described transmitting element sends the request message of appointed information that pulls subscription to described service module after client's module resets, and starts described timer; Described receiving element stops this timer when receiving the response message of this request message; The described transmitting element of indication is retransmitted described request message behind this timer expiry;
Described service module further comprises: be used to send message transmitting element, be used to receive message receiving element, be used to preserve client's module and its ordered appointed information corresponding relation memory cell and be used to judge whether subscribed described appointed information the judging unit that changes has taken place;
Wherein, after described receiving element is received request message from described client's module, the corresponding relation of setting up the appointed information of this client's module and its subscription also is kept at this corresponding relation in the described memory cell, and sends response message by described transmitting element to client's module; When described judging unit judges that variation has taken place described appointed information, indicate described transmitting element to send a notification message to client's module of having subscribed to this appointed information according to the corresponding relation in the described memory cell.
CNB2005101119108A 2005-12-23 2005-12-23 Communication device and its interactive method between modules Active CN100456771C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101119108A CN100456771C (en) 2005-12-23 2005-12-23 Communication device and its interactive method between modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101119108A CN100456771C (en) 2005-12-23 2005-12-23 Communication device and its interactive method between modules

Publications (2)

Publication Number Publication Date
CN1988448A true CN1988448A (en) 2007-06-27
CN100456771C CN100456771C (en) 2009-01-28

Family

ID=38185092

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101119108A Active CN100456771C (en) 2005-12-23 2005-12-23 Communication device and its interactive method between modules

Country Status (1)

Country Link
CN (1) CN100456771C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155712A (en) * 2015-03-26 2016-11-23 阿里巴巴集团控股有限公司 The acquisition methods of a kind of Windows control property and device
CN109936500A (en) * 2019-02-28 2019-06-25 深圳市元征科技股份有限公司 A kind of data interactive method, data interaction device and electronic equipment
CN111552907A (en) * 2020-04-29 2020-08-18 成都新致云服信息技术有限公司 Message processing method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003030474A2 (en) * 2001-09-28 2003-04-10 Markport Limited Mmsc access control
GB0213726D0 (en) * 2002-06-14 2002-07-24 Nokia Corp A communication system
CN1234224C (en) * 2002-10-14 2005-12-28 华为技术有限公司 Radio local network terminal on-line realtime testing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155712A (en) * 2015-03-26 2016-11-23 阿里巴巴集团控股有限公司 The acquisition methods of a kind of Windows control property and device
CN109936500A (en) * 2019-02-28 2019-06-25 深圳市元征科技股份有限公司 A kind of data interactive method, data interaction device and electronic equipment
CN111552907A (en) * 2020-04-29 2020-08-18 成都新致云服信息技术有限公司 Message processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN100456771C (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN100596049C (en) Message repeating method and system
CN1783852B (en) Efficient transfer of messages using reliable messaging protocols for WEB services
CN101340268B (en) Implementing method and system for inter-node communication confirming mechanism
US20110173495A1 (en) Method and System for Reliable Intersystem Message Notification
CN100420207C (en) Method and apparatus for realizing communication take-over and control
US20070156870A1 (en) Heartbeat subscriptions
CN104184546A (en) Method and system for reducing message retransmission in mobile communication network
CN101656595B (en) Transmitting system, apparatus, and method
CN100456771C (en) Communication device and its interactive method between modules
CN113986501A (en) Real-time database API (application program interface) uninterrupted calling method, system, storage medium and server
US7079535B2 (en) Method and apparatus for real-time fault-tolerant multicasts in computer networks
JPH09160858A (en) Data resending method and server
US7178051B2 (en) Method for synchronous support of fault-tolerant and adaptive communication
US6154129A (en) Operation system for transmission devices and alarm monitoring method
JP2764896B2 (en) Data delivery confirmation system
CN101909256B (en) Method for querying user information and multimedia message center
JP2809209B2 (en) Interprocess communication method
CN101895980B (en) Method and device for task synchronization
JP2004260562A (en) Method and device for transmitting and receiving packet
JPH0715485A (en) Method and device for receiving data
KR940007156B1 (en) Processor synchronization method for communication network
KR100310285B1 (en) Group communication method supporting fault-tolerant service in the real-time object-oriented distributed platform
JP3137183B2 (en) Communication system and its monitoring data delivery confirmation method
CN111417116B (en) Communication method and system adapted through ATT, read-write and exception handling
JP2776274B2 (en) Virtual buffer control system in relay computer

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