CN104539555B - A kind of processing method and processing device of uplink business data - Google Patents
A kind of processing method and processing device of uplink business data Download PDFInfo
- Publication number
- CN104539555B CN104539555B CN201410708952.9A CN201410708952A CN104539555B CN 104539555 B CN104539555 B CN 104539555B CN 201410708952 A CN201410708952 A CN 201410708952A CN 104539555 B CN104539555 B CN 104539555B
- Authority
- CN
- China
- Prior art keywords
- intermediary
- queue
- imq
- gateway device
- business data
- 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.)
- Expired - Fee Related
Links
- 238000012545 processing Methods 0.000 title claims abstract description 23
- 238000003672 processing method Methods 0.000 title claims abstract description 13
- 238000011068 loading method Methods 0.000 claims abstract description 16
- 238000000034 method Methods 0.000 claims description 9
- 238000013479 data entry Methods 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000004891 communication Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Abstract
The present invention is suitable for field of communication technology, provides a kind of processing method and processing device of uplink business data, including:First intermediary's queue IMQ equipment and the 2nd IMQ equipment are loaded respectively on two HOOK points of gateway device netfilter frames;Obtain the service quality QoS rule of user configuration;When uplink business data passes through the first IMQ equipment, the first IMQ equipment carries out speed limit processing according to QoS rules, to uplink business data;When business datum passes through the 2nd IMQ equipment, the 2nd IMQ equipment is scheduled uplink business data according to QoS rules.The present invention, to be carried out at the same time speed limit and scheduling to the same queue of carry under gateway device, improves QoS service quality of the gateway device to uplink business data by loading two IMQ equipment respectively on two HOOK points of gateway device.
Description
Technical field
The invention belongs to field of communication technology more particularly to a kind of processing method and processing devices of uplink business data.
Background technology
To meet requirement of the user to different application different service quality, need network can distribute acording to the requirement of user and
Scheduling resource provides different business data flows different service quality:It is preferential to real-time and important data message
Processing;For the not strong general data message of real-time, lower processing priority is provided, when network congestion, even abandons, this
It is service quality (Quality of Service, QoS) technology.
Rectification is carried out to business datum using QoS, it is common practice to if the carry under the gateway device for supporting qos feature
Dry queue, the speed limit rate and priority of each queue are configured by user.However, based on current QoS dispatching algorithms,
It can not accomplish not only to carry out speed limit to the same queue of carry under gateway device, but also be scheduled.
Invention content
The embodiment of the present invention is designed to provide a kind of processing method of uplink business data, it is intended to which realization is set in gateway
Speed limit and scheduling are carried out at the same time to uplink business data in standby.
The embodiment of the present invention is achieved in that a kind of processing method of uplink business data, including:
Load first intermediary's queue IMQ equipment and respectively on two HOOK points of gateway device netfilter frames
Two IMQ equipment;
Obtain the service quality QoS rule of user configuration;
When uplink business data passes through the first IMQ equipment, the first IMQ equipment is right according to QoS rules
Uplink business data carries out speed limit processing;
When business datum passes through the 2nd IMQ equipment, the 2nd IMQ equipment is according to QoS rules, to uplink
Business datum is scheduled.
The another object of the embodiment of the present invention is to provide a kind of processing unit of uplink business data, described device packet
It includes:
Loading unit, for loading the first team of intermediary respectively on two HOOK points of gateway device netfilter frames
Arrange IMQ equipment and the 2nd IMQ equipment;
Acquiring unit, the service quality QoS rule for obtaining user configuration;
Speed limit unit, for when uplink business data pass through the first IMQ equipment when, the first IMQ equipment according to
The QoS rules, speed limit processing is carried out to uplink business data;
Scheduling unit, for when business datum passes through the 2nd IMQ equipment, the 2nd IMQ equipment to be according to
QoS rules, are scheduled uplink business data.
The embodiment of the present invention by loading two IMQ equipment respectively on two HOOK points of gateway device, to gateway
The same queue of carry is carried out at the same time speed limit and scheduling under equipment, improves QoS service of the gateway device to uplink business data
Quality.
Description of the drawings
Fig. 1 is the implementation flow chart of the processing method of uplink business data provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the processing method S101 of uplink business data provided in an embodiment of the present invention;
Fig. 3 is the implementation flow chart of the processing method for the uplink business data that another embodiment of the present invention provides;
Fig. 4 is the structure diagram of the processing unit of uplink business data provided in an embodiment of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The processing method of uplink business data provided in an embodiment of the present invention can be applied to gateway (Gateway) equipment
In, by loading two IMQ equipment respectively on two HOOK points of gateway device, to the same team of carry under gateway device
Row are carried out at the same time speed limit and scheduling.It should be noted that below in the elaboration of the embodiment of the present invention, the business datum,
If not specified, input gateway device, business datum from LAN side equipment are referred to, that is, the uplink of gateway device
Business datum.
Fig. 1 shows the implementation process of the processing method of uplink business data provided in an embodiment of the present invention, and details are as follows:
In S101, the queue of the first intermediary is loaded respectively on two HOOK points of gateway device netfilter frames
(Intermediate queueing device, IMQ) equipment and the 2nd IMQ equipment.
The IMQ equipment is a virtual network card equipment, unlike physical network card, can be carried out entirely by it
The traffic shaping of office;The netfilter frames exactly placed some test points in several positions of whole network flow
(HOOK points), and register on each HOOK points some processing functions (such as packet filtering, network address translation (Network
Address Translation, NAT) etc.) handled, and the processing function can be by user-defined power function.
In the present embodiment, two IMQ equipment are loaded respectively on two HOOK points that gateway device business datum flows through,
For executing speed limit and scheduling in QoS respectively to the business datum for flowing through HOOK points.Wherein it is possible to pass through ifconfig works
Tool, vnetconfig tools drive the first IMQ equipment and the 2nd IMQ equipment, so that it is loaded onto corresponding HOOK points, above-mentioned drive
Dynamic and loading procedure can be supported by the linux kernel of standard.
As an embodiment of the present invention, two IMQ equipment can successively carry at the Data entries of gateway device
HOOK points on and data exit HOOK points on, including:
HOOK points at the gateway device Data entries load the first IMQ equipment, go out in the gateway device data
HOOK points at mouthful load the 2nd IMQ equipment;Alternatively,
HOOK points at the gateway device Data entries load the 2nd IMQ equipment, go out in the gateway device data
HOOK points at mouthful load the first IMQ equipment.
I.e., it is possible to exchange the ordinal relation of the first IMQ equipment and the 2nd IMQ equipment, first carry out speed limit, after be scheduled,
Or be first scheduled, speed limit is carried out afterwards.
Preferably:
The first IMQ equipment is loaded on the PREROUTE points of the gateway device netfilter frames;
The 2nd IMQ equipment is loaded on the POSTROUTE points of the gateway device netfilter frames.
The PREROUTE points (i.e. NF_IP_PRE_ROUTING) and POSTROUTE points (i.e. NF_IP_POST_
ROUTING it is) two in five HOOK points in netfilter frames, wherein the PREROUTE points are just into networking
Close equipment business datum will by HOOK points, the POSTROUTE points will export the industry of the network equipment for all horse backs
Data of being engaged in will by HOOK points, two IMQ equipment are separately positioned on the two HOOK points, thus in gateway device
First entrance carries out speed limit to business datum, is scheduled to business datum in the last one outlet of gateway device, to
Realization not only carries out speed limit to the queue of carry under gateway device, but also is scheduled.
As an embodiment of the present invention, the first IMQ equipment and the 2nd IMQ equipment can support dynamic to insert
It pulls out, the flexible control to gateway device QoS flow control function is realized with this, can independently choose whether that enabling two IMQ sets
It is standby to carry out speed limit and the scheduling of business datum.As shown in Fig. 2, S101 is specifically included:
S201, configures IMQ modules in iptables, and the IMQ modules are used for the first IMQ equipment of dynamic load and second
IMQ equipment.
In the present embodiment, IMQ equipment is located in the three-layer routing of gateway device, therefore, IMQ moulds is configured in iptables
Block, the IMQ modules dedicated for realize the first IMQ equipment and the 2nd IMQ equipment dynamic load.
S202 orders iptables, is set by the first IMQ equipment and the 2nd IMQ described in the IMQ module loadings
It is standby.
After then in having executed flow shown in Fig. 1 to the speed limit of business datum and scheduling, the method further includes:
S203 orders iptables, unloads the first IMQ equipment by the IMQ modules and the 2nd IMQ is set
It is standby.
After having configured IMQ modules, by ordering iptables, you can to realize to the first IMQ equipment and the 2nd IMQ
The dynamic load of equipment.If desired to being carried out at the same time speed limit and scheduling by the business datum of gateway device, then the first IMQ is loaded
Equipment and the 2nd IMQ equipment after the completion of the QoS flow control of business datum, or need not be carried out at the same time business datum
Under speed limit and the scene of scheduling, the first IMQ equipment and the 2nd IMQ equipment can be unloaded, it is flexible to be realized to virtual resource
Control.
In S102, the service quality QoS rule of user configuration is obtained.
Obtain user configuration QoS rule, the QoS rules include queue priority and the gateway device outlet it is total
Speed limit.
Wherein, user can configure a series of QoS rules, including queue by the QoS pages or other configurations tool
Total speed limit of priority and gateway device outlet.After user configuration good QoS rules, the first IMQ equipment and the 2nd IMQ equipment
Can the corresponding queue of carry under its equipment according to the queue priority in the QoS rules, and know in the QoS rules
Total speed limit of gateway device outlet.
In S103, when uplink business data passes through the first IMQ equipment, the first IMQ equipment is according to
QoS rules carry out speed limit processing to uplink business data.
In the present embodiment, the total lock of entrance for controlling business datum using the first IMQ equipment is advised according to the QoS of configuration
Total speed limit of gateway device outlet in then, limits the total bandwidth of business datum.Specifically, queue discipline may be used
The htb algorithms of (Queueing Discipline), different types of business datum are lost in corresponding queue, to queue
Carry out speed limit processing.
In S104, when business datum passes through the 2nd IMQ equipment, the 2nd IMQ equipment is advised according to the QoS
Then, uplink business data is scheduled.
In the present embodiment, the total lock in outlet for controlling business datum using the 2nd IMQ equipment, similarly, the 2nd IMQ is set
It is standby different types of business datum to be lost into corresponding queue, and the scheduling to queue is realized using SP dispatching algorithms.
Finally, by the rectification of the first IMQ equipment and the 2nd IMQ equipment, the QoS rules for meeting user configuration can be obtained
Business data flow, and sent via the interface of gateway device.
The embodiment of the present invention by loading two IMQ equipment respectively on two HOOK points of gateway device, to gateway
The same queue of carry is carried out at the same time speed limit and scheduling under equipment, improves QoS service of the gateway device to uplink business data
Quality.
Under normal circumstances, if gateway device is configured as bridge device, gateway device only turns business datum
Hair need not carry out QoS flow control to business datum, and therefore, also there is no need to business datum is sent to gateway to set
A filtering is done in the iptables of standby three-layer routing, if but wishing the bridge device also and can support to be carried out at the same time business datum
Speed limit and scheduling, then as shown in figure 3, before S102 before the QoS rules of acquisition user configuration, the method further includes:
S105 enables the iptables functions of the bridge device.
Thus one, no matter gateway device is configured as bridge device or routing device, and all business datums all can be into
Enter into the iptable of three-layer routing, to be carried out at the same time to business datum by the first IMQ equipment and the realization of the 2nd IMQ equipment
Speed limit and scheduling.
Fig. 4 shows the structure diagram of the processing unit of uplink business data provided in an embodiment of the present invention, which can
Among being located at gateway device, the processing method for running the uplink business data described in Fig. 1 of the present invention to Fig. 3 embodiments.
For convenience of description, only the parts related to this embodiment are shown.
With reference to Fig. 4, which includes:
Loading unit 41 loads the queue of the first intermediary respectively on two HOOK points of gateway device netfilter frames
IMQ equipment and the 2nd IMQ equipment.
Acquiring unit 42 obtains the service quality QoS rule of user configuration.
Speed limit unit 43, when uplink business data passes through the first IMQ equipment, the first IMQ equipment is according to institute
QoS rules are stated, speed limit processing is carried out to uplink business data.
Scheduling unit 44, when business datum passes through the 2nd IMQ equipment, the 2nd IMQ equipment is according to the QoS
Rule is scheduled uplink business data.
Optionally, the loading unit 41 is specifically used for:
The first IMQ equipment is loaded on the PREROUTE points of the gateway device netfilter frames;
The 2nd IMQ equipment is loaded on the POSTROUTE points of the gateway device netfilter frames.
Optionally, the loading unit 41 includes:
Subelement is configured, IMQ modules are configured in iptables, the IMQ modules are used for the first IMQ equipment of dynamic load
With the 2nd IMQ equipment.
Subelement is loaded, iptables is ordered, passes through the first IMQ equipment and described second described in the IMQ module loadings
IMQ equipment.
Subelements are unloaded, iptables is ordered, the first IMQ equipment and described second are unloaded by the IMQ modules
IMQ equipment.
Optionally, the gateway device is bridge device, and described device further includes:
Unit is enabled, the iptables functions of the bridge device are enabled.
Optionally, in the speed limit unit 43, the first IMQ equipment uses the htb algorithms pair of queue discipline QDISC
Uplink business data carries out speed limit processing;
In the scheduling unit 44, the 2nd IMQ equipment adjusts uplink business data using SP dispatching algorithms
Degree.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.
Claims (8)
1. a kind of processing method of uplink business data, which is characterized in that including:
First intermediary's queue device and the second team of intermediary are loaded respectively on two HOOK points of gateway device netfilter frames
Row equipment;Wherein, the HOOK points at the Data entries of the gateway device load first intermediary queue device, described
HOOK points at the data outlet of gateway device load second intermediary queue device;Alternatively, in the number of the gateway device
Second intermediary queue device is loaded according to the HOOK points of inlet, the HOOK points at the data outlet of the gateway device add
Carry first intermediary queue device;
Obtain the service quality QoS rule of user configuration;
When uplink business data passes through the first intermediary queue device, first intermediary queue device is according to the QoS
Rule carries out speed limit processing to uplink business data;
When business datum passes through the second intermediary queue device, second intermediary queue device is regular according to the QoS,
Uplink business data is scheduled;
Wherein, it is described loaded respectively on two HOOK points of gateway device netfilter frames first intermediary's queue device and
Second intermediary's queue device includes:
Intermediary's Queue module is configured in iptables, intermediary's Queue module is used for the first intermediary of dynamic load queue device
With second intermediary's queue device;
Iptables is ordered, first intermediary queue device and team of second intermediary are loaded by intermediary's Queue module
Row equipment;
The method further includes:
Iptables is ordered, first intermediary queue device and team of second intermediary are unloaded by intermediary's Queue module
Row equipment.
2. the method as described in claim 1, which is characterized in that two HOOK in gateway device netfilter frames
First intermediary's queue device is loaded on point respectively and second intermediary's queue device includes:
First intermediary queue device is loaded on the PREROUTE points of the gateway device netfilter frames;
Second intermediary queue device is loaded on the POSTROUTE points of the gateway device netfilter frames.
3. the method as described in claim 1, which is characterized in that the gateway device is bridge device, is matched in the acquisition user
Before the QoS rules set, the method further includes:
Enable the iptables functions of the bridge device.
4. the method as described in claim 1, which is characterized in that first intermediary queue device uses queue discipline QDISC
Htb algorithms to uplink business data carry out speed limit processing;
Second intermediary queue device is scheduled uplink business data using SP dispatching algorithms.
5. a kind of processing unit of uplink business data, which is characterized in that described device includes:
Loading unit is set for loading the queue of the first intermediary respectively on two HOOK points of gateway device netfilter frames
Standby and second intermediary's queue device;Wherein, the HOOK points at the Data entries of the gateway device load first intermediary
Queue device, the HOOK points at the data outlet of the gateway device load second intermediary queue device;Alternatively, institute
It states the HOOK points at the Data entries of gateway device and loads second intermediary queue device, go out in the data of the gateway device
HOOK points at mouthful load first intermediary queue device;
Acquiring unit, the service quality QoS rule for obtaining user configuration;
Speed limit unit, for when uplink business data passes through the first intermediary queue device, first intermediary queue to be set
It is standby regular according to the QoS, speed limit processing is carried out to uplink business data;
Scheduling unit is used for when business datum passes through the second intermediary queue device, the second intermediary queue device root
According to QoS rules, uplink business data is scheduled;
The loading unit includes:
Subelement is configured, for configuring intermediary's Queue module in iptables, intermediary's Queue module is used for dynamic load
First intermediary's queue device and second intermediary's queue device;
Subelement is loaded, for ordering iptables, first intermediary queue device is loaded by intermediary's Queue module
With second intermediary queue device;
Subelements are unloaded, for ordering iptables, first intermediary queue device is unloaded by intermediary's Queue module
With second intermediary queue device.
6. device as claimed in claim 5, which is characterized in that the loading unit is specifically used for:
First intermediary queue device is loaded on the PREROUTE points of the gateway device netfilter frames;
Second intermediary queue device is loaded on the POSTROUTE points of the gateway device netfilter frames.
7. device as claimed in claim 5, which is characterized in that the gateway device is bridge device, and described device further includes:
Enable unit, the iptables functions for enabling the bridge device.
8. device as claimed in claim 5, which is characterized in that in the speed limit unit, first intermediary queue device
Speed limit processing is carried out to uplink business data using the htb algorithms of queue discipline QDISC;
In the scheduling unit, second intermediary queue device adjusts uplink business data using SP dispatching algorithms
Degree.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410708952.9A CN104539555B (en) | 2014-11-28 | 2014-11-28 | A kind of processing method and processing device of uplink business data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410708952.9A CN104539555B (en) | 2014-11-28 | 2014-11-28 | A kind of processing method and processing device of uplink business data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104539555A CN104539555A (en) | 2015-04-22 |
CN104539555B true CN104539555B (en) | 2018-10-09 |
Family
ID=52855024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410708952.9A Expired - Fee Related CN104539555B (en) | 2014-11-28 | 2014-11-28 | A kind of processing method and processing device of uplink business data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104539555B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101827029A (en) * | 2010-04-21 | 2010-09-08 | 烽火通信科技股份有限公司 | Method for dynamically marking RTP flow by Linux network equipment |
CN102404226A (en) * | 2011-12-06 | 2012-04-04 | 烽火通信科技股份有限公司 | Method for dispatching absolute priority of data frame based on 802.1 p under Linux system |
CN102916901A (en) * | 2012-10-12 | 2013-02-06 | 烽火通信科技股份有限公司 | Linux software based uplink QoS scheduling method and device |
CN103560970A (en) * | 2013-09-25 | 2014-02-05 | 深圳市共进电子股份有限公司 | Method for realizing downlink speed limitation of network device with multiple LAN ports |
CN103973598A (en) * | 2014-04-16 | 2014-08-06 | 烽火通信科技股份有限公司 | System and method for achieving dynamic bandwidth adjustment of gateway QoS guarantees |
-
2014
- 2014-11-28 CN CN201410708952.9A patent/CN104539555B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101827029A (en) * | 2010-04-21 | 2010-09-08 | 烽火通信科技股份有限公司 | Method for dynamically marking RTP flow by Linux network equipment |
CN102404226A (en) * | 2011-12-06 | 2012-04-04 | 烽火通信科技股份有限公司 | Method for dispatching absolute priority of data frame based on 802.1 p under Linux system |
CN102916901A (en) * | 2012-10-12 | 2013-02-06 | 烽火通信科技股份有限公司 | Linux software based uplink QoS scheduling method and device |
CN103560970A (en) * | 2013-09-25 | 2014-02-05 | 深圳市共进电子股份有限公司 | Method for realizing downlink speed limitation of network device with multiple LAN ports |
CN103973598A (en) * | 2014-04-16 | 2014-08-06 | 烽火通信科技股份有限公司 | System and method for achieving dynamic bandwidth adjustment of gateway QoS guarantees |
Also Published As
Publication number | Publication date |
---|---|
CN104539555A (en) | 2015-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107925587B (en) | Method and apparatus for network slicing | |
US9986472B2 (en) | System and method for configuring a universal device to provide desired network hardware functionality | |
CN108965159B (en) | Service quality control method, equipment and system | |
CN107733799A (en) | A kind of message transmitting method and device | |
CN104394094B (en) | A kind of QoS flow control method and device of uplink and downlink business datum | |
CN104955172A (en) | Method for realizing mobile network virtualization, control platform, virtualization base station and system | |
CN107079070A (en) | Accessed using multiple certificates and traffic differentiation | |
US10630508B2 (en) | Dynamic customer VLAN identifiers in a telecommunications network | |
CN104969648B (en) | Method and system for dispatch radio resource in cellular networks | |
CN105306366B (en) | Data routing method and device | |
CN105577540B (en) | A kind of method for building up of service link, apparatus and system | |
CN105939312A (en) | Data transmission method and device | |
WO2020083301A1 (en) | Network slice method, computer device and storage medium | |
EP2928138B1 (en) | Network resource requirements of traffic through a multiple stage switch network | |
CN107005834A (en) | The method and apparatus of data processing | |
EP3758294A1 (en) | Link configuration method and controller | |
WO2020083102A1 (en) | Information transmission method and network device | |
CN105765553B (en) | Wireless software defines network | |
CN106792679A (en) | A kind of wireless communications method and system | |
RU2598293C1 (en) | Method and apparatus for transmitting standard configuration data of improved system of selecting a transmitting protocol | |
CN102255819B (en) | Virtual local area network (VLAN)-based transparent interconnection of lots of links (TRILL) traffic priority scheduling method | |
CN104539555B (en) | A kind of processing method and processing device of uplink business data | |
WO2017211252A1 (en) | Service flow scheduling method, device, apparatus, and data storage medium | |
CN104468393B (en) | The QoS flow amount control method and device of a kind of business datum | |
CN113453284A (en) | Quality of service (Qos) control method, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181009 |
|
CF01 | Termination of patent right due to non-payment of annual fee |