CN101394444A - Method, system and device for releasing occupied TCP connection after calling - Google Patents

Method, system and device for releasing occupied TCP connection after calling Download PDF

Info

Publication number
CN101394444A
CN101394444A CNA2008101724908A CN200810172490A CN101394444A CN 101394444 A CN101394444 A CN 101394444A CN A2008101724908 A CNA2008101724908 A CN A2008101724908A CN 200810172490 A CN200810172490 A CN 200810172490A CN 101394444 A CN101394444 A CN 101394444A
Authority
CN
China
Prior art keywords
tcp
gateway
message
release complete
resets
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.)
Pending
Application number
CNA2008101724908A
Other languages
Chinese (zh)
Inventor
郑晓峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2008101724908A priority Critical patent/CN101394444A/en
Publication of CN101394444A publication Critical patent/CN101394444A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method for releasing the occupied TCP connection after a calling is finished. The method comprises the following steps: sending the releasing finish information to a network gateway; and sending the reset TCP information to the network gateway to enable the network gateway to release the TCP connection according to the reset TCP information. In the embodiment of the invention, under the condition of relatively poor network quality, the RST TCP information is sent on the basis of the H.323 protocol and the TCP protocol to close the socket connection and improve the utilization ratio of the TCP port, thereby improving the call-through rate of the H.323 calling and preventing the H.323 resource from hanging.

Description

