Summary of the invention
The object of this invention is to provide a kind of magnanimity terminal communication connecting system, in order to solve the low problem with mass termination cut-in pressure cannot be adapted to of traditional communication access method fail safe.
For achieving the above object, the solution of the present invention comprises a kind of magnanimity terminal communication connecting system, this telecommunications access systems comprises n communication set, Service Process Server cluster and k terminal, k terminal is divided into N number of grouping according to region, each grouping arranges a region gateway, terminal in each grouping puts Serial Communication into by the regional network in its grouping, and each communication set includes preposition routing server and communication processor; Communication processor is for receiving the data of terminal transmission in each grouping and being uploaded to corresponding preposition routing server, preposition routing server is used for receiving terminal type and type of message belonging to data according to difference, by the data upload of reception to Service Process Server cluster, or the transmitting order to lower levels of Service Process Server cluster is sent to terminal by communication processor, and Service Process Server cluster is used for processing or transmitting order to lower levels the data received.
Telecommunications access systems also comprises communication scheduling server, and communication scheduling server is used for the communication link between monitoring business processing server and terminal.
Each communication set also comprises load-balancing device, and load-balancing device is used for place communication set loading condition to send to communication scheduling server, and it is the corresponding communication set of each terminal distribution that communication scheduling server is used for according to the loading condition of each communication set.
Service Process Server cluster comprises a load equalizer, and load equalizer carries out dynamic equalization according to the loading condition of communication set to each Service Process Server.
The function of traditional communication front end processor has been carried out modularization fractionation by the present invention, forms the communication set be made up of communication processor cluster and preposition routing server.This design makes communication service high modularization, and communication processor is responsible for communication access and link maintenance, and preposition routing server is responsible for communication scheduling.Finally by Service Process Server be responsible for the encapsulation of stipulations and parsing, warehouse-in and main station system mutual.Each communication packet and the interaction of Service Process Server efficient collaboration, both, significantly improve the efficiency of the access of magnanimity terminal and process.
Native system is taked to divide into groups to terminal according to region, each grouping adopts communication processor to give full play to the performance of each communication processor in conjunction with load balancing, adopt this multistage method collected to realize the access of magnanimity terminal, and all terminals are divided into different regions, and the corresponding communication packet of terminal in each region accesses.Like this, namely simplify the complexity of communication access architecture and service, made again whole access scheme be provided with very large elasticity.Trial run and commencement of commercial operation process in, access terminal several less initial stage only with input a small amount of communication packet, along with the raising of number of terminals, progressively drop into more communication packet, make the performance of system and economy be obtained for guarantee.
The present invention also adopts communication scheduling server to monitor the communication link between each server and each terminal, conveniently can realize the monitor and managment of systematic communication network.In addition, communication scheduling server also has the function of initialize communications supervisor, preposition routing server.Can realize upgrading to the software Auto-mounting of communication processor, preposition routing server, and the automatic deployment of configuration item.Whole system is made to realize " 0 configuration " and fast automatic management.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described in detail.
A kind of magnanimity terminal communication connecting system, this telecommunications access systems comprises n communication set, Service Process Server cluster and k terminal, k terminal is divided into N number of grouping according to region, each grouping arranges a region gateway, terminal in each grouping puts Serial Communication into by the regional network in its grouping, and each communication set includes preposition routing server and communication processor; Communication processor is for receiving the data of terminal transmission in each grouping and being uploaded to corresponding preposition routing server, preposition routing server is used for receiving terminal type and type of message belonging to data according to difference, by the data upload of reception to Service Process Server cluster, or the transmitting order to lower levels of Service Process Server cluster is sent to terminal by communication processor, and Service Process Server cluster is used for processing or transmitting order to lower levels the data received.
Based on above technical scheme, by reference to the accompanying drawings, provide with next embodiment.
In the present invention, the number of communication set and the number of end packet can be identical, also can be different.Present embodiment is for 2 communication set and 2 end packet.
As shown in Figure 1, this magnanimity terminal communication connecting system comprises 2 communication set, a Service Process Server cluster and multiple terminal.In terminal data transport process, terminal and communication processor are set up TCP length and are connected, according to region, terminal is divided into groups: according to the configuration of region gateway, by all terminals with 2,000,000 for radix divides different groupings into, each grouping arranges a region gateway, and the terminal in each grouping puts Serial Communication into by the regional network in its grouping.Present embodiment is grouped into example terminal to be divided into 2.
In 2 communication set, each communication set includes preposition routing server and communication processor.Communication processor is for receiving the data of terminal transmission in each grouping and being uploaded to corresponding preposition routing server; This preposition routing server is used for receiving terminal type and type of message belonging to data according to difference, by the data upload of reception to Service Process Server cluster, or the transmitting order to lower levels of Service Process Server cluster is sent to terminal by communication processor; This Service Process Server cluster is used for processing or transmitting order to lower levels the data received.
The concrete effect of communication processor, preposition routing server and Service Process Server cluster is as follows:
Communication processor is responsible for connection that receiving terminal initiates, registration request, processes from the data interaction between upper layer application and terminal, and by the operating state of the method sense terminals such as heart beat detection, safeguards the communication link between terminal.The outer network data coming self terminal and data exchange interface, being linked in Utilities Electric Co.'s Intranet of safety.
Preposition routing server is mainly used in the communication port of maintenance and terminal, realizes data acquisition function.Preposition routing server is according to different terminals type, and different type of messages, gives corresponding Service Process Server, or the down order of Service Process Server is sent to terminal by corresponding passage the data retransmission of the transmission of terminal.
Communication set is carried out modularization fractionation, makes communication service high modularization, communication processor is responsible for communication access and link maintenance, and preposition routing server is responsible for communication scheduling.Finally by Service Process Server cluster be responsible for the encapsulation of stipulations and parsing, warehouse-in and main station system mutual.Each communication packet and the interaction of Service Process Server cluster efficient collaboration, both, significantly improve the efficiency of the access of magnanimity terminal and process.
Each communication set also comprises load-balancing device, and this load-balancing device is used for place communication set loading condition to send to communication scheduling server.It is the communication set that each terminal distribution is suitable that this communication scheduling server is used for according to the loading condition of each communication set, and suitable communication set refers to the communication set that load is less.When all the other communication set loads are larger, by the scheduling of communication scheduling server, the communication set controlling terminal to be communicated less with this load communicates, and can alleviate the communication pressure of the larger communication set of other loads like this.
This communication scheduling server also has following effect: the communication link be used between monitoring business processing server cluster and each terminal, conveniently can realize the monitor and managment of systematic communication network; The messaging parameter of record terminal and channel information, and feed back this information when other application need; Communication processor is managed, realizes communication processor state-detection, the upgrading of preposition service online; Initialize communications supervisor, preposition routing server; The software Auto-mounting of communication processor, preposition routing server is upgraded, and the automatic deployment of configuration item, make whole system realize " 0 configuration " and fast automatic management.
The corresponding communication set of terminal of each grouping accesses, and then each grouping adopts communication processor to give full play to the performance of each communication processor in conjunction with load balancing.
Like this, namely simplify the complexity of communication system architecture and service, make again whole system be provided with very large elasticity.Trial run and commencement of commercial operation process in, access terminal several less initial stage only with input a small amount of communication set, along with the raising of number of terminals, progressively drop into more communication set, make the performance of system and economy be obtained for guarantee.
Service Process Server cluster comprises a load equalizer, and this load equalizer carries out dynamic equalization according to the loading condition of communication set to each Service Process Server.Each Service Process Server can process various data, but each Service Process Server only processes the data of a kind of message or terminal type during normal work, when the data of one of them Service Process Server process are fewer, a part of data can be transferred to this server by the server that other processing pressure are larger, two kinds of data will be processed in this server simultaneously, the operating pressure of other servers can be reduced like this, save the operating time.
The relation of terminal and communication processor: terminal as Socket client's side link to communication processor.Through the distribution of load-balancing device, the new connection that each terminal is initiated all can be assigned to different communication processors by load-balancing device according to loading condition.
The relation of communication processor and preposition routing server: preposition routing server as Socket client's side link to communication processor.Preposition routing server needs initiatively to send request of data to communication processor, and communication processor subsequently asynchronous transmission message gives preposition routing server.
Communication mechanism between Service Process Server cluster, preposition routing server, communication processor: take the long connected mode of TCP.By preposition router as client, be initiatively connected to communication processor and Service Process Server, and maintain link with heartbeat frame.Preposition routing server also safeguards the SOT state of termination that an each communication processor of chain table record connects simultaneously.When the connection status of terminal and communication processor changes time, this change is reported preposition routing server by telecommunication management chance.
Service Process Server cluster, communication mechanism between preposition routing server and communication scheduling server: take the short connected mode of TCP.Preposition routing server and Service Process Server as client's side link to communication scheduling server.Terminal links in this communication set, preposition communication processor link condition are reported to communication scheduling server by preposition routing server in real time, Service Process Server is taken after mixing with liquid server when needs obtain link information to communication and is sent application message, and communication scheduling server uses asynchronous message to feed back subsequently.In addition Service Process Server also can report the state of oneself to communication scheduling server, as the authority of network management.
Be presented above concrete execution mode, but the present invention is not limited to described execution mode.Basic ideas of the present invention are above-mentioned basic scheme, and for those of ordinary skill in the art, according to instruction of the present invention, designing the model of various distortion, formula, parameter does not need to spend creative work.The change carried out execution mode without departing from the principles and spirit of the present invention, amendment, replacement and modification still fall within the scope of protection of the present invention.