CN106027411A - Data processing method and device for cloud host system based on QOS - Google Patents
Data processing method and device for cloud host system based on QOS Download PDFInfo
- Publication number
- CN106027411A CN106027411A CN201610515173.6A CN201610515173A CN106027411A CN 106027411 A CN106027411 A CN 106027411A CN 201610515173 A CN201610515173 A CN 201610515173A CN 106027411 A CN106027411 A CN 106027411A
- Authority
- CN
- China
- Prior art keywords
- message
- qos
- sent
- receiving queue
- rank
- 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
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/32—Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Abstract
The invention discloses a data processing method and device for a cloud host system based on QOS. The method comprises the steps of obtaining messages and analyzing the messages, thereby obtaining information structure descriptions of the messages; obtaining target cloud hosts of the messages according to the information structure descriptions, and storing the QOS levels of the target cloud hosts in the information structure descriptions of the to-be-sent messages; judging whether the residual location of a receiving queue of a physical network card exceeds a preset critical value or not; discharging corresponding messages according to the QOS levels if the residual location does not exceed the preset critical value until the residual location exceeds the preset critical value; and sending the messages to the receiving queue of the physical network card. According to the method and the device, under the condition that resources are limited, the reasonable utilization of the resources is ensured, and the high-efficiency operation of the device is realized.
Description
Technical field
The present invention relates to the data in cloud host computer system process, particularly relate to a kind of based on QOS
The data processing method of rank and device.
Background technology
In cloud host computer system, network, when cloud main frame sends resource, can be entered by host
Row forwards, and due to the resource-constrained of host, in general cloud main frame is according to respective configuration
The resource using host of equilibrium, but different user's requests has different priority treatment
Sequentially, therefore, in the case of the resource-constrained of host, how to meet the demand of user with
And the Appropriate application of resource.
Summary of the invention
In order to overcome the deficiencies in the prior art, object of the present invention is to provide a kind of based on
The data processing method of the cloud host computer system of QOS and device, it can solve the problem that and provides at host
In the case of source is limited, meets the demand of user, thus reach the rational utilization of resources.
The purpose of the present invention realizes by the following technical solutions:
The invention provides the data processing method of cloud host computer system based on QOS, including:
S1: obtain message to be sent and message to be sent is resolved obtain message to be sent
Message structure describes;
S2: describe the target cloud main frame drawing described message to be sent according to message structure, and will
The QOS rank of this target cloud main frame stores the message structure of corresponding message to be sent and describes
In;
S3: judge whether the vacant position of the receiving queue of described physical network card exceedes default facing
Dividing value, if it is not, perform step S4, if so, performs step S5;
S4: the message in the receiving queue of described physical network card is abandoned phase according to QOS rank
Corresponding message, returns again to perform step S3;
S5: described message to be sent is sent in the receiving queue of physical network card.
Preferably, step S4 is according to QOS rank from low to high by low for QOS rank
Packet loss.
Preferably, step S4 is according to QOS rank with default ratio dropping packets, institute
State default ratio be described in the message number that abandons account for the ratio of the message number in receiving queue
Example.
Preferably, S21 is also included after described step S2: according to described QOS rank to institute
State message to be sent to be ranked up.
The invention discloses the data processing equipment of a kind of cloud host computer system based on QOS, bag
Include:
Obtain message module, be used for obtaining message to be sent and message to be sent being resolved
Message structure to message to be sent describes;
Obtain QOS level block, for describing the mesh drawing described message according to message structure
Mark cloud main frame, and the QOS rank of this target cloud main frame is stored corresponding message to be sent
Message structure describe in;
Judge module, for judging whether the vacant position of the receiving queue of described physical network card surpasses
Cross the marginal value preset, if it is not, perform step dropping packets module, if so, perform step and send out
Deliver newspaper literary composition module;
Dropping packets module, for by the message in the receiving queue of described physical network card according to
QOS rank abandons corresponding message, returns again to perform judge module;
Send message module, for described message to be sent being sent to the reception team of physical network card
In row.
Preferably, described dropping packets module is used for according to QOS rank from low to high by QOS
The packet loss that rank is low.
Preferably, described dropping packets module is for losing with default ratio according to QOS rank
Abandon message, described default ratio be described in the message number that the abandons message that accounts in receiving queue
The ratio of number.
Preferably, order module is also included, for root after described acquisition QOS level block
According to described QOS rank, described message to be sent is ranked up.
Compared to existing technology, the beneficial effects of the present invention is: the present invention is corresponding by abandoning
Physical network card receiving queue in message, make effective utilization of device resource, simultaneously
Also improve the utilization rate of equipment.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that the present invention provides an embodiment;
Fig. 2 is the apparatus module figure that the present invention provides an embodiment.
Detailed description of the invention
Below, in conjunction with accompanying drawing and detailed description of the invention, the present invention is described further:
As it is shown in figure 1, the invention provides the data of a kind of cloud host computer system based on QOS
Processing method, it is applied to be sent on cloud main frame the data sent on network by host
Process, comprising:
S1: obtain message to be sent and message to be sent is resolved obtain message to be sent
Message structure describes.
In this step, after host receives the message sent on network, message is first by net
The driver of card copies in internal memory, and resolves message and set up corresponding information knot
Structure describes, and described message structure describes and refers to the various information of message, the number of such as message
According to type, size of data, originate, be sent to where etc..
S2: describe the target cloud main frame drawing message to be sent according to message structure, and by this mesh
The QOS rank of mark cloud main frame stores in message structure description.In this step, according to pending
Civilian message structure of delivering newspaper describes and obtains this message to be sent needs to be sent to which target cloud
Main frame, then obtains the QOS rank of this target cloud main frame and stores it in message structure and retouch
In stating, preparation deliver newspaper literary composition time use.This QOS rank can obtain the priority of outgoing packet,
Such as QOS rank is the highest, and the priority representing message is the highest, then this report when sending message
Literary composition will preferentially be sent.
It addition, also include step S21 after described step S2: according to described QOS rank pair
Described message to be sent is ranked up.That is to say according to described QOS rank from high to low to obtaining
The message to be sent got is ranked up.When the reception that message to be sent is sent to physical network card
During queue, preferentially message to be sent high for QOS rank is sent to the reception team of physical network card
In row.
S3: judge whether the vacant position in the receiving queue of described physical network card exceedes default
Marginal value, if it is not, then perform step S4, the most then performs S5.This marginal value refers to thing
The marginal value of the vacant position in the receiving queue of reason network interface card, such as arranging marginal value is Physical Network
The 20% of the number of the position in the receiving queue of card.If in the receiving queue of present physical network interface card
The ratio of the vacant position number number that accounts for position in the receiving queue of physical network card be less than
20%, then perform step S4;If more than 20%, then perform step S5.
Wherein, when message being sent to the receiving queue of physical network card, first determine whether current thing
Whether the vacant position of the receiving queue of reason network interface card exceedes this marginal value, if critical not less than this
Value, then explanation receiving queue is in busy state, then explanation receiving queue is not suitable for receiving report
Literary composition, the most first processes the message in receiving queue;If exceeding this marginal value, then explanation connects
Receive queue and be not on busy state, then can continue to send message in described receiving queue.
Such as, the marginal value preset is 4, and the spare bits of current receiving queue is set to 2, that is to say and works as
The vacant position of front receiving queue is less than this marginal value, illustrates that the receiving queue of physical network card is in
Busy state, it is impossible to be enough further continued for receiving message.
S4: the message in the receiving queue of described physical network card is abandoned phase according to QOS rank
Corresponding message, performs S3 returning.Due to the spare bits in the receiving queue of physical network card
Put not less than this marginal value, then explanation physical network card can not receive message, in order to
Ensure the transmission of message, therefore employing is abandoned the part of message in receiving queue and makes to connect
The vacant position received in queue exceedes this marginal value.It addition, for abandoning which message, due to
The difference of QOS rank, the priority of message is also the most different, therefore abandons which message, then
Judge according to QOS rank.
S5: described message to be sent is sent in the receiving queue of physical network card.
Wherein, when the vacant position of the receiving queue of described physical network card exceedes this marginal value,
Then the receiving queue of physical network card can continue to message, owing to QOS rank is the highest, and its report
Literary composition priority is the highest, therefore, when sending message to the receiving queue of physical network card, preferentially sends out
Send the message that QOS rank is higher.
Preferably, wherein step S4 is: according to QOS rank from low to high by QOS rank
Low packet loss, then performs step S3.Wherein, the position of the receiving queue of physical network card
Put certain space limit, it addition, its physical network card to cloud main frame send message be according to
Fixing mode sends successively, will not be fast with regard to send because of increasing of message, the minimizing of message
Send is slow.Therefore, when message is more, the receiving queue of physical network card can not be by all
Message all receive, so can cause the loss of network blockage or message.Therefore, for thing
The spare bits of receiving queue of reason network interface card installs a marginal value, if the connecing of present physical network interface card
When vacant position exceedes this marginal value in receipts queue, illustrate that this physical network card can continue to report
Literary composition;If vacant position is not less than this marginal value in the receiving queue of present physical network interface card, then say
The receiving queue of this physical network card bright is in busy state, and receiving queue receiving and can not be deposited
Storage message, therefore should abandon segment message and meet different user's need to the transmission ensureing message
Ask.All there is due to message certain priority, therefore according to the priority of message, that is to say
QOS rank, by packet loss low for QOS rank, by the receiving queue of physical network card
Position frees out, it is ensured that continue to next message.The benefit so arranged, both
Ensure that the rationalization distribution of resource, make resource obtain efficient utilization again.
Preferably, wherein said step S4 is to abandon report according to QOS rank with default ratio
Literary composition, then performs step S3, and wherein, described default ratio is that the message number abandoned accounts for
The ratio of the message number in receiving queue.
Wherein, face not less than default when the vacant position in the receiving queue of present physical network interface card
Dividing value, then according to QOS rank with default ratio dropping packets, such as abandon receiving queue
In all messages 20%, and be to abandon the most successively according to QOS rank, enter one
Step makes resource be reasonably utilized.
Such as, QOS rank has 1,2,3 (wherein corresponding priority is 3 > 2 > 1), its
The QOS rank of middle message A is 1, the QOS rank of message B is 2, the QOS of message C
Rank is 3, the QOS rank of message D is 2, the QOS rank of message E is 3, message
The QOS rank of F is 3.Wherein preset ratio is 50%.The marginal value of this physical network card is 2,
Then illustrate when the vacant position in physical network card is less than or equal to 2, the reception of this physical network card
Process busy state.If when physical network card receiving queue in existed message C, E,
B、A.The message being sent in the receiving queue of physical network card is: F, D.Therefore according to
The height preferential dropping packets A of QOS rank, therefore the QOS rank of message A is 1.So
After the order that abandons successively be that (E and C can order in no particular order, it is possible to be for B, E, C
Standard according to other sorts, the time that such as sends, the length etc. of message).This
Sample ensure that different demands and different users carry out rationalizing Resources allocation, it is ensured that resource
Effec-tive Function, the Appropriate application of resource.It addition, dropping packets according to set proportion, by
In the ratio set as 30%, the most just abandon in receiving queue the 30% of all message numbers,
And it is to lose secondary principle the most successively according to QOS rank, then abandons A and B, enter
One step rationalizes Resources allocation.After above-mentioned message A, E or A, B are abandoned, can be by
Message F, D of getting are sent in the receiving queue of physical network card, and are preferential transmissions
Message F, because high than message D of the QOS rank of message F.
As in figure 2 it is shown, the invention discloses the data of a kind of cloud host computer system based on QOS
Processing means, including:
Obtain message module, be used for obtaining message to be sent and message to be sent being resolved
Message structure to message to be sent describes;
Obtain QOS level block, for describing the mesh drawing described message according to message structure
Mark cloud main frame, and the QOS rank of this target cloud main frame is stored corresponding message to be sent
Message structure describe in;
Judge module, for judging whether the vacant position of the receiving queue of described physical network card surpasses
Cross the marginal value preset, if it is not, perform step dropping packets module, if so, perform step and send out
Deliver newspaper literary composition module;
Dropping packets module, for by the message in the receiving queue of described physical network card according to
QOS rank abandons corresponding message, returns again to perform judge module;
Send message module, for described message to be sent being sent to the reception team of physical network card
In row.
Preferably, described dropping packets module is used for according to QOS rank from low to high by QOS
The packet loss that rank is low.
Preferably, described dropping packets module is for losing with default ratio according to QOS rank
Abandon message, described default ratio be described in the message number that the abandons message that accounts in receiving queue
The ratio of number.
Preferably, order module is also included, for root after described acquisition QOS level block
According to described QOS rank, described message to be sent is ranked up.
It will be apparent to those skilled in the art that can technical scheme as described above and structure
Think, make other various corresponding changes and deformation, and all these changes and deformation
Within all should belonging to the protection domain of the claims in the present invention.
Claims (8)
1. the data processing method of cloud host computer system based on QOS, it is characterised in that including:
S1: obtain message to be sent and message to be sent is resolved obtain message to be sent
Message structure describes;
S2: describe the target cloud main frame drawing described message to be sent according to message structure, and will
The QOS rank of this target cloud main frame stores the message structure of corresponding message to be sent and describes
In;
S3: judge whether the vacant position of the receiving queue of described physical network card exceedes default facing
Dividing value, if it is not, perform step S4, if so, performs step S5;
S4: the message in the receiving queue of described physical network card is abandoned phase according to QOS rank
Corresponding message, returns again to perform step S3;
S5: described message to be sent is sent in the receiving queue of physical network card.
2. the data processing method of cloud host computer system based on QOS as claimed in claim 1,
It is characterized in that, step S4 is according to QOS rank from low to high by low for QOS rank
Packet loss.
3. the data processing method of cloud host computer system based on QOS as claimed in claim 1,
It is characterized in that, step S4 is according to QOS rank with default ratio dropping packets, institute
State default ratio be described in the message number that abandons account for the ratio of the message number in receiving queue
Example.
4. the data processing method of cloud host computer system based on QOS as claimed in claim 1,
It is characterized in that, also include S21 after described step S2: according to described QOS rank to institute
State message to be sent to be ranked up.
5. the data processing equipment of cloud host computer system based on QOS, it is characterised in that including:
Obtain message module, be used for obtaining message to be sent and message to be sent being resolved
Message structure to message to be sent describes;
Obtain QOS level block, for describing the mesh drawing described message according to message structure
Mark cloud main frame, and the QOS rank of this target cloud main frame is stored corresponding message to be sent
Message structure describe in;
Judge module, for judging whether the vacant position of the receiving queue of described physical network card surpasses
Cross the marginal value preset, if it is not, perform step dropping packets module, if so, perform step and send out
Deliver newspaper literary composition module;
Dropping packets module, for by the message in the receiving queue of described physical network card according to
QOS rank abandons corresponding message, returns again to perform judge module;
Send message module, for described message to be sent being sent to the reception team of physical network card
In row.
6. the data processing equipment of cloud host computer system based on QOS as claimed in claim 5,
It is characterized in that, described dropping packets module is used for according to QOS rank from low to high by QOS
The packet loss that rank is low.
7. the data processing equipment of cloud host computer system based on QOS as claimed in claim 5,
It is characterized in that, described dropping packets module is for losing with default ratio according to QOS rank
Abandon message, described default ratio be described in the message number that the abandons message that accounts in receiving queue
The ratio of number.
8. the data processing equipment of cloud host computer system based on QOS as claimed in claim 5,
It is characterized in that, after described acquisition QOS level block, also include order module, for root
According to described QOS rank, described message to be sent is ranked up.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610515173.6A CN106027411A (en) | 2016-06-30 | 2016-06-30 | Data processing method and device for cloud host system based on QOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610515173.6A CN106027411A (en) | 2016-06-30 | 2016-06-30 | Data processing method and device for cloud host system based on QOS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106027411A true CN106027411A (en) | 2016-10-12 |
Family
ID=57106205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610515173.6A Pending CN106027411A (en) | 2016-06-30 | 2016-06-30 | Data processing method and device for cloud host system based on QOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106027411A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232455A (en) * | 2008-02-04 | 2008-07-30 | 中兴通讯股份有限公司 | Congestion control method and apparatus |
CN103685061A (en) * | 2013-11-29 | 2014-03-26 | 华为技术有限公司 | Cache data control method and device |
CN104378308A (en) * | 2014-11-19 | 2015-02-25 | 盛科网络(苏州)有限公司 | Method and device for detecting message sending rate |
-
2016
- 2016-06-30 CN CN201610515173.6A patent/CN106027411A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232455A (en) * | 2008-02-04 | 2008-07-30 | 中兴通讯股份有限公司 | Congestion control method and apparatus |
CN103685061A (en) * | 2013-11-29 | 2014-03-26 | 华为技术有限公司 | Cache data control method and device |
CN104378308A (en) * | 2014-11-19 | 2015-02-25 | 盛科网络(苏州)有限公司 | Method and device for detecting message sending rate |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106961741B (en) | A kind of uplink resource allocating method and device | |
CN108536543A (en) | With the receiving queue based on the data dispersion to stride | |
CN102447610B (en) | Method and device for realizing message buffer resource sharing | |
CN103412786B (en) | High performance server architecture system and data processing method thereof | |
CN104067576B (en) | For the system in transmission over networks simultaneous streaming | |
CN104158699B (en) | A kind of collecting method based on priority and segmentation | |
CN104158755A (en) | Method, device and system used for transmitting messages | |
CN109729602B (en) | Link data processing method and device and computer storage medium | |
CN106878197A (en) | A kind of management system and method for the transmission of cloud platform message | |
CN101706827A (en) | Method for caching file of embedded browser | |
EP3035193A1 (en) | Memory module access method and device | |
CN104836747A (en) | Network outbound load balancing method and system | |
CN104038525A (en) | Load balancing method of server system and apparatus | |
CN103729236A (en) | Method for limiting resource using limit of cloud computing users | |
CN111030945A (en) | Disaster recovery method, disaster recovery gateway, storage medium, device and system | |
CN109564516A (en) | A kind of carrier selecting method, terminal device and computer storage medium | |
CN105227665B (en) | A kind of caching replacement method for cache node | |
CN107113323B (en) | Data storage method, device and system | |
CN104348753A (en) | Data packet forwarding method and data packet forwarding device | |
CN106209676A (en) | The data processing method of cloud host computer systems based on many equipment and device | |
CN105591790A (en) | Data communication connection pool management device | |
CN106027411A (en) | Data processing method and device for cloud host system based on QOS | |
US9628366B2 (en) | Methods, systems, and computer readable media for sustaining active control over concurrent session connections | |
CN106685672B (en) | A kind of online charging method and device | |
CN104731524B (en) | The method that capacity register is set |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161012 |