CN105188087A - Business communication method and system based on short message gateway - Google Patents

Business communication method and system based on short message gateway Download PDF

Info

Publication number
CN105188087A
CN105188087A CN201410261460.XA CN201410261460A CN105188087A CN 105188087 A CN105188087 A CN 105188087A CN 201410261460 A CN201410261460 A CN 201410261460A CN 105188087 A CN105188087 A CN 105188087A
Authority
CN
China
Prior art keywords
short message
message service
service gateway
proxy server
casp
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
CN201410261460.XA
Other languages
Chinese (zh)
Other versions
CN105188087B (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.)
Beijing Shenzhou Taiyue Software Co Ltd
Original Assignee
Beijing Shenzhou Taiyue Software 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 Beijing Shenzhou Taiyue Software Co Ltd filed Critical Beijing Shenzhou Taiyue Software Co Ltd
Priority to CN201410261460.XA priority Critical patent/CN105188087B/en
Publication of CN105188087A publication Critical patent/CN105188087A/en
Application granted granted Critical
Publication of CN105188087B publication Critical patent/CN105188087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a business communication method and system based on a short message gateway, and relates to the technical field of mobile communication. A short message gateway proxy server is disposed between a plurality of CASPs and an ISMP, and is in long connection with the ISMP. The plurality of CASPs are respectively in short connection with the proxy server. The proxy server enables short message request received from the CASPs to be transmitted to the ISMP through long connection, thereby achieving the business communication of application services. Because the CASPs are in short connection with the short message gateway proxy server, the CASPs enables the short message requests to be transmitted to the proxy server, thereby achieving disconnection. Through the long connection, the short message requests transmitted by the plurality of CASPs can be transmitted to the short message gateway through the long connection. The method and system solve a problem that the resources of connection numbers for connecting the short message gateway on site is limited, are not limited by a connection port provided by the short message gateway, increase the number of CASPs accepted by the short message gateway, and reduce the application service load of a 4A platform.

Description

