CN109995672B - DPDK-based virtual home gateway bandwidth scheduling control method and system - Google Patents

DPDK-based virtual home gateway bandwidth scheduling control method and system Download PDF

Info

Publication number
CN109995672B
CN109995672B CN201910223210.XA CN201910223210A CN109995672B CN 109995672 B CN109995672 B CN 109995672B CN 201910223210 A CN201910223210 A CN 201910223210A CN 109995672 B CN109995672 B CN 109995672B
Authority
CN
China
Prior art keywords
dpdk
downlink
setting
speed
uplink
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
CN201910223210.XA
Other languages
Chinese (zh)
Other versions
CN109995672A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201910223210.XA priority Critical patent/CN109995672B/en
Publication of CN109995672A publication Critical patent/CN109995672A/en
Application granted granted Critical
Publication of CN109995672B publication Critical patent/CN109995672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/215Flow control; Congestion control using token-bucket
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a DPDK-based virtual home gateway bandwidth scheduling control method and a DPDK-based virtual home gateway bandwidth scheduling control system, which relate to the field of equipment bandwidth control, wherein the method comprises the steps of establishing a DPDK interface, establishing mapping between sub-port nodes of a home and the DPDK interface, and establishing mapping between a home device and a pipeline node of the DPDK interface; setting sub-port nodes to limit the speed of the up and down movement of the family; setting a pipeline node to limit the speed of the upstream and the downstream of the household equipment; and setting the uplink and downlink priority of the household equipment based on the DPDK interface traffic class node. The invention can effectively realize bandwidth speed limit and priority scheduling of families and family equipment.

Description

