CN105141543B - A kind of optimization method and flow controller based on flow controller - Google Patents

A kind of optimization method and flow controller based on flow controller Download PDF

Info

Publication number
CN105141543B
CN105141543B CN201510483520.7A CN201510483520A CN105141543B CN 105141543 B CN105141543 B CN 105141543B CN 201510483520 A CN201510483520 A CN 201510483520A CN 105141543 B CN105141543 B CN 105141543B
Authority
CN
China
Prior art keywords
downlink message
speed limit
flow controller
class indication
limit rule
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
CN201510483520.7A
Other languages
Chinese (zh)
Other versions
CN105141543A (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510483520.7A priority Critical patent/CN105141543B/en
Publication of CN105141543A publication Critical patent/CN105141543A/en
Application granted granted Critical
Publication of CN105141543B publication Critical patent/CN105141543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of optimization method and flow controller based on flow controller, the optimization method based on flow controller include the following steps:S1. the flow controller obtains the downlink message sent, and the downlink message is sent into the speed limit rule and is judged, and carries out class indication to the downlink message according to judging result;S2. the downlink message of affiliated gateway local address is carried out by return processing according to the speed limit rule, executes the step S3;S3. identify whether the downlink message has class indication, if so, executing step S5;If it is not, executing step S4;S4. the downlink message of the affiliated gateway local address of no class indication is exported from the output interface of the flow controller, is terminated;S5. it will export, terminate from the output interface after the downlink message progress flow restriction with the class indication.

Description

A kind of optimization method and flow controller based on flow controller
Technical field
The present invention relates to network communication field more particularly to a kind of optimization method on gateway based on flow controller and Flow controller.
Background technology
In Operation Network or enterprise network, due to being easy to cause network up and down congestion to the unreasonable use of bandwidth, It is main at present that flow is carried out using the user realized on gateway in local area network in order to solve this unreasonable behaviour in service Control carries out speed limit to the uplink and downlink flow of client.Flow control is mainly being exported using flow controller (TC) technology Place control effectively to the flow for accessing client, but causes the problem to be exactly:When client accesses gateway configuration management When the page, since the page data transmission that by flow control, gateway is sent to client is slow, page interim card is caused, seriously When be easy to cause Deadlock, cause gateway device that cannot run well and the case where delay machine occur.
Invention content
For the above problem existing for existing flow control methods, now providing one kind and aiming at can make client normal Access the optimization method and flow controller based on flow controller of the gateway configuration management page.
Specific technical solution is as follows:
A kind of optimization method based on flow controller, flow controller provide a speed limit rule to the downlink to transmission Message carries out flow restriction, includes the following steps:
S1. the flow controller obtains the downlink message sent, and the downlink message is sent into the speed limit Rule is judged, and carries out class indication to the downlink message according to judging result;
S2. the downlink message of affiliated gateway local address is carried out by return processing according to the speed limit rule, executed The step S3;
S3. identify whether the downlink message has class indication, if so, executing step S5;If it is not, executing step S4;
S4. by the downlink message of the affiliated gateway local address of no class indication from the flow controller Output interface output, terminate;
S5. it will be exported from the output interface after the downlink message progress flow restriction with the class indication, Terminate.
Preferably, further include after having executed the step S1:Judge the downlink message whether be belonging to gateway locally The downlink message of location, if so, executing the step S2;If it is not, according to the speed limit rule to removing affiliated gateway locally After the downlink message of location carries out the class indication, the step S3 is executed.
Preferably, the detailed process of the step S5 is:
S51. the corresponding downlink message is made an addition in preset classification queue according to the class indication;
S52. it is put in order the downlink message from described according to the downlink message of the preset classification queue Output interface exports, and terminates.
Preferably, divide according to the speed limit rule is described to the downlink message progress except affiliated gateway local address Further include before class mark:
The downlink message for not meeting the speed limit rule is abandoned.
A kind of flow controller, to carry out flow restriction to the downlink message of transmission, including:
One receiving unit, to receive the downlink message of transmission;
One processing unit connects the receiving unit, provides speed limit rule, the processing unit is to according to the limit Fast rule exports the downlink message of affiliated gateway local address;
One recognition unit connects the processing unit, to identify whether the downlink message has class indication;
One current limiting unit connects the recognition unit, and the downlink message will carry the class indication carries out Flow restriction;
One output unit is separately connected the recognition unit and the current limiting unit, to export the downlink message.
Preferably, further include:
One judging unit is connect with the receiving unit and the processing unit respectively, to judge the downlink message Whether be belonging to gateway local address the downlink message;
The processing unit exports the downlink message of affiliated gateway local address according to the speed limit rule, and The class indication is carried out to the downlink message except affiliated gateway local address according to the speed limit rule.
Preferably, the current limiting unit includes:
One Queue module, provides preset classification queue, and the Queue module is to will be corresponding according to the class indication The downlink message make an addition in preset classification queue;
The output unit to according to the downlink message of the preset classification queue put in order will be described under Row message is exported from the output interface.
Preferably, the processing unit includes:
One rejects module, to reject the downlink message for not meeting the speed limit rule.
The advantageous effect of above-mentioned technical proposal:
In the technical scheme, the optimization method based on flow controller realizes on gateway through flow controller pair When client carries out message rate-limiting, client can normally access the purpose of the gateway configuration management page.Flow controller solves After carrying out message rate-limiting to client on gateway, client accesses the problem of gateway configuration management page leads to system failure.
Description of the drawings
Fig. 1 is a kind of method flow diagram of embodiment of the optimization method of the present invention based on flow controller;
Fig. 2 is the method flow diagram of another embodiment of the optimization method of the present invention based on flow controller;
Fig. 3 is a kind of module map of embodiment of flow controller of the present invention;
Fig. 4 is the module map of another embodiment of flow controller of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of not making creative work it is all its His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase Mutually combination.
The invention will be further described in the following with reference to the drawings and specific embodiments, but not as limiting to the invention.
As shown in Figure 1, a kind of optimization method based on flow controller, flow controller provides a speed limit rule to right The downlink message of transmission carries out flow restriction, includes the following steps:
S1. flow controller obtains the downlink message sent, and downlink message feeding speed limit rule is judged, and root It is judged that result carries out class indication to downlink message;
S2. the downlink message of affiliated gateway local address is carried out by return processing according to speed limit rule, executes step S3;
S3. whether identification downlink message has class indication, if so, executing step S5;If it is not, executing step S4;
S4. the output interface of downlink message from the flow controller of the affiliated gateway local address of not class indication is defeated Go out, terminates;
S5. it will export, terminate from output interface after the downlink message progress flow restriction with class indication.
As a preferred embodiment, above-mentioned speed limit rule can be real by the speed limit rule chain in POSTROUTING chains It is existing, specifically it can increase node in speed limit rule chain head, for judging whether the destination address of downlink message belongs to affiliated gateway Local address in the present embodiment can be defeated by the output interface of downlink message from the flow controller of affiliated gateway local address Go out, without carrying out flow restriction, realizes when carrying out message rate-limiting to client by flow controller on gateway, client The purpose of the gateway configuration management page can normally be accessed.
In a preferred embodiment, further include after executing the step S1:Judge whether downlink message is that affiliated gateway is local The downlink message of address, if so, executing step S2;If it is not, according to speed limit rule to the downlink report except affiliated gateway local address After text carries out class indication, step S3 is executed.
In the present embodiment, pass through the form to beating class indication (mark) except the downlink message of affiliated gateway local address It distinguishes, the downlink message with class indication can be carried out by flow restriction according to the mark of class indication in exit.
As shown in Fig. 2, in a preferred embodiment, the detailed process of step S5 is:
S51. corresponding downlink message is made an addition in preset classification queue according to class indication;
S52. it is put in order according to the downlink message of preset classification queue and exports downlink message from output interface, knot Beam.
In the present embodiment, flow control can be realized by establishing a classification queue at output port.Downlink report Text carries out judgement selection after input interface is come in, by input demultplexer:The downlink message for being equipped with class indication is sent to Forwarding module processing, by check routing table obtain downlink message next destination, to downlink message be arranged such that by It is delivered to output interface.
In a preferred embodiment, according to speed limit rule to classifying except the downlink message of affiliated gateway local address Further include before mark:
The downlink message for not meeting speed limit rule is abandoned.
In the present embodiment, it can be realized by the flow controller that linux kernel provides, when downlink message connects from input After mouth is come in, downlink message against regulation is abandoned to realize the purpose of flow restriction by flow restriction.
As shown in figure 3, a kind of flow controller, to carry out flow restriction to the downlink message of transmission, including:
One receiving unit 1, to receive the downlink message of transmission;
One processing unit 2 connects receiving unit 1, provides speed limit rule, processing unit 2 is to according to speed limit rule general The downlink message of affiliated gateway local address exports;
One recognition unit 3, connection processing unit 2, to identify whether downlink message has class indication;
One current limiting unit 4 connects recognition unit 3, and the downlink message will carry class indication carries out flow restriction;
One output unit 5, is separately connected recognition unit 3 and current limiting unit 4, to export downlink message.
It in the present embodiment, can be directly by the downlink message of the affiliated gateway local address of not class indication from flow control The output interface of device processed exports, and without carrying out flow restriction, solves after carrying out message rate-limiting to client on gateway, client End accesses the problem of gateway configuration management page leads to system failure.
As shown in figure 4, in a preferred embodiment, further including:
One judging unit 6, connect with receiving unit 1 and processing unit 2 respectively, to judge whether downlink message is affiliated The downlink message of gateway local address;
Processing unit 2 exports the downlink message of affiliated gateway local address according to speed limit rule, and is advised according to speed limit Class indication then is carried out to the downlink message except affiliated gateway local address.
In the present embodiment, by judging unit 6 to beating class indication except the downlink message of affiliated gateway local address (mark) form distinguishes, and through the processing unit 2 can will have contingency table in exit according to the mark of class indication The downlink message of knowledge carries out flow restriction.
In a preferred embodiment, current limiting unit 4 includes:
One Queue module 42 provides preset classification queue, under Queue module 42 according to class indication to incite somebody to action accordingly Row message makes an addition in preset classification queue;
Output unit 5 according to the downlink message of preset classification queue putting in order downlink message from output interface Output.
In the present embodiment, a classification queue can be established by Queue module 42 to realize flow control.Downlink message After input unit is come in, judgement selection is carried out by recognition unit 3:The downlink message for being equipped with class indication is sent to forwarding module Processing, by check routing table obtain downlink message next-hop, using current limiting unit 4 to downlink message be arranged such that by It is delivered to the output of output unit 5.
In a preferred embodiment, processing unit 2 includes:
One rejects module 21, to reject the downlink message for not meeting speed limit rule.
By the way that the limit efficiency that flow restriction can be improved will be rejected with the unmatched downlink message of speed limit rule.
In the present embodiment, it can be realized by the flow controller that linux kernel provides, when downlink message is single from input After member is come in, the purpose of flow restriction is realized to abandon downlink message against regulation by rejecting module 21.
In technical solution, when client, which accesses gateway management, configures the page, HTTPD processes can be triggered and handled. When gateway uses downlink speed limit, first IP information filtering can be inserted into output data packet (POSTROUTING) chain (iptables) regular:Data message to coming from gateway local directly returns to (return) processing, that is, comes from gateway Local data message will not stamp class indication by follow-up rule, would not be entered in any current limliting queue in exit, The phenomenon that avoid HTTPD processes from occupying excessive system resource because of long transmission data, lead to system failure.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.

Claims (6)

1. a kind of optimization method based on flow controller, which is characterized in that flow controller provides a speed limit rule to right The downlink message of transmission carries out flow restriction, includes the following steps:
S1. the flow controller obtains the downlink message sent, and the downlink message is sent into the speed limit rule Judged, and class indication is carried out to the downlink message according to judging result;
S2. the downlink message of affiliated gateway local address is carried out by return processing according to the speed limit rule, described in execution Step S3;
S3. identify whether the downlink message has class indication, if so, executing step S5;If it is not, executing step S4;
S4. by the downlink message of the affiliated gateway local address of no class indication from the defeated of the flow controller Outgoing interface exports, and terminates;
S5. it will export, terminate from the output interface after the downlink message progress flow restriction with the class indication;
Further include after having executed the step S1:Judge the downlink message whether be belonging to gateway local address the downlink Message, if so, executing the step S2;If it is not, according to the speed limit rule to the downlink except affiliated gateway local address After message carries out the class indication, the step S3 is executed.
2. optimization method as described in claim 1, which is characterized in that the detailed process of the step S5 is:
S51. the corresponding downlink message is made an addition in preset classification queue according to the class indication;
S52. it is put in order the downlink message from the output according to the downlink message of the preset classification queue Interface exports, and terminates.
3. optimization method as described in claim 1, which is characterized in that local to removing affiliated gateway according to the speed limit rule The downlink message of address carries out:
The downlink message for not meeting the speed limit rule is abandoned.
4. a kind of flow controller, which is characterized in that carry out flow restriction to the downlink message of transmission, including:
One receiving unit, to receive the downlink message of transmission;
One processing unit connects the receiving unit, provides speed limit rule, the processing unit is to according to speed limit rule Then the downlink message of affiliated gateway local address is exported;
One recognition unit connects the processing unit, to identify whether the downlink message has class indication;
One current limiting unit connects the recognition unit, and the downlink message will carry the class indication carries out flow Limitation;
One output unit is separately connected the recognition unit and the current limiting unit, to export the downlink message;
One judging unit is connect with the receiving unit and the processing unit respectively, whether to judge the downlink message For the downlink message of affiliated gateway local address;
The processing unit exports the downlink message of affiliated gateway local address according to the speed limit rule, and according to The speed limit rule carries out the class indication to the downlink message except affiliated gateway local address.
5. flow controller as claimed in claim 4, which is characterized in that the current limiting unit includes:
One Queue module, provides preset classification queue, the Queue module to according to the class indication by corresponding institute Downlink message is stated to make an addition in preset classification queue;
The output unit according to the downlink message of the preset classification queue putting in order the downlink report Text is exported from output interface.
6. flow controller as claimed in claim 4, which is characterized in that the processing unit includes:
One rejects module, to reject the downlink message for not meeting the speed limit rule.
CN201510483520.7A 2015-08-07 2015-08-07 A kind of optimization method and flow controller based on flow controller Active CN105141543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510483520.7A CN105141543B (en) 2015-08-07 2015-08-07 A kind of optimization method and flow controller based on flow controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510483520.7A CN105141543B (en) 2015-08-07 2015-08-07 A kind of optimization method and flow controller based on flow controller

Publications (2)

Publication Number Publication Date
CN105141543A CN105141543A (en) 2015-12-09
CN105141543B true CN105141543B (en) 2018-07-31

Family

ID=54726756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510483520.7A Active CN105141543B (en) 2015-08-07 2015-08-07 A kind of optimization method and flow controller based on flow controller

Country Status (1)

Country Link
CN (1) CN105141543B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130921A (en) * 2016-07-19 2016-11-16 北京首都在线科技股份有限公司 Public network IP bandwidth-restricted systems and driving layer and key-course implementation method
CN112511426B (en) * 2019-09-16 2022-09-27 中国移动通信集团河北有限公司 Traffic grooming method and device, computing device and storage medium for service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881899A (en) * 2006-04-30 2006-12-20 国家数字交换系统工程技术研究中心 Network flow monitoring system and method
CN201563132U (en) * 2009-07-03 2010-08-25 北京星网锐捷网络技术有限公司 Network bandwidth control device and a router
CN101834785A (en) * 2010-04-07 2010-09-15 中兴通讯股份有限公司 Method and device for realizing stream filtration
CN102546412A (en) * 2012-01-04 2012-07-04 深圳市共进电子股份有限公司 Flow control method and flow controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1881899A (en) * 2006-04-30 2006-12-20 国家数字交换系统工程技术研究中心 Network flow monitoring system and method
CN201563132U (en) * 2009-07-03 2010-08-25 北京星网锐捷网络技术有限公司 Network bandwidth control device and a router
CN101834785A (en) * 2010-04-07 2010-09-15 中兴通讯股份有限公司 Method and device for realizing stream filtration
CN102546412A (en) * 2012-01-04 2012-07-04 深圳市共进电子股份有限公司 Flow control method and flow controller

Also Published As

Publication number Publication date
CN105141543A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
US10361914B2 (en) Programmable protocol parser for NIC classification and queue assignments
EP3082304B1 (en) Service routing method and system
CN111683011A (en) Message processing method, device, equipment and system
US20180287932A1 (en) Identification of an sdn action path based on a measured flow rate
CN108289061B (en) Service chain topology system based on SDN
CN104702509B (en) A kind of method and device that SDN protocol massages and data message are isolated
CN104394090A (en) SDN (Software Defined Networking) controller classifying network flows through DPI (Deep Packet Inspection) data package
CN112769597B (en) Container network current limiting method and system for cloud-edge collaborative virtualization scene
CN113783797B (en) Network flow control method, device and equipment of cloud primary container and storage medium
CN104468408A (en) Method for adjusting dynamically service bandwidth and control center server
CN108337179A (en) Link flow control method and device
CN105141543B (en) A kind of optimization method and flow controller based on flow controller
KR101841026B1 (en) Service function chaining network system for path optimization
CN103685057B (en) Flow statistical method and device
CN103152251A (en) Method and device for processing message
CN102932272B (en) Message forwarding method based on uninterrupted and forwarding unit
CN112437009A (en) SRv6 method, router, routing system and storage medium for end-to-end flow policy
CN101442490B (en) Method for processing flux load equilibrium
CN106059964B (en) Message forwarding method and device
CN110036608A (en) For Diameter message priority route by method, system and computer-readable medium
US10230647B2 (en) Data packet processing method and device
CN104160735A (en) Packet processing method, forwarder, packet processing device and packet processing system
CN107864189A (en) A kind of application layer traffic load-balancing method based on DPI
CN208623847U (en) A kind of card insert type electronic equipment
CN106034089A (en) Message scheduling method and device based on scheduling flow identification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201130

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201620 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201217

Address after: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee after: Bengbu 309 Technology Consulting Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210204

Address after: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee before: Bengbu 309 Technology Consulting Co.,Ltd.