CN102932226A - Method and system for reducing network connection - Google Patents

Method and system for reducing network connection Download PDF

Info

Publication number
CN102932226A
CN102932226A CN2012104150032A CN201210415003A CN102932226A CN 102932226 A CN102932226 A CN 102932226A CN 2012104150032 A CN2012104150032 A CN 2012104150032A CN 201210415003 A CN201210415003 A CN 201210415003A CN 102932226 A CN102932226 A CN 102932226A
Authority
CN
China
Prior art keywords
server
calculator
dissimilar
client
connection
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
CN2012104150032A
Other languages
Chinese (zh)
Other versions
CN102932226B (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.)
Codyy Education Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology 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 Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN201210415003.2A priority Critical patent/CN102932226B/en
Publication of CN102932226A publication Critical patent/CN102932226A/en
Application granted granted Critical
Publication of CN102932226B publication Critical patent/CN102932226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system for reducing network connection. The method comprises the following steps that: a client side is connected with a server and obtains a local data package to be sent; the client side builds different types of channels in the connection, and the data package is sent to the server through the channels; the server carries out statistics on the flow sum of the different type of channels of the client side at a certain time and sends the statistical result to a calculator; and according to the statistical result, different-type channel number, the corresponding maximum channel number of various types of channels and the initial preset value and maximum preset value of the flow in a single correction, the calculator recomputes the connection number and the corresponding different-type channel number and notifies the client side, and the client side adjusts the connection number and the corresponding different-type channel number according to the notification of the calculator.

Description

