CN102137104B - Transmission control protocol (TCP) long-connection access control method and device - Google Patents

Transmission control protocol (TCP) long-connection access control method and device Download PDF

Info

Publication number
CN102137104B
CN102137104B CN201110059138.5A CN201110059138A CN102137104B CN 102137104 B CN102137104 B CN 102137104B CN 201110059138 A CN201110059138 A CN 201110059138A CN 102137104 B CN102137104 B CN 102137104B
Authority
CN
China
Prior art keywords
long
tcp
connects
end processor
access
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.)
Expired - Fee Related
Application number
CN201110059138.5A
Other languages
Chinese (zh)
Other versions
CN102137104A (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
Huawei Software 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 CN201110059138.5A priority Critical patent/CN102137104B/en
Publication of CN102137104A publication Critical patent/CN102137104A/en
Application granted granted Critical
Publication of CN102137104B publication Critical patent/CN102137104B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a transmission control protocol (TCP) long-connection access control method comprising the following steps: receiving synchronous notification messages comprising TCP long-connection access or disconnection information sent by a long-connection front-end processor via a central control node; calculating the number of the current TCP long connections; receiving a TCP long-connection application request message sent by the long-connection front-end processor; judging whether the number of the current TCP long connections is less than a preset value; if yes, returning an application response message permitted to access to the long-connection front-end processor; and otherwise, returning an application response message which is not permitted to access to the long-connection front-end processor. The invention also provides the corresponding central control node, the long-connection front-end processor and telecommunication equipment. In the technical scheme, the central control node judges whether the number of the current TCP long connections is less than a preset value so as to decide whether a TCP long connection is permitted to access; the number of the accessed TCP long connections can be accurately calculated and controlled; and thus, the telecommunication equipment can reliably operate.

Description

Long connection control method and the device of connecting of a kind of transmission control protocol TCP
Technical field
The present invention relates to communication technical field, be specifically related to long connection control method and the device of connecting of a kind of transmission control protocol TCP.
Background technology
Long connection of transmission control protocol (Transmission Control Protocol, TCP) is a kind of communication connection of first setting up, and connection does not disconnect after setting up, and then can repeat the connected mode of message sending and receiving, is usually used in point-to-point communication.
Along with the surge of teledata traffic carrying capacity, the telecommunication apparatus of bearing data service for example gateway device can access long connection of a large amount of TCP that external client sets up conventionally.On the one hand, telecommunication apparatus need to ensure the long establishment of connection of ext nal network element TCP as far as possible, meets carrying out of data service; On the other hand, in order to ensure telecommunication apparatus system reliability of operation, need to control the long sum connecting of TCP.
Please refer to Fig. 1, a kind of existing telecommunication apparatus comprises a long connection front end processor and a background processing system, wherein the long front end processor that connects is for accessing long connection of TCP of ext nal network element foundation, and the long number that connects of the TCP of access is controlled, the data service that background processing system connects the TCP length of access is processed.This kind of telecommunication apparatus be owing to only including a long connection front end processor, poor expandability, and the long number connecting of the TCP that can access is limited, and maximum can only access 65535 long connections of concurrent TCP.
Please refer to Fig. 2, another kind of telecommunication apparatus is on the basis of front a kind of telecommunication apparatus, length is connected to front end processor to be increased to a plurality of from one, and having increased load equalizer, the long connection request message distribution of TCP according to distribution policy, ext nal network element being sent by load equalizer is to each long front end processor that connects.This kind of telecommunication apparatus, as comprising a plurality of long group systems that connect front end processor, promoted the long ability connecting of access TCP; But, because each is long, connect front end processor separate, long connection of TCP that can not Collaborative Control access.
Summary of the invention
The embodiment of the present invention provides long connection control method and the device of connecting of a kind of TCP.
The long connection control method that connects of transmission control protocol TCP, comprising:
Central control node receives the long synchronization notice message that front end processor sends that connects, and described synchronization notice message comprises the long information that connects access or disconnect of TCP;
According to described synchronization notice message, add up the long number that connects of current TCP;
Receive the described long long connection application request message of TCP that front end processor sends that connects;
Judge whether the long number that connects of current TCP is less than set point, if return, allow the application response message of access to the described long front end processor that connects, otherwise return, do not allow the application response message of access to connect front end processor to described length, to control the described long front end processor that connects, whether access the long connection of described TCP.
The long connection control method that connects of transmission control protocol TCP, comprising:
The long front end processor that connects is received after the log messages of ext nal network element transmission, sends the long connection application request message of TCP to central control node;
Receive the application response message that described central control node returns;
If described application response message, for not allowing the application response message of access, is refused the log messages of described ext nal network element;
If described application response message for allowing the application response message of access, accesses long connection of TCP that described ext nal network element is set up;
When the long connection access of described TCP or disconnection, send synchronization notice message to described central control node, described synchronization notice message comprises the information of the long connection access of TCP or disconnection, for add up the long connection of current TCP number for described central control node.
A central control node, comprising:
Receiving element, for receiving long synchronization notice message and the long connection application request message of TCP that front end processor sends that connect, described synchronization notice message comprises the long information that connects access or disconnect of TCP;
Statistic unit, for adding up the long number that connects of current TCP according to described synchronization notice message;
Judging unit, for judging whether the long number that connects of current TCP is less than set point;
Transmitting element, be used for when described judging unit judges that the long connection of current TCP number is less than set point, return and allow the application response message of access to the described long front end processor that connects, otherwise return, do not allow the application response message of access to connect front end processor to described length, to control the described long front end processor that connects, whether access the long connection of described TCP.
The long front end processor that connects, comprising:
First receives transmitting element, for receiving after the log messages of ext nal network element transmission, sends the long connection application request message of TCP to central control node, and receives the application response message that described central control node returns;
The long processing unit that connects, if be the application response message that does not allow access for described application response message, refuses the log messages of described ext nal network element; If described application response message for allowing the application response message of access, accesses long connection of TCP that described ext nal network element is set up;
Second receives transmitting element, for when the long connection of described TCP accesses or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the long information that connects access or disconnect of TCP, for add up the long number that connects of current TCP for described central control node.
A telecommunication apparatus, comprising: load equalizer, and a plurality of long front end processor that connects being connected with described load equalizer, with described a plurality of long central control nodes that front end processor connects that are connected, and is connected with described a plurality of length the background processing system that front end processor connects;
Described load equalizer, for being distributed to each long front end processor that connects according to distribution policy by long connection of the TCP of ext nal network element;
The described long front end processor that connects, for receiving after the log messages of ext nal network element transmission, sends the long connection application request message of TCP to central control node; Receive the application response message that described central control node returns; If described application response message, for not allowing the application response message of access, is refused the log messages of described ext nal network element; If described application response message for allowing the application response message of access, accesses long connection of TCP that described ext nal network element is set up; When the long connection access of described TCP or disconnection, send synchronization notice message to described central control node, described synchronization notice message comprises the information of the long connection access of TCP or disconnection, for add up the long connection of current TCP number for described central control node;
Described central control node, for receiving the described long synchronization notice message that front end processor sends that connects, described synchronization notice message comprises the long information that connects access or disconnect of TCP; According to described synchronization notice message, add up the long number that connects of current TCP; Receive the described long long connection application request message of TCP that front end processor sends that connects; Judge whether the long number that connects of current TCP is less than set point, if return, allow the application response message of access to the described long front end processor that connects, otherwise return, do not allow the application response message of access to connect front end processor to described length, to control the described long front end processor that connects, whether access the long connection of described TCP;
Described background processing system, processes for the long data service connecting of the TCP to having accessed.
The embodiment of the present invention adopts by the central control node increasing and adds up and judge whether the long number that connects of current TCP is less than set point, thereby determine whether to allow the long front end processor that connects to access again the long technical scheme connecting of TCP, can accurately control the long number connecting of TCP of access, to improve telecommunication apparatus reliability of operation.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of telecommunication apparatus of prior art;
Fig. 2 is the structural representation of the another kind of telecommunication apparatus of prior art;
Fig. 3 is the long flow chart that connects connection control method of TCP that one embodiment of the invention provides;
Fig. 4 is the long flow chart that connects connection control method of TCP that another embodiment of the present invention provides;
Fig. 5 is the long flow chart that connects connection control method of TCP that another embodiment of the present invention provides;
Fig. 6 is that method of the present invention is for the flow chart of an application scenarios;
Fig. 7 is that method of the present invention is for the flow chart of Another application scene;
Fig. 8 is that method of the present invention is for the flow chart of another application scenarios;
Fig. 9 is the structural representation of the central control node that provides of the embodiment of the present invention;
Figure 10 is the long structural representation that connects front end processor that the embodiment of the present invention provides;
Figure 11 is the structural representation of the telecommunication apparatus that provides of the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides the long connection control method that connects of a kind of TCP, employing is added up by the central control node increasing and is judged whether the long number that connects of current TCP is less than set point, thereby determine whether to allow the long front end processor that connects to access again the long technical scheme connecting of TCP, can accurately control the long number connecting of TCP of access, to improve telecommunication apparatus reliability of operation.The embodiment of the present invention also provides corresponding central control node, long front end processor and the telecommunication apparatus of connecting.Below be elaborated respectively.
As shown in Figure 2, telecommunication apparatus comprises: load equalizer, and a plurality of long front end processor that connects being connected with load equalizer, and be connected with a plurality of length the background processing system that front end processor connects.Implement the method that the embodiment of the present invention provides, also need in existing telecommunication apparatus, increase by one with a plurality of long central control nodes that are connected front end processor connection, or using in telecommunication apparatus existing certain unit as central control node.
Wherein, load equalizer arrives each long front end processor that connects for what ext nal network element is sent according to distribution policy for establishing a connection to the long long connection request message distribution of TCP connecting of TCP of telecommunication apparatus; The long front end processor that connects is for the long connection request message of TCP of the ext nal network element transmission of balancing received load device distribution, and receive the log messages that ext nal network element sends, the long connection of TCP that the log messages sending according to the judged result refusal ext nal network element of central control node or access ext nal network element are set up, return represent to login successfully or failed response message to long connection front end processor; Background processing system is for processing the data service of the long connection of the TCP having set up; Central control node is for accurately controlling the long number connecting of TCP of access.
Please refer to Fig. 3, the long connection control method that connects of TCP that one embodiment of the invention provides comprises the following steps:
101, central control node receives the long synchronization notice message that front end processor sends that connects, and this synchronization notice message comprises the long information that connects access or disconnect of TCP.
Length connects the every access of front end processor or one of disconnection during long connection, all will send a synchronization notice message to central control node with the TCP of ext nal network element, so that by the information notice central control node of the long connection access of TCP or disconnection.This synchronization notice message at least comprises that the long access synchronization notice message that connects disconnects synchronization notice message with long connection.
102, according to synchronization notice message, add up the long number that connects of current TCP.
Central control node can be added up according to the synchronization notice message of receiving total number of the long connection of current TCP, the long number connecting of all right statistic of classification TCP, the number that for example can add up especially the long connection of TCP of some or a certain class ext nal network element.
103, receive the long long connection application request message of TCP that front end processor sends that connects.
The long front end processor that connects is received after the long connection request message of TCP of ext nal network element transmission, wait for that this ext nal network element sends log messages, after receiving the log messages that this ext nal network element sends, send the long connection application request message of a TCP to central control node, so that central control node judges whether to allow this ext nal network element to login to access long connection of TCP of this ext nal network element according to strategy.
104, judge whether the long number that connects of current TCP is less than set point, if return, allow the application response message of access to the long front end processor that connects, otherwise return, do not allow the application response message of access to connect front end processor to length, to control the described long front end processor that connects, whether access the long connection of described TCP.
Whether central control node can allow the long front end processor that is connected of this ext nal network element login to access long connection of TCP of this ext nal network element with the size of set point with decision by the long number that connects of more current TCP.Wherein, set point is the total number of the long connection of TCP of predefined permission access.When the long connection of current TCP number is less than set point, returns and allow the application response message of access to long connection front end processor, otherwise return, do not allow the application response message of access to the long front end processor that connects.
The method that the embodiment of the present invention provides, adopt central control node to add up current TCP long connection number and judge whether the long number that connects of current TCP is less than set point, thereby determine whether to allow the long front end processor that connects to access again the long connection of TCP, thereby the long number connecting of the TCP that can accurately control access, to improve telecommunication apparatus reliability of operation.
Please refer to Fig. 4, in another embodiment, the long connection control method that connects of TCP that the embodiment of the present invention provides can comprise the following steps:
101 ', control node and receive the long synchronization notice message that front end processor sends that connects, this synchronization notice message comprises the long information that connects access or disconnect of the TCP of designated external network element.
102 ', according to the long number connecting of TCP of this synchronization notice message statistics designated external network element;
103 ', receive the long long connection application request message of the TCP corresponding to designated external network element that front end processor sends that connects;
104 ', judge whether the long number that connects of current TCP of designated external network element is less than the set point for this designated external network element, if return, allow the application response message of access to connect front end processor to long, otherwise return, do not allow the application response message of access to the long front end processor that connects.
Adopt the method for the present embodiment, the TCP that can accurately control from certain or a certain class designated external network element connects, thereby improves the control ability of telecommunication apparatus.
Please refer to Fig. 5, the long connection control method that connects of TCP that another embodiment of the present invention provides comprises the following steps:
201, the long front end processor that connects is received after the log messages of ext nal network element transmission, sends the long connection application request message of TCP to central control node.
Ext nal network element initiates to set up the long flow process that is connected to telecommunication apparatus of TCP, the long connection request message distribution of TCP that the load equalizer of telecommunication apparatus can send ext nal network element according to distribution policy is to each long front end processor that connects, the long front end processor that connects is received after the long connection request message of TCP, waits for that ext nal network element sends log messages.
The long front end processor that connects is received in after the log messages of receiving this ext nal network element transmission, send the long connection application request message of a TCP to central control node, so that central control node determines whether to allow the TCP length that accesses again this ext nal network element to connect according to the long number that connects of the TCP of current access.
202, receive the application response message that central control node returns.
Whether the long number that connects of the more current TCP of central control node is less than set point, if return to the application response message that allows access, otherwise returns to the application response message that does not allow access.
If 203 application response messages, for not allowing the application response message of access, are refused the log messages of ext nal network element.
That is, do not allow to access long connection of TCP of this ext nal network element, and return to login failure response message to ext nal network element.
If 204 application response messages for allowing the application response message of access, access long connection of TCP that ext nal network element is set up.
If allow the application response message of access, longly connect the log messages that front end processor is put logical this ext nal network element, thereby the TCP that access ext nal network element is set up is long, connect, and return and login successfully response message to ext nal network element.
205, when the long connection access of TCP or disconnection, send synchronization notice message to central control node, synchronization notice message comprises the information of the long connection access of TCP or disconnection, for add up the long connection of current TCP number for central control node.
Long connect front end processor access TCP long connects and return login successfully response message to ext nal network element after, need to send comprise the long connection of TCP access information synchronization notice message to central control node; Same, connect while disconnecting TCP is long, for example task finishes to disconnect or because of various while extremely disconnecting, need to send comprise the long connection of TCP disconnection information synchronization notice message to central control node; So that central control node is added up the long number that connects of current TCP.
The method that the embodiment of the present invention provides, the application response message that long connection front end processor can return according to central control node, determine whether allow to access again the long connection of TCP, thereby can accurately control the long number connecting of TCP of access, to improve telecommunication apparatus reliability of operation.
In another embodiment, connect front end processor receive after the log messages of ext nal network element transmission if long, the long connection application request message failure of transmission TCP, accesses the TCP length connection that ext nal network element is set up.
In another embodiment, the long front end processor that connects, after the long connection application request message of transmission TCP is to central control node, if do not receive the application response message that central control node returns in Preset Time, accesses long connection of TCP that ext nal network element is set up.
Adopt above-mentioned two embodiment, even if long, connect front end processor and because extremely failing, send out the long connection application request of TCP, or central control node can not return to application response message because of the machine of delaying or other reason, also long connection of TCP that does not affect this ext nal network element accessed, and ensures the unimpeded of this ext nal network element data service.
Below, in conjunction with the method to the embodiment of the present invention in concrete application scenarios, be described further.
Please refer to Fig. 6, in in an application scenarios, telecommunication apparatus comprises: load equalizer, a plurality of long front end processor that connects being connected with load equalizer, and be connected with a plurality of length the background processing system that front end processor connects, also comprise that one is connected with a plurality of length the central control nodes that front end processor connects.This telecommunication apparatus is one and comprises a plurality of long group systems that connect front end processor.The method of the embodiment of the present invention comprises the following steps:
301, ext nal network element is initiated the long connection building process of TCP, sends the long connection request message of TCP to load equalizer, to establish a connection to, the TCP of telecommunication apparatus is long to be connected;
302, the load equalizer of telecommunication apparatus, according to distribution policy, connects front end processor by the long connection request message distribution of the TCP receiving to each length;
303, the long front end processor that connects receives the long connection request message of TCP of distributing, and waits for that ext nal network element sends log messages;
304, ext nal network element sends log messages to the long front end processor that connects;
305, when the long front end processor that connects, receive after the log messages of ext nal network element transmission, to central control node, send long connection application request message (LongConnectReq);
306, central control node is received after the long connection application request message of long connection front end processor transmission, and the total number of length connection that whether is less than telecommunication apparatus license according to the long connection of current TCP number judges, determines that whether allowing to access this TCP length connects;
If the long total number of long connection that connects number < license of 307 current TCP, returns to the long connection application response message (LongConnectResp) that allows access; If the long total number of long connection that connects the license of number >=system of current TCP, returns to the long connection application response message that does not allow access;
308, the long front end processor that connects, according to the long connection application response message of receiving, determines whether to access long connection of TCP of this ext nal network element; When receiving the long connection application response message that does not allow access, the log messages of refusal ext nal network element; When receiving the long connection application response message that allows access, put the log messages of logical ext nal network element to access the long connection of this TCP;
309, the long front end processor that connects, after putting logical log messages, returns and logins successfully response message to ext nal network element; Or, after refusal log messages, return to login failure response message to ext nal network element;
310, long connect front end processor put logical log messages and return login successfully response message to ext nal network element after, need to send and comprise that the long synchronization notice message (LongConnectNotify) that connects access information is to central control node;
311, central control node is received after synchronization notice message, sets up the long statistics that connects number to TCP, for the follow-up grant decision that whether allows to access the long connection of TCP.
In this application scene, whether central control node is less than according to the long number that connects of current TCP the total number of long connection that system is permitted, return and whether allow the application response message of access to the long front end processor that connects, long connection front end processor can be according to the application response message of returning, determine whether allow to access again the long connection of TCP, thereby the long number connecting of the TCP that can accurately control access, to improve telecommunication apparatus reliability of operation.
Please refer to Fig. 7, in in Another application scene, network element device can be service provider (Service Provider, SP) equipment, telecommunication apparatus can be SAG (Service Access Gateway) gateway, SAG gateway comprises service access (the Service Access that connects front end processor as long, SA) module, central management server (Central Management Server as central control node, CM Server), and background process (Service Orchestration, SO) system.Wherein, SP can adopt 3.3 or 3.4 version message conversion (short message peer to peer 3.3/3.4, SMPP3.3/3.4) agreement, data publish computer interfaceJi Suanjijiekou (Computer Interface to Message Distribution 2, CIMD2) agreement, or the isometric connection protocol access of External Machine Interface (External Machine Interface, EMI) agreement SAG gateway.The method of the embodiment of the present invention comprises the following steps:
401, SP sends for setting up the long long connection request message of TCP connecting of TCP to SAG;
402, the load equalizer of SAG arrives each SA according to distribution policy by the long connection request message distribution of the TCP receiving;
403, SA receives the long connection request message of TCP of distribution, waits for that SP sends log messages;
404, SP sends smpp3.3/3.4bind_transmitter log messages to SA;
405, when SA receives after the smpp3.3/3.4bind_transmitter log messages of SP transmission, to CMServer, send long connection application request message LongConnectReq;
406, CMServer receives after long connection application request message LongConnectReq, and the total number of long connection that whether is less than SAG license according to current long connection number judges, determines that whether allowing to access this TCP length connects;
If the long total number of long connection that connects number < license of 407 current TCP, returns to the long connection application response message LongConnectResp that allows access; If the long total number of long connection that connects the license of number >=system of current TCP, returns to the long connection application response message LongConnectResp that does not allow access;
408, SA, according to the connection application response message LongConnectResp receiving, refuses the log messages of SP, or the log messages of putting logical SP is to access the long connection of this TCP;
If 409 put logically, after putting logical log messages, SA returns and logins successfully response message smpp3.3/3.4bind_transmitter_resp to SP; If failure, after refusal log messages, SA returns to login failure response message smpp3.3/3.4bind_transmitter_resp to SP;
410, put logical log messages and return login successfully response message to SP after, SA need to send and comprise that the long synchronization notice message LongConnectNotify that connects access information is to CMServer;
411, the notified message of CMServer, sets up the long statistics that connects number to TCP, for the follow-up grant decision that whether allows to access the long connection of TCP.
Please refer to Fig. 8, in in another application scenarios, network element device can be service provider (Service Provider, SP) equipment, telecommunication apparatus can be SAG (Service Access Gateway) gateway, SAG gateway comprises service provider agency (the Service Provider Agent that connects front end processor as long, SPAgent), control and management center (Control Management Center as central control node, CMCenter), and as the short message service server (Short Message Server, SMServer) of background processing system.Wherein, SP can adopt 3.0 version China Mobile Peer to Peer Protocol (China Mobile Peer to Peer 3.0, CMPP3.0) isometric connection protocol access SAG gateway.The method of the embodiment of the present invention comprises the following steps:
501, SP sends for setting up the long long connection request message of TCP connecting of TCP to SAG;
502, the load equalizer of SAG arrives each SPAgent according to distribution policy by the long connection request message distribution of the TCP receiving;
503, SPAgent receives the long connection request message of TCP of distribution, waits for that SP sends log messages;
504, SP sends CMPP3.0CMPP_CONNECT log messages to SPAgent;
505, when SPAgent receives after the CMPP3.0CMPP_CONNECT log messages of SP transmission, to CMCenter, send long connection application request message LongConnectReq;
506, CMCenter receives after long connection application request message LongConnectReq, and the total number of long connection that whether is less than SAG license according to current long connection number judges, determines that whether allowing to access this TCP length connects;
If the long total number of long connection that connects number < license of 507 current TCP, returns to the long connection application response message LongConnectResp that allows access; If the long total number of long connection that connects the license of number >=system of current TCP, returns to the long connection application response message LongConnectResp that does not allow access;
508, SPAgent, according to the connection application response message LongConnectResp receiving, refuses the log messages of SP, or the log messages of putting logical SP is to access the long connection of this TCP;
If 509 put logically, after putting logical log messages, SPAgent returns and logins successfully response message CMPP3.0CMPP_CONNECT_RESP to SP; If failure, after refusal log messages, SPAgent returns to login failure response message CMPP3.0CMPP_CONNECT_RESP to SP;
510, put logical log messages and return login successfully response message to SP after, SPAgent need to send and comprise that the long synchronization notice message LongConnectNotify that connects access information is to CMCenter;
511, the notified message of CMCenter, sets up to this long statistics that connects number, for the follow-up grant decision that whether allows to access the long connection of TCP.
Please refer to Fig. 9, the embodiment of the present invention also provides a kind of central control node, comprising:
Receiving element 601, for receiving long synchronization notice message and the long connection application request message of TCP that front end processor sends that connect, this synchronization notice message comprises the long information that connects access or disconnect of TCP;
Statistic unit 602, for adding up the long number that connects of current TCP according to synchronization notice message;
Judging unit 603, for judging whether the long number that connects of current TCP is less than set point;
Transmitting element 604, while being less than set point for the treatment of the unit judges long connection of current TCP number, return and allow the application response message of access to the long front end processor that connects, otherwise return, do not allow the application response message of access to connect front end processor to length, to control the long front end processor that connects, whether access the long connection of TCP.
In another embodiment:
Receiving element 601, also for receiving the long long synchronization notice message that connects access or the information of disconnection of the TCP that comprises designated external network element that front end processor sends that connects, and corresponding to the long connection application request message of TCP of designated external network element;
Statistic unit 602, also, for add up the long number connecting of TCP of designated external network element according to synchronization notice message, this synchronization notice message comprises the long information that accesses or disconnect that connects of the TCP of designated external network element;
Judging unit 603, also for judging whether the long number that connects of current TCP of designated external network element is less than the set point for this designated external network element;
Transmitting element 604, when also connecting number and be less than the set point for this designated external network element for the current TCP at judging unit judgement designated external network element is long, return and allow the application response message of access to connect front end processor to long, otherwise return, do not allow the application response message of access to the long front end processor that connects.
The central control node that the embodiment of the present invention provides, can be by connecting number with the long current TCP length of interaction statistics that is connected front end processor, and judge whether the long number that connects of current TCP is less than set point, thereby determine whether to allow the long front end processor that connects to access again the long connection of TCP, in telecommunication apparatus, adopt this central control node can accurately control the long number connecting of TCP of access, to improve telecommunication apparatus reliability of operation.
Please refer to Figure 10, the embodiment of the present invention also provides a kind of long front end processor that connects, and comprising:
First receives transmitting element 701, for receiving after the log messages of ext nal network element transmission, sends the long connection application request message of TCP to central control node, and receives the application response message that central control node returns;
The long processing unit 702 that connects, if be the application response message that does not allow access for application response message, refuses the log messages of ext nal network element; If application response message for allowing the application response message of access, accesses long connection of TCP that ext nal network element is set up;
Second receives transmitting element 703, for when the long connection of TCP accesses or disconnects, send synchronization notice message to central control node, synchronization notice message comprises the long information that connects access or disconnect of TCP, for add up the long number that connects of current TCP for central control node.
In another embodiment, the long processing unit 702 that connects, if also receive transmitting element 701 for first, send the long connection application request message of TCP to after central control node, in Preset Time, do not receive the application response message that central control node returns, access long connection of TCP that ext nal network element is set up.
In yet another embodiment, long connection processing unit 702, receives after the log messages of ext nal network element transmission if also receive transmitting element 701 for first, the long connection application request message of transmission TCP is failed, accesses the TCP length connection that ext nal network element is set up.
The long front end processor that connects that the embodiment of the present invention provides, can be undertaken alternately by the central control node providing with above-described embodiment, at central control node, control to make decision and access whether the longer connection of TCP, in telecommunication apparatus, adopting this length to connect front end processor coordinates with central control node, can accurately control the long number connecting of TCP of access, to improve telecommunication apparatus reliability of operation.
Please refer to Figure 11, the embodiment of the present invention provides a kind of communication equipment, comprise: load equalizer 800, a plurality of long front end processor 700 that connects being connected with load equalizer 800, with a plurality of long central control nodes 600 that are connected front end processor 700 connections, and a plurality of long background processing system 900 that front end processor 700 connects that connects;
Load equalizer 800, for being distributed to each long front end processor 700 that connects according to distribution policy by long connection of the TCP of ext nal network element;
The long front end processor 700 that connects, for receiving after the log messages of ext nal network element transmission, sends the long connection application request message of TCP to central control node 600; Receive the application response message that central control node 600 returns; If application response message, for not allowing the application response message of access, is refused the log messages of ext nal network element; If application response message for allowing the application response message of access, accesses long connection of TCP that ext nal network element is set up; When the long connection access of TCP or disconnection, send synchronization notice message to central control node 600, synchronization notice message comprises the information of the long connection access of TCP or disconnection, for connecting number for the current TCP length of central control node 600 statistics;
Central control node 600, for receiving the long synchronization notice message that front end processor 700 sends that connects, synchronization notice message comprises the long information that connects access or disconnect of TCP; According to synchronization notice message, add up the long number that connects of current TCP; Receive the long long connection application request message of TCP that front end processor 700 sends that connects; Judge whether the long number that connects of current TCP is less than set point, if return, allow the application response message of access to the long front end processor 700 that connects, otherwise return, do not allow the application response message of access to connect front end processor 700 to length, to control the long front end processor 700 that connects, whether access the long connection of TCP;
Background processing system 900, processes for the long data service connecting of the TCP to having accessed.
The communication equipment that the embodiment of the present invention provides, can add up and judge whether the long number that connects of current TCP is less than set point by central control node, to determine whether allow the long front end processor that connects to access again the long connection of TCP, thereby the long number connecting of the TCP that can accurately control access, improves telecommunication apparatus reliability of operation.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, described program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Central control node described in the various embodiments described above, the long front end processor that connects, communication equipments etc., can be to have processor, the physical entity of the parts such as input/output interface, memory can be realized the function that each embodiment mentions in conjunction with software certainly.
The transmission control protocol TCP long connection the connection control method above embodiment of the present invention being provided and corresponding central control node, long connection front end processor and telecommunication apparatus are described in detail, having applied specific case herein sets forth principle of the present invention and execution mode, the explanation of above embodiment is just understood method of the present invention and core concept thereof for helping, and should not be construed as limitation of the present invention.

Claims (3)

1. a transmission control protocol TCP length connects connection control method, it is characterized in that, for telecommunication apparatus, described telecommunication apparatus comprises: load equalizer, a plurality of long front end processor that connects being connected with load equalizer, and be connected with a plurality of length the background processing system that front end processor connects; Described telecommunication apparatus also comprises and described a plurality of length is connected the central control nodes that front end processor connects, and described method comprises:
Central control node receives the long synchronization notice message that front end processor sends that connects, and described synchronization notice message comprises the long information that connects access or disconnect of the TCP of designated external network element;
According to described synchronization notice message, add up the long number that connects of the current TCP of described designated external network element;
Receive the described long long connection application request message of the TCP corresponding to described designated external network element that front end processor sends that connects;
Judge whether the long number that connects of the current TCP of described designated external network element is less than the set point for described designated external network element, if return, allow the application response message of access to the described long front end processor that connects, otherwise return, do not allow the application response message of access to the described long front end processor that connects, to control described long long connection of TCP whether front end processor accesses described designated external network element that connect.
2. a central control node, is characterized in that, for telecommunication apparatus, described telecommunication apparatus comprises: load equalizer, and a plurality of long front end processor that connects being connected with load equalizer, and be connected with a plurality of length the background processing system that front end processor connects; Described telecommunication apparatus also comprises described central control node, and described central control node connects with described a plurality of long front end processors that are connected, and described central control node comprises:
Receiving element, long connects synchronization notice message that front end processor sends and corresponding to the long connection application request message of TCP of designated external network element, described synchronization notice message comprises the long information that connects access or disconnect of the TCP of described designated external network element for receiving;
Statistic unit, for adding up the long number that connects of the current TCP of described designated external network element according to described synchronization notice message;
Judging unit, for judging whether the long number that connects of the current TCP of described designated external network element is less than set point;
Transmitting element, be used for when described judging unit judges that the described designated external network element long connection of current TCP number is less than set point, return and allow the application response message of access to the described long front end processor that connects, otherwise return, do not allow the application response message of access to the described long front end processor that connects, to control described long long connection of TCP whether front end processor accesses described designated external network element that connect.
3. a communication equipment, it is characterized in that, comprising: load equalizer, a plurality of long front end processor that connects being connected with described load equalizer, with described a plurality of long central control nodes that front end processor connects that are connected, and be connected with described a plurality of length the background processing system that front end processor connects;
Described load equalizer, for being distributed to each long front end processor that connects according to distribution policy by long connection of the TCP of ext nal network element;
The described long front end processor that connects, comprising:
First receives transmitting element, for receiving after the log messages of ext nal network element transmission, sends the long connection application request message of TCP to central control node, and receives the application response message that described central control node returns;
The long processing unit that connects, if be the application response message that does not allow access for described application response message, refuses the log messages of described ext nal network element; If described application response message for allowing the application response message of access, accesses long connection of TCP that described ext nal network element is set up;
Second receives transmitting element, for when the long connection of described TCP accesses or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the long information that connects access or disconnect of TCP, for add up the long number that connects of current TCP for described central control node;
Described central control node, comprising:
Receiving element, long connects synchronization notice message that front end processor sends and corresponding to the long connection application request message of TCP of designated external network element, described synchronization notice message comprises the long information that connects access or disconnect of the TCP of described designated external network element for receiving;
Statistic unit, for adding up the long number that connects of the current TCP of described designated external network element according to described synchronization notice message;
Judging unit, for judging whether the long number that connects of the current TCP of described designated external network element is less than set point;
Transmitting element, be used for when described judging unit judges that the described designated external network element long connection of current TCP number is less than set point, return and allow the application response message of access to the described long front end processor that connects, otherwise return, do not allow the application response message of access to the described long front end processor that connects, to control described long long connection of TCP whether front end processor accesses described designated external network element that connect;
Described background processing system, processes for the long data service connecting of the TCP to having accessed.
CN201110059138.5A 2011-03-11 2011-03-11 Transmission control protocol (TCP) long-connection access control method and device Expired - Fee Related CN102137104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110059138.5A CN102137104B (en) 2011-03-11 2011-03-11 Transmission control protocol (TCP) long-connection access control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110059138.5A CN102137104B (en) 2011-03-11 2011-03-11 Transmission control protocol (TCP) long-connection access control method and device

Publications (2)

Publication Number Publication Date
CN102137104A CN102137104A (en) 2011-07-27
CN102137104B true CN102137104B (en) 2014-09-17

Family

ID=44296759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110059138.5A Expired - Fee Related CN102137104B (en) 2011-03-11 2011-03-11 Transmission control protocol (TCP) long-connection access control method and device

Country Status (1)

Country Link
CN (1) CN102137104B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973469B (en) * 2013-01-30 2017-09-15 阿里巴巴集团控股有限公司 The maintaining method and device of Comet connections
CN104662860B (en) * 2013-05-06 2017-12-22 华为技术有限公司 Control the processing method and processing device of rule
CN107070752B (en) * 2017-04-25 2020-07-24 深圳市世纪福科技有限公司 Testing method and testing system for long connection capacity
CN110417842B (en) 2018-04-28 2022-04-12 北京京东尚科信息技术有限公司 Fault processing method and device for gateway server
CN108965424B (en) * 2018-07-10 2021-02-26 中国银行股份有限公司 Service processing method and device
CN111064636B (en) * 2019-12-12 2022-03-08 南方电网数字电网研究院有限公司 Control method, device and system for connection of front-end processor and computer equipment
CN114598689A (en) * 2022-03-08 2022-06-07 深圳市火火兔智慧科技有限公司 Interactive method and device of IOT (input/output) equipment, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827020A (en) * 2010-03-03 2010-09-08 深圳市深信服电子科技有限公司 Method and system for speeding up built persistent connection without disconnection
CN101938309A (en) * 2010-09-15 2011-01-05 重庆邮电大学 Network code-based WDM network sectionalized protection method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561061A (en) * 2004-02-27 2005-01-05 Ut斯达康通讯有限公司 Method for two-way access by NAT
JP2006352831A (en) * 2005-05-20 2006-12-28 Alaxala Networks Corp Network controller and method of controlling the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827020A (en) * 2010-03-03 2010-09-08 深圳市深信服电子科技有限公司 Method and system for speeding up built persistent connection without disconnection
CN101938309A (en) * 2010-09-15 2011-01-05 重庆邮电大学 Network code-based WDM network sectionalized protection method

Also Published As

Publication number Publication date
CN102137104A (en) 2011-07-27

Similar Documents

Publication Publication Date Title
CN102137104B (en) Transmission control protocol (TCP) long-connection access control method and device
CN102404229B (en) System, device and method for load balancing
JP2024050784A (en) Probabilistic Relays for Efficient Propagation in Blockchain Networks
CN110808948B (en) Remote procedure calling method, device and system
CN101291205A (en) Backup data transmitting method, system, mirror-image server and customer terminal
CN103906087A (en) Access point upgrading method, device and system
CN109495530B (en) Real-time traffic data transmission method, transmission device and transmission system
CN103685461A (en) Cluster management device, system and method
US9370032B2 (en) Service processing method and apparatus based on android system
CN111327650A (en) Data transmission method, device, equipment and storage medium
CN109600436B (en) Distributed iscsi service implementation method, system and related device
CN110661836B (en) Message routing method, device and system, and storage medium
WO2016095510A1 (en) Path selection method, device and system
KR101207219B1 (en) Method for protecting DDS network overload
US10581979B2 (en) Information transmission method and apparatus
CN108111431B (en) Service data sending method, device, computing equipment and computer readable storage medium
CN114124935A (en) Method, system, equipment and storage medium for realizing FTP service
CN103067280A (en) Method and device of message processing
CN113535402A (en) Load balancing processing method and device based on 5G MEC and electronic equipment
KR20120128031A (en) System and method for providing push service
WO2024078050A1 (en) Method and apparatus for performing data transmission
CN113746574B (en) Information interaction method, system and equipment
CN111049754B (en) Data communication method, device, equipment and computer readable storage medium
KR101010911B1 (en) Method for sending and receiving message in message network system
KR102234652B1 (en) SERVICE CONTROL METHOD FOR oneM2M IoT PLATFORM AND CONTROLLING APPARATUS

Legal Events

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

Granted publication date: 20140917

Termination date: 20200311

CF01 Termination of patent right due to non-payment of annual fee