DPDK-based virtual home gateway bandwidth scheduling control method and system
Technical Field
The invention relates to the field of equipment bandwidth control, in particular to a DPDK-based virtual home gateway bandwidth scheduling control method and a DPDK-based virtual home gateway bandwidth scheduling control system.
Background
With the Development of the market and technology, more and more network infrastructures are beginning to be merged into an architecture based on a general computing platform or a modular computing platform to support and provide various network unit functions, a general Intel DPDK (Intel Data Plane Development Kit), a processor module based on an Intel x86 architecture can not only realize traditional processing application and control functions, but also realize intelligent and efficient packet processing, and greatly improve the IP forwarding performance.
Qos (quality of service), that is, service quality, and for network services, the service quality includes transmission bandwidth, transmission delay, data packet loss rate, and the like. In the network, the service quality can be improved by ensuring the transmission bandwidth, reducing the transmission delay, reducing the packet loss rate of data, reducing the delay jitter and other measures. Network resources are always limited, and the requirement of service quality can be met as long as the network resources are seized, so that a network manager needs to reasonably plan and allocate the network resources according to the characteristics of various services, and the network resources are efficiently utilized.
The QoS within the current DPDK is a hierarchical model containing five levels of nodes, port, subport, pipe, traffic class and queue, as shown in fig. 1, the first level of the hierarchy being the ethernet TX port 1/10/40GbE, and the subsequent hierarchical levels being defined as sub-ports, pipes, traffic classes and queues, each sub-port representing a predefined set of users and each pipe representing a user, each traffic class being a representation of different traffic types with specific loss rate, delay and jitter requirements (e.g. voice, video or data transmission). Each queue carries packets of one or more connections of the same type belonging to the same user. The model of DPDK native states that subpart represents a group of users and pipe represents a single user, and there is no description of the correspondence of devices, resulting in no specific implementation of how to set up QoS services for homes and home devices.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a DPDK-based virtual home gateway bandwidth scheduling control method and system, which can effectively realize bandwidth speed limitation and priority scheduling of home and household equipment.
In order to achieve the above object, the method for controlling bandwidth scheduling of a virtual home gateway based on DPDK of the present invention comprises:
establishing a DPDK interface, establishing mapping between a family and a sub-port node of the DPDK interface, and establishing mapping between a family device and a pipeline node of the DPDK interface;
setting sub-port nodes to limit the speed of the up and down movement of the family;
setting a pipeline node to limit the speed of the upstream and the downstream of the household equipment;
and setting the uplink and downlink priority of the household equipment based on the DPDK interface traffic class node.
On the basis of the above technical solution, the creating of the DPDK interface specifically includes the steps of:
modifying the configuration file of the DPDK to start the QoS function of the DPDK;
allocating a CPU core for processing QoS service;
the DPDK interface is created and enabled while configuring it with an IP address.
On the basis of the technical scheme, the setting of the sub-port node for limiting the speed of the uplink and the downlink of the family comprises the following specific steps: and setting the token bucket rate of the DPDK interface sub-port node to limit the uplink and downlink speed of the family.
On the basis of the technical proposal, the device comprises a shell,
in the setting of the pipeline node to limit the speed of the uplink and the downlink of the household equipment, the specific steps of limiting the speed of the downlink of the household equipment comprise:
searching the offset of the downlink destination IP in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a profile template bound by the pipeline node;
finishing the downlink speed limit of the household equipment through the speed limit of the profile template;
in the setting of the pipeline node to limit the speed of the uplink and the downlink of the household equipment, the method for limiting the speed of the uplink of the household equipment comprises the following specific steps:
setting the accurate matching of the household equipment destination MAC address of class, and mapping the destination MAC address field of the hit message into a characteristic value pipe template;
performing class accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment, and establishing mapping with a pipe template after the class accurate matching;
and transmitting the pipe template to a DPDK output interface at the WAN side of the virtual gateway, and limiting the uplink of the household equipment through the pipe template.
On the basis of the technical scheme, the setting of the uplink and downlink priority of the home equipment based on the DPDK interface traffic class node comprises the following specific steps:
performing classfy accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment;
mapping the IP address or the MAC address after accurate matching into a traffic class characteristic value in a pipe template and transmitting the traffic class characteristic value to a DPDK output interface on the WAN side of the virtual gateway;
generating traffic category information of the DPDK, and scheduling the uplink priority of the home equipment according to the traffic category priority;
based on the offset of the downlink destination IP of the household equipment in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a page table entry;
and the dispatching of the downlink priority of the household equipment is realized by setting different values of the flow categories and queues of the page table entries.
The invention provides a DPDK-based virtual home gateway bandwidth scheduling control system, which comprises:
the device comprises a creating module, a storage module and a sending module, wherein the creating module is used for creating a DPDK interface, creating mapping between a family and a sub-port node of the DPDK interface, and creating mapping between a family device and a pipeline node of the DPDK interface;
the first speed limit setting module is used for setting sub-port nodes to limit the speed of the up-down link of a family;
the second speed limit setting module is used for setting pipeline nodes to limit the speed of the up-down movement of the household equipment;
and the scheduling setting module is used for setting the uplink and downlink priority of the household equipment to be scheduled based on the DPDK interface traffic class node.
On the basis of the above technical solution, the creating module creates a DPDK interface, and the specific process includes:
modifying the configuration file of the DPDK to start the QoS function of the DPDK;
allocating a CPU core for processing QoS service;
the DPDK interface is created and enabled while configuring it with an IP address.
On the basis of the technical scheme, the first speed limit setting module sets sub-port nodes to limit the speed of the uplink and the downlink of the family, and the specific steps comprise: and setting the token bucket rate of the DPDK interface sub-port node to limit the uplink and downlink speed of the family.
On the basis of the technical scheme, the second speed limit setting module sets pipeline nodes to limit the speed of the uplink and the downlink of the household equipment, and the specific steps comprise:
searching the offset of the downlink destination IP in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a profile template bound by the pipeline node;
finishing the downlink speed limit of the household equipment through the speed limit of the profile template;
the second speed limit setting module is used for setting pipeline nodes to limit the speed of the uplink and the downlink of the household equipment and the speed of the uplink of the household equipment, and comprises the following specific steps:
setting the accurate matching of the household equipment destination MAC address of class, and mapping the destination MAC address field of the hit message into a characteristic value pipe template;
performing class accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment, and establishing mapping with a pipe template after the class accurate matching;
and transmitting the pipe template to a DPDK output interface at the WAN side of the virtual gateway, and limiting the uplink of the household equipment through the pipe template.
On the basis of the technical scheme, the scheduling setting module sets the uplink and downlink priority of the home equipment based on the DPDK interface traffic class node, and the specific steps include:
performing classfy accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment;
mapping the IP address or the MAC address after accurate matching into a traffic class characteristic value in a pipe template and transmitting the traffic class characteristic value to a DPDK output interface on the WAN side of the virtual gateway;
generating traffic category information of the DPDK, and scheduling the uplink priority of the home equipment according to the traffic category priority;
based on the offset of the downlink destination IP of the household equipment in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a page table entry;
and the dispatching of the downlink priority of the household equipment is realized by setting different values of the flow categories and queues of the page table entries.
Compared with the prior art, the invention has the advantages that: by establishing the mapping relation between the DPDK node and the household and household devices, the traffic categories of different nodes are set to achieve the purposes of realizing bandwidth speed limitation and priority scheduling of the household and household devices, the management convenience and efficiency are improved, and the user experience is greatly improved.
Drawings
FIG. 1 is a hierarchical model of a DPDK interface;
fig. 2 is a flowchart of a DPDK-based virtual home gateway bandwidth scheduling control method according to an embodiment of the present invention;
fig. 3 is a diagram of DPDK interface QoS system architecture.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The embodiment of the invention provides a DPDK-based virtual home gateway bandwidth scheduling control method, which achieves the purposes of bandwidth speed limit and priority scheduling of home and household equipment by setting the traffic categories of different nodes through establishing the mapping relation between a DPDK node and the home and household equipment. The embodiment of the invention also correspondingly provides a virtual home gateway bandwidth scheduling control system based on the DPDK.
Referring to fig. 2, an embodiment of a method for controlling bandwidth scheduling of a virtual home gateway based on DPDK according to an embodiment of the present invention includes:
s1: and establishing a DPDK interface, establishing mapping between the family and the sub-port node of the DPDK interface, and establishing mapping between the family equipment and the pipeline node of the DPDK interface.
In the embodiment of the invention, a Port (Port) of the DPDK is an actual physical interface, only one sub-Port is arranged below one Port and can just correspond to one family, and one sub-Port comprises 4096 pipelines (pipe), so that the pipelines can correspond to family equipment. Therefore, by adopting the 1:1 model, only one family and only one sub-port exist in one virtual gateway, so that the mapping relationship between the virtual gateway and the sub-ports is easy to establish.
Referring to fig. 3, in the embodiment of the present invention, a namespace (name space) is established on the Lan side and the Wan side of the virtual gateway, a peer port is then created in a Network (name space), an interface outside the Network is connected to the DPDK interface in a bridge manner, the DPDK Lan side interface and the Wan side interface are in different Network segments, and the middle is converted by NAT (Network Address Translation).
S2: and setting sub-port nodes to limit the speed of the upstream and the downstream of the family.
In the embodiment of the invention, the sub-port node is set to limit the speed of the uplink and the downlink of a family, and the specific steps comprise: and setting the token bucket rate of the DPDK interface sub-port node to limit the uplink and downlink speed of the family.
S3: setting a pipeline node to limit the speed of the upstream and the downstream of the household equipment;
s4: and setting the uplink and downlink priority of the household equipment based on the DPDK interface traffic class node.
According to the DPDK-based virtual home gateway bandwidth scheduling control method, the mapping relation between the DPDK node and the home and home devices is established, so that the traffic categories of different nodes are set to achieve the purposes of realizing bandwidth speed limitation and priority scheduling of the home and home devices, the management convenience and efficiency are improved, and the user experience is greatly improved.
Optionally, on the basis of the foregoing DPDK-based virtual home gateway bandwidth scheduling control method embodiment, in a first optional embodiment of the DPDK-based virtual home gateway bandwidth scheduling control method provided in the embodiment of the present invention, a DPDK interface is created, and the specific steps include:
s101: modifying the configuration file of the DPDK to start the QoS function of the DPDK;
s102: allocating a CPU core for processing QoS service;
s103: the DPDK interface is created and enabled while configuring it with an IP address. And (4) flushing an interface under the server into the DPDK, wherein the interface is the DPDK interface.
Optionally, on the basis of the foregoing virtual home gateway bandwidth scheduling control method embodiment based on DPDK, in a second optional embodiment of the virtual home gateway bandwidth scheduling control method based on DPDK provided in the embodiments of the present invention, a pipe node is set to limit the speed of the uplink and downlink of the home device, and the downlink of the home device is limited, which includes the specific steps of:
s311: searching the offset of the downlink destination IP in the original message of the downlink destination IP field;
s312: extracting a value corresponding to the offset by using a mask, wherein the value is a profile template bound by the pipeline node;
s313: and finishing the downlink speed limit of the household equipment by limiting the speed of the profile template.
In the process of setting the pipeline nodes to limit the uplink and the downlink of the household equipment, the uplink of the household equipment is limited, and the specific steps comprise:
s321: setting the accurate matching of the household equipment destination MAC address of class, and mapping the destination MAC address field of the hit message into a characteristic value pipe template; classsify is an algorithm provided by DPDK.
S322: performing class accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment, and establishing mapping with a pipe template after the class accurate matching;
s323: and transmitting the pipe template to a DPDK output interface at the WAN side of the virtual gateway, and limiting the uplink of the household equipment through the pipe template.
Optionally, on the basis of the second optional embodiment of the DPDK-based virtual home gateway bandwidth scheduling control method, in a third optional embodiment of the DPDK-based virtual home gateway bandwidth scheduling control method provided in the embodiment of the present invention, the uplink and downlink priorities of the home devices are scheduled based on DPDK interface traffic class node setting, which specifically includes:
s401: performing classfy accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment;
s402: mapping the IP address or the MAC address after accurate matching into a traffic class characteristic value in a pipe template and transmitting the traffic class characteristic value to a DPDK output interface on the WAN side of the virtual gateway;
s403: generating traffic category information of the DPDK, and scheduling the uplink priority of the home equipment according to the traffic category priority;
s404: based on the offset of the downlink destination IP of the household equipment in the original message of the downlink destination IP field;
s405: extracting a value corresponding to the offset by using a mask, wherein the value is a page table entry;
s406: and the dispatching of the downlink priority of the household equipment is realized by setting different values of the flow categories and queues of the page table entries.
An embodiment of a DPDK-based virtual home gateway bandwidth scheduling control system according to the present invention includes:
the device comprises a creating module, a storage module and a sending module, wherein the creating module is used for creating a DPDK interface, creating mapping between a family and a sub-port node of the DPDK interface, and creating mapping between a family device and a pipeline node of the DPDK interface;
the first speed limit setting module is used for setting sub-port nodes to limit the speed of the up-down link of a family;
the second speed limit setting module is used for setting pipeline nodes to limit the speed of the up-down movement of the household equipment;
and the scheduling setting module is used for setting the uplink and downlink priority of the household equipment to be scheduled based on the DPDK interface traffic class node.
The creating module creates a DPDK interface, and the specific process comprises the following steps:
modifying the configuration file of the DPDK to start the QoS function of the DPDK;
allocating a CPU core for processing QoS service;
the DPDK interface is created and enabled while configuring it with an IP address.
The first speed limit setting module sets sub-port nodes to limit the speed of the family uplink and downlink, and the specific steps comprise: and setting the token bucket rate of the DPDK interface sub-port node to limit the uplink and downlink speed of the family.
Optionally, on the basis of the above embodiment of the DPDK-based virtual home gateway bandwidth scheduling control system, in a first optional embodiment of the DPDK-based virtual home gateway bandwidth scheduling control system provided in the embodiment of the present invention,
the second speed limit setting module is used for setting pipeline nodes to limit the speed of the uplink and the downlink of the household equipment and the speed of the downlink of the household equipment, and comprises the following specific steps:
searching the offset of the downlink destination IP in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a profile template bound by the pipeline node;
finishing the downlink speed limit of the household equipment through the speed limit of the profile template;
the second speed limit setting module is used for setting pipeline nodes to limit the speed of the uplink and the downlink of the household equipment and the speed of the uplink of the household equipment, and comprises the following specific steps:
setting the accurate matching of the household equipment destination MAC address of class, and mapping the destination MAC address field of the hit message into a characteristic value pipe template;
performing class accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment, and establishing mapping with a pipe template after the class accurate matching;
and transmitting the pipe template to a DPDK output interface at the WAN side of the virtual gateway, and limiting the uplink of the household equipment through the pipe template.
The scheduling setting module is used for scheduling the uplink and downlink priority of the household equipment based on DPDK interface traffic class node setting, and specifically comprises the following steps:
performing classfy accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment;
mapping the IP address or the MAC address after accurate matching into a traffic class characteristic value in a pipe template and transmitting the traffic class characteristic value to a DPDK output interface on the WAN side of the virtual gateway;
generating traffic category information of the DPDK, and scheduling the uplink priority of the home equipment according to the traffic category priority;
based on the offset of the downlink destination IP of the household equipment in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a page table entry;
and the dispatching of the downlink priority of the household equipment is realized by setting different values of the flow categories and queues of the page table entries.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (10)