A kind of method and system that reduce network connection
Technical field
The invention belongs to the instant messaging field, relate in particular to a kind of method and system that reduce network connection.
Background technology
Along with the develop rapidly of informationized society, various meanss of communication such as Fetion, QQ etc. are generally used by people, and except individual application, the instant communication mode of some enterprise versions also is familiar with by popular gradually, such as video conference etc.In the video conference practical application, can data flow fast transport play key effect to the quality of video conference.In present technology, the same network connection can be divided into different passages, and different passages can only transmit the same type data flow in a period of time or a certain moment.Yet, when a large amount of dissimilar data flow produces high concurrent communication, because the network connection number is limited, easily cause all types of data stream transmitting speed unbalanced.In addition, the different passages of a connection can only transmit one type data flow simultaneously, have caused the inadequate phenomenon of network resource usage.
Summary of the invention
The invention provides a kind of method and system of network connection that reduce to address the above problem.
The invention provides a kind of method that reduces network connection, may further comprise the steps.Client foundation is connected with server, and obtains local packet to be sent.Described client creates dissimilar passages in described connection, and sends described packet to described server by described passage.Described server is added up dissimilar channel capacity sum of a certain moment of described client, and statistics is sent to calculator.Described calculator recomputates the dissimilar port numbers of linking number and correspondence and notifies described client according to initial preset value and the maximum preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, the single connection, and described client is adjusted described linking number and corresponding dissimilar port numbers according to the notice of calculator.
The invention provides a kind of system that reduces network connection, comprise client, calculator and server, described client connects described server, and described calculator connects respectively described client and described server.Described client, be used for to set up and being connected of server, and in described connection, create dissimilar passages, and send described packet to described server by described passage, also be used for the linking number and the corresponding dissimilar port numbers that recomputate according to the notice adjustment of described calculator.Described calculator is used for recomputating linking number and notifying described client according to initial preset value and the maximum preset value of described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection flow.Described server is used for adding up dissimilar channel capacity sum of a certain moment of described client, and statistics is sent to calculator.
Compared to prior art, according to the method and system of minimizing network connection provided by the invention, client foundation is connected with server, and obtains local packet to be sent.Client creates dissimilar passages in connection, and sends packet to server by passage.By dissimilar passages are set, reached resource-sharing in the network connection in connection.Server is added up dissimilar channel capacity sum of a certain moment of client, and statistics is sent to calculator.Calculator recomputates the dissimilar port numbers of linking number and correspondence and notifies client according to initial preset value and the maximum preset value of flow in statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, the single connection, and client is adjusted linking number and corresponding dissimilar port numbers according to the notice of calculator.So, take full advantage of the channel resource of network connection, the network congestion problem when efficiently solving high concurrent communication.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Figure 1 shows that the flow chart of the minimizing method for connecting network that preferred embodiment according to the present invention provides;
Figure 2 shows that the schematic diagram of the minimizing network connection system that preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that the flow chart of the minimizing method for connecting network that preferred embodiment according to the present invention provides.As shown in Figure 1, the minimizing method for connecting network that provides of preferred embodiment of the present invention comprises step 101 ~ 104.
Step 101: client foundation is connected with server, and obtains local packet to be sent.
Particularly, the sum that is connected between described client and the described server is no more than the default sum that connects, in present embodiment, described default connection adds up to 1024, in other embodiment, described default connection sum can be set as required, to this present invention and be not construed as limiting.Described client is converted to binary format after obtaining local packet to be sent, and creates a data of packet, with the Packet Generation after processing to server.
Step 102: described client creates dissimilar passages in described connection, and sends described packet to described server by described passage.
Particularly, described channel type comprises video channel, voice-grade channel and common passage, and the dissimilar total number of channels in the same connection are no more than default total number of channels.In present embodiment, described default total number of channels is 100, in other embodiment, described default total number of channels can be set as required, to this present invention and be not construed as limiting.When described client creates passage, in the mode that increases progressively as each channel allocation channel PID.Described data packet head data comprise Packet Generation time, channel PID, and wherein, transmitting time takies 4 bytes, and channel PID takies 4 bytes.After described server begins to receive described packet, a data acquisition channel PID of resolution data bag, and obtain entire packet according to described channel PID to respective channel.
Step 103: described server is added up dissimilar channel capacity sum of a certain moment of described client, and statistics is sent to calculator.
Particularly, it can be regularly or in real time that described server is added up all modes that connect dissimilar channel capacity sums of a certain moment, to this present invention and be not construed as limiting.
Step 104: described calculator recomputates the dissimilar port numbers of linking number and correspondence and notifies described client according to initial preset value and the maximum preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, the single connection, and described client is adjusted described linking number and corresponding dissimilar port numbers according to the notice of calculator.
Particularly, the method that described calculator recomputates linking number is, dissimilar channel capacity sums are A in all connections of a certain moment if server is added up, it is M that the largest passages that all types of port numbers are corresponding with described type is counted the ratio sum, the initial preset value of flow is r in the single connection, the maximum preset value of flow is t in the single connection, the linking number N=A/[M* (t-r) after then recomputating+r].In present embodiment, the maximum preset value t of flow is 30M/S in the described single connection, in other embodiment, can set up on their own as required, to this present invention and be not construed as limiting.With the linking number of current all types of total number of channels after divided by described recomputating, the gained merchant is the number of corresponding types passage in the single connection to described calculator respectively.Calculator with the linking number that recomputates and corresponding dissimilar port numbers notice clients after, described client is carried out correspondence adjustment according to described notice.
For example, if having set up two with server, client is connected and obtains local packet to be sent, and described client according to packet number to be sent described each created respectively 1 video channel, 2 voice-grade channels and 8 common passages in connecting, wherein video channel largest passages number is 2, voice-grade channel largest passages number is 20, common passage largest passages number is 20.Described client sends to server by described all types of passages after packet to be sent is added data head, and after described server began the receive data bag, resolution data head Acquisition channel PID also obtained packet to respective channel.
If T constantly each video channel flow is 2M/S, each voice-grade channel flow is 1M/S, each common channel capacity is 0.5M/S, then server statistics T constantly respectively to connect dissimilar channel capacity sums be 2*(2M/S+2*1M/S+8*0.5M/S)=16M/S and send to calculator.In this, if the initial preset value of flow is 8M/S in the single connection, the maximum preset value of flow is 30M/S in the single connection, and then calculator calculating T moment linking number N is (16M/S)/[(2/2+4/20+16/20) * (30 M/S-8M/S)+8M/S]=16/52, and it is 1 that N rounds.Calculator calculates that the video channel number is (1+1)/1=2 in the described connection, and the voice-grade channel number is (2+2)/1=4, and common port number is (8+8)/1=16.The result that calculator will recomputate notifies client, and the linking number of described client adjustment and server is 1, and adjusts that the video channel number is 2 in the described connection, and the voice-grade channel number is 4, and common port number is 16.
Figure 2 shows that the schematic diagram of the minimizing network connection system that preferred embodiment according to the present invention provides.As shown in Figure 2, the minimizing network connection system that preferred embodiment of the present invention provides comprises client 201, calculator 202 and server 203, described client 201 connects described server 203, and described calculator 202 connects respectively described client 201 and described server 203.Described client 201, be used for to set up and being connected of server 203, and in described connection, create dissimilar passages, send described packet to described server 203 by described passage, also be used for the linking number and the corresponding dissimilar port numbers that recomputate according to the notice adjustment of described calculator 202.Described calculator 202 is used for recomputating linking number and notifying described client 201 according to initial preset value and the maximum preset value of described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection flow.Described server 203 is used for adding up described dissimilar channel capacity sum of the 201 a certain moment of client, and statistics is sent to calculator 202.Operating process about said system is described with above-mentioned method, so repeat no more in this.
In sum, the method and system of the minimizing network connection that preferred embodiment provides according to the present invention, client foundation is connected with server, and obtains local packet to be sent.Client creates dissimilar passages in connection, and sends packet to server by passage.By dissimilar passages are set, reached resource-sharing in the network connection in connection.Server is added up dissimilar channel capacity sum of a certain moment of client, and statistics is sent to calculator.Calculator recomputates the dissimilar port numbers of linking number and correspondence and notifies client according to initial preset value and the maximum preset value of flow in statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, the single connection, and client is adjusted linking number and corresponding dissimilar port numbers according to the notice of calculator.So, take full advantage of the channel resource of network connection, the network congestion problem when efficiently solving high concurrent communication.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a method that reduces network connection is characterized in that, may further comprise the steps:
Client foundation is connected with server, and obtains local packet to be sent;
Described client creates dissimilar passages in described connection, and sends described packet to described server by described passage;
Described server is added up dissimilar channel capacity sum of a certain moment of described client, and statistics is sent to calculator;
Described calculator recomputates the dissimilar port numbers of linking number and correspondence and notifies described client according to initial preset value and the maximum preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, the single connection, and described client is adjusted described linking number and corresponding dissimilar port numbers according to the notice of calculator.
2. method according to claim 1 is characterized in that, after described calculator recomputates described linking number, respectively with all types of total number of channels divided by the described linking number that recomputates, the gained merchant is the number of corresponding types passage in the single connection.
3. method according to claim 1 is characterized in that, described channel type comprises video channel, voice-grade channel and common passage.
4. method according to claim 1 is characterized in that, the sum that is connected between all clients and the described server is no more than the default sum that connects, and dissimilar total number of channels are no more than default total number of channels in the single connection.
5. method according to claim 1 is characterized in that, described client is converted to binary format after obtaining local packet to be sent, and after creating a data of packet, with the Packet Generation after processing to server.
6. method according to claim 5 is characterized in that, described data comprise Packet Generation time, channel PID, and wherein transmitting time takies 4 bytes, and channel PID takies 4 bytes.
7. a system that reduces network connection is characterized in that, comprises client, calculator and server, and described client connects described server, and described calculator connects respectively described client and described server,
Described client, be used for to set up and being connected of server, and in described connection, create dissimilar passages, and send described packet to described server by described passage, also be used for the linking number and the corresponding dissimilar port numbers that recomputate according to the notice adjustment of described calculator;
Described calculator is used for recomputating linking number and notifying described client according to initial preset value and the maximum preset value of described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection flow;
Described server is used for adding up dissimilar channel capacity sum of a certain moment of described client, and statistics is sent to calculator.
CN201210415003.2A 2012-10-26 2012-10-26 Method for reducing network connection Active CN102932226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210415003.2A CN102932226B (en) 2012-10-26 2012-10-26 Method for reducing network connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210415003.2A CN102932226B (en) 2012-10-26 2012-10-26 Method for reducing network connection