Method, system and equipment that the TCP that call release takies after finishing connects
Technical field
The present invention relates to communication technical field, relate in particular to method, system and the equipment of the TCP connection that takies after a kind of call release finishes.
Background technology
H.323 be one of IP (Internet Protocol, IP Internet Protocol) most important technical foundation of telephone system, GW (GateWay, gateway) is one of key equipment of IP telephony system, and the function of GW and performance power all are directly connected to professional carrying out.And H.323 message is transmitted on TCP (Transfer ControlProtocol, transmission control protocol) layer, needs to use reasonable method foundation to be connected with release TCP, thereby has improved the application performance of TCP.
Under the normal condition, the release flow process of stipulating according to Transmission Control Protocol discharges the TCP connection, as shown in Figure 1, may further comprise the steps:
Step 101, SS (SoftSwitch, soft switch) sends RELEASE COMPLETE (release is finished) message to GW, and the normal flow by the TCP regulation discharges the TCP connection then.
Step 102, SS sends end of file message FIN to GW;
Step 103, GW returns FIN ACK message to SS;
Step 104, GW sends end of file message FIN to SS;
Step 105, SS returns FIN ACK message to GW.
Wherein, step 102 and 103, then finished the semi-closed of TCP connection, be that the end SS that TCP connects has finished the data transmission, and after sending an end of file (FIN), can also receive ability from other end GW data, up to step 104 and 105, other end GW sends the end of file (FIN) for local terminal SS, and all tcp ports discharge, and has finished the contract fully that TCP connects.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
In the prior art, take steps 102 to shake hands to 4 times of step 105, the agreement regulation will wait for that 2msl (1msl is equivalent to 2 minutes) duration just can reuse same port; If under the very big situation of call volume, the tcp port resource-constrained, tcp port may be not enough, and calling can't be set up, and causes utilance lower.
Summary of the invention
The embodiment of the invention provides method, system and the equipment of the TCP connection that has taken after a kind of call release end, has improved the utilance of tcp port.
For achieving the above object, the method that the TCP that the embodiment of the invention has taken after providing a kind of call release to finish connects comprises:
Send Release complete to gateway;
Send the TCP message that resets to described gateway, make described gateway discharge TCP and connect according to the described TCP of resetting message.
The system that the TCP that the embodiment of the invention has taken after providing a kind of call release to finish connects comprises:
Soft switch is used for sending Release complete to gateway, sends the TCP message that resets to described gateway then;
Gateway is used for discharging TCP according to the described TCP of resetting message and connects.
The embodiment of the invention provides a kind of soft switch, comprising:
The Release complete transmitting element is used for sending Release complete to gateway;
The TCP message sending unit that resets is used for sending the TCP message that resets to described gateway, makes described gateway discharge TCP according to the described TCP of resetting message and connects.
The embodiment of the invention provides a kind of gateway, comprising:
Receiving element is used to receive the Release complete and the TCP message that resets that soft switch sends;
Releasing unit after being used for receiving element and receiving the TCP message that resets, discharges TCP and connects.
Compared with prior art, there is following advantage at least in the embodiment of the invention:
In the embodiment of the invention,, realize sending RST TCP message, connect, improved the utilance of tcp port to close socket based on H.323 agreement and Transmission Control Protocol if under the relatively poor situation of network quality.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 discharges TCP to connect flow chart in the prior art;
Fig. 2 is the method flow diagram of the TCP connection that a kind of call release takies after finishing in the embodiment of the invention one;
Fig. 3 is the form schematic diagram of RST TCP message in the embodiment of the invention;
Fig. 4 is the method flow diagram of the TCP connection that a kind of call release takies after finishing in the embodiment of the invention two;
Fig. 5 is the system construction drawing of the TCP connection that a kind of call release takies after finishing in the embodiment of the invention;
Fig. 6 is a kind of soft switch structure chart in the embodiment of the invention;
Fig. 7 is a gateway structure chart in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The method that the TCP that has taken after providing a kind of call release to finish in the embodiment of the invention connects as shown in Figure 2, may further comprise the steps:
Step 201, SS sends RELEASE COMPLETE (release is finished) message to GW; Wherein, GW copies Q.931 and the H.245 code stream of message that carries in this message earlier in the TCP layer buffer memory, issues operation layer by the TCP layer then.
Step 202, SS sends RST (resetting) TCP message to GW, and the socket that makes GW close the TCP layer connects.GW determines that according to the Reset position in the RST TCP message needs reset, and the socket that closes the TCP layer immediately connects, and promptly discharges TCP and connects.
Wherein, the form of RST TCP message is as shown in table 1, comprising: CWR (Congestion WindowReduced, congested form), point out to receive the TCP section of setting the ECN-Echo mark, and can manage the size that transmits form; ECN-Echo (TCP/IP explicit congestion notification) is used to notify TCP layer peer-to-peer, because network congestion, buffering area is full; Urgent, if be provided with the Urgent mark, must be according to the emergency treatment mechanism emergency treatment of TCP, the TCP number that the sender is provided with not necessarily leaves no choice but equal to notify recipient user's number of times; Ack (Acknowledgment), whether expression needs the mark confirmed; Push, if be provided with the Push mark, data must send the recipient at once to, and the final stage of Push position in buffering area is to be provided with, if be not provided with, the data that this data segment will transmit with next SEND order because of the consideration of efficient transmit together; Reset, whether expression needs the mark that resets; Syn, whether expression has the mark of sequence code; Fin, the mark of the expression end of file.
Such as Reset can be set is 1, other positions 0, and GW can determine that needs reset according to the Reset position in the RST TCP message like this.
Table 1
CWR ECN- Echo Urge nt Ack Push Reset Syn Fin
Wherein, the Socket of TCP layer is the middleware software level of abstraction that application layer is communicated by letter with TCP/IP protocol suite, is a group interface.The initialization Socket of GW elder generation with port binding, monitors port then, calls the accept function, waits for client, connects such as SS.If Socket of individual SS initialization is arranged, connect GW then, if successful connection, SS set up with just being connected of GW.SS sends request of data, and GW receives request and handles request, then response data is sent to SS, the SS reading of data, and last GW closes Socket and connects, and once finishes alternately.
In the embodiment of the invention one, if under the relatively poor situation of network quality, based on H.323 agreement and Transmission Control Protocol realize sending RST TCP message, connect to close socket, improved the utilance of tcp port, thereby improved the call completing rate of H.323 calling out, can not cause the H.323 situation of resource from suspending.
The embodiment of the invention two is for the whole call flow of processing that guarantees that GW can be complete, that is to say that a RELEASE COMPLETE Message Processing is intact, closes socket again and connects, and SS equipment is necessary delayed delivery RST TCP message.Concrete dispose procedure may further comprise the steps as shown in Figure 4:
Step 401, SS sends RELEASE COMPLETE (release is finished) message to GW;
Step 402, SS postpones to send RST TCP message to GW behind the Preset Time, and GW closes socket and connects.This Preset Time ordinary circumstance is greater than 10 milliseconds.
Above-mentioned delay Preset Time sends RST TCP message to GW, can realize by the mode that timer is set, promptly, SS is after GW sends RELEASE COMPLETE (release is finished) message, start timer, this length of timer is set to the Preset Time (for example 10 milliseconds) of above-mentioned needs, when this timer expiry, then sends RST TCP message to GW.
And the embodiment of the invention two is exactly the whole call flow of processing in order to guarantee that GW can be complete, also is to say RELEASE COMPLETE Message Processing is finished, and closes socket again and connects.
In the embodiment of the invention, if under the relatively poor situation of network quality, based on H.323 agreement and Transmission Control Protocol are realized delayed delivery RST TCP message, connect to close socket, improved the utilance of tcp port, thereby improved the call completing rate of H.323 calling out, and can make and H.323 call out complete carrying out, can not cause the H.323 situation of resource from suspending.
The system that the TCP that the embodiment of the invention has taken after providing a kind of call release to finish connects as shown in Figure 5, comprising: soft switch 510, be used for sending Release complete to gateway 520, and send the TCP message that resets to gateway 520 then; Gateway 520 is used for discharging TCP according to the TCP message that resets and connects.
Wherein, soft switch comprises as shown in Figure 6: Release complete transmitting element 610 is used for sending Release complete to gateway; The TCP message sending unit 620 that resets is used for sending the TCP message that resets to described gateway, makes described gateway discharge TCP according to the described TCP of resetting message and connects.
Soft switch also comprises: timing unit 630, and overtime when scheduled duration after being used for Release complete transmitting element 610 and sending message according to the scheduled duration timing, then trigger the TCP message sending unit 620 that resets.
Wherein, gateway comprises as shown in Figure 7: receiving element 710 is used to receive the Release complete and the TCP message that resets that soft switch sends; Releasing unit 720 after being used for receiving element and receiving the TCP message that resets, discharges TCP and connects.
Also comprise TCP buffer unit 730, be used for the Release complete that buffer memory receiving element 710 obtains.
Releasing unit 720 also is used to empty TCP buffer unit 730.
This gateway can also comprise: layer processing unit 740 H.323, be used for calling the Release complete of TCP buffer unit 730, and carry out H.323 layer and handle.
In the embodiment of the invention, if under the relatively poor situation of network quality, based on H.323 agreement and Transmission Control Protocol are realized delayed delivery RST TCP message, connect to close socket, not only improved the utilance of tcp port, improve the call completing rate of H.323 calling out, and can make and H.323 call out complete carrying out, can not cause the H.323 situation of resource from suspending.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize based on such understanding by the mode that software adds necessary general hardware platform, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1, the method for the transmission control protocol TCP connection that takies after a kind of call release end is characterized in that, comprising:
Send Release complete to gateway;
Send the TCP message that resets to described gateway, make described gateway discharge TCP and connect according to the described TCP of resetting message.
2, the method for claim 1 is characterized in that, describedly sends Release complete to gateway and also comprises:
Start timer,, then send the TCP message that resets to described gateway when described timer expiry.
3, the method for claim 1 is characterized in that, describedly also comprises after gateway sends Release complete:
Described gateway is received described Release complete, and described Release complete is stored in the TCP buffer memory;
After described gateway is received the described TCP of resetting message, discharge described TCP buffer memory.
4, the system of the TCP connection that takies after a kind of call release end is characterized in that, comprising:
Soft switch is used for sending Release complete to gateway, sends the TCP message that resets to described gateway then;
Gateway is used for discharging TCP according to the described TCP of resetting message and connects.
5, a kind of soft switch is characterized in that, comprising:
The Release complete transmitting element is used for sending Release complete to gateway;
The TCP message sending unit that resets is used for sending the TCP message that resets to described gateway, makes described gateway discharge TCP according to the described TCP of resetting message and connects.
6, soft switch as claimed in claim 5 is characterized in that, also comprises:
Timing unit, overtime when described scheduled duration after being used for described Release complete transmitting element and sending message according to the scheduled duration timing, then trigger the described TCP of resetting message sending unit.
7, a kind of gateway is characterized in that, comprising:
Receiving element is used to receive the Release complete and the TCP message that resets that soft switch sends;
Releasing unit after being used for receiving element and receiving the TCP message that resets, discharges TCP and connects.
8, gateway as claimed in claim 7 is characterized in that, also comprises:
The TCP buffer unit is used for the Release complete that the described receiving element of buffer memory receives.
9, gateway as claimed in claim 8 is characterized in that, also comprises:
H.323 layer processing unit is used for calling the Release complete of described TCP buffer unit, carries out H.323 layer and handles.
10, gateway as claimed in claim 8 is characterized in that, described releasing unit also is used to empty the TCP buffer unit.
CNA2008101724908A 2008-11-12 2008-11-12 Method, system and device for releasing occupied TCP connection after calling Pending CN101394444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101724908A CN101394444A (en) 2008-11-12 2008-11-12 Method, system and device for releasing occupied TCP connection after calling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101724908A CN101394444A (en) 2008-11-12 2008-11-12 Method, system and device for releasing occupied TCP connection after calling