A kind of service communication method and system based on Short Message Service Gateway
Technical field
The present invention relates to mobile communication technology field, particularly a kind of service communication method and system based on Short Message Service Gateway.
Background technology
Various internet short message gateway interface protocol is in order to set up short message service center and ICP (InternetContentProvider, Web content service provider) between path, business and providing of information are completed by ICP, ICP and ISMG (InternetShortMessageGateway, Internet Short Message Gateway) between when carrying out information interaction, long connected mode can be adopted, also can adopt short connected mode.So-called long connection, refers to connect at one and can send multiple packet continuously, then disconnects, during connection keeps, if do not have Packet Generation, need both sides to send out link detecting bag.When short connection refers to that communication two party has a data interaction, just set up a connection, after data are sent completely, then disconnect this and connect, namely each connection only completes the transmission of a business.
Original 4A (unified security management platform) platform sends note, realizes short message receiving-transmitting by the direct-connected ISMG of application service socket.The method that 4A platform realizes short message receiving-transmitting by application service CASP by the direct-connected ISMG of socket communication mode is shown in Figure 1, the application service CASP assembly of 4A platform self possesses Collective qualification function, supported the short message certification mode of ISMG, the long communication modes connected of agreement support that short message sending process is followed, therefore requires that CASP end is held with ISMG and is uninterruptedly connected.
Due to the connectivity port limited amount for receiving note that operator SMS gateway is open to CASP, a connectivity port only can be connected with a CASP certificate server, cause providing the CASP certificate server limited amount sending short message service, at application service end, when using the number of users of short message certification mode to increase, the burden of CASP certificate server also can increase gradually.
Along with being on the increase of 4A system application service, the function of sending short messages is needed also to get more and more, but the linking number resource-constrained of joint connection in site Short Message Service Gateway, cause applying in a large number, seriously limit the buffering forwarding capability that services system sends note, the growth requirement of existing services system cannot have been met far away.
Summary of the invention
In view of the above problems, the embodiment of the present invention provides a kind of service communication method and system based on Short Message Service Gateway, by arranging short message receiving-transmitting proxy server, the problem causing the buffering forwarding capability of services system transmission note limited with the linking number resource-constrained solving Short Message Service Gateway.
The embodiment of the present invention have employed following technical scheme:
One embodiment of the invention provides a kind of service communication method based on Short Message Service Gateway, and between many application services CASP and Short Message Service Gateway ISMP of 4A platform, arrange Short Message Service Gateway proxy server, described method comprises:
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP;
Multiple application service CASP that need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server;
The note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, realizes the service communication of application service.
Described Short Message Service Gateway proxy server is also comprised after being connected by long connected mode and described Short Message Service Gateway ISMP:
Short Message Service Gateway proxy server periodically sends heartbeat authorization information to Short Message Service Gateway ISMP, to safeguard that the length between Short Message Service Gateway ISMP is connected.
Multiple application service CASP that described need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server and comprise:
The connectivity port that described Short Message Service Gateway ISMP provides is N number of, then the described Short Message Service Gateway proxy server connected by long connected mode and described Short Message Service Gateway ISMP is M, long connection set up respectively by each Short Message Service Gateway proxy server with a Short Message Service Gateway ISMP port, M is less than or equal to N;
Multiple application service CASP that described need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server and comprise:
When application service CASP need carry out short message communication, this application service CASP determines current preferred Short Message Service Gateway proxy server according to load-balancing algorithm;
This application service CASP is connected by short connected mode and current preferred Short Message Service Gateway proxy server.
According to load-balancing algorithm, described this application service CASP determines that current preferred Short Message Service Gateway proxy server comprises:
Application service CASP sends a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; The described response time according to its own processing capabilities calculated response time, and is fed back to application service CASP by each Short Message Service Gateway proxy server; Short Message Service Gateway proxy server corresponding to the shortest response time is defined as current preferred Short Message Service Gateway proxy server by application service CASP;
Or
Application service CASP sends a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; The linking number computation-free number that each Short Message Service Gateway proxy server is current according to self, and described idle number is fed back to application service CASP; Short Message Service Gateway proxy server corresponding to maximum idle numbers is defined as current preferred Short Message Service Gateway proxy server by application service CASP;
Or,
Application service CASP according to polling algorithm determine from last or on the different Short Message Service Gateway proxy server of the Short Message Service Gateway proxy server that connects several times, as current preferred Short Message Service Gateway proxy server.
The note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, and the service communication realizing application service comprises:
Described Short Message Service Gateway proxy server is stored in task pool by asynchronous for the note request received from described application service CASP termination;
The request of note described in task pool is sent to Short Message Service Gateway ISMP by described long connection according to task scheduling algorithm by Short Message Service Gateway proxy server, and the note solicited message of transmission is recorded in daily record.
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP and comprises:
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP, and in described long connection, create receipts and an operation that note is carried out in a socket session; Or
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP, and creates two socket sessions in described long connection, is respectively used to an operation of bring drill to an end work and the note of carrying out note.
In addition, the embodiment of the present invention additionally provides a kind of service communication system based on Short Message Service Gateway, and described system comprises: many application services CASP, the Short Message Service Gateway ISMP of 4A platform and the Short Message Service Gateway proxy server arranged between many application services CASP and Short Message Service Gateway ISMP of 4A platform;
Described Short Message Service Gateway proxy server comprises:
Gateway link block, for connecting by long connected mode and described Short Message Service Gateway ISMP;
CASP link block, for connecting respectively by short connected mode and multiple application service CASP that need carry out short message communication;
Business module, for the note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection, realizes the service communication of application service.
Described Short Message Service Gateway proxy server also comprises:
Connect and maintain module, for periodically sending heartbeat authorization information to Short Message Service Gateway ISMP, to safeguard that the length between Short Message Service Gateway ISMP is connected.
Described CASP link block sets up long connection respectively specifically for each Short Message Service Gateway proxy server with a Short Message Service Gateway ISMP port; The connectivity port that described Short Message Service Gateway ISMP provides is N number of, then the described Short Message Service Gateway proxy server connected by long connected mode and described Short Message Service Gateway ISMP is M, and M is less than or equal to N;
Described application service CASP also comprises:
Load balancing module, during for carrying out short message communication, determines current preferred Short Message Service Gateway proxy server according to load-balancing algorithm;
Preferentially link block, for connecting by the CASP link block of short connected mode and current preferred Short Message Service Gateway proxy server.
Described load balancing module comprises:
First balanced unit, for sending a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; Receive the response time of Short Message Service Gateway proxy server feedback, the Short Message Service Gateway proxy server corresponding to the shortest response time is defined as current preferred Short Message Service Gateway proxy server; Or
Second balanced unit, for sending a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; Receive the idle number of Short Message Service Gateway proxy server feedback, the Short Message Service Gateway proxy server corresponding to maximum idle numbers is defined as current preferred Short Message Service Gateway proxy server; Or
3rd balanced unit, for determine according to polling algorithm from last or on the different Short Message Service Gateway proxy server of the Short Message Service Gateway proxy server that connects several times, as current preferred Short Message Service Gateway proxy server;
Described Short Message Service Gateway proxy server comprises load parameter computing module, and described load parameter computing module specifically comprises:
First load parameter computing unit, for receiving the probe requests thereby that described first balanced unit sends, according to its own processing capabilities calculated response time, and feeds back to described first balanced unit by the described response time; Or
Second load parameter computing unit, for receiving the probe requests thereby that described second balanced unit sends, the linking number computation-free number current according to self, and feeds back to described second balanced unit by described idle number.
Described business module comprises:
Task location, for being stored in task pool by asynchronous for the note request received from described application service CASP termination;
Task scheduling unit, for the request of note described in task pool being sent to Short Message Service Gateway ISMP by described long connection according to task scheduling algorithm, and is recorded in daily record by the note solicited message of transmission;
Described gateway link block comprises:
Transceiver unit, for being connected by long connected mode and described Short Message Service Gateway ISMP, and creates receipts and the operation that note is carried out in a socket session in described long connection; Or
Receiving and dispatching separative element, for being connected by long connected mode and described Short Message Service Gateway ISMP, and creating two socket sessions in described long connection, be respectively used to an operation of bring drill to an end work and the note of carrying out note.
A kind of service communication method and system based on Short Message Service Gateway that the embodiment of the present invention provides, between many application services CASP and Short Message Service Gateway ISMP of 4A platform, arrange Short Message Service Gateway proxy server, described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP; Multiple application service CASP that need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server; The note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, realizes the service communication of application service.Visible, because multiple application service CASP that need carry out short message communication are connected by short connected mode and Short Message Service Gateway proxy server, like this, note request is sent to corresponding Short Message Service Gateway proxy server and just can disconnects by application service CASP, thus allow other CASP and proxy server set up short connection, send note request, and Short Message Service Gateway proxy server is connected by long connection establishment with between Short Message Service Gateway, thus the note request that multiple CASP can be sent is sent to Short Message Service Gateway by long connection.Therefore the embodiment of the present invention overcomes the problem of the linking number resource-constrained of joint connection in site Short Message Service Gateway, the connectivity port that can not provide by Short Message Service Gateway limits, substantially increase the receptible CASP quantity of Short Message Service Gateway, alleviate the application service load of 4A platform.
Accompanying drawing explanation
Fig. 1 is the network architecture realizing service communication in prior art based on Short Message Service Gateway;
A kind of method flow diagram realizing service communication based on Short Message Service Gateway that Fig. 2 embodiment of the present invention provides;
A kind of network architecture realizing service communication based on Short Message Service Gateway that Fig. 3 provides for the embodiment of the present invention;
A kind of concrete grammar example schematic realizing service communication based on Short Message Service Gateway that Fig. 4 provides for the embodiment of the present invention;
A kind of system architecture diagram realizing service communication based on Short Message Service Gateway that Fig. 5 provides for the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
See Fig. 2, the embodiment of the present invention provides a kind of method realizing service communication based on Short Message Service Gateway.
First, S201: Short Message Service Gateway proxy server is set between many application services CASP and Short Message Service Gateway ISMP of 4A platform, specifically shown in Figure 3.
4A refers to: certification Authentication, account Account, mandate Authorization, audit Audit, Chinese is unified security management platform solution.Be defined as four large parts of network security by authentication, mandate, audit and account (i.e. non-repudiation and data integrity), thus establish the role and effect of authentication in whole network safety system.
The method that the embodiment of the present invention provides comprises:
S202: Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP.
Concrete, described Short Message Service Gateway proxy server is also comprised after being connected by long connected mode and described Short Message Service Gateway ISMP:
Short Message Service Gateway proxy server periodically sends heartbeat authorization information to Short Message Service Gateway ISMP, to safeguard that the length between Short Message Service Gateway ISMP is connected.
That is, Short Message Service Gateway proxy server and Short Message Service Gateway heartbeat detection: Short Message Service Gateway proxy server and Short Message Service Gateway need timed sending heartbeat packet to maintain the normal of connection after setting up long connection, otherwise network management by short messages side can active termination connect.Concrete, the normal of connection can be maintained according to group of China Mobile CMPP2.0 or CMPP3.0 agreement timed sending heartbeat packet.
Wherein, CMPP (ChinaMobilePeertoPeer, China Mobile) describe type and the definition of the related news in China Mobile's short message service between each network element (comprising ISMG, GNS and SP), define the Applied layer interface agreement of information resource station entity and Internet Short Message Gateway.
As a preferred embodiment, in this step, described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP and can be specifically:
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP, and in described long connection, create receipts and an operation that note is carried out in a socket session.
Or described Short Message Service Gateway proxy server is connected can also be specially by long connected mode and described Short Message Service Gateway ISMP:
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP, and creates two socket sessions in described long connection, is respectively used to an operation of bring drill to an end work and the note of carrying out note.
That is, that sets up between Short Message Service Gateway proxy server and Short Message Service Gateway long connects, can compatible transceiver and receive and dispatch separation two kinds of working methods and be connected with Short Message Service Gateway.Specific as follows:
1. transceiver, refers to that cmppserver connects to send note and obtain note with ISMG and completes in a socket session.Such as transceiver pattern can be that operator of each province No. SP of distributing to be connected with ISMG that to receive and dispatch note be complete in a socket connection.
2. transmitting-receiving is separated, and refers to that cmppserver connects to send note and obtain note with ISMG and completes in two socket sessions.Such as receiving and dispatching clastotype can be that operator of each province No. SP of distributing to be connected with ISMG that to receive and dispatch note be connected by two socket.
S203: multiple application service CASP that need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server.
It should be noted that, as a kind of preferred embodiment, multiple application service CASP that described need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server and specifically comprise:
The connectivity port that described Short Message Service Gateway ISMP provides is N number of, then the described Short Message Service Gateway proxy server connected by long connected mode and described Short Message Service Gateway ISMP is M, long connection set up respectively by each Short Message Service Gateway proxy server with a Short Message Service Gateway ISMP port, M is less than or equal to N.
Can support in the embodiment of the present invention to set up short connection between many CASP with Short Message Service Gateway proxy server, and when CASP has note request to send demand, preferably, can according to load-balancing algorithm select current performance preferably Short Message Service Gateway proxy server connect.
Concrete, multiple application service CASP that described need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server and comprise:
When application service CASP need carry out short message communication, this application service CASP determines current preferred Short Message Service Gateway proxy server according to load-balancing algorithm;
This application service CASP is connected by short connected mode and current preferred Short Message Service Gateway proxy server.
Above-mentioned load-balancing algorithm determines that current preferred Short Message Service Gateway proxy server can have various ways, below enumerates three kinds of load-balancing algorithms and is described:
1) Best-case Response Time strategy is detected, be meant to casp and first can send a probe requests thereby to all Short Message Service Gateway proxy servers before sending note request to Short Message Service Gateway proxy server, Short Message Service Gateway proxy server can give this casp according to oneself response time of process request power feedback, and then that Short Message Service Gateway proxy server of casp Response to selection shortest time sends note request.
2) minimum idle policy is detected, be meant to casp and first can send a probe requests thereby to all Short Message Service Gateway proxy servers before sending note request to Short Message Service Gateway proxy server, Short Message Service Gateway proxy server the linking number situation current according to oneself can feed back an idle number to this casp, and then casp selects that Short Message Service Gateway proxy server of idle number optimum to send note request.
3) polling schemas, be meant to casp send at every turn note all select to catch up with time or on different several times Short Message Service Gateway proxy servers send.
Concrete, according to load-balancing algorithm, described this application service CASP determines that current preferred Short Message Service Gateway proxy server comprises:
Mode one: application service CASP sends a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; The described response time according to its own processing capabilities calculated response time, and is fed back to application service CASP by each Short Message Service Gateway proxy server; Short Message Service Gateway proxy server corresponding to the shortest response time is defined as current preferred Short Message Service Gateway proxy server by application service CASP.
Or, mode two: application service CASP sends a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; The linking number computation-free number that each Short Message Service Gateway proxy server is current according to self, and described idle number is fed back to application service CASP; Short Message Service Gateway proxy server corresponding to maximum idle numbers is defined as current preferred Short Message Service Gateway proxy server by application service CASP.
Or, mode three: application service CASP according to polling algorithm determine from last or on the different Short Message Service Gateway proxy server of the Short Message Service Gateway proxy server that connects several times, as current preferred Short Message Service Gateway proxy server.
S204: the note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by Short Message Service Gateway proxy server, realizes the service communication of application service.
The note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, and the service communication realizing application service comprises:
Described Short Message Service Gateway proxy server is stored in task pool by asynchronous for the note request received from described application service CASP termination;
The request of note described in task pool is sent to Short Message Service Gateway ISMP by described long connection according to task scheduling algorithm by Short Message Service Gateway proxy server, and the note solicited message of transmission is recorded in daily record.
Preferably, the embodiment of the present invention also comprises:
Between Short Message Service Gateway proxy server and Short Message Service Gateway after long connection establishment, create a receiving thread, in order to receive the answer short message that Short Message Service Gateway issues, be sent to service port, to realize business function.
A kind of service communication method based on Short Message Service Gateway that the embodiment of the present invention provides, between many application services CASP and Short Message Service Gateway ISMP of 4A platform, arrange Short Message Service Gateway proxy server, described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP; Multiple application service CASP that need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server; The note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, realizes the service communication of application service.Visible, because multiple application service CASP that need carry out short message communication are connected by short connected mode and Short Message Service Gateway proxy server, like this, note request is sent to corresponding Short Message Service Gateway proxy server and just can disconnects by application service CASP, thus allow other CASP and proxy server set up short connection, send note request, and Short Message Service Gateway proxy server is connected by long connection establishment with between Short Message Service Gateway, thus the note request that multiple CASP can be sent is sent to Short Message Service Gateway by long connection.Therefore the embodiment of the present invention overcomes the problem of the linking number resource-constrained of joint connection in site Short Message Service Gateway, the connectivity port that can not provide by Short Message Service Gateway limits, substantially increase the receptible CASP quantity of Short Message Service Gateway, alleviate the application service load of 4A platform.
See Fig. 4, the embodiment of the present invention provides a kind of concrete grammar example realizing service communication based on Short Message Service Gateway, realizes a kind of method of national treasury service authentication with the Short Message Service Gateway provided based on China Mobile.
China Mobile short message receiving-transmitting proxy server CMPPServer (i.e. Short Message Service Gateway proxy server), this mechanism follows China Mobile message gateway interface agreement CMPP2.0 and CMPP3.0, can compatible transceiver and transmitting-receiving separation two kinds of working methods be connected with Short Message Service Gateway:
Transceiver pattern No. SP of referring to that China Mobile of each province distributes to be connected with ISMG that to receive and dispatch note be complete in a socket connection.
Transmitting-receiving clastotype No. SP of referring to that China Mobile of each province distributes to be connected with ISMG that to receive and dispatch note be connected by two socket.
In this example, 4A system is for CASP certificate server, and concrete treatment step is as follows:
1.CMPPServer serves startup: CMPPServer is as an independently java process, after startup, the configuration file connection Short Message Service Gateway of self is read in meeting initialization, with regard to sending request in wait-receiving mode client-side Socket link after successful connection, and more detailed logging record is done to the process forwarded.
2.CMPPServer service end receives request: need to send the CASP certificate server end of note and need introducing cmppClient.jar bag, client bag mainly provides short message sending interface, sets up Socket be connected and realize short message sending with CMPPServer.The note request that 4A side sends over, CMPPServer service end meeting receiving filtration, and log.
3.CMPPServer core missions pond: what CMPPServer service end received the request of sending short messages, can asynchronously be placed in core missions pond, then realize subsequent treatment by task pool own schedule.
4.CMPPServer task scheduling sends note: be placed into the request of sending short messages in core missions pond, task pool can perform by Automatic dispatching, to send the request forward of note to the Short Message Service Gateway connected, and the short message content that log recording is correlated with is to journal file, for enforcement, personnel investigate problem.
5.CMPPServer sets up after long connection with Short Message Service Gateway heartbeat detection: CMPPServer with Short Message Service Gateway, need to maintain the normal of connection according to group of China Mobile CMPP2.0 or CMPP3.0 agreement timed sending heartbeat packet, otherwise network management by short messages side can active termination connect.
When 6.CMPPServer scanning receives note: CMPPServer service startup, the Socket connecting link that a receiving thread comes timing scan and Short Message Service Gateway can be created, receive the answer short message that Short Message Service Gateway issues, once receive, can record the short message content of reception in journal file, and forwarding short message gives follow-up process application program.
Wherein, the request of certification note is sent to certification backstage through Short Message Service Gateway proxy server CMPPServer and Short Message Service Gateway and carries out certification by each CASP assembly in CASP certificate server side, the authentication result received from certification backstage is sent to national treasury service by Short Message Service Gateway, and then realizes national treasury business function.
Visible, CMPPServer proxy server, is placed between CASP certificate server and ISMG, alleviates the certification load of CASP certificate server on the one hand, and avoids the long connecting communication between CASP and ISMG.
See Fig. 5, the embodiment of the present invention provides a kind of system realizing service communication based on Short Message Service Gateway, and described system comprises:
Many application services CASP501, the Short Message Service Gateway ISMP502 of 4A platform and the Short Message Service Gateway proxy server 503 arranged between many application services CASP and Short Message Service Gateway ISMP of 4A platform;
Described Short Message Service Gateway proxy server 503 comprises:
Gateway link block 5031, for connecting by long connected mode and described Short Message Service Gateway ISMP;
CASP link block 5032, for connecting respectively by short connected mode and multiple application service CASP that need carry out short message communication;
Business module 5033, for the note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection, realizes the service communication of application service.
Preferably, described Short Message Service Gateway proxy server also comprises:
Connect and maintain module, for periodically sending heartbeat authorization information to Short Message Service Gateway ISMP, to safeguard that the length between Short Message Service Gateway ISMP is connected.
Further, described CASP link block sets up long connection respectively specifically for each Short Message Service Gateway proxy server with a Short Message Service Gateway ISMP port; The connectivity port that described Short Message Service Gateway ISMP provides is N number of, then the described Short Message Service Gateway proxy server connected by long connected mode and described Short Message Service Gateway ISMP is M, and M is less than or equal to N.
Preferably, described application service CASP also comprises:
Load balancing module, during for carrying out short message communication, determines current preferred Short Message Service Gateway proxy server according to load-balancing algorithm;
Preferentially link block, for connecting by the CASP link block of short connected mode and current preferred Short Message Service Gateway proxy server.
Concrete, above-mentioned load balancing module comprises:
First balanced unit, for sending a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; Receive the response time of Short Message Service Gateway proxy server feedback, the Short Message Service Gateway proxy server corresponding to the shortest response time is defined as current preferred Short Message Service Gateway proxy server.
Or the second balanced unit, for sending a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; Receive the idle number of Short Message Service Gateway proxy server feedback, the Short Message Service Gateway proxy server corresponding to maximum idle numbers is defined as current preferred Short Message Service Gateway proxy server.
Or, the 3rd balanced unit, for determine according to polling algorithm from last or on the different Short Message Service Gateway proxy server of the Short Message Service Gateway proxy server that connects several times, as current preferred Short Message Service Gateway proxy server.
Accordingly, described Short Message Service Gateway proxy server comprises load parameter computing module, and load parameter computing module specifically comprises:
First load parameter computing unit, for receiving the probe requests thereby that described first balanced unit sends, according to its own processing capabilities calculated response time, and feeds back to described first balanced unit by the described response time.
Or the second load parameter computing unit, for receiving the probe requests thereby that described second balanced unit sends, the linking number computation-free number current according to self, and feeds back to described second balanced unit by described idle number.
Further, described business module comprises:
Task location, for being stored in task pool by asynchronous for the note request received from described application service CASP termination;
Task scheduling unit, for the request of note described in task pool being sent to Short Message Service Gateway ISMP by described long connection according to task scheduling algorithm, and is recorded to the note solicited message of transmission in daily record.
Preferably, described gateway link block comprises:
Transceiver unit, for being connected by long connected mode and described Short Message Service Gateway ISMP, and creates receipts and the operation that note is carried out in a socket session in described long connection.
Or, receiving and dispatching separative element, for being connected by long connected mode and described Short Message Service Gateway ISMP, and creating two socket sessions in described long connection, be respectively used to an operation of bring drill to an end work and the note of carrying out note.
It should be noted that, the modules in present system embodiment or the operation principle of unit and processing procedure see the associated description in embodiment of the method shown in above-mentioned Fig. 2-Fig. 4, can repeat no more herein.
A kind of service communication system based on Short Message Service Gateway that the embodiment of the present invention provides, between many application services CASP and Short Message Service Gateway ISMP of 4A platform, arrange Short Message Service Gateway proxy server, described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP; Multiple application service CASP that need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server; The note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, realizes the service communication of application service.Visible, because multiple application service CASP that need carry out short message communication are connected by short connected mode and Short Message Service Gateway proxy server, like this, note request is sent to corresponding Short Message Service Gateway proxy server and just can disconnects by application service CASP, thus allow other CASP and proxy server set up short connection, send note request, and Short Message Service Gateway proxy server is connected by long connection establishment with between Short Message Service Gateway, thus the note request that multiple CASP can be sent is sent to Short Message Service Gateway by long connection.Therefore the embodiment of the present invention overcomes the problem of the linking number resource-constrained of joint connection in site Short Message Service Gateway, the connectivity port that can not provide by Short Message Service Gateway limits, substantially increase the receptible CASP quantity of Short Message Service Gateway, alleviate the application service load of 4A platform.
For the ease of the technical scheme of the clear description embodiment of the present invention, in inventive embodiment, have employed the printed words such as " first ", " second " to distinguish the substantially identical identical entry of function and efficacy or similar item, it will be appreciated by those skilled in the art that the printed words such as " first ", " second " do not limit quantity and execution order.
One of ordinary skill in the art will appreciate that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, this program is when performing, comprise the steps: (step of method), described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. based on a service communication method for Short Message Service Gateway, it is characterized in that, between many application services CASP and Short Message Service Gateway ISMP of 4A platform, arrange Short Message Service Gateway proxy server, described method comprises:
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP;
Multiple application service CASP that need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server;
The note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, realizes the service communication of application service.
2. the service communication method based on Short Message Service Gateway according to claim 1, is characterized in that, described Short Message Service Gateway proxy server is also comprised after being connected by long connected mode and described Short Message Service Gateway ISMP:
Short Message Service Gateway proxy server periodically sends heartbeat authorization information to Short Message Service Gateway ISMP, to safeguard that the length between Short Message Service Gateway ISMP is connected.
3. the service communication method based on Short Message Service Gateway according to claim 1, is characterized in that, multiple application service CASP that described need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server and comprise:
The connectivity port that described Short Message Service Gateway ISMP provides is N number of, then the described Short Message Service Gateway proxy server connected by long connected mode and described Short Message Service Gateway ISMP is M, long connection set up respectively by each Short Message Service Gateway proxy server with a Short Message Service Gateway ISMP port, M is less than or equal to N;
Multiple application service CASP that described need carry out short message communication connect respectively by short connected mode and described Short Message Service Gateway proxy server and comprise:
When application service CASP need carry out short message communication, this application service CASP determines current preferred Short Message Service Gateway proxy server according to load-balancing algorithm;
This application service CASP is connected by short connected mode and current preferred Short Message Service Gateway proxy server.
4. the service communication method based on Short Message Service Gateway according to claim 3, is characterized in that, according to load-balancing algorithm, described this application service CASP determines that current preferred Short Message Service Gateway proxy server comprises:
Application service CASP sends a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; The described response time according to its own processing capabilities calculated response time, and is fed back to application service CASP by each Short Message Service Gateway proxy server; Short Message Service Gateway proxy server corresponding to the shortest response time is defined as current preferred Short Message Service Gateway proxy server by application service CASP;
Or
Application service CASP sends a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; The linking number computation-free number that each Short Message Service Gateway proxy server is current according to self, and described idle number is fed back to application service CASP; Short Message Service Gateway proxy server corresponding to maximum idle numbers is defined as current preferred Short Message Service Gateway proxy server by application service CASP;
Or,
Application service CASP according to polling algorithm determine from last or on the different Short Message Service Gateway proxy server of the Short Message Service Gateway proxy server that connects several times, as current preferred Short Message Service Gateway proxy server.
5. the service communication method based on Short Message Service Gateway according to claim 1, it is characterized in that, the note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection by described Short Message Service Gateway proxy server, and the service communication realizing application service comprises:
Described Short Message Service Gateway proxy server is stored in task pool by asynchronous for the note request received from described application service CASP termination;
The request of note described in task pool is sent to Short Message Service Gateway ISMP by described long connection according to task scheduling algorithm by Short Message Service Gateway proxy server, and the note solicited message of transmission is recorded in daily record.
6. the service communication method based on Short Message Service Gateway according to claim 1, is characterized in that, described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP and comprises:
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP, and in described long connection, create receipts and an operation that note is carried out in a socket session; Or
Described Short Message Service Gateway proxy server is connected by long connected mode and described Short Message Service Gateway ISMP, and creates two socket sessions in described long connection, is respectively used to an operation of bring drill to an end work and the note of carrying out note.
7. the service communication system based on Short Message Service Gateway, it is characterized in that, described system comprises: many application services CASP, the Short Message Service Gateway ISMP of 4A platform and the Short Message Service Gateway proxy server arranged between many application services CASP and Short Message Service Gateway ISMP of 4A platform;
Described Short Message Service Gateway proxy server comprises:
Gateway link block, for connecting by long connected mode and described Short Message Service Gateway ISMP;
CASP link block, for connecting respectively by short connected mode and multiple application service CASP that need carry out short message communication;
Business module, for the note request received from described application service CASP termination is sent to Short Message Service Gateway ISMP by described long connection, realizes the service communication of application service.
8. the service communication system based on Short Message Service Gateway according to claim 7, is characterized in that, described Short Message Service Gateway proxy server also comprises:
Connect and maintain module, for periodically sending heartbeat authorization information to Short Message Service Gateway ISMP, to safeguard that the length between Short Message Service Gateway ISMP is connected.
9. the service communication system based on Short Message Service Gateway according to claim 7, is characterized in that,
Described CASP link block sets up long connection respectively specifically for each Short Message Service Gateway proxy server with a Short Message Service Gateway ISMP port; The connectivity port that described Short Message Service Gateway ISMP provides is N number of, then the described Short Message Service Gateway proxy server connected by long connected mode and described Short Message Service Gateway ISMP is M, and M is less than or equal to N;
Described application service CASP also comprises:
Load balancing module, during for carrying out short message communication, determines current preferred Short Message Service Gateway proxy server according to load-balancing algorithm;
Preferentially link block, for connecting by the CASP link block of short connected mode and current preferred Short Message Service Gateway proxy server.
Described load balancing module comprises:
First balanced unit, for sending a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; Receive the response time of Short Message Service Gateway proxy server feedback, the Short Message Service Gateway proxy server corresponding to the shortest response time is defined as current preferred Short Message Service Gateway proxy server; Or
Second balanced unit, for sending a probe requests thereby to multiple Short Message Service Gateway proxy server simultaneously; Receive the idle number of Short Message Service Gateway proxy server feedback, the Short Message Service Gateway proxy server corresponding to maximum idle numbers is defined as current preferred Short Message Service Gateway proxy server; Or
3rd balanced unit, for determine according to polling algorithm from last or on the different Short Message Service Gateway proxy server of the Short Message Service Gateway proxy server that connects several times, as current preferred Short Message Service Gateway proxy server;
Described Short Message Service Gateway proxy server comprises load parameter computing module, and described load parameter computing module specifically comprises:
First load parameter computing unit, for receiving the probe requests thereby that described first balanced unit sends, according to its own processing capabilities calculated response time, and feeds back to described first balanced unit by the described response time; Or
Second load parameter computing unit, for receiving the probe requests thereby that described second balanced unit sends, the linking number computation-free number current according to self, and feeds back to described second balanced unit by described idle number.
10. the service communication system based on Short Message Service Gateway according to claim 7, is characterized in that,
Described business module comprises:
Task location, for being stored in task pool by asynchronous for the note request received from described application service CASP termination;
Task scheduling unit, for the request of note described in task pool being sent to Short Message Service Gateway ISMP by described long connection according to task scheduling algorithm, and is recorded in daily record by the note solicited message of transmission;
Described gateway link block comprises:
Transceiver unit, for being connected by long connected mode and described Short Message Service Gateway ISMP, and creates receipts and the operation that note is carried out in a socket session in described long connection; Or
Receiving and dispatching separative element, for being connected by long connected mode and described Short Message Service Gateway ISMP, and creating two socket sessions in described long connection, be respectively used to an operation of bring drill to an end work and the note of carrying out note.
CN201410261460.XA 2014-06-12 2014-06-12 A kind of service communication method and system based on Short Message Service Gateway Active CN105188087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410261460.XA CN105188087B (en) 2014-06-12 2014-06-12 A kind of service communication method and system based on Short Message Service Gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410261460.XA CN105188087B (en) 2014-06-12 2014-06-12 A kind of service communication method and system based on Short Message Service Gateway