Publications (2)

Publication Number Publication Date
CN102932226A true CN102932226A (en) 2013-02-13
CN102932226B CN102932226B (en) 2015-07-15

Family

ID=47646933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210415003.2A Active CN102932226B (en) 2012-10-26 2012-10-26 Method for reducing network connection

Country Status (1)

Country Link
CN (1) CN102932226B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411631A (en) * 2015-07-30 2017-02-15 Lg电子株式会社 Mobile terminal, watch-type mobile terminal and method for controlling the same
CN107172036A (en) * 2017-05-11 2017-09-15 北京安赛创想科技有限公司 A kind of network sweep control method and device
CN110138089A (en) * 2019-06-06 2019-08-16 国网北京市电力公司 The preset communication means of distribution automation main website batch

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101040270A (en) * 2005-06-14 2007-09-19 索尼计算机娱乐公司 Command transfer controlling apparatus and command transfer controlling method
CN101753463A (en) * 2010-01-29 2010-06-23 华为技术有限公司 Multichannel transmission load balancing method and device
CN101925028A (en) * 2009-06-16 2010-12-22 中兴通讯股份有限公司 Short message gateway and short message isomerous network communication processing method thereof
CN102158404A (en) * 2011-03-25 2011-08-17 成都飞鱼星科技开发有限公司 Intelligent flow control system of interactive network and implementing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101040270A (en) * 2005-06-14 2007-09-19 索尼计算机娱乐公司 Command transfer controlling apparatus and command transfer controlling method
CN101925028A (en) * 2009-06-16 2010-12-22 中兴通讯股份有限公司 Short message gateway and short message isomerous network communication processing method thereof
CN101753463A (en) * 2010-01-29 2010-06-23 华为技术有限公司 Multichannel transmission load balancing method and device
CN102158404A (en) * 2011-03-25 2011-08-17 成都飞鱼星科技开发有限公司 Intelligent flow control system of interactive network and implementing method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王永庆 等: "支持可变功耗的多通道串行链路管理机制", 《计算机研究与发展》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411631A (en) * 2015-07-30 2017-02-15 Lg电子株式会社 Mobile terminal, watch-type mobile terminal and method for controlling the same
CN107172036A (en) * 2017-05-11 2017-09-15 北京安赛创想科技有限公司 A kind of network sweep control method and device
CN110138089A (en) * 2019-06-06 2019-08-16 国网北京市电力公司 The preset communication means of distribution automation main website batch
CN110138089B (en) * 2019-06-06 2021-12-28 国网北京市电力公司 Batch preset communication method for distribution network automation master station

