CN105245466A - Flow control method, flow control device and flow control equipment - Google Patents
Flow control method, flow control device and flow control equipment Download PDFInfo
- Publication number
- CN105245466A CN105245466A CN201510664574.3A CN201510664574A CN105245466A CN 105245466 A CN105245466 A CN 105245466A CN 201510664574 A CN201510664574 A CN 201510664574A CN 105245466 A CN105245466 A CN 105245466A
- Authority
- CN
- China
- Prior art keywords
- packet
- bandwidth
- procotol
- flow control
- described network
- 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
Links
Abstract
The invention discloses a flow control method, a flow control device and flow control equipment. The flow control method comprises the steps of obtaining a network data packet from a driver layer; analyzing the network data packet to obtain network protocol information; determining a bandwidth which corresponds to a network protocol based on the network protocol information; judging whether the bandwidth corresponding to the network protocol is beyond a current preset bandwidth; if so, discarding the data packet, and if not, forwarding the data packet. According to the embodiment of the flow control method, performance loss in a data processing process can be reduced, the flow control efficiency can be increased, and a good flow control effect can be realized.
Description
Technical field
The embodiment of the present invention relates to network communication technology field, particularly relates to a kind of flow control methods, device and equipment.
Background technology
In internet embryonic stage, the running of whole internet is just as an all out system.Along with the fast development of network technology, network application gets more and more, becomes increasingly complex.Increasing Internet resources are being engulfed in miscellaneous application.Network, as a kind of new medium carrier, is also suffering the impact of media.Especially the media such as Internet video, individual media, traditional tv to the infiltration of the Internet be network in flow sharply rise, often there is rate of discharge excess load in a lot of enterprise network, cause network congestion, performance reduction, the service quality of other application is formed and threatens, have impact on the normal operation of enterprise.This makes the operation and management cost of enterprise increase substantially.
The method of current control of network flow quantity is: use existing professional fluidic device to carry out flow control, this professional fluidic device can realize the identification to profound agreement, and carries out maximum, the control effects such as minimum bandwidth guarantee or blocking-up to discernible application traffic.But the method needs to obtain agreement from the protocol stack of operating system, causes the performance loss of data handling procedure higher, easily cause running the problems such as slow, can not meet the demand of the large data age of network.
Summary of the invention
The embodiment of the present invention provides a kind of flow control methods, device and equipment, reduces the performance loss of data handling procedure, improves the efficiency of flow control, realizes the good control effects of flow.
First aspect, embodiments provides a kind of flow control methods, comprising:
Network packet is obtained from driving layer;
Resolve described network packet and obtain network protocol message;
The bandwidth corresponding according to described network protocol message determination procotol;
Judge whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.
Second aspect, the embodiment of the present invention also provides a kind of volume control device, comprising:
Acquisition module, for obtaining network packet from driving layer;
Parsing module, obtains network protocol message for resolving described network packet;
Relating module, for the bandwidth corresponding according to described network protocol message determination procotol;
Business module, for judging whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.
The third aspect, the embodiment of the present invention also provides a kind of flow-control equipment, comprising:
Comprise the volume control device described in above-mentioned second aspect.
The embodiment of the present invention is by obtaining network packet from driving layer; Resolve described network packet and obtain network protocol message; The bandwidth corresponding according to described network protocol message determination procotol; Judge whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.The embodiment of the present invention can reduce the performance loss of data handling procedure, improves the efficiency of flow control, realizes the good control effects of flow.
Accompanying drawing explanation
The schematic flow sheet of the flow control methods that Figure 1A provides for the embodiment of the present invention one;
The position view of the flow-control equipment in the flow control methods that Figure 1B provides for the embodiment of the present invention one;
The schematic flow sheet of the flow control methods that Fig. 2 provides for the embodiment of the present invention two.
The structural representation of the volume control device that Fig. 3 provides for the embodiment of the present invention three.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not entire infrastructure.
The executive agent of the flow control methods that the embodiment of the present invention provides, can be the volume control device that the embodiment of the present invention provides, or be integrated with the flow-control equipment of described volume control device (such as, computer and server etc.), this volume control device can adopt hardware or software simulating.
Embodiment one
The schematic flow sheet of the flow control methods that Figure 1A provides for the embodiment of the present invention one, as shown in Figure 1A, specifically comprises:
Step 11, from driving layer obtain network packet;
The present embodiment can drive development platform to realize based on X86.Concrete, when network packet is through flow-control equipment, flow-control equipment directly carries out packet capture from driving layer.Wherein, described flow-control equipment position in a network as shown in panelb, between the Internet and switch.Like this, the network packet between switch and the Internet is made all can be communicated by this flow-control equipment.
Step 12, resolve described network packet obtain network protocol message;
Because described network packet is all adopt certain network protocol format to carry out the file of packing, therefore by resolving the packet header of described network packet, corresponding procotol can be obtained.
Step 13, the bandwidth corresponding according to described network protocol message determination procotol;
Concrete, the corresponding relation list of each procotol and bandwidth can being set up in advance in this locality, after the network protocol message obtaining described network packet, can obtain by inquiring about corresponding relation list the bandwidth that this procotol supports.
Step 14, judge whether bandwidth corresponding to described procotol exceedes current preset bandwidth;
Wherein, the maximum bandwidth that described current preset bandwidth is supported for current network, specifically can carry out self-defined setting according to network condition.
If determine, bandwidth corresponding to described procotol exceedes current preset bandwidth, then perform step 16, if determine, bandwidth corresponding to described procotol does not exceed current preset bandwidth, then perform step 15.
Step 15, forward described packet;
Step 16, abandon described packet.
The present embodiment directly obtains network packet from driving layer; Resolve described network packet and obtain network protocol message; The bandwidth corresponding according to described network protocol message determination procotol; Judge whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.The present embodiment can reduce the performance loss of data handling procedure, improves the efficiency of flow control, realizes the good control effects of flow.
Exemplary, on the basis of above-described embodiment, described method also comprises:
Resolve described network packet and obtain IP address and corresponding ports;
According to described IP address and corresponding ports, described network packet is sent to SML to resolve.
Exemplary, on the basis of above-described embodiment, described network packet comprises transmission control protocol (TransmissionControlProtocol, TCP) packet, User Datagram Protoco (UDP) (UserDatagramProtocol, UDP) packet, Internet Control Message Protocol (InternetControlMessageProtocol, ICMP) at least one in packet and domain name system agreement (DomainNameSystem, DNS) packet.
The various embodiments described above are equally by obtaining network packet from driving layer; Resolve described network packet and obtain network protocol message; The bandwidth corresponding according to described network protocol message determination procotol; Judge whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.The various embodiments described above can reduce the performance loss of data handling procedure equally, improve the efficiency of flow control, realize the good control effects of flow.
Embodiment two
The schematic flow sheet of the flow control methods that Fig. 2 provides for the embodiment of the present invention two, the present embodiment is preferred embodiment, is used for describing technical scheme of the present invention in detail, as shown in Figure 2, specifically comprises:
Step 21, establishment protocol service contingency table, comprise procotol and the corresponding relation supporting bandwidth in described business association table;
Step 22, from drive layer catch subscription client send IP datagram literary composition, and store in the buffer;
Step 23, driving layer to parse IP address and the port numbers of this data message, and by described IP address and port numbers, this data message is being sent to SML and resolves;
The procotol that step 24, basis parse searches bandwidth corresponding to this procotol in described protocol service contingency table;
Step 25, judge whether bandwidth corresponding to described procotol exceedes current preset bandwidth;
If bandwidth corresponding to described procotol has exceeded current preset bandwidth, then perform step 26; Otherwise, perform step 27.
Step 26, abandon described data message;
Step 27, by described data message forwarding to network interface card.
Embodiment three
The structural representation of the volume control device that Fig. 3 provides for the embodiment of the present invention three, as shown in Figure 3, specifically comprises: acquisition module 31, parsing module 32, relating module 33 and business module 34;
Described acquisition module 31 is for obtaining network packet from driving layer;
Described parsing module 32 obtains network protocol message for resolving described network packet;
Described relating module 33 is for the bandwidth corresponding according to described network protocol message determination procotol;
Described business module 34 is for judging whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.
Volume control device described in the embodiment of the present invention is for performing the flow control methods described in the various embodiments described above, and the technique effect of its know-why and generation is similar, is not repeated here.
Exemplary, on the basis of above-described embodiment, described device also comprises: set up module 35;
Described module 35 of setting up, for before described relating module 33 is according to the bandwidth that described network protocol message determination procotol is corresponding, sets up the corresponding relation of each procotol and bandwidth.
Exemplary, on the basis of above-described embodiment, described parsing module 32 also for: resolve described network packet and obtain IP address and corresponding ports;
Described device also comprises: transport module 36;
Described transport module 36 is resolved for described network packet being sent to SML according to described IP address and corresponding ports.
Exemplary, on the basis of above-described embodiment, described network packet comprises at least one in transmission control protocol TCP packet, User Datagram Protoco (UDP) UDP message bag, Internet Control Message Protocol ICMP packet and domain name system agreement DNS packet.
Volume control device described in the various embodiments described above is equally for performing the flow control methods described in the various embodiments described above, and the technique effect of its know-why and generation is similar, is not repeated here.
Embodiment four
The embodiment of the present invention also provides a kind of flow-control equipment, comprises the volume control device described in above-described embodiment three.
As shown in Figure 1B, described flow-control equipment is between switch and the Internet.
Flow-control equipment described in the present embodiment is for performing the flow control methods described in the various embodiments described above, and the technique effect of its know-why and generation is similar, is not repeated here.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.
Claims (10)
1. a flow control methods, is characterized in that, comprising:
Network packet is obtained from driving layer;
Resolve described network packet and obtain network protocol message;
The bandwidth corresponding according to described network protocol message determination procotol;
Judge whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.
2. method according to claim 1, is characterized in that, according to before the bandwidth that described network protocol message determination procotol is corresponding, also comprises:
Set up the corresponding relation of each procotol and bandwidth.
3. method according to claim 1, is characterized in that, also comprises:
Resolve described network packet and obtain IP address and corresponding ports;
According to described IP address and corresponding ports, described network packet is sent to SML to resolve.
4. the method according to any one of claims 1 to 3, it is characterized in that, described network packet comprises at least one in transmission control protocol TCP packet, User Datagram Protoco (UDP) UDP message bag, Internet Control Message Protocol ICMP packet and domain name system agreement DNS packet.
5. a volume control device, is characterized in that, comprising:
Acquisition module, for obtaining network packet from driving layer;
Parsing module, obtains network protocol message for resolving described network packet;
Relating module, for the bandwidth corresponding according to described network protocol message determination procotol;
Business module, for judging whether bandwidth corresponding to described procotol exceedes current preset bandwidth, if so, then abandons described packet, if not, then forwards described packet.
6. device according to claim 5, is characterized in that, also comprises:
Set up module, for before described relating module is according to the bandwidth that described network protocol message determination procotol is corresponding, set up the corresponding relation of each procotol and bandwidth.
7. device according to claim 5, is characterized in that, described parsing module also for: resolve described network packet and obtain IP address and corresponding ports;
Described device also comprises:
Transport module, resolves for described network packet being sent to SML according to described IP address and corresponding ports.
8. the device according to any one of claim 5 ~ 7, it is characterized in that, described network packet comprises at least one in transmission control protocol TCP packet, User Datagram Protoco (UDP) UDP message bag, Internet Control Message Protocol ICMP packet and domain name system agreement DNS packet.
9. a flow-control equipment, is characterized in that, comprises the volume control device described in any one of claim 5 ~ 8.
10. flow-control equipment according to claim 9, is characterized in that, described flow-control equipment is between switch and the Internet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510664574.3A CN105245466A (en) | 2015-10-14 | 2015-10-14 | Flow control method, flow control device and flow control equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510664574.3A CN105245466A (en) | 2015-10-14 | 2015-10-14 | Flow control method, flow control device and flow control equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105245466A true CN105245466A (en) | 2016-01-13 |
Family
ID=55042971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510664574.3A Pending CN105245466A (en) | 2015-10-14 | 2015-10-14 | Flow control method, flow control device and flow control equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105245466A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107135521A (en) * | 2016-02-29 | 2017-09-05 | 华为技术有限公司 | A kind of flow control methods, device and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1881928A (en) * | 2005-06-16 | 2006-12-20 | 中兴通讯股份有限公司 | Method for managing and controlling data transmission based on optical fibre |
CN101325538A (en) * | 2007-06-13 | 2008-12-17 | 中兴通讯股份有限公司 | Apparatus and method for implementing margin gateway total system QoS |
CN101494881A (en) * | 2008-01-22 | 2009-07-29 | 中兴通讯股份有限公司 | Method for resolving bandwidth flow control when transmission physical resource part being aberrant |
CN101494605A (en) * | 2009-03-05 | 2009-07-29 | 中兴通讯股份有限公司 | Data forwarding method and apparatus based on Ethernet drive |
CN101552722A (en) * | 2008-04-03 | 2009-10-07 | 北京启明星辰信息技术股份有限公司 | Method and device for managing network flow bandwidth |
CN201957038U (en) * | 2011-03-16 | 2011-08-31 | 合肥开元精密工程有限责任公司 | Intelligent network optimizer |
CN102932375A (en) * | 2012-11-22 | 2013-02-13 | 北京奇虎科技有限公司 | Protection method and device for network access behavior |
CN103716185A (en) * | 2013-12-17 | 2014-04-09 | 上海斐讯数据通信技术有限公司 | Passive optical network protocol stack accelerated processing method |
-
2015
- 2015-10-14 CN CN201510664574.3A patent/CN105245466A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1881928A (en) * | 2005-06-16 | 2006-12-20 | 中兴通讯股份有限公司 | Method for managing and controlling data transmission based on optical fibre |
CN101325538A (en) * | 2007-06-13 | 2008-12-17 | 中兴通讯股份有限公司 | Apparatus and method for implementing margin gateway total system QoS |
CN101494881A (en) * | 2008-01-22 | 2009-07-29 | 中兴通讯股份有限公司 | Method for resolving bandwidth flow control when transmission physical resource part being aberrant |
CN101552722A (en) * | 2008-04-03 | 2009-10-07 | 北京启明星辰信息技术股份有限公司 | Method and device for managing network flow bandwidth |
CN101494605A (en) * | 2009-03-05 | 2009-07-29 | 中兴通讯股份有限公司 | Data forwarding method and apparatus based on Ethernet drive |
CN201957038U (en) * | 2011-03-16 | 2011-08-31 | 合肥开元精密工程有限责任公司 | Intelligent network optimizer |
CN102932375A (en) * | 2012-11-22 | 2013-02-13 | 北京奇虎科技有限公司 | Protection method and device for network access behavior |
CN103716185A (en) * | 2013-12-17 | 2014-04-09 | 上海斐讯数据通信技术有限公司 | Passive optical network protocol stack accelerated processing method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107135521A (en) * | 2016-02-29 | 2017-09-05 | 华为技术有限公司 | A kind of flow control methods, device and system |
US10523589B2 (en) | 2016-02-29 | 2019-12-31 | Huawei Technologies Co., Ltd. | Traffic control method, apparatus, and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101900536B1 (en) | Implementing a 3g packet core in a cloud computer with openflow data and control planes | |
US10567288B1 (en) | Automatic discovery, scaling, and load balancing of multiple cloud data centers in a software-defined network environment | |
KR101987784B1 (en) | Software-defined network-based method and system for implementing content distribution network | |
US9674054B2 (en) | Concept for providing information on a data packet association and for forwarding a data packet | |
US8396954B2 (en) | Routing and service performance management in an application acceleration environment | |
US8750304B2 (en) | Controlling directional asymmetricity in wide area networks | |
EP2629466B1 (en) | Method, device and system for forwarding data in communication system | |
US20130272136A1 (en) | Session-Aware GTPv1 Load Balancing | |
WO2011115991A3 (en) | Methods, systems, and computer readable media for communicating policy information between a policy charging and rules function and a service node | |
WO2006116449A3 (en) | Trans-network roaming and resolution with web services for devices | |
CN1968227A (en) | System and method for enabling wireless access gateway to support transparent agent | |
EP2868054B1 (en) | Resilient video encoding control via explicit network indication | |
CN106789725B (en) | Method, device and system for realizing traffic redirection | |
EP2901630A2 (en) | Method operating in a fixed access network and ues | |
CN1917512B (en) | Method for establishing direct connected peer-to-peer channel | |
US20150032807A1 (en) | System And Method For Network Access Based On Application Layer Data | |
CN103916489B (en) | The many IP of a kind of single domain name domain name analytic method and system | |
US9277014B2 (en) | Handling of auxiliary NAS | |
CN104168302B (en) | Equipment manipulation implementation method, system and proxy gateway | |
CN105245466A (en) | Flow control method, flow control device and flow control equipment | |
CN101175038B (en) | Data stream information transmission method, communication system and equipment | |
CN110601989A (en) | Network traffic balancing method and device | |
CN103348740A (en) | Access processing method, apparatus and system | |
JP2016174287A (en) | Tcp control device, and control method and program therefor | |
CN104468305A (en) | Three-layer virtual private network achieving method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160113 |
|
RJ01 | Rejection of invention patent application after publication |