CN100512210C - Realization method for carrying out buffer control on internet user bandwidth - Google Patents

Realization method for carrying out buffer control on internet user bandwidth Download PDF

Info

Publication number
CN100512210C
CN100512210C CNB2005100777868A CN200510077786A CN100512210C CN 100512210 C CN100512210 C CN 100512210C CN B2005100777868 A CNB2005100777868 A CN B2005100777868A CN 200510077786 A CN200510077786 A CN 200510077786A CN 100512210 C CN100512210 C CN 100512210C
Authority
CN
China
Prior art keywords
user
bandwidth
network
message
time
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.)
Active
Application number
CNB2005100777868A
Other languages
Chinese (zh)
Other versions
CN1885821A (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.)
China Great Wall Computer Shenzhen Co Ltd
Original Assignee
China Great Wall Computer Shenzhen 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 China Great Wall Computer Shenzhen Co Ltd filed Critical China Great Wall Computer Shenzhen Co Ltd
Priority to CNB2005100777868A priority Critical patent/CN100512210C/en
Publication of CN1885821A publication Critical patent/CN1885821A/en
Application granted granted Critical
Publication of CN100512210C publication Critical patent/CN100512210C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The provided buffer control method for bandwidth comprises: real-time every user bandwidth by a network management device; if user bandwidth within the limit, the management device takes no any limit; or else, the management device limits any one with both bandwidth and time over the limit to cast off its message; for one with bandwidth over limit but time within limit, the device allows it immediate outburst; when one within limit again, the device relieves control. This invention improves network utility.

Description