Also Published As

Publication number Publication date
CN102932226B (en) 2015-07-15

Similar Documents

Publication Publication Date Title
CN105120520B (en) The method and apparatus that data are transmitted in Wireless LAN
CN101272520B (en) Method and device for supporting multimedia broadcast multicast service in system structure evolution
EP2584757A1 (en) Method, apparatus, and system for carrying out multimedia service in wireless local area network
CN103096384A (en) Method limiting slave internet traffic and system thereof
CN105657334A (en) Video transmission method, video monitoring platform and video monitoring equipment
CN105338288A (en) Multi-people network video session method and system
CN102984035A (en) Loopback test method and system of packet loss probability of network data
CN103945455A (en) Method and device for sending self-adaptive heartbeat data packets
CN102932226B (en) Method for reducing network connection
CN104754521B (en) A kind of message forwarding method, wireless access point, wireless controller and system
CN102916870A (en) Method and system for controlling network connection
CN111224889A (en) Data transmission method and device
CN101534254A (en) A queue report method, a device and a passive optical network
CN102957729B (en) A kind of multimedia conferencing audio/video transmission method and equipment
CN102904899A (en) Method and system for dynamically controlling network connection
CN104601481A (en) Method for flow distribution in multichannel access network
CN106027189B (en) It is a kind of to realize the method and system that internet of things equipment message time stamp is provided
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN101931782B (en) For flow processing method and the device of multipoint control unit
CN103179521B (en) A kind of picture transmission method and system
CN106658058A (en) Multiple-client-terminal-based video transmission rate synchronization management method and the management system
CN102098314B (en) Multimedia conference realizing method and multimedia conference system
CN100542354C (en) Terminal configuration method and terminal configuration system
CN102131231B (en) Method for acquiring residual resource information of heterogeneous network
CN107465742B (en) Distribution equipment and method for realizing asymmetric service by UDP tunnel technology

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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: Suzhou City, Jiangsu province 215121 Fengting Avenue Suzhou Industrial Park No. 666 Weiting Intelligent Industrial Park Building 8

Patentee after: Kuo Di education and science company limited

Address before: Suzhou City, Jiangsu province 215121 Fengting Avenue Suzhou Industrial Park No. 666 Weiting Intelligent Industrial Park Building 8

Patentee before: Suzhou Kuodi Network Technology Co., Ltd.