Publications (2)

Publication Number Publication Date
CN105188087A true CN105188087A (en) 2015-12-23
CN105188087B CN105188087B (en) 2018-11-23

Family

ID=54909875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410261460.XA Active CN105188087B (en) 2014-06-12 2014-06-12 A kind of service communication method and system based on Short Message Service Gateway

Country Status (1)

Country Link
CN (1) CN105188087B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710878A (en) * 2018-12-28 2019-05-03 北京百佑科技有限公司 Data interactive method and server
CN111131400A (en) * 2019-12-04 2020-05-08 浪潮软件股份有限公司 Service agent system and method based on gateway
CN113612827A (en) * 2021-07-26 2021-11-05 海南港澳资讯产业股份有限公司 Method and system for efficiently transmitting financial information in batches

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1303832C (en) * 2004-12-27 2007-03-07 中国联合通信有限公司 Authentication method and system for short message value-added service
CN100349479C (en) * 2004-12-27 2007-11-14 中国联合通信有限公司 Response method for short message sending
CN100455059C (en) * 2007-01-15 2009-01-21 华为技术有限公司 Short message gateway bridging system, method and short message gateway bridge module
CN102891877B (en) * 2011-07-22 2017-08-25 南京中兴新软件有限责任公司 Realize the Online Processing System and method of terminal applies

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710878A (en) * 2018-12-28 2019-05-03 北京百佑科技有限公司 Data interactive method and server
CN111131400A (en) * 2019-12-04 2020-05-08 浪潮软件股份有限公司 Service agent system and method based on gateway
CN111131400B (en) * 2019-12-04 2022-08-16 浪潮软件股份有限公司 Service agent system and method based on gateway
CN113612827A (en) * 2021-07-26 2021-11-05 海南港澳资讯产业股份有限公司 Method and system for efficiently transmitting financial information in batches