A kind of method that realizes internet user bandwidth is cushioned control
Technical field
The present invention relates to the method that a kind of bandwidth that the Internet user is taken cushions control.
Background technology
In today that internet content becomes increasingly abundant, the Internet becomes an indispensable part in people's work and the life gradually, and more and more enterprises and individual insert the Internet by certain mode.People login the Internet search, when downloading data, people wish network speed, and The faster the better; But along with the continuous expansion of Internet user's scale and people constantly raise to the desired value of network speed, people always think that network speed is still too slow.
When constantly proposing new demand in the continuous expansion of Internet user's scale and to Virtual network operator, for Virtual network operator, how can utilize its existing equipment and the user who invests maximum quantity that the service of high-quality stable network is provided also is its problem of being concerned about the most.
No matter be the operator that provides services on the Internet in the local area network (LAN) mode, still be the operator that provides services on the Internet in other modes such as ADSL, its network equipment all a plurality of users share.Because the outlet bandwidth of the network equipment is fixed, if certain CU excessive bandwidth, other users' available bandwidth is reduced, networking speed is slack-off, the online quality is affected, so be necessary the bandwidth that unique user takies is limited, to ensure the fair use of all users to network bandwidth resources.
But, in practice, it is found that if merely user bandwidth is limited, still can not make Internet resources obtain optimum utilization.Because, if it is too little to the bandwidth value restriction that the network user takies, though can prevent the excessive bandwidth of a certain CU, but be not under all users situation of all surfing the Net, the bandwidth that the user who is surfing the Net also can only use limits value to set, and network equipment outlet this moment has a large amount of idle bandwidth to be wasted; On the contrary, if the bandwidth value restriction that the network user is taken is too big, can not prevent effectively that again unique user from taking excessive bandwidth; So, if can there be a kind of flexible strategies to limit to those users who takies big bandwidth for a long time, again can be according to network behaviour in service at that time, for example this moment, the Internet user was less, perhaps the user carries out browsing page, operations such as receiving and dispatching mail and the little software of download, the bandwidth demand that belongs to a kind of short time of demblee form, can't take big bandwidth for a long time, allow the extra bandwidth of CU in these cases, so just can in existing equipment and investment, improve the utilance of network, improve user's networking speed, the online quality promotes satisfaction and degree of recognition that the user uses network significantly.
Summary of the invention
In view of the foregoing, the purpose of this invention is to provide a kind of method that can cushion control to user bandwidth.This control method allows moment burst bandwidth, promptly allows the user not to be subjected to bandwidth constraints in the regular hour when carrying out operation such as browsing page, receiving and dispatching mail and the little software of download, to improve the efficient of surfing the Net; And continue to take under the situation of big bandwidth the user, can automatically user bandwidth be limited in the bandwidth of setting again, can both obtain bigger reasonable bandwidth to guarantee other users that share a network equipment.
For achieving the above object, the present invention is by the following technical solutions: a kind of method that realizes internet user bandwidth is cushioned control, for realizing this method, Virtual network operator need be selected a network C PU with two network interfaces for use, network interface of network C PU is linked to each other with the former outlet that needs carry out the network equipment of bandwidth control, the new outlet as the network equipment after making up of another network interface of network C PU is linked to each other with outer net;
This realization may further comprise the steps the method that internet user bandwidth cushions control:
(1), network C PU whenever receives a frame message, judges that this message is the message from the user, still from the message of outer net? if from the message of outer net, then redirect carried out for (10) step;
(2) if from user's message, network C PU resolves this message, screens this message from which particular user;
(3), network C PU reads numerical value that this user sends bandwidth counter and this user's bandwidth limit value;
(4), judge that this user's transmission bandwidth is greater than the bandwidth limit value of the network equipment to this user? if be not more than, redirect carried out for (7) step;
(5) if this user's transmission bandwidth greater than the bandwidth limit value of the network equipment to this user, network C PU reads this user bandwidth controlled flag bit value;
(6), judge the whether set of this user bandwidth controlled flag position? if set illustrates that this user belongs to the user who takies big bandwidth for a long time, belong to confined object, then network C PU abandons this message, finishes operation this time; If there is not set, then continue to carry out next step.
(7), network C PU is forwarded to outer net with the message that this user sends;
(8), network C PU is added to message length on this user's the transmission bandwidth counter;
(9), finish operation this time;
(10) if this message is the message from outer net, network C PU resolves this message, screens this message and mails to which particular user;
(11), network C PU reads the numerical value of the wide counter of this customer receipt tape and this user's bandwidth limit value;
(12), judge that this user's reception bandwidth is greater than the bandwidth limit value of the network equipment to this user? if be not more than, redirect carried out for (15) step;
(13) if this user's receiving belt is wider than the bandwidth limit value of the network equipment to this user, network C PU reads this user bandwidth controlled flag bit value;
(14), judge the whether set of this user bandwidth controlled flag position? if set illustrates that this user belongs to the user who takies big bandwidth for a long time, belong to confined object, then network C PU just abandons this message, finishes operation this time; If there is not set, then continue to carry out next step.
(15), network C PU is forwarded to this message the port that links to each other with the user;
(16), network C PU is added to message length on this user's the reception bandwidth counter;
(17), finish operation this time.
In order to add up each user's bandwidth exactly, and set or removing are carried out in user's bandwidth controlled flag position, network C PU periodically per second carries out following steps:
(1), checks first user's reception and transmission bandwidth counter;
(2), " reception bandwidth " surpasses limit value whether to judge this user, perhaps " transmission bandwidth " surpasses limit value? if not, then redirect carried out for (4) step;
(3), to judge that also this user continues super bandwidth and whether exceeds schedule time service time, if exceed schedule time, then with this user's position, bandwidth controlled flag position if surpass limit value; If do not exceed schedule time, then redirect carried out for (6) step;
(4), judge whether this user's bandwidth controlled flag position is set? if there is not set, redirect carried out for (6) step;
Will (5), judge again also whether this user has never had super bandwidth in one section official hour if be set? if then remove this user's bandwidth controlled flag bit clear; If not, continue to carry out next step;
(6), with this user's the reception and the value zero clearing of transmission bandwidth counter;
(7), judge whether this user is last user, if not, check next user's reception and send bandwidth counter, repeated for (2) step;
(8) if last user finishes operation this time.
By above measure the bandwidth of CU is cushioned control, prevented effectively that not only the individual user from tying up other users' bandwidth, damaging the surf the Net generation of rights and interests situation of other users; And, make the user can obtain very big bandwidth at short notice, the networking speed when improving operation such as browsing page, receiving and dispatching mail and the little software of download has greatly promoted the utilance of network and the satisfaction that the user uses effectively.
Description of drawings
Fig. 1 is a hardware components example structure schematic diagram of the present invention
Fig. 2 is a mh flow chart of the present invention
Fig. 3 assists program flow diagram for the present invention
Fig. 4 cushions bandwidth control design sketch for the present invention
Embodiment
Take big bandwidth for a long time for fear of the certain user, influence other users' networking speed, but allow the user to enjoy the moment burst bandwidth,, the invention provides a kind of method that realizes internet user bandwidth is cushioned control to speed up Web searches.The mentality of designing of this method is: each user's of network management device real-time statistics bandwidth, and message of the every transmission of user, network management device will be added to the length of this message on user's the transmission bandwidth counter; In like manner, message of the every reception of user, network management device will be added to the length of this message on user's the reception bandwidth counter; When user's bandwidth does not exceed network management device to this user's bandwidth limit value, show that this user does not take too much bandwidth, then network management device does not impose any restrictions this user's bandwidth, and user's message can normally transmit on the internet; When the bandwidth of finding a certain user has exceeded limit value, and time when having surpassed the management equipment official hour, illustrating that then this user belongs to the user who takies big bandwidth for a long time, network management device then carries out bandwidth constraints to this user, with its packet loss; Though if a certain user's bandwidth has exceeded set point, the time, the network equipment then allowed this user to enjoy the moment burst bandwidth when not surpassing the webmaster official hour, and it is not done bandwidth control; For those users of super bandwidth once, after it had continued for some time no longer super bandwidth, the control with removing it allowed it to enjoy the moment burst bandwidth again.
For what realize that the invention described above provides internet user bandwidth is cushioned the method for control, Virtual network operator need be selected a network C PU with two network interfaces for use.As shown in Figure 1, the former outlet of network interface PORT1 and the needs of network C PU being carried out the network equipment of bandwidth control links to each other, and another network interface PORT2 of CPU links to each other with outer net as the new outlet of the network equipment after making up.Like this after the configuration, the network equipment the message that all Internet users sent all can be earlier pass through CPU and arrive external network again; All messages from outer net also can arrive the user through CPU earlier again.
In order to realize the buffering control to internet user bandwidth, network C PU moves two programs: mh and assistance program.Mh is finished message from user port PORT1 to outer net port PO RT2 and the forwarding from PORT2 to PORT1; CPU determines according to the rule that defines in the mh whether in the future the message of automatic network equipment (PORT1) is forwarded to network egress (PORT2), and whether will be transmitted to the network equipment (PORT1) from the message of outer net (PORT2), can CPU just can control the message that the user sends and arrive outer net like this, and can the message of outer net arrive the user.The task that the assistance program is finished is to cooperate mh to realize the statistics and the control of user bandwidth.Any one network interface of network C PU whenever receives a frame message, and network C PU just carries out mh one time, finishes message processing and statistical counter and adds up; Assist each second of property program loop to be performed once, each user's of zero clearing bandwidth statistical counter, the user's that need carry out bandwidth control bandwidth controlled flag position is set, remove the user's who needs the control of releasing bandwidth bandwidth controlled flag position, thereby, cooperate mh to realize the buffering of user bandwidth is controlled.
In order to realize the control of the buffering of internet user bandwidth, network C PU carries out the processing of following steps to the message that receives, i.e. mh, as shown in Figure 2:
Does 1, network C PU whenever receive a frame message, judges that this message is the message from user's (being PORT1), still is from the message of outer net (being PORT2)? if from the message of outer net, then redirect carried out for the 10th step;
2 if from user's message, and CPU resolves this message, screens this message from which particular user;
3, CPU reads numerical value that this user sends bandwidth counter and this user's bandwidth limit value;
4, do you judge that this user's transmission bandwidth is greater than the bandwidth limit value of the network equipment to this user? if be not more than, redirect carried out for the 7th step;
If 5 these users' transmission bandwidth is greater than the bandwidth limit value of the network equipment to this user, CPU reads this user bandwidth controlled flag bit value;
6, do you judge the whether set of this user bandwidth controlled flag position? if set illustrates that this user belongs to the user who takies big bandwidth for a long time, belong to confined object, then CPU abandons this message, finishes operation this time; If there is not set, then continue to carry out next step.
7, CPU is forwarded to outlet PORT2 with the message of this user's transmission;
8, CPU is added to message length on this user's the transmission bandwidth counter;
9, finish operation this time;
If 10 these messages are that CPU resolves this message from the message of outer net (being PORT2), screen this message and mail to which particular user;
11, CPU reads the numerical value of the wide counter of this customer receipt tape and this user's bandwidth limit value;
12, do you judge that this user's reception bandwidth is greater than the bandwidth limit value of the network equipment to this user? if be not more than, redirect carried out for the 15th step;
If 13 these users' receiving belt is wider than the bandwidth limit value of the network equipment to this user, CPU reads this user bandwidth controlled flag bit value;
14, do you judge the whether set of this user bandwidth controlled flag position? if set illustrates that this user belongs to the user who takies big bandwidth for a long time, belong to confined object, then CPU just abandons this message, finishes operation this time; If there is not set, then continue to carry out next step.
15, CPU is forwarded to this message the port PO RT1 that links to each other with the user;
16, CPU is added to message length on this user's the reception bandwidth counter;
17, finish operation this time.
In order to add up each user's bandwidth exactly, and user's bandwidth controlled flag position carried out set or removing, thereby, cooperate mh to realize buffering control to user bandwidth, network C PU periodically following steps of per second execution promptly assists program, as shown in Figure 3:
1, checks first user's reception and transmission bandwidth counter;
2, " reception bandwidth " surpasses limit value whether to judge this user, perhaps do " transmission bandwidth " surpass limit value? if not, then redirect carried out for the 4th step;
If 3 surpass limit value, to judge that also this user continues super bandwidth and whether exceeds schedule time (present embodiment was stipulated 30 seconds) service time, if exceed schedule time, then with this user's position, bandwidth controlled flag position; If do not exceed schedule time, then redirect carried out for the 6th step;
Is 4, whether the bandwidth controlled flag position of judging this user set? if there is not set, redirect carried out for the 6th step;
Will do you, also judge whether (present embodiment regulation 30 seconds) super bandwidth never in one section official hour of this user again? if 5 have been set if then remove this user's bandwidth controlled flag bit clear; If not, continue to carry out next step;
6, with this user's the reception and the value zero clearing of transmission bandwidth counter;
7, judge whether this user is last user, if not, check next user's reception and send bandwidth counter, repeated for the 2nd step;
8 if last user finishes operation this time.
Network C PU is by above-mentioned two programs of operation, not only can carry out real-time statistics and control to the shared bandwidth of each user that the network equipment connected, but also can cushion control to that user that take big bandwidth for a long time---promptly when certain user only be when the short time taking big bandwidth, do not limit it, allow its super bandwidth to use; And, then it is carried out bandwidth constraints when the big bandwidth of this CU and after surpassing the permission time; After certain user carried out bandwidth constraints, if his super bandwidth never in one section official hour can automatically terminate the restriction to him again, this user can enjoy the right of super bandwidth use of short time again again.The effect of buffering bandwidth control as shown in Figure 4, the Internet user is in state 1 under normal conditions, its bandwidth is lower than the bandwidth constraints value of the network equipment to it.When the user carries out operation such as file in download occupied bandwidth when surpassing limits value, get the hang of 2, the user bandwidth that is in this state is more than limits value, but the duration is in the permission time, so its bandwidth that takies is unrestricted.Surpass permissible value (present embodiment is 30 seconds) if the user is in the time T 2-T1 of state 2, get the hang of 3, user bandwidth begins to be controlled.If the user does not initiatively reduce the bandwidth occupancy value always, state 3 will continue always.If initiatively having reduced the bandwidth occupancy value, the user will get the hang of 1 from state 3; The time T 4-T3 that is in state 1 as the user is during greater than official hour (present embodiment is 30 seconds), and bandwidth control is removed, and the user is allowed to get the hang of 2 again; When the user be in state 1 time, the no show stipulated time attempted to take big bandwidth again the time because bandwidth control is removed yet, user bandwidth will get the hang of 3 once more, and can not get the hang of 2.
By above measure the bandwidth of CU is cushioned control, prevented effectively that not only the individual user from tying up other users' bandwidth, damaging the surf the Net generation of rights and interests situation of other users; And, make the user can obtain very big bandwidth at short notice, the networking speed when improving operation such as browsing page, receiving and dispatching mail and the little software of download has greatly promoted the utilance of network and the satisfaction that the user uses effectively.
The present invention has realized the buffering bandwidth control at each Internet user, makes the user can surpass bandwidth and uses, and can not take excessive bandwidth chronically again; And do not need operator to drop into substantial contribution and carry out network facilities upgrading, on existing equipment, improved the utilance of network, improved user's online efficient.