Publications (1)

Publication Number Publication Date
CN101394444A true CN101394444A (en) 2009-03-25

Family

ID=40494510

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101724908A Pending CN101394444A (en) 2008-11-12 2008-11-12 Method, system and device for releasing occupied TCP connection after calling

Country Status (1)

Country Link
CN (1) CN101394444A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546659A (en) * 2012-02-21 2012-07-04 上海交通大学 Durable TCP (transmission control protocol) connection method oriented to remote procedure call
CN105991348A (en) * 2015-05-20 2016-10-05 杭州迪普科技有限公司 TCP (transmission control protocol) connection closing method and device
CN106028472A (en) * 2016-05-19 2016-10-12 珠海市魅族科技有限公司 Call disconnect method and device
CN106487817A (en) * 2016-12-28 2017-03-08 北京奇艺世纪科技有限公司 Method for closing and device that a kind of TCP connects

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546659A (en) * 2012-02-21 2012-07-04 上海交通大学 Durable TCP (transmission control protocol) connection method oriented to remote procedure call
CN102546659B (en) * 2012-02-21 2015-07-08 上海交通大学 Durable TCP (transmission control protocol) connection method oriented to remote procedure call
CN105991348A (en) * 2015-05-20 2016-10-05 杭州迪普科技有限公司 TCP (transmission control protocol) connection closing method and device
CN105991348B (en) * 2015-05-20 2019-03-15 杭州迪普科技股份有限公司 TCP connection method for closing and device
CN106028472A (en) * 2016-05-19 2016-10-12 珠海市魅族科技有限公司 Call disconnect method and device
CN106487817A (en) * 2016-12-28 2017-03-08 北京奇艺世纪科技有限公司 Method for closing and device that a kind of TCP connects

