CN102137104A - 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
CN102137104A
CN102137104A CN2011100591385A CN201110059138A CN102137104A CN 102137104 A CN102137104 A CN 102137104A CN 2011100591385 A CN2011100591385 A CN 2011100591385A CN 201110059138 A CN201110059138 A CN 201110059138A CN 102137104 A CN102137104 A CN 102137104A
Authority
CN
China
Prior art keywords
long
tcp
connects
end processor
network element
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
CN2011100591385A
Other languages
Chinese (zh)
Other versions
CN102137104B (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

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (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
The long connection of transmission control protocol (Transmission Control Protocol, TCP) is a kind of communication connection of setting up earlier, and connection does not disconnect after setting up, and can repeat then the connected mode of message sending and receiving, is usually used in point-to-point communication.
Along with the surge of teledata portfolio, the telecommunication apparatus of bearing data service for example gateway device can insert long connection of a large amount of TCP that the external client sets up usually.On the one hand, telecommunication apparatus need ensure the long establishment of connection of ext nal network element TCP as far as possible, satisfies carrying out of data service; On the other hand, in order to ensure the telecommunication apparatus reliability of system operation, need the long sum that connects of control TCP.
Please refer to Fig. 1, a kind of existing telecommunication apparatus comprises a long connection front end processor and a background processing system, the wherein long front end processor that connects is used to insert long connection of TCP that ext nal network element is set up, and the long number that connects of the TCP that inserts controlled, background processing system then to the TCP that inserts the long data service that connects handle.This kind telecommunication apparatus is owing to include only a long connection front end processor, poor expandability, and the long number that connects of the TCP that can insert is limited, and maximum can only insert 65535 long connections of concurrent TCP.
Please refer to Fig. 2, another kind of telecommunication apparatus is on the basis of preceding a kind of telecommunication apparatus, to grow the connection front end processor has been increased to a plurality of from one, and having increased load equalizer, the long connection request message of TCP that according to distribution policy ext nal network element is sent by load equalizer is distributed to each long front end processor that connects.This kind telecommunication apparatus is as comprising a plurality of long group systems that connect front end processor, promoted the long ability that connects of TCP that inserts; But to connect front end processor separate because each is long, the long connection of TCP of can not Collaborative Control inserting.
Summary of the invention
The embodiment of the invention provides long connection control method and the device of connecting of a kind of TCP.
The long connection control method that connects of a kind of transmission control protocol TCP 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 inserts or disconnect that connects of TCP;
Add up the long number that connects of current TCP according to described synchronization notice message;
Receive the described long long application request message that connects of TCP that front end processor sends that connects;
Judge that whether the long number that connects of current TCP is less than setting value, give the described long front end processor that connects if then return the application response message that allows to insert, connect front end processor for described length otherwise return the application response message that does not allow to insert, whether insert the long connection of described TCP to control the described long front end processor that connects.
The long connection control method that connects of a kind of transmission control protocol TCP comprises:
After long connection front end processor is received the log messages of ext nal network element transmission, send 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 is then refused the log messages of described ext nal network element for not allowing the application response message that inserts;
If the application response message of described application response message for allowing to insert then inserts long connection of TCP that described ext nal network element is set up;
When the long connection of described TCP inserts or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the information that the long connection of TCP inserts or disconnects, and is used for adding up the long connection of current TCP number for described central control node.
A kind of central control node comprises:
Receiving element is used for receiving long synchronization notice message and the long connection application request message of TCP that front end processor sends that connect, and described synchronization notice message comprises the long information that inserts or disconnect that connects of TCP;
Statistic unit is used for adding up the long number that connects of current TCP according to described synchronization notice message;
Judging unit is used to judge that whether the long number that connects of current TCP is less than set point;
Transmitting element, be used for when the current TCP length of described judgment unit judges connects number less than set point, return the application response message that allows to insert and give the described long front end processor that connects, connect front end processor for described length otherwise return the application response message that does not allow to insert, whether insert the long connection of described TCP to control the described long front end processor that connects.
A kind of long front end processor that connects comprises:
First receives transmitting element, after being used for receiving 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 used for the application response message of described application response message for not allowing to insert, is then refused the log messages of described ext nal network element; If the application response message of described application response message for allowing to insert then inserts long connection of TCP that described ext nal network element is set up;
Second receives transmitting element, be used for when the long connection of described TCP inserts or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the long information that inserts or disconnect that connects of TCP, is used for adding up the long number that connects of current TCP for described central control node.
A kind of telecommunication apparatus comprises: load equalizer, and a plurality of long front end processor that connects that is connected with described load equalizer is connected the central control nodes that front end processor connects with described a plurality of length, and is connected the background processing system that front end processor connects with described a plurality of length;
Described load equalizer is used for according to distribution policy long connection of the TCP of ext nal network element being distributed to each long front end processor that connects;
The described long front end processor that connects after being used for receiving 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 is then refused the log messages of described ext nal network element for not allowing the application response message that inserts; If the application response message of described application response message for allowing to insert then inserts long connection of TCP that described ext nal network element is set up; When the long connection of described TCP inserts or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the information that the long connection of TCP inserts or disconnects, and is used for adding up current TCP length for described central control node and connects number;
Described central control node is used for receiving the described long synchronization notice message that front end processor sends that connects, and described synchronization notice message comprises the long information that inserts or disconnect that connects of TCP; Add up the long number that connects of current TCP according to described synchronization notice message; Receive the described long long connection application request message of TCP that front end processor sends that connects; Judge that whether the long number that connects of current TCP is less than setting value, give the described long front end processor that connects if then return the application response message that allows to insert, connect front end processor for described length otherwise return the application response message that does not allow to insert, whether insert the long connection of described TCP to control the described long front end processor that connects;
Described background processing system is used for the data service that the TCP length that has inserted connects is processed.
The embodiment of the invention adopts by the central control node statistics that increases and judges that whether the long number that connects of current TCP is less than setting value, thereby determine whether to allow the long front end processor that connects to insert again the long technical scheme that connects of TCP, can accurately control the long number that connects of TCP of access, to improve the telecommunication apparatus reliability of operation.
Description of drawings
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 the flow chart that method of the present invention is used for an application scenarios;
Fig. 7 is the flow chart that method of the present invention is used for the Another application scene;
Fig. 8 is the flow chart that method of the present invention is used for another application scenarios;
Fig. 9 is the structural representation of the central control node that provides of the embodiment of the invention;
Figure 10 is the long structural representation that connects front end processor that the embodiment of the invention provides;
Figure 11 is the structural representation of the telecommunication apparatus that provides of the embodiment of the invention.
Embodiment
The embodiment of the invention provides the long connection control method that connects of a kind of TCP, employing is by the central control node statistics that increases and judge that whether the long number that connects of current TCP is less than setting value, thereby determine whether to allow the long front end processor that connects to insert again the long technical scheme that connects of TCP, can accurately control the long number that connects of TCP of access, to improve the telecommunication apparatus reliability of operation.The embodiment of the 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, a plurality of long front end processor that connects that is connected with load equalizer, and the background processing system that are connected the front end processor connection with a plurality of length.Implement the method that the embodiment of the invention provides, also need in existing telecommunication apparatus, to increase by one with a plurality of long central control nodes that are connected the front end processor connection, perhaps with existing certain unit in the telecommunication apparatus as central control node.
Wherein, load equalizer is for arriving each long connection front end processor with what ext nal network element sent for the long long connection request message distribution of TCP that connects of the TCP that establishes a connection to telecommunication apparatus according to distribution policy; 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 the log messages of reception ext nal network element transmission, the log messages that sends according to the judged result of central control node refusal ext nal network element or insert long connection of TCP that ext nal network element is set up returns that expression logins successfully or the response message of failing is given the long front end processor that connects; Background processing system is used for the data service of the long connection of TCP of having set up is processed; Central control node then is used for the long number that connects of TCP that accurately control inserts.
Please refer to Fig. 3, the long connection control method that connects of the TCP that one embodiment of the invention provides may further comprise the 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 inserts or disconnect that connects of TCP.
Length connects the every access of front end processor or disconnects a TCP with ext nal network element during long the connection, all will send a synchronization notice message to central control node, so that with the long information notice central control node that connects access or disconnect of TCP.This synchronization notice message comprises long access synchronization notice message and the long disconnection synchronization notice message that is connected of connecting at least.
102, add up the long number that connects of current TCP according to synchronization notice message.
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 that connects 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.
After long connection front end processor is received 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 insert long connection of TCP of this ext nal network element according to strategy.
104, judge that whether the long number that connects of current TCP is less than setting value, give the long front end processor that connects if then return the application response message that allows to insert, connect front end processor for length otherwise return the application response message that does not allow to insert, whether insert the long connection of described TCP to control the described long front end processor that connects.
Whether central control node can allow the long front end processor that is connected of this ext nal network element login to connect so that the TCP that inserts this ext nal network element is long with the size of setting value with decision by the long number that connects of more current TCP.Wherein, setting value is the total number of the long connection of TCP that predefined permission inserts.When current TCP length connects number less than set point, return the application response message that allows to insert and connect front end processor for length, give the long front end processor that connects otherwise return the application response message that does not allow to insert.
The method that the embodiment of the invention provides, adopting central control node to add up current TCP length connects number and judges that whether the long number that connects of current TCP is less than set point, thereby whether decision allows the long front end processor that connects to insert the long connection of TCP again, thereby the long number that connects of the TCP that can accurately control access is to improve the telecommunication apparatus reliability of operation.
Please refer to Fig. 4, in another embodiment, the long connection control method that connects of the TCP that the embodiment of the invention provides can may further comprise the steps:
101 ', the control node receives the long synchronization notice message that front end processor sends that connects, this synchronization notice message comprises the long information that inserts or disconnect that connects of the TCP of designated external network element.
102 ', according to the long number that connects 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 the designated external network element that front end processor sends that connects;
104 ', judge that whether the long number that connects of current TCP of designated external network element is less than the set point at this designated external network element, give long connection front end processor if then return the application response message that allows to insert, give the long front end processor that connects otherwise return the application response message that does not allow to insert.
Adopt the method for 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 the TCP that another embodiment of the present invention provides may further comprise the steps:
201, after long connection front end processor is received the log messages of ext nal network element transmission, send 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 load equalizer of telecommunication apparatus can connect front end processor with the long connection request message distribution of TCP that ext nal network element sends to each length according to distribution policy, after long connection front end processor is received the long connection request message of TCP, wait for that ext nal network element sends log messages.
After long connection front end processor is received in 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 the TCP length that whether allows to insert 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 less than set point, allows the application response message that inserts if then return, and does not allow the application response message that inserts otherwise return.
If 203 apply for the application response message of response messages for not allowing to insert, then refuse the log messages of ext nal network element.
That is, do not allow to insert long connection of TCP of this ext nal network element, and return the login failure response message and give ext nal network element.
204, if the application response message of application response message for allowing to insert then inserts long connection of TCP that ext nal network element is set up.
If the application response message that allow to insert then longly connects the log messages that front end processor is put logical this ext nal network element, thereby inserts long connection of TCP that ext nal network element is set up, and return and login successfully response message and give ext nal network element.
205, when the long connection of TCP inserts or disconnects, send synchronization notice message to central control node, synchronization notice message comprises the information that the long connection of TCP inserts or disconnects, and is used for adding up the long connection of current TCP number for central control node.
Long connect front end processor insert TCP long connect and return login successfully response message and give ext nal network element after, need to send and comprise that the long synchronization notice message of access information that connects of TCP is to central control node; Same, connect when disconnecting in that TCP is long, for example task finishes to disconnect or because of various when unusually 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 invention provides, long connect the application response message that front end processor can return according to central control node, whether decision allows to insert the long connection of TCP again, thereby can accurately control the long number that connects of TCP of access, to improve the telecommunication apparatus reliability of operation.
Among another embodiment, if after long connection front end processor is received the log messages of ext nal network element transmission, send the long connection application request message failure of TCP, the TCP length that then inserts ext nal network element foundation connects.
Among another embodiment, the long front end processor that connects if do not receive the application response message that central control node returns in the Preset Time, then inserts long connection of TCP that ext nal network element is set up after the long connection application request message of transmission TCP is to central control node.
Adopt above-mentioned two embodiment, even if the long front end processor that connects sends out the long connection application request of TCP because unusually failing, perhaps central control node can not return the application response message because of the machine of delaying or other reason, the long connection of TCP that does not also affect this ext nal network element inserted, and ensures the unimpeded of this ext nal network element data service.
Below, be described further in conjunction with the method to the embodiment of the invention in the concrete application scenarios.
Please refer to Fig. 6, in in an application scenarios, telecommunication apparatus comprises: load equalizer, a plurality of long front end processor that connects that is connected with load equalizer, and the background processing system that are connected the front end processor connection with a plurality of length, also comprise central control nodes that are connected the front end processor connection with a plurality of length.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 invention may further comprise the 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, and the TCP of telecommunication apparatus is long to be connected so that establish a connection to;
302, the load equalizer of telecommunication apparatus is distributed to each long front end processor that connects according to distribution policy with the long connection request message of the TCP that receives;
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 for the long front end processor that connects;
305, after long connection front end processor is received the log messages of ext nal network element transmission, send long connection application request message (LongConnectReq) to central control node;
306, after central control node is received the long connection application request message of long connection front end processor transmission, whether judge less than the total number of length connection of telecommunication apparatus license according to the long connection of current TCP number, determine that whether allowing to insert this TCP length connects;
If the long total number of long connection that connects number<license of 307 current TCP is returned the long connection application response message (LongConnectResp) that permission inserts; If current TCP is long connect number>=system's license longly connect total number, return and do not allow the long connection application response message that inserts;
308, the long front end processor that connects determines whether to insert long connection of TCP of this ext nal network element according to the long connection application response message of receiving; When receiving the long connection application response message that does not allow to insert, 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 insert the long connection of this TCP;
309, the long front end processor that connects returns and logins successfully response message to ext nal network element after putting logical log messages; Perhaps, after the refusal log messages, return the login failure response message and give ext nal network element;
310, long connect front end processor put logical log messages and return login successfully response message and give ext nal network element after, need to send and comprise that the long synchronization notice message (LongConnectNotify) that connects access information gives central control node;
311, after central control node is received synchronization notice message, set up the long statistics that connects number to TCP, be used for the follow-up long grant decision that connects of TCP that whether allows to insert.
In this application scene, the length whether central control node permits less than system according to the long connection of current TCP number connects total number, return the application response message that whether allows to insert and give 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 insert again the long connection of TCP, thereby the long number that connects of the TCP that can accurately control access is to improve the telecommunication apparatus reliability of operation.
Please refer to Fig. 7, in in the Another application scene, network element device can be service provider (Service Provider, SP) equipment, telecommunication apparatus can be SAG (Service Access Gateway) gateway, the 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, message issue computer interface (Computer Interface to Message Distribution 2, CIMD2) agreement, or External Machine Interface (External Machine Interface, EMI) the isometric connection protocol access of agreement SAG gateway.The method of the embodiment of the invention may further comprise the steps:
401, SP sends and is used for setting up the long long connection request message of TCP that connects of TCP to SAG;
402, the load equalizer of SAG is distributed to each SA according to distribution policy with the long connection request message of the TCP that receives;
403, SA receives the long connection request message of TCP of distribution, waits for that SP sends log messages;
404, SP sends the smpp3.3/3.4bind_transmitter log messages to SA;
405, after SA receives the smpp3.3/3.4bind_transmitter log messages of SP transmission, send long connection application request message LongConnectReq to CMServer;
406, after CMServer receives long connection application request message LongConnectReq, whether judge less than the total number of long connection of SAG license according to current long connection number, determine that whether allowing to insert this TCP length connects;
If the long total number of long connection that connects number<license of 407 current TCP is returned the long connection application response message LongConnectResp that permission inserts; If current TCP is long connect number>=system's license longly connect total number, return and do not allow the long connection application response message LongConnectResp that inserts;
408, SA is according to the connection application response message LongConnectResp that receives, the log messages of refusal SP is perhaps put the log messages of logical SP to insert the long connection of this TCP;
If 409 put logically, after putting logical log messages, SA returns login successful respond message smpp3.3/3.4bind_transmitter_resp and gives SP; If failure, after the refusal log messages, SA returns login failure response message smpp3.3/3.4bind_transmitter_resp and gives SP;
410, put logical log messages and return login successfully response message and give SP after, SA need to send and comprise that the long synchronization notice message LongConnectNotify of access information that connects is to CMServer;
411, the notified message of CMServer is set up the long statistics that connects number to TCP, is used for the follow-up long grant decision that connects of TCP that whether allows to insert.
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, the 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 of background processing system (Short Message Server, SMServer).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 invention may further comprise the steps:
501, SP sends and is used for setting up the long long connection request message of TCP that connects of TCP to SAG;
502, the load equalizer of SAG is distributed to each SPAgent according to distribution policy with the long connection request message of the TCP that receives;
503, SPAgent receives the long connection request message of TCP of distribution, waits for that SP sends log messages;
504, SP sends the CMPP3.0CMPP_CONNECT log messages to SPAgent;
505, after SPAgent receives the CMPP3.0CMPP_CONNECT log messages of SP transmission, send long connection application request message LongConnectReq to CMCenter;
506, after CMCenter receives long connection application request message LongConnectReq, whether judge less than the total number of long connection of SAG license according to current long connection number, determine that whether allowing to insert this TCP length connects;
If the long total number of long connection that connects number<license of 507 current TCP is returned the long connection application response message LongConnectResp that permission inserts; If current TCP is long connect number>=system's license longly connect total number, return and do not allow the long connection application response message LongConnectResp that inserts;
508, SPAgent is according to the connection application response message LongConnectResp that receives, the log messages of refusal SP is perhaps put the log messages of logical SP to insert the long connection of this TCP;
If 509 put logically, after putting logical log messages, SPAgent returns login successful respond message CMPP3.0CMPP_CONNECT_RESP and gives SP; If failure, after the refusal log messages, SPAgent returns login failure response message CMPP3.0CMPP_CONNECT_RESP and gives SP;
510, put logical log messages and return login successfully response message and give SP after, SPAgent need to send and comprise that the long synchronization notice message LongConnectNotify of access information that connects is to CMCenter;
511, the notified message of CMCenter is set up this long statistics that connects number, is used for the follow-up long grant decision that connects of TCP that whether allows to insert.
Please refer to Fig. 9, the embodiment of the invention also provides a kind of central control node, comprising:
Receiving element 601 is used for receiving long synchronization notice message and the long connection application request message of TCP that front end processor sends that connect, and this synchronization notice message comprises the long information that inserts or disconnect that connects of TCP;
Statistic unit 602 is used for adding up the long number that connects of current TCP according to synchronization notice message;
Judging unit 603 is used to judge that whether the long number that connects of current TCP is less than set point;
Transmitting element 604, being used for processing unit judges when current TCP length connects number less than set point, return the application response message that allows to insert and give the long front end processor that connects, connect front end processor for length otherwise return the application response message that does not allow to insert, whether insert the long connection of TCP to control the long front end processor that connects.
In another embodiment:
Receiving element 601 also be used for to receive and inserts or the synchronization notice message of the information of disconnection and corresponding to the long connection application request message of the TCP of designated external network element long connection of the TCP that comprises the designated external network element that front end processor sends long the connection;
Statistic unit 602 also is used for the long number that connects of TCP according to synchronization notice message statistics designated external network element, and this synchronization notice message comprises the long information that inserts or disconnect that connects of the TCP of designated external network element;
Judging unit 603 is used to also judge that whether the long number that connects of current TCP of designated external network element is less than the set point at this designated external network element;
Transmitting element 604, also be used in the long number that connects of the current TCP of judgment unit judges designated external network element less than the time at the set point of this designated external network element, return the application response message that allows to insert and give long connection front end processor, give the long front end processor that connects otherwise return the application response message that does not allow to insert.
The central control node that the embodiment of the invention provides, can be by connecting number with the long current TCP length of interaction statistics that is connected front end processor, and judge that whether the long number that connects of current TCP is less than setting value, thereby determine whether to allow the long front end processor that connects to insert again the long connection of TCP, in telecommunication apparatus, adopt this central control node can accurately control the long number that connects of TCP of access, to improve the telecommunication apparatus reliability of operation.
Please refer to Figure 10, the embodiment of the invention also provides a kind of long front end processor that connects, and comprising:
First receives transmitting element 701, after being used for receiving 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 used for the application response message of application response message for not allowing to insert, is then refused the log messages of ext nal network element; If the application response message of application response message for allowing to insert then inserts long connection of TCP that ext nal network element is set up;
Second receives transmitting element 703, be used for when the long connection of TCP inserts or disconnects, send synchronization notice message to central control node, synchronization notice message comprises the long information that inserts or disconnect that connects of TCP, is used for adding up the long number that connects of current TCP for central control node.
In another embodiment, long connection processing unit 702, also be used for if the first reception transmitting element 701 sends the long application request messages that connect of TCP to after the central control node, do not receive the application response message that central control node returns in the Preset Time, then insert long connection of TCP that ext nal network element is set up.
In yet another embodiment, long connection processing unit 702, if after also receiving the log messages of ext nal network element transmission for the first reception transmitting element 701, send TCP length connection application request message and fail, the TCP length that then inserts ext nal network element foundation connects.
The long front end processor that connects that the embodiment of the invention provides, can be undertaken alternately by the central control node that provides with above-described embodiment, make decision in central control node control and to insert whether again that TCP is long to be connected, in telecommunication apparatus, adopt this long front end processor that connects to cooperate with central control node, can accurately control the long number that connects of TCP of access, to improve the telecommunication apparatus reliability of operation.
Please refer to Figure 11, the embodiment of the invention provides a kind of communication equipment, comprise: load equalizer 800, the a plurality of long front end processor 700 that connects that is 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 is used for according to distribution policy long connection of the TCP of ext nal network element being distributed to each long front end processor 700 that connects;
The long front end processor 700 that connects after being used for receiving 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 apply for the application response message of response message for not allowing to insert, then refuse the log messages of ext nal network element; If the application response message of application response message for allowing to insert then inserts long connection of TCP that ext nal network element is set up; When the long connection of TCP inserts or disconnects, send synchronization notice message to central control node 600, synchronization notice message comprises the information that the long connection of TCP inserts or disconnects, and is used for adding up the long number that connects of current TCP for central control node 600;
Central control node 600 is used for receiving the long synchronization notice message that front end processor 700 sends that connects, and synchronization notice message comprises the long information that inserts or disconnect that connects of TCP; Add up the long number that connects of current TCP according to synchronization notice message; Receive the long long connection application request message of TCP that front end processor 700 sends that connects; Judge that whether the long number that connects of current TCP is less than setting value, give the long front end processor 700 that connects if then return the application response message that allows to insert, connect front end processor 700 for length otherwise return the application response message that does not allow to insert, whether insert the long connection of TCP to control the long front end processor 700 that connects;
Background processing system 900 is used for the data service that the TCP length that has inserted connects is processed.
The communication equipment that the embodiment of the invention provides, can and judge that by the central control node statistics whether the long number that connects of current TCP is less than setting value, to determine whether allow the long front end processor that connects to insert again the long connection of TCP, thereby the long number that connects of the TCP that can accurately control access improves the telecommunication apparatus reliability of operation.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to finish by computer program, described program can be stored in the computer read/write memory medium, described program can comprise the flow process such as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at 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 parts such as input/output interface, memory is certainly realized the function that each embodiment mentions in conjunction with software.
More than transmission control protocol TCP that the embodiment of the invention is provided longly connect connection control method and corresponding central control node, longly connect front end processor and telecommunication apparatus is described in detail, having used specific case herein sets forth principle of the present invention and embodiment, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof, should not be construed as limitation of the present invention.

Claims (11)

1. the long connection control method that connects of transmission control protocol TCP is characterized in that, 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 inserts or disconnect that connects of TCP;
Add up the long number that connects of current TCP according to described synchronization notice message;
Receive the described long long application request message that connects of TCP that front end processor sends that connects;
Judge that whether the long number that connects of current TCP is less than setting value, give the described long front end processor that connects if then return the application response message that allows to insert, connect front end processor for described length otherwise return the application response message that does not allow to insert, whether insert the long connection of described TCP to control the described long front end processor that connects.
2. method according to claim 1 is characterized in that, described synchronization notice message comprises the long information that inserts or disconnect that connects of the TCP of designated external network element;
The long synchronization notice message that connects the front end processor transmission of described reception also comprises afterwards:
The long number that connects of TCP according to described synchronization notice message statistics 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;
Whether the long number that connects of current TCP of judging the designated external network element is less than the set point at this designated external network element, give described long connection front end processor if then return the application response message that allows to insert, give the described long front end processor that connects otherwise return the application response message that does not allow to insert.
3. the long connection control method that connects of transmission control protocol TCP is characterized in that, comprising:
After long connection front end processor is received the log messages of ext nal network element transmission, send 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 is then refused the log messages of described ext nal network element for not allowing the application response message that inserts;
If the application response message of described application response message for allowing to insert then inserts long connection of TCP that described ext nal network element is set up;
When the long connection of described TCP inserts or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the information that the long connection of TCP inserts or disconnects, and is used for adding up the long connection of current TCP number for described central control node.
4. method according to claim 3 is characterized in that, the long connection application request message of described transmission TCP also comprises to after the central control node:
If do not receive the application response message that described central control node returns in the Preset Time, then insert long connection of TCP that described ext nal network element is set up.
5. method according to claim 3 is characterized in that,
If described long connect the log messages that front end processor receives that ext nal network element sends after, send that TCP is long to connect the failure of application request message, then insert long connection of TCP that described ext nal network element is set up.
6. a central control node is characterized in that, comprising:
Receiving element is used for receiving long synchronization notice message and the long connection application request message of TCP that front end processor sends that connect, and described synchronization notice message comprises the long information that inserts or disconnect that connects of TCP;
Statistic unit is used for adding up the long number that connects of current TCP according to described synchronization notice message;
Judging unit is used to judge that whether the long number that connects of current TCP is less than set point;
Transmitting element, be used for when the current TCP length of described judgment unit judges connects number less than set point, return the application response message that allows to insert and give the described long front end processor that connects, connect front end processor for described length otherwise return the application response message that does not allow to insert, whether insert the long connection of described TCP to control the described long front end processor that connects.
7. central control node according to claim 6 is characterized in that:
Described receiving element also is used for receiving and inserts or the synchronization notice message of the information of disconnection and corresponding to the long connection application request message of the TCP of described designated external network element long connection of the TCP that comprises the designated external network element that front end processor sends described long the connection;
Described statistic unit also is used for the long number that connects of TCP according to described synchronization notice message statistics designated external network element, and described synchronization notice message comprises the long information that inserts or disconnect that connects of the TCP of designated external network element;
Described judging unit is used to also judge that whether the long number that connects of current TCP of designated external network element is less than the set point at this designated external network element;
Described transmitting element, also be used in the long number that connects of the current TCP of described judgment unit judges designated external network element less than the time at the set point of this designated external network element, return the application response message that allows to insert and give described long connection front end processor, give the described long front end processor that connects otherwise return the application response message that does not allow to insert.
8. one kind long connection front end processor is characterized in that, comprising:
First receives transmitting element, after being used for receiving 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 used for the application response message of described application response message for not allowing to insert, is then refused the log messages of described ext nal network element; If the application response message of described application response message for allowing to insert then inserts long connection of TCP that described ext nal network element is set up;
Second receives transmitting element, be used for when the long connection of described TCP inserts or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the long information that inserts or disconnect that connects of TCP, is used for adding up the long number that connects of current TCP for described central control node.
9. the long front end processor that connects according to claim 8 is characterized in that:
The described long processing unit that connects, receive the long connection application request message of transmitting element transmission TCP to after the central control node if also be used for described first, do not receive the application response message that described central control node returns in the Preset Time, then insert long connection of TCP that described ext nal network element is set up.
10. the long front end processor that connects according to claim 8 is characterized in that:
Described long connection processing unit, if after also receiving the log messages of ext nal network element transmission for the described first reception transmitting element, send TCP length connection application request message and fail, the TCP length that then inserts described ext nal network element foundation connects.
11. communication equipment, it is characterized in that, comprising: load equalizer, a plurality of long front end processor that connects that is connected with described load equalizer, with described a plurality of long central control nodes that front end processor connects that are connected, and the background processing system that are connected the front end processor connection with described a plurality of length;
Described load equalizer is used for according to distribution policy long connection of the TCP of ext nal network element being distributed to each long front end processor that connects;
The described long front end processor that connects after being used for receiving 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 is then refused the log messages of described ext nal network element for not allowing the application response message that inserts; If the application response message of described application response message for allowing to insert then inserts long connection of TCP that described ext nal network element is set up; When the long connection of described TCP inserts or disconnects, send synchronization notice message to described central control node, described synchronization notice message comprises the information that the long connection of TCP inserts or disconnects, and is used for adding up current TCP length for described central control node and connects number;
Described central control node is used for receiving the described long synchronization notice message that front end processor sends that connects, and described synchronization notice message comprises the long information that inserts or disconnect that connects of TCP; Add up the long number that connects of current TCP according to described synchronization notice message; Receive the described long long connection application request message of TCP that front end processor sends that connects; Judge that whether the long number that connects of current TCP is less than setting value, give the described long front end processor that connects if then return the application response message that allows to insert, connect front end processor for described length otherwise return the application response message that does not allow to insert, whether insert the long connection of described TCP to control the described long front end processor that connects;
Described background processing system is used for the data service that the TCP length that has inserted connects is processed.
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 true CN102137104A (en) 2011-07-27
CN102137104B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973469A (en) * 2013-01-30 2014-08-06 阿里巴巴集团控股有限公司 Comet connection maintaining method and device
WO2014179925A1 (en) * 2013-05-06 2014-11-13 华为技术有限公司 Method and apparatus for processing control rules
CN107070752A (en) * 2017-04-25 2017-08-18 上海斐讯数据通信技术有限公司 A kind of method of testing and test system of long connection capacity
CN108965424A (en) * 2018-07-10 2018-12-07 中国银行股份有限公司 A kind of method and device for business processing
WO2019206296A1 (en) * 2018-04-28 2019-10-31 北京京东尚科信息技术有限公司 Fault handling method and device for gateway server
CN111064636A (en) * 2019-12-12 2020-04-24 南方电网数字电网研究院有限公司 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 (4)

* 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
US20070204060A1 (en) * 2005-05-20 2007-08-30 Hidemitsu Higuchi Network control apparatus and network control method
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

Patent Citations (4)

* 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
US20070204060A1 (en) * 2005-05-20 2007-08-30 Hidemitsu Higuchi Network control apparatus and network control method
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973469A (en) * 2013-01-30 2014-08-06 阿里巴巴集团控股有限公司 Comet connection maintaining method and device
CN103973469B (en) * 2013-01-30 2017-09-15 阿里巴巴集团控股有限公司 The maintaining method and device of Comet connections
WO2014179925A1 (en) * 2013-05-06 2014-11-13 华为技术有限公司 Method and apparatus for processing control rules
CN107070752A (en) * 2017-04-25 2017-08-18 上海斐讯数据通信技术有限公司 A kind of method of testing and test system of long connection capacity
CN107070752B (en) * 2017-04-25 2020-07-24 深圳市世纪福科技有限公司 Testing method and testing system for long connection capacity
WO2019206296A1 (en) * 2018-04-28 2019-10-31 北京京东尚科信息技术有限公司 Fault handling method and device for gateway server
US11632424B2 (en) 2018-04-28 2023-04-18 Beijing Jingdong Shangke Information Technology Co., Ltd. Fault handling method and device for gateway server
CN108965424A (en) * 2018-07-10 2018-12-07 中国银行股份有限公司 A kind of method and device for business processing
CN108965424B (en) * 2018-07-10 2021-02-26 中国银行股份有限公司 Service processing method and device
CN111064636A (en) * 2019-12-12 2020-04-24 南方电网数字电网研究院有限公司 Control method, device and system for connection of front-end processor and computer equipment
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

Also Published As

Publication number Publication date
CN102137104B (en) 2014-09-17

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
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
EP2461524B1 (en) Network proxy implementation method and apparatus
CN103685461B (en) A kind of cluster management device, management system and management method
CN105516080A (en) Processing method, apparatus, and system for TCP connection
CN111327650A (en) Data transmission method, device, equipment and storage medium
CN103856440A (en) Message processing method, server and message processing system based on distributed bus
EP2547168B1 (en) Android system with simulataneous support of multiple pdp contexts
CN103547339A (en) File uploading method, client side and server side
CN103685357A (en) Account multi-open message processing method and system
CN103281192A (en) Method, device and system for retrieving data
CN107579929B (en) Method, system and related device for setting reliable connection communication queue pair
CN109600436B (en) Distributed iscsi service implementation method, system and related device
WO2024078050A1 (en) Method and apparatus for performing data transmission
CN113904976A (en) Multi-path data transmission method and device for lossy network based on RDMA
CN108111431B (en) Service data sending method, device, computing equipment and computer readable storage medium
CN104917620A (en) Peer-to-peer network conference access method and system, and peer-to-peer network client
CN103067280B (en) Message processing method and device
CN115118760A (en) Session connection control method, session connection control device, and computer storage medium
JP3682439B2 (en) Data communication system and method, server device, client device, and program
CN101860544A (en) Transmitting system and method of session initiation protocol message
CN113746574B (en) Information interaction method, system and equipment
KR101010911B1 (en) Method for sending and receiving message in message network system
CN117354117B (en) Java and MQ-based distributed message communication method and system

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