Claims (2)

1, a kind of method that realizes internet user bandwidth is cushioned control, for realizing this method, Virtual network operator need be selected a network C PU with two network interfaces for use, network interface of network C PU is linked to each other with the former outlet that needs carry out the network equipment of bandwidth control, the new outlet as the network equipment after making up of another network interface of network C PU is linked to each other with outer net;
This realization may further comprise the steps the method that internet user bandwidth cushions control:
(1), network C PU whenever receives a frame message, judges that this message is the message from the user, still from the message of outer net; If from the message of outer net, then redirect carried out for (10) step;
(2) if from user's message, network C PU resolves this message, screens this message from which particular user;
(3), network C PU reads this user's numerical value of transmission bandwidth counter and this user's bandwidth limit value;
(4), judge that whether this user's transmission bandwidth is greater than the bandwidth limit value of the network equipment to this user; If be not more than, redirect carried out for (7) step;
(5) if this user's transmission bandwidth greater than the bandwidth limit value of the network equipment to this user, network C PU reads this user's bandwidth controlled flag bit value;
(6), judge this user's whether set of bandwidth controlled flag position; If set illustrates that this user belongs to the user who takies big bandwidth for a long time, belong to confined object, then network C PU abandons this message, finishes operation this time; If there is not set, then continue to carry out next step;
(7), network C PU is forwarded to outer net with the message that this user sends;
(8), network C PU is added to message length on this user's the transmission bandwidth counter;
(9), finish operation this time;
(10) if this message is the message from outer net, network C PU resolves this message, screens this message and mails to which particular user;
(11), network C PU reads this user's numerical value of reception bandwidth counter and this user's bandwidth limit value;
(12), judge that whether this user's reception bandwidth is greater than the bandwidth limit value of the network equipment to this user; If be not more than, redirect carried out for (15) step;
(13) if this user's receiving belt is wider than the bandwidth limit value of the network equipment to this user, network C PU reads this user's bandwidth controlled flag bit value;
(14), judge this user's whether set of bandwidth controlled flag position; If set illustrates that this user belongs to the user who takies big bandwidth for a long time, belong to confined object, then network C PU just abandons this message, finishes operation this time; If there is not set, then continue to carry out next step;
(15), network C PU is forwarded to this message the port that links to each other with the user;
(16), network C PU is added to message length on this user's the reception bandwidth counter;
(17), finish operation this time.
2, a kind of method that realizes internet user bandwidth is cushioned control according to claim 1, it is characterized in that: in order to add up each user's bandwidth exactly, and user's bandwidth controlled flag position carried out set or removing, network C PU periodically per second carries out following steps:
(1), checks first user's reception and transmission bandwidth counter;
(2), " reception bandwidth " surpasses limit value whether to judge this user, perhaps " transmission bandwidth " surpasses limit value; If not, then redirect carried out for (4) step;
(3), to judge that also this user continues super bandwidth and whether exceeds schedule time service time, if exceed schedule time, then with this user's position, bandwidth controlled flag position if surpass limit value; If do not exceed schedule time, then redirect carried out for (6) step;
(4), whether the bandwidth controlled flag position of judging this user is set; If there is not set, redirect carried out for (6) step;
(5), to judge again also whether this user has never had super bandwidth in one section official hour if be set; If, the bandwidth controlled flag position of then removing this user; If not, continue to carry out next step;
(6), with this user's the reception and the value zero clearing of transmission bandwidth counter;
(7), judge whether this user is last user, if not, check next user's reception and send bandwidth counter, repeated for (2) step;
(8) if last user finishes operation this time.
CNB2005100777868A 2005-06-24 2005-06-24 Realization method for carrying out buffer control on internet user bandwidth Active CN100512210C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100777868A CN100512210C (en) 2005-06-24 2005-06-24 Realization method for carrying out buffer control on internet user bandwidth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100777868A CN100512210C (en) 2005-06-24 2005-06-24 Realization method for carrying out buffer control on internet user bandwidth