Similar Documents

Publication Publication Date Title
EP1709781B1 (en) Congestion handling in a packet communication system
US20020118671A1 (en) Extending office telephony and network data services to a remote client through the internet
KR101614552B1 (en) Method of objet transmission between devices with multiple wireless interface
CN104243281B (en) Voice communication method based on mobile internet
JP2005518693A5 (en)
CN1319983A (en) Communication quality guaranteed internet telephone system and route creation method
JP2007019767A (en) Ip telephone set
CN101394444A (en) Method, system and device for releasing occupied TCP connection after calling
JP2015057890A (en) System and method for content distribution, and program
CN114363351B (en) Proxy connection suppression method, network architecture and proxy server
JP2006262417A (en) Communication speed control method and apparatus therefor
CN101296177A (en) Method, system and device for implementing overload control in packet network
CN103067981A (en) Content buffer memory bypass method and content buffer memory bypass system
JP5241705B2 (en) Call management over limited bandwidth
CN102143040A (en) Traffic control method and device
CN101299764B (en) Method for backupping broadband access server for PPPOE access service
JP2000207298A (en) File transfer method
US8713123B2 (en) Method of sending CTI messages in a communication system
EP2381668B1 (en) Systems and methods of timing DTMF tones for telephony control
JP3594876B2 (en) Remote monitoring and control device connected to wireless network and terminal device
CN100571192C (en) A kind of SCTP endpoint control receives the method for data block
JP3454998B2 (en) Communications system
JP2005286530A (en) Router
WO2022201410A1 (en) Signal processing device, signal processing method, signal processing program, and satellite communication system
JP2006222667A (en) SIP SERVER AND VoIP PHONE 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090325