Also Published As

Publication number Publication date
CN105188087B (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN102790808B (en) A kind of domain name analytic method and system, a kind of client
CN101227343B (en) Method and device for testing TCPv6 and UDPv6
KR102208935B1 (en) Messaging api over http protocol to establish context for data exchange
US10193848B2 (en) System and related method for management of devices of a network system via social media interfaces
CN107528891B (en) Websocket-based automatic clustering method and system
CN105847139A (en) Data transmission method, apparatus and system
CN101909257A (en) Method and system for realizing concurrency access of multiple bearer protocols by M2M platform
CN103457843A (en) Communication method, communication system, relay gateway device, application server and client side
CN102523207A (en) VNC (Virtual Network Computer)-based remote resource access method and proxy device
CN102845123A (en) Virtual private cloud connection method and tunnel proxy server
CN104811371A (en) Brand-new instant messaging system
CN103685357A (en) Account multi-open message processing method and system
CN111083177B (en) Cross-domain collaborative interaction method based on collaborative gateway
CN113014847A (en) Method and system for realizing audio and video communication based on hybrid cloud architecture
CN103200214A (en) Method and system for processing off-line messages in centralized mode
CN111064742B (en) Method, device and related equipment for realizing intranet access based on network agent
CN105188087A (en) Business communication method and system based on short message gateway
CN101599921A (en) A kind of enterprise instant communication system and document transmission method thereof
CN106330994A (en) User message publishing method and system
CN108259249A (en) Method for network access, router, terminal device, server and network system
CN106331051B (en) Document transmission method and system and reception file device send file device
CN104486133A (en) Network element agency managing method and system
CN107395582A (en) Portal authentication devices and system
CN104780230A (en) Method of automatically acquiring cloud server IP address, system and cloud system
CN102546712A (en) Message transmission method, equipment and system based on distributed service 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
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 818, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A Room 601

Patentee before: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.