Publications (2)

Publication Number Publication Date
CN1885821A CN1885821A (en) 2006-12-27
CN100512210C true CN100512210C (en) 2009-07-08

Family

ID=37583805

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100777868A Active CN100512210C (en) 2005-06-24 2005-06-24 Realization method for carrying out buffer control on internet user bandwidth

Country Status (1)

Country Link
CN (1) CN100512210C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123093B (en) * 2011-03-04 2012-09-26 华中科技大学 Method for ensuring necessary network bandwidth of virtual machine
CN104092562B (en) * 2014-06-12 2018-07-10 可牛网络技术(北京)有限公司 Flow managing method, system and the network equipment
CN104243341B (en) * 2014-09-22 2017-09-08 曙光信息产业(北京)有限公司 Data processing method and device
US10958592B2 (en) 2019-04-12 2021-03-23 Wangsu Science & Technology Co., Ltd. Domain name bandwidth adjustment method and apparatus
CN110048968B (en) * 2019-04-12 2021-06-22 网宿科技股份有限公司 Domain name bandwidth adjusting method and device

Also Published As

Publication number Publication date
CN1885821A (en) 2006-12-27

Similar Documents

Publication Publication Date Title
CN100512210C (en) Realization method for carrying out buffer control on internet user bandwidth
CN100409638C (en) Method and apparatus to manage packet fragmentation
JP2007097126A (en) Method and apparatus for reducing power consumption of network connection apparatus
EP0981228A3 (en) Two-component bandwidth scheduler having application in multi-class digital communication systems
CN104836681B (en) A kind of data distributing method and device of multilink binding
CN114301851B (en) Industrial field-oriented time-sensitive network flow hierarchical scheduling method
CN101248628A (en) Network interface control program and network interface control device
US8599693B2 (en) Packet transmission device and packet transmission method
CN100579046C (en) The control method of sleep pattern and device in the communication system
CA2480980C (en) Method and system for budgeting resources dedicated to processing non-voice data traffic
CN100568847C (en) Frame scheduling in differentiated services networks and buffer management unified algorithm
CN102014058A (en) Method and device for dispatching uplink flow rate
CN115118667A (en) Transmission control method and device
Kaur et al. Core-stateless guaranteed throughput networks
Zhang et al. ATFQ: a fair and efficient packet scheduling method in multi-resource environments
EP1056244B1 (en) Method and apparatus for media access control for packet transmission over a buffer insertion ring
Domzal et al. New congestion control mechanisms for flow-aware networks
CN1330133C (en) Method for detecting abnormal breaking of user talking
Callegari et al. A new Markov model for evaluating the ALR dual-threshold policy
CN107508755B (en) Network communication method and device for avoiding data collision
Ke et al. An energy‐saving‐centric downlink scheduling scheme for WiMAX networks
CN100502363C (en) Method for reducing frame relay permanent virtual cascade speech message transmitting time delay
Ruan et al. A message-scheduling scheme for energy conservation in multimedia wireless systems
Wang et al. An integrated DBP for streams with (m, k)-firm real-time guarantee
CN114697887B (en) Control message and data message merging and electing method of distributed wireless ad hoc network

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