1. A DPDK-based virtual home gateway bandwidth scheduling control method is characterized by comprising the following steps:
establishing a DPDK interface, establishing mapping between a family and a sub-port node of the DPDK interface, and establishing mapping between a family device and a pipeline node of the DPDK interface;
setting sub-port nodes to limit the speed of the up and down movement of the family;
setting a pipeline node to limit the speed of the upstream and the downstream of the household equipment;
and setting the uplink and downlink priority of the household equipment based on the DPDK interface traffic class node.
2. The method for controlling bandwidth scheduling of a DPDK-based virtual home gateway of claim 1, wherein the step of creating a DPDK interface includes:
modifying the configuration file of the DPDK to start the QoS function of the DPDK;
allocating a CPU core for processing QoS service;
the DPDK interface is created and enabled while configuring it with an IP address.
3. The DPDK-based virtual home gateway bandwidth scheduling control method of claim 1, wherein the setting of the sub-port node to limit the uplink and downlink of the home includes the specific steps of: and setting the token bucket rate of the DPDK interface sub-port node to limit the uplink and downlink speed of the family.
4. The DPDK-based virtual home gateway bandwidth scheduling control method of claim 1,
in the setting of the pipeline node to limit the speed of the uplink and the downlink of the household equipment, the specific steps of limiting the speed of the downlink of the household equipment comprise:
searching the offset of the downlink destination IP in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a profile template bound by the pipeline node;
finishing the downlink speed limit of the household equipment through the speed limit of the profile template;
in the setting of the pipeline node to limit the speed of the uplink and the downlink of the household equipment, the method for limiting the speed of the uplink of the household equipment comprises the following specific steps:
setting the accurate matching of the household equipment destination MAC address of class, and mapping the destination MAC address field of the hit message into a characteristic value pipe template;
performing class accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment, and establishing mapping with a pipe template after the class accurate matching;
and transmitting the pipe template to a DPDK output interface at the WAN side of the virtual gateway, and limiting the uplink of the household equipment through the pipe template.
5. The method for controlling bandwidth scheduling of a virtual home gateway based on DPDK of claim 4, wherein the node setting of the traffic class based on the DPDK interface schedules the uplink and downlink priorities of the home devices, and the specific steps include:
performing classfy accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment;
mapping the IP address or the MAC address after accurate matching into a traffic class characteristic value in a pipe template and transmitting the traffic class characteristic value to a DPDK output interface on the WAN side of the virtual gateway;
generating traffic category information of the DPDK, and scheduling the uplink priority of the home equipment according to the traffic category priority;
based on the offset of the downlink destination IP of the household equipment in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a page table entry;
and the dispatching of the downlink priority of the household equipment is realized by setting different values of the flow categories and queues of the page table entries.
6. A DPDK-based virtual home gateway bandwidth scheduling control system is characterized by comprising:
the device comprises a creating module, a storage module and a sending module, wherein the creating module is used for creating a DPDK interface, creating mapping between a family and a sub-port node of the DPDK interface, and creating mapping between a family device and a pipeline node of the DPDK interface;
the first speed limit setting module is used for setting sub-port nodes to limit the speed of the up-down link of a family;
the second speed limit setting module is used for setting pipeline nodes to limit the speed of the up-down movement of the household equipment;
and the scheduling setting module is used for setting the uplink and downlink priority of the household equipment to be scheduled based on the DPDK interface traffic class node.
7. The DPDK-based virtual home gateway bandwidth scheduling control system of claim 6, wherein the creating module creates a DPDK interface, and the specific process includes:
modifying the configuration file of the DPDK to start the QoS function of the DPDK;
allocating a CPU core for processing QoS service;
the DPDK interface is created and enabled while configuring it with an IP address.
8. The DPDK-based virtual home gateway bandwidth scheduling control system of claim 6, wherein the first speed limit setting module sets a sub-port node to limit the speed of the uplink and downlink of the home, and the specific steps include: and setting the token bucket rate of the DPDK interface sub-port node to limit the uplink and downlink speed of the family.
9. The DPDK-based virtual home gateway bandwidth scheduling control system of claim 6, wherein the second speed limit setting module sets a pipe node to limit speed of the uplink and downlink of the home device, and the specific steps include:
searching the offset of the downlink destination IP in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a profile template bound by the pipeline node;
finishing the downlink speed limit of the household equipment through the speed limit of the profile template;
the second speed limit setting module is used for setting pipeline nodes to limit the speed of the uplink and the downlink of the household equipment and the speed of the uplink of the household equipment, and comprises the following specific steps:
setting the accurate matching of the household equipment destination MAC address of class, and mapping the destination MAC address field of the hit message into a characteristic value pipe template;
performing class accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment, and establishing mapping with a pipe template after the class accurate matching;
and transmitting the pipe template to a DPDK output interface at the WAN side of the virtual gateway, and limiting the uplink of the household equipment through the pipe template.
10. The DPDK-based virtual home gateway bandwidth scheduling control system of claim 9, wherein the scheduling setting module sets the uplink and downlink priority of the home device for scheduling based on a DPDK interface traffic class node, and the specific steps include:
performing classfy accurate matching on the virtual gateway LAN side based on the IP address or MAC address of the home equipment;
mapping the IP address or the MAC address after accurate matching into a traffic class characteristic value in a pipe template and transmitting the traffic class characteristic value to a DPDK output interface on the WAN side of the virtual gateway;
generating traffic category information of the DPDK, and scheduling the uplink priority of the home equipment according to the traffic category priority;
based on the offset of the downlink destination IP of the household equipment in the original message of the downlink destination IP field;
extracting a value corresponding to the offset by using a mask, wherein the value is a page table entry;
and the dispatching of the downlink priority of the household equipment is realized by setting different values of the flow categories and queues of the page table entries.
CN201910223210.XA 2019-03-22 2019-03-22 DPDK-based virtual home gateway bandwidth scheduling control method and system Active CN109995672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910223210.XA CN109995672B (en) 2019-03-22 2019-03-22 DPDK-based virtual home gateway bandwidth scheduling control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910223210.XA CN109995672B (en) 2019-03-22 2019-03-22 DPDK-based virtual home gateway bandwidth scheduling control method and system

