CN102932226B - Method for reducing network connection - Google Patents
Method for reducing network connection Download PDFInfo
- Publication number
- CN102932226B CN102932226B CN201210415003.2A CN201210415003A CN102932226B CN 102932226 B CN102932226 B CN 102932226B CN 201210415003 A CN201210415003 A CN 201210415003A CN 102932226 B CN102932226 B CN 102932226B
- Authority
- CN
- China
- Prior art keywords
- server
- dissimilar
- calculator
- connection
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
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
Technical field
The invention belongs to instant messaging field, particularly relate to a kind of method and system reducing network and connect.
Background technology
Along with the develop rapidly of informationized society, various means of communication such as Fetion, QQ etc. are generally used by people, and except individual application, the instant communication mode of some enterprise versions is also familiar with by popular gradually, such as video conference etc.In video conference practical application, can data flow the quality of fast transport to video conference play key effect.In current technology, same network connects can be divided into different passage, and different passages is in a period of time or a certain moment, can only transmit same type data flow.But, when a large amount of dissimilar data flow produces high concurrent communication, because number of network connections is limited, easily cause all types of data stream transmitting speed unbalanced.In addition, the different passages connected can only transmit the data flow of a type simultaneously, cause the phenomenon that network resource usage is insufficient.
Summary of the invention
The invention provides a kind of reduce network connect method and system to solve the problem.
The invention provides a kind of method reducing network and connect, comprise the following steps.Client sets up the connection with server, and obtains local packet to be sent.Described client creates dissimilar passage in described connection, and sends described packet to described server by described passage.The channel capacity sum that described in described server statistics, the client a certain moment is dissimilar, and statistics is sent to calculator.Described calculator recalculates the dissimilar port number of linking number and correspondence according to the initial preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection and maximum preset value and notifies described client, and described client adjusts the dissimilar port number of described linking number and correspondence according to the notice of calculator.
The invention provides a kind of system reducing network and connect, comprise client, calculator and server, server described in described client's side link, described calculator connects described client and described server respectively.Described client, for setting up the connection with server, and dissimilar passage is created in described connection, send described packet to described server by described passage, also for the dissimilar port number of the linking number that recalculates according to the notice adjustment of described calculator and correspondence.Described calculator, for recalculating linking number according to the initial preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection and maximum preset value and notify described client.Described server, for adding up dissimilar channel capacity sum of described client a certain moment, and sends to calculator by statistics.
Compared to prior art, according to the method and system that minimizing network provided by the invention connects, client sets up the connection with server, and obtains local packet to be sent.Client creates dissimilar passage in this connection, and sends packet to server by passage.By arranging dissimilar passage in this connection, reach resource-sharing in network connection.The channel capacity sum that the server statistics client a certain moment is dissimilar, and statistics is sent to calculator.Calculator recalculates the dissimilar port number of linking number and correspondence according to the initial preset value of flow in statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection and maximum preset value and notifies client, the notice adjustment linking number of client according to calculator and the dissimilar port number of correspondence.So, take full advantage of the channel resource that network connects, efficiently solve network congestion problem during high concurrent communication.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation 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 the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine 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 preferred embodiment of the present invention provides comprises step 101 ~ 104.
Step 101: client sets up the connection with server, and obtains local packet to be sent.
Specifically, the connection sum between described client and described server is no more than to preset and connects sum, in the present embodiment, described default connection adds up to 1024, in other embodiment, described default connection sum can be set as required, this present invention is not construed as limiting.Described client is converted to binary format after obtaining local packet to be sent, and creates the head data of packet, by the Packet Generation after process to server.
Step 102: described client creates dissimilar passage in described connection, and send described packet to described server by described passage.
Specifically, described channel type comprises video channel, voice-grade channel and Common passageway, and the dissimilar total number of channels in same connection is no more than default total number of channels.In the present embodiment, described default total number of channels is 100, in other embodiment, can arrange described default total number of channels as required, is not construed as limiting this present invention.When described client creates passage, it is incrementally each channel allocation channel PID.Described data packet head packet is containing Packet Generation time, channel PID, and wherein, transmitting time takies 4 bytes, and channel PID takies 4 bytes.After described server starts to receive described packet, the head data acquisition channels PID of resolution data bag, and obtain entire packet according to described channel PID to respective channel.
Step 103: the channel capacity sum that described in described server statistics, the client a certain moment is dissimilar, and statistics is sent to calculator.
Specifically, the mode of the channel capacity sum that all connections of described server statistics a certain moment are dissimilar can be timing or in real time, is not construed as limiting this present invention.
Step 104: described calculator recalculates the dissimilar port number of linking number and correspondence according to the initial preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection and maximum preset value and notifies described client, and described client adjusts the dissimilar port number of described linking number and correspondence according to the notice of calculator.
Specifically, the method that described calculator recalculates linking number is, if dissimilar channel capacity sum is A in all connections of server statistics a certain moment, the largest passages number ratio sum that all types of port number is corresponding with described type is M, in single connection, the initial preset value of flow is r, in single connection, the maximum preset value of flow is t, then the linking number N=A/ [M* (t-r)+r] after recalculating.In the present embodiment, in described single connection, the maximum preset value t of flow is 30M/S, in other embodiment, can sets itself as required, and this present invention is not construed as limiting.Described calculator respectively with current all types of total number of channels divided by the linking number after described recalculating, gained business is the number of corresponding types passage in single connection.Calculator is by after the dissimilar port number notice client of the linking number that recalculates and correspondence, and described client carries out correspondence adjustment according to described notice.
For example, be connected if client and server establish two and obtain local packet to be sent, and described client creates 1 video channel, 2 voice-grade channels and 8 Common passageway respectively according to packet number to be sent in described each connection, wherein video channel largest passages number is 2, voice-grade channel largest passages number is 20, Common passageway largest passages number is 20.Described client is sent to server by described all types of passage after packet to be sent is added data head, and after described server starts to receive packet, resolution data head Acquisition channel PID also obtains packet to respective channel.
If the T moment, each video channel flow was 2M/S, each voice-grade channel flow is 1M/S, each Common passageway flow is 0.5M/S, then the server statistics T moment respectively connects dissimilar channel capacity sum is 2*(2M/S+2*1M/S+8*0.5M/S)=16M/S send to calculator.In this, if the initial preset value of flow is 8M/S in single connection, in single connection, the maximum preset value of flow is 30M/S, then calculator calculating T moment linking number N is that (16M/S)/[(2/2+4/20+16/20) * (30 M/S-8M/S)+8M/S]=16/52, N rounds is 1.It is (1+1)/1=2 that calculator calculates video channel number in described connection, and voice-grade channel number is (2+2)/1=4, and Common passageway number is (8+8)/1=16.The result notice client that calculator will recalculate, the adjustment of described client is 1 with the linking number of server, and to adjust video channel number in described connection be 2, and voice-grade channel number is 4, and Common passageway 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 described client 201 and described server 203 respectively.Described client 201, for setting up the connection with server 203, and dissimilar passage is created in described connection, described packet is sent to described server 203, also for the dissimilar port number of the linking number that recalculates according to the notice adjustment of described calculator 202 and correspondence by described passage.Described calculator 202, for recalculating linking number according to the initial preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection and maximum preset value and notify described client 201.Described server 203, for adding up dissimilar channel capacity sum of described client 201 a certain moment, and sends to calculator 202 by statistics.About the operating process of said system with described in said method, therefore repeat no more in this.
In sum, according to the method and system of the minimizing network connection that present pre-ferred embodiments provides, client sets up the connection with server, and obtains local packet to be sent.Client creates dissimilar passage in this connection, and sends packet to server by passage.By arranging dissimilar passage in this connection, reach resource-sharing in network connection.The channel capacity sum that the server statistics client a certain moment is dissimilar, and statistics is sent to calculator.Calculator recalculates the dissimilar port number of linking number and correspondence according to the initial preset value of flow in statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection and maximum preset value and notifies client, the notice adjustment linking number of client according to calculator and the dissimilar port number of correspondence.So, take full advantage of the channel resource that network connects, efficiently solve network congestion problem during high concurrent communication.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, 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 amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (6)
1. reduce the method that network connects, it is characterized in that, comprise the following steps:
Client sets up the connection with server, and obtains local packet to be sent;
Described client creates dissimilar passage in described connection, and sends described packet to described server by described passage;
The channel capacity sum that described in described server statistics, the client a certain moment is dissimilar, and statistics is sent to calculator;
Described calculator recalculates the dissimilar port number of linking number and correspondence according to the initial preset value of flow in described statistics, dissimilar port number, the largest passages number that all types of passage is corresponding, single connection and maximum preset value and notifies described client, and described client adjusts the dissimilar port number of described linking number and correspondence according to the notice of calculator;
Wherein, the method that described calculator recalculates linking number is, if dissimilar channel capacity sum is A in all connections of server statistics a certain moment, the largest passages number ratio sum that all types of port number is corresponding with described type is M, in single connection, the initial preset value of flow is r, in single connection, the maximum preset value of flow is t, then the linking number N=A/ [M* (t-r)+r] after recalculating.
2. method according to claim 1, is characterized in that, after described calculator recalculates described linking number, respectively with all types of total number of channels divided by the described linking number recalculated, gained business is the number of corresponding types passage in single connection.
3. method according to claim 1, is characterized in that, described channel type comprises video channel, voice-grade channel and Common passageway.
4. method according to claim 1, is characterized in that, the connection sum between all clients and described server is no more than to preset and connects sum, and in single connection, dissimilar total number of channels is no more than default total number of channels.
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 the head data of packet, by the Packet Generation after process to server.
6. method according to claim 5, is characterized in that, described head packet is containing Packet Generation time, channel PID, and wherein transmitting time takies 4 bytes, and channel PID takies 4 bytes.
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 CN102932226A (en) | 2013-02-13 |
CN102932226B true CN102932226B (en) | 2015-07-15 |
Family
ID=47646933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210415003.2A Expired - Fee Related CN102932226B (en) | 2012-10-26 | 2012-10-26 | Method for reducing network connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102932226B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20170014458A (en) * | 2015-07-30 | 2017-02-08 | 엘지전자 주식회사 | Mobile terminal, watch-type mobile terminal and method for controlling the same |
CN107172036B (en) * | 2017-05-11 | 2020-05-05 | 北京安赛创想科技有限公司 | Network scanning control method and device |
CN110138089B (en) * | 2019-06-06 | 2021-12-28 | 国网北京市电力公司 | Batch preset communication method for distribution network automation master station |
Citations (4)
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 |
-
2012
- 2012-10-26 CN CN201210415003.2A patent/CN102932226B/en not_active Expired - Fee Related
Patent Citations (4)
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)
Title |
---|
支持可变功耗的多通道串行链路管理机制;王永庆 等;《计算机研究与发展》;20120522;第49卷(第z1期);第99~103页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102932226A (en) | 2013-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101272520B (en) | Method and device for supporting multimedia broadcast multicast service in system structure evolution | |
CN106301679B (en) | Method and device for adjusting service rate | |
EP2584757A1 (en) | Method, apparatus, and system for carrying out multimedia service in wireless local area network | |
KR20150108856A (en) | Wireless real time media communications through the use of multiple media streams | |
WO2016034029A1 (en) | Method and device for processing service traffic | |
CN106162685A (en) | A kind of obtain the method and system of propagation delay time between inserting technology networks | |
CN102932226B (en) | Method for reducing network connection | |
WO2017054583A1 (en) | Downlink control information transmission method in multiple user cooperative communication, base station, and user equipment | |
CN105323867A (en) | Business data transmission control method, apparatus and system | |
US20190191019A1 (en) | Protocol layer distribution indication method and apparatus | |
CN107995130A (en) | A kind of fast shifting method of fragment message | |
CN101729377A (en) | Hyper frame number (HFN) informing method, device and system | |
CN103945335B (en) | The methods, devices and systems of one group conversation | |
CN105451265A (en) | Processing method, device and terminal for multi-user downlink data | |
CN102170331A (en) | Method and device for adjusting speed of general communication channel (GCC) | |
CN102916870A (en) | Method and system for controlling network connection | |
CN107645391A (en) | A kind of port configuration method and device of Interface Expanding equipment | |
CN106027189B (en) | It is a kind of to realize the method and system that internet of things equipment message time stamp is provided | |
CN102904899A (en) | Method and system for dynamically controlling network connection | |
CN103179521A (en) | Method and system for transmitting picture | |
CN102098314B (en) | Multimedia conference realizing method and multimedia conference system | |
CN101132392B (en) | Single-carrier frequency broadcast system and method for implementing its business transmission | |
CN107094299B (en) | Data processing method adaptive to access network architecture and access network architecture | |
CN108377205A (en) | Optimize the system and method for NFV data forwarding performances | |
WO2020207429A1 (en) | Message processing method and apparatus, and computer-readable storage medium |
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: CODYY EDUCATION TECHNOLOGY Co.,Ltd. Address before: Suzhou City, Jiangsu province 215121 Fengting Avenue Suzhou Industrial Park No. 666 Weiting Intelligent Industrial Park Building 8 Patentee before: SUZHOU CODYY NETWORK SCIENCE & TECHNOLOGY Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150715 |