CN113726611A - Method for flow control based on protocol - Google Patents
Method for flow control based on protocol Download PDFInfo
- Publication number
- CN113726611A CN113726611A CN202111018554.0A CN202111018554A CN113726611A CN 113726611 A CN113726611 A CN 113726611A CN 202111018554 A CN202111018554 A CN 202111018554A CN 113726611 A CN113726611 A CN 113726611A
- Authority
- CN
- China
- Prior art keywords
- data message
- protocol
- queue
- data
- analyzing
- 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
- 238000000034 method Methods 0.000 title claims abstract description 22
- 239000003795 chemical substances by application Substances 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2483—Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of network equipment communication application, and discloses a method for controlling flow based on a protocol, which comprises the following steps: a, data messages reach a tcp/ip protocol stack through a network card for processing; b, judging whether the data flow corresponding to the data message is identified, if so, performing the step F, otherwise, performing the step C; c, analyzing the basic attribute of the data message; inquiring a protocol feature library and updating the protocol mark of the data message; e, sending a data message through the network card; f, performing enqueue processing on the data message, directly discarding the data message if the queue is full, and otherwise, adding the data message into a cache queue; and G, taking out the data message from the buffer queue at regular time and then sending the data message. The invention can accurately identify different types of traffic in the network through protocol analysis, is convenient for users to control the traffic priority of different protocols and optimizes the internet experience.
Description
Technical Field
The invention relates to the technical field of network equipment communication application, in particular to a method for controlling flow based on a protocol.
Background
Network devices and components are physical entities connected into a network. The variety of network devices is great and increasing. The basic network devices are: computers (whether personal computers or servers), hubs, switches, bridges, routers, gateways, Network Interface Cards (NICs), Wireless Access Points (WAPs), printers and modems, fiber optic transceivers, fiber optic cables, and the like.
At present, most network devices do not reasonably analyze data according to types, and cannot distribute corresponding flow according to the types of the data, so that reasonable distribution of flow resources by users is not facilitated, and internet experience of the users is also influenced.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a method for controlling flow based on a protocol, which has the advantages of accurately identifying the flow type in a network, controlling the priority of different types of flow and the like, and solves the problem of poor internet experience of network equipment in the prior art.
(II) technical scheme
In order to realize the purpose of controlling the flow priority of different protocols by a user, the invention provides the following technical scheme: a method for protocol-based flow control, comprising the steps of:
a, data messages reach a tcp/ip protocol stack through a network card for processing;
b, judging whether the data flow corresponding to the data message is identified, if so, performing the step F, otherwise, performing the step C;
c, analyzing the basic attribute of the data message;
inquiring a protocol feature library and updating the protocol mark of the data message;
e, sending a data message through the network card;
f, performing enqueue processing on the data message, directly discarding the data message if the queue is full, and otherwise, adding the data message into a cache queue;
and G, taking out the data message from the buffer queue at regular time and then sending the data message.
Further, the step C of analyzing the data packet specifically includes:
c1, analyzing the basic information of the data message such as the protocol type (TCP, UDP, ICMP), source port, destination port, etc.;
c2: analyzing payload information of the data message, if the data message is the http protocol, analyzing methods, uri, user-agent, host and content-type contents of the http protocol, caching the contents into a structural body, and if the data message is the https protocol, analyzing url of the https request, and caching the url into the structural body.
Further, in step F, the enqueue processing of the data packet specifically includes:
f1: acquiring a protocol mark of the data message;
f2: inquiring the protocol type corresponding to the protocol mark;
f3: inquiring a queue corresponding to the protocol according to the protocol type;
f4: and judging whether the queue corresponding to the protocol is full, if so, discarding the data message, otherwise, caching the data message into the data message queue.
Further, in step F, the buffer queue is a data packet buffer queue, the queue is an expression of traffic, each protocol classification includes a queue, and the length of the queue is determined by the priority.
(III) advantageous effects
Compared with the prior art, the invention provides a method for controlling flow based on a protocol, which has the following beneficial effects: the invention can accurately identify different types of traffic in the network through protocol analysis, is convenient for users to control the traffic priority of different protocols and optimizes the internet experience.
Drawings
FIG. 1 is a corresponding flow chart of the embodiment of the present invention;
FIG. 2 is a corresponding flowchart of an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a method for performing flow control based on a protocol includes the steps of:
1: the data packet reaches a tcp/ip protocol stack;
2: analyzing basic message information and analyzing data message characteristics;
3: matching the feature library, obtaining the protocol type, and entering the corresponding cache queue
4: taking out the data message from the buffer queue;
5: and sending the data message.
Example two
Referring to fig. 2, a method for performing flow control based on a protocol includes the steps of:
a, data messages reach a tcp/ip protocol stack through a network card for processing;
b, judging whether the data flow corresponding to the data message is identified, if so, performing the step F, otherwise, performing the step C;
c, analyzing the basic attributes of the data message, and specifically comprising the following steps:
c1, analyzing the basic information of the data message such as the protocol type (TCP, UDP, ICMP), source port, destination port, etc.;
c2: analyzing payload information of the data message, if the data message is an http protocol, analyzing methods, uri, user-agent, host and content-type contents of the http protocol, caching the contents into a structural body, and if the data message is an https protocol, analyzing url of an https request, and caching the url into the structural body;
inquiring a protocol feature library and updating the protocol mark of the data message;
e, sending a data message through the network card;
f, performing enqueue processing on the data message, directly discarding the data message if the queue is full, or adding the data message into a buffer queue, and the specific steps are as follows:
f1: acquiring a protocol mark of the data message;
f2: inquiring the protocol type corresponding to the protocol mark;
f3: inquiring a queue corresponding to the protocol according to the protocol type;
f4: judging whether the queue corresponding to the protocol is full, if so, discarding the data message, otherwise, caching the data message into the data message queue;
and G, taking out the data message from the buffer queue at regular time and then sending the data message.
It should be noted that, in step F, the buffer queue is a data packet buffer queue, the queue is an expression form of traffic, each protocol classification includes a queue, the length of the queue is determined by priority, and the queue dynamically changes, the higher the priority is, the slower the queue length is consumed, otherwise, the consumption is faster.
According to the two embodiments, different types of traffic in the network can be accurately identified through protocol analysis, a user can conveniently control traffic priorities of different protocols, and internet experience is optimized.
It is to be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (4)
1. A method for protocol-based flow control, comprising the steps of:
a, data messages reach a tcp/ip protocol stack through a network card for processing;
b, judging whether the data flow corresponding to the data message is identified, if so, performing the step F, otherwise, performing the step C;
c, analyzing the basic attribute of the data message;
inquiring a protocol feature library and updating the protocol mark of the data message;
e, sending a data message through the network card;
f, performing enqueue processing on the data message, directly discarding the data message if the queue is full, and otherwise, adding the data message into a cache queue;
and G, taking out the data message from the buffer queue at regular time and then sending the data message.
2. The method according to claim 1, wherein the step of analyzing the data packet in step C specifically comprises:
c1, analyzing the basic information of protocol type, source port, destination port, etc;
c2: analyzing payload information of the data message, if the data message is the http protocol, analyzing methods, uri, user-agent, host and content-type contents of the http protocol, caching the contents into a structural body, and if the data message is the https protocol, analyzing url of the https request, and caching the url into the structural body.
3. The method according to claim 1, wherein in step F, the enqueuing processing of the data packet specifically comprises the steps of:
f1: acquiring a protocol mark of the data message;
f2: inquiring the protocol type corresponding to the protocol mark;
f3: inquiring a queue corresponding to the protocol according to the protocol type;
f4: and judging whether the queue corresponding to the protocol is full, if so, discarding the data message, otherwise, caching the data message into the data message queue.
4. The method of claim 1, wherein in step F, the buffer queue is a data packet buffer queue, the queue is a representation of traffic, each protocol classification comprises a queue, and the length of the queue is determined by priority and dynamically changes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111018554.0A CN113726611A (en) | 2021-09-01 | 2021-09-01 | Method for flow control based on protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111018554.0A CN113726611A (en) | 2021-09-01 | 2021-09-01 | Method for flow control based on protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113726611A true CN113726611A (en) | 2021-11-30 |
Family
ID=78680390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111018554.0A Pending CN113726611A (en) | 2021-09-01 | 2021-09-01 | Method for flow control based on protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113726611A (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09247192A (en) * | 1996-03-05 | 1997-09-19 | Mitsubishi Electric Corp | Real time communication system |
JP2001244981A (en) * | 2000-03-01 | 2001-09-07 | Fujitsu Ltd | Queue controller |
CN1913486A (en) * | 2005-08-10 | 2007-02-14 | 中兴通讯股份有限公司 | Method and device for strengthening safety of protocol message |
CN101150496A (en) * | 2006-09-22 | 2008-03-26 | 中兴通讯股份有限公司 | Method for improving important information network transmission quality |
CN101325538A (en) * | 2007-06-13 | 2008-12-17 | 中兴通讯股份有限公司 | Apparatus and method for implementing margin gateway total system QoS |
CN101473631A (en) * | 2006-05-02 | 2009-07-01 | 哈里公司 | Systems and methods for protocol filtering for quality of service |
CN102761483A (en) * | 2012-06-29 | 2012-10-31 | 成都卫士通信息产业股份有限公司 | Tunnel implementation method, system and device implemented without occupying IP addresses |
CN103036803A (en) * | 2012-12-21 | 2013-04-10 | 南京邮电大学 | Flow control method based on application layer detection |
CN103686700A (en) * | 2013-12-09 | 2014-03-26 | 中国科学院深圳先进技术研究院 | Method and system for processing data link layer flow |
CN104639578A (en) * | 2013-11-08 | 2015-05-20 | 华为技术有限公司 | Multi-protocol-stack load balancing method and multi-protocol-stack load balancing device |
WO2016062142A1 (en) * | 2014-10-24 | 2016-04-28 | 中兴通讯股份有限公司 | Method, apparatus and system for converged transmission of packets |
WO2017000593A1 (en) * | 2015-06-30 | 2017-01-05 | 中兴通讯股份有限公司 | Packet processing method and device |
US20170171099A1 (en) * | 2015-12-14 | 2017-06-15 | Mellanox Technologies Tlv Ltd. | Congestion estimation for multi-priority traffic |
CN107634915A (en) * | 2017-08-25 | 2018-01-26 | 中国科学院计算机网络信息中心 | Data transmission method, device and storage medium |
CN109379303A (en) * | 2018-08-22 | 2019-02-22 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Parallelization processing framework system and method based on improving performance of gigabit Ethernet |
WO2020087523A1 (en) * | 2018-11-02 | 2020-05-07 | 阿里巴巴集团控股有限公司 | Network communication method and apparatus, and electronic device |
CN113206800A (en) * | 2021-03-15 | 2021-08-03 | 新华三信息安全技术有限公司 | Message caching method and device and network equipment |
-
2021
- 2021-09-01 CN CN202111018554.0A patent/CN113726611A/en active Pending
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09247192A (en) * | 1996-03-05 | 1997-09-19 | Mitsubishi Electric Corp | Real time communication system |
JP2001244981A (en) * | 2000-03-01 | 2001-09-07 | Fujitsu Ltd | Queue controller |
CN1913486A (en) * | 2005-08-10 | 2007-02-14 | 中兴通讯股份有限公司 | Method and device for strengthening safety of protocol message |
CN101473631A (en) * | 2006-05-02 | 2009-07-01 | 哈里公司 | Systems and methods for protocol filtering for quality of service |
CN101150496A (en) * | 2006-09-22 | 2008-03-26 | 中兴通讯股份有限公司 | Method for improving important information network transmission quality |
CN101325538A (en) * | 2007-06-13 | 2008-12-17 | 中兴通讯股份有限公司 | Apparatus and method for implementing margin gateway total system QoS |
CN102761483A (en) * | 2012-06-29 | 2012-10-31 | 成都卫士通信息产业股份有限公司 | Tunnel implementation method, system and device implemented without occupying IP addresses |
CN103036803A (en) * | 2012-12-21 | 2013-04-10 | 南京邮电大学 | Flow control method based on application layer detection |
CN104639578A (en) * | 2013-11-08 | 2015-05-20 | 华为技术有限公司 | Multi-protocol-stack load balancing method and multi-protocol-stack load balancing device |
CN103686700A (en) * | 2013-12-09 | 2014-03-26 | 中国科学院深圳先进技术研究院 | Method and system for processing data link layer flow |
WO2016062142A1 (en) * | 2014-10-24 | 2016-04-28 | 中兴通讯股份有限公司 | Method, apparatus and system for converged transmission of packets |
WO2017000593A1 (en) * | 2015-06-30 | 2017-01-05 | 中兴通讯股份有限公司 | Packet processing method and device |
US20170171099A1 (en) * | 2015-12-14 | 2017-06-15 | Mellanox Technologies Tlv Ltd. | Congestion estimation for multi-priority traffic |
CN107634915A (en) * | 2017-08-25 | 2018-01-26 | 中国科学院计算机网络信息中心 | Data transmission method, device and storage medium |
CN109379303A (en) * | 2018-08-22 | 2019-02-22 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Parallelization processing framework system and method based on improving performance of gigabit Ethernet |
WO2020087523A1 (en) * | 2018-11-02 | 2020-05-07 | 阿里巴巴集团控股有限公司 | Network communication method and apparatus, and electronic device |
CN113206800A (en) * | 2021-03-15 | 2021-08-03 | 新华三信息安全技术有限公司 | Message caching method and device and network equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7325037B2 (en) | Method and system for client-based adaptive networking system | |
US8150957B1 (en) | Method and system for managing network traffic | |
JP5641455B2 (en) | Network system, controller, and QoS control method | |
CN101313519A (en) | Method and system providing QoS service | |
EP2482517B1 (en) | Method, apparatus and system for protocol identification | |
CN104125167A (en) | Flow control method and device | |
US11470185B2 (en) | Information centric network packet transmission control | |
MXPA04012488A (en) | Applying session services based on packet flows. | |
CN103139315A (en) | Application layer protocol analysis method suitable for home gateway | |
US10225201B2 (en) | Scalable multicast for notification-driven content delivery in information centric networks | |
Mongkolluksamee et al. | Combining communication patterns & traffic patterns to enhance mobile traffic identification performance | |
CN115766591B (en) | Method for limiting flow rate of fragmented messages and method and device for forwarding DPU fragmented messages | |
EP1950917A1 (en) | Methods for peer-to-peer application message identifying and operating realization and their corresponding devices | |
CN103327129B (en) | For the domain name analytic method of more WAN mouthfuls of gateway devices | |
US20190007327A1 (en) | Automatic rule generation for flow management in software defined networking networks | |
KR101344398B1 (en) | Router and method for application awareness and traffic control on flow based router | |
KR20020049462A (en) | A method and system for distinguishing higher layer protocols of the internet traffic | |
CN113726611A (en) | Method for flow control based on protocol | |
CN114500418B (en) | Data statistics method and related device | |
CN108259576B (en) | Software and hardware real-time information transmission system and method | |
CN107135170B (en) | High-quality QoS (quality of service) guarantee method for content-centric network | |
US20100046529A1 (en) | Method of configuring the quality-of-service profile of a given stream at an access node of a packet communications network | |
CN113422699B (en) | Data stream processing method and device, computer readable storage medium and electronic equipment | |
EP2605480A1 (en) | Apparatus and method for HTTP analysis | |
CN113608778A (en) | Application management method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211130 |
|
RJ01 | Rejection of invention patent application after publication |