Publications (2)

Publication Number Publication Date
CN109995672A CN109995672A (en) 2019-07-09
CN109995672B true CN109995672B (en) 2022-03-25

Family

ID=67130962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910223210.XA Active CN109995672B (en) 2019-03-22 2019-03-22 DPDK-based virtual home gateway bandwidth scheduling control method and system

Country Status (1)

Country Link
CN (1) CN109995672B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434287A (en) * 2021-06-03 2021-09-24 中国联合网络通信集团有限公司 Task data transmission method, system, electronic device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9450881B2 (en) * 2013-07-09 2016-09-20 Intel Corporation Method and system for traffic metering to limit a received packet rate
US10237171B2 (en) * 2016-09-20 2019-03-19 Intel Corporation Efficient QoS support for software packet processing on general purpose servers
KR102455902B1 (en) * 2017-01-25 2022-10-17 마이크로소프트 테크놀로지 라이센싱, 엘엘씨 Load balancing of wireless subscriber packet processing through multiple packet processing cores on a virtual machine platform
CN108632110B (en) * 2018-03-23 2020-06-19 北京网测科技有限公司 Device performance testing method, system, computer device and storage medium
CN108768873B (en) * 2018-05-29 2021-09-28 腾讯科技(深圳)有限公司 Flow control method and related equipment

Also Published As

Publication number Publication date
CN109995672A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN108809857B (en) SDN-based traffic monitoring and service quality assurance strategy method
CN102334112B (en) Method and system for virtual machine networking
WO2017114342A1 (en) Control of packet of virtual machine
WO2016107453A1 (en) Media access control address forwarding table transmission control method, apparatus, and system
CN109151913A (en) A kind of control method and relevant apparatus of service quality
WO2020083301A1 (en) Network slice method, computer device and storage medium
JP2021505020A (en) Frame aggregation method, network setting Frame transmission method and device
WO2018045992A1 (en) Address management method and apparatus
CN110995514A (en) Multi-dimensional end-to-end network slice generation device and method
TW201528734A (en) A method and an apparatus for virtualization of a quality-of-service
CN101719850A (en) Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN110798412B (en) Multicast service processing method and device, cloud platform, equipment and readable storage medium
CN109995672B (en) DPDK-based virtual home gateway bandwidth scheduling control method and system
CN111935033A (en) Terminal flow reservation method, system and computer equipment for time sensitive flow
CN111224889A (en) Data transmission method and device
CN111970149B (en) Shared bandwidth implementation method based on hardware firewall QOS
CN103560970A (en) Method for realizing downlink speed limitation of network device with multiple LAN ports
JP2004201304A (en) Packet scheduling system and method for high-speed packet network
CN105939404B (en) The acquisition methods and device of NAT resource
CN116055394A (en) Edge routing arrangement system based on vectorized backbone network
CN108809795A (en) Transparent shunt method and device in a kind of LAN environment
EP2966927B1 (en) Combined voice and data communications in a distributed hybrid allocation and reservation multiple access mobile wireless network
CN114827051A (en) Bandwidth control policer in a network adapter
JP4671349B2 (en) Parameter setting system and method
CN113746675A (en) Method and system for realizing flexible Ethernet service scene by using HQoS (high quality QoS)

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
GR01 Patent grant
GR01 Patent grant