CN108540404B - Method and device for dynamically adjusting current meter - Google Patents

Method and device for dynamically adjusting current meter Download PDF

Info

Publication number
CN108540404B
CN108540404B CN201710129348.4A CN201710129348A CN108540404B CN 108540404 B CN108540404 B CN 108540404B CN 201710129348 A CN201710129348 A CN 201710129348A CN 108540404 B CN108540404 B CN 108540404B
Authority
CN
China
Prior art keywords
data packet
priority
sent
transmitted
priority adjustment
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
CN201710129348.4A
Other languages
Chinese (zh)
Other versions
CN108540404A (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710129348.4A priority Critical patent/CN108540404B/en
Publication of CN108540404A publication Critical patent/CN108540404A/en
Application granted granted Critical
Publication of CN108540404B publication Critical patent/CN108540404B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order
    • H04L47/6235Variable service order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a method and a device for dynamically adjusting a flow meter, wherein the method comprises the following steps: receiving a data packet sending request, wherein the data packet sending request carries a first data packet to be sent, and the first data packet to be sent carries first priority adjustment information; respectively adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment information and second priority adjustment information carried in the second data packet to be transmitted contained in a data packet to be transmitted transmission queue; and updating the flow table according to the adjusted first priority and the adjusted second priority. By adopting the method provided by the invention, the priority of the data packet to be sent is adjusted according to the priority adjustment information, and the flow table entry is further adjusted dynamically, so that the router is ensured to preferentially send the data packet which has lower priority but is urgently needed to be sent according to the updated flow table entry, and the sending sequence of the data packet to be sent is flexibly adjusted.

Description

Method and device for dynamically adjusting current meter
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for dynamically adjusting a current meter.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
In an IP (Internet Protocol) Network and an SDN (Software Defined Network) Network architecture, a priority field is set in an IP data packet, and the IP data packet with a higher priority can be preferentially transmitted using a Network resource according to the priority field in a transmission process of the IP data packet.
After the SDN is deployed, an SDN controller is introduced to serve as a whole-network centralized control point, and the SDN controller grasps the whole-network topological structure and the network resource condition. The router needs to forward the IP packets according to the flow entries in the SDN controller, and the SDN controller determines which IP packets can be sent by preferentially selecting network resources according to the priority in the flow entries of the IP packets.
In the prior art, an IP data packet sending method is implemented based on a priority in a flow entry of an SDN controller, and once the priority is determined, network resources are selected according to the priority order to send the IP data packet, so that the flexibility is poor. For example, for some IP packets that are urgent and need to be preferentially sent, since the assigned priority is not higher than all other IP packets to be sent, the IP packets that need to be preferentially sent cannot be preferentially sent; similarly, for an IP packet with high priority, other IP packets cannot be sent preferentially because the network resources do not need to be occupied preferentially under specific service requirements. Such an IP packet transmission method, in which the priority is determined and cannot be changed, may affect the actual priority requirement of the IP packet. Therefore, a method for flexibly and dynamically adjusting the priority of the IP packet and thus the flow table entry is needed to meet the actual priority requirement of the IP packet.
Disclosure of Invention
The embodiment of the invention provides a method and a device for dynamically adjusting a flow table, which are used for solving the problems that in the prior art, once the priority of a data packet to be sent is determined, the data packet cannot be modified and the flexibility is poor, so that a router cannot preferentially send the data packet which is in a low priority and is urgently needed to be sent according to a flow table item.
The embodiment of the invention provides a method for dynamically adjusting a flow meter, which comprises the following steps:
receiving a data packet sending request, wherein the data packet sending request carries a first data packet to be sent, and the first data packet to be sent carries first priority adjustment information;
respectively adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment information and second priority adjustment information carried in the second data packet to be transmitted contained in a data packet to be transmitted transmission queue; and are
And updating the flow table according to the adjusted first priority and the adjusted second priority.
The embodiment of the invention provides a device for dynamically adjusting a flow meter, which comprises:
a receiving unit, configured to receive a data packet sending request, where the data packet sending request carries a first data packet to be sent, and the first data packet to be sent carries first priority adjustment information;
an adjusting unit, configured to respectively adjust a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment information and second priority adjustment information carried in the second to-be-transmitted data packet included in a to-be-transmitted data packet transmission queue; and are
And the updating unit is used for updating the flow table according to the adjusted first priority and the adjusted second priority.
The invention has the beneficial effects that:
according to the method and the device for dynamically adjusting the flow table, provided by the embodiment of the invention, the field for indicating the priority adjustment information is added in the data packet, so that the priority of the data packet to be sent can be adjusted according to the priority adjustment information when the data packet is sent, and then the flow table entry is dynamically adjusted, thereby ensuring that the router preferentially sends the data packet to be sent which is lower in original priority but is urgently needed to be sent according to the updated flow table entry, realizing the dynamic adjustment of the flow table, and improving the flexibility of sending the data packet.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of a method for dynamically adjusting a flow chart according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a process of respectively adjusting a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet in the method of dynamically adjusting a flow chart according to the first embodiment of the present invention;
fig. 3 is a schematic flow chart of a dynamic tuning table according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of an application scenario of the method for dynamically adjusting a flow table according to the present invention;
fig. 5 is a schematic structural diagram of a dynamic tuning rectifier device according to a third embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for dynamically adjusting a flow table, which are used for solving the problems that in the prior art, once the priority of a data packet to be sent is determined, the data packet cannot be modified and the flexibility is poor, so that a router cannot preferentially send the data packet which is in a low priority and is urgently needed to be sent according to a flow table item.
It should be noted that the embodiment of the present invention may be applied to a flow table adjustment scenario based on an IP data packet, and an SDN controller adjusts a flow entry for sending the IP data packet according to the flow table adjustment method of the embodiment of the present invention.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
As shown in fig. 1, a schematic flow chart of a method for dynamically adjusting a flow chart according to an embodiment of the present invention may include the following steps:
s11, receiving a data packet sending request, where the data packet sending request carries a first to-be-sent data packet, and the first to-be-sent data packet carries first priority adjustment information.
In specific implementation, a packet header format of a data packet to be sent in the prior art is shown in table 1, and the packet header of the data packet to be sent includes a priority of the data packet to be sent and other data packet header fields. Therefore, it is easy to obtain that, in the prior art, once the priority of a data packet to be sent is determined, the priority cannot be modified, so that some data packets which have lower priorities and are urgently needed to be sent cannot be sent preferentially.
TABLE 1
Priority level Other header fields
In order to enable an SDN controller to flexibly adjust a flow entry and enable a data packet to be sent according to an actual sending requirement of the data packet to be sent, an embodiment of the present invention provides to design a packet header of the data packet to be sent, and before sending the data packet to be sent to the SDN controller, priority adjustment information is added to the packet header of the data packet to be sent, that is, a format of the adjusted packet header of the data packet to be sent is shown in table 2:
TABLE 2
Priority level Priority adjustment information Other header fields
In specific implementation, the meaning of each field in table 2 is:
(1) a priority field: the priority level for indicating the transmission of the data packet to be transmitted can be represented by numbers, for example, the larger the value of the priority level indicates the higher the priority level of the data packet to be transmitted, the priority is given to the priority transmission. When the router sends a data packet to be sent, the priority ranking order of each data packet to be sent needs to be determined according to the flow table, and then the data packets to be sent are sent according to the order of the priority from high to low.
(2) Priority adjustment information: the field is used for executing whether the data packet carrying the priority adjustment information needs to adjust the corresponding priority.
After adding the priority adjustment information to the data packet to be sent, the sending end (terminal or service server) sends the data packet to be sent to the SDN controller, that is, in step S11, the SDN controller receives a data packet sending request, and the data packet carried in the data packet sending request is the adjusted data packet.
It should be noted that there is more than one data packet to be sent currently. For convenience of description, a data packet carried in a data packet sending request currently received by the SDN controller is referred to as a first data packet to be sent, a priority in the first data packet to be sent is referred to as a first priority, and priority adjustment information in the first data packet to be sent is referred to as first priority adjustment information; similarly, other data packets to be sent in the data packet sending queue to be sent except the first data packet to be sent are called second data packets to be sent, and the priority adjustment information in the second data packets to be sent are respectively called second priority and second priority adjustment information.
S12, respectively adjusting a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment information and second priority adjustment information carried in the second to-be-transmitted data packet included in the to-be-transmitted data packet transmission queue.
For example, if the first priority of the first to-be-transmitted packet is lower but the first to-be-transmitted packet is urgently needed to be preferentially transmitted, the first priority adjustment information of the first to-be-transmitted packet may be set, for example, the priority is raised to 5; the SDN controller sends an inquiry to the data packet in the to-be-sent data packet queue, finds that the second priority adjustment information of the second to-be-sent data packet included in the to-be-sent data packet sending queue is lower than the priority and the second priority is 5, and then the SDN controller can interchange the priorities of the two data packets, so that the adjustment of the priority of the first to-be-sent data packet can be realized, and the first to-be-sent data packet can be guaranteed to be sent preferentially.
Preferably, the first priority adjustment information includes a first priority adjustment identifier, and the second priority adjustment information includes a second priority adjustment identifier.
In specific implementation, the priority adjustment identifier may have three states, which may be represented by a binary number of two bits, such as "11" indicating that the priority corresponding to the data packet to be sent needs to be raised; "10" indicates that the priority corresponding to the data packet to be sent is kept unchanged; "00" indicates that the priority corresponding to the data packet to be sent can be reduced; "01" is a reserved bit.
In specific implementation, when step S12 is executed, the method shown in fig. 2 may be used to respectively adjust the first priority corresponding to the first to-be-transmitted data packet and the second priority corresponding to the second to-be-transmitted data packet, including the following steps:
s121, judging whether a second data packet to be sent with the opposite priority adjustment direction to the first data packet to be sent exists or not according to a first priority adjustment identifier carried in the first data packet to be sent and a second priority adjustment identifier carried in a second data packet to be sent contained in a data packet to be sent sending queue; if yes, go to step S122; otherwise, step S123 is executed.
For example, the first to-be-transmitted data packet is a data packet to be upgraded with a first priority, and the format of the packet header of the first to-be-transmitted data packet is shown in table 3, and the second to-be-transmitted data packet included in the to-be-transmitted data packet transmission queue is a data packet capable of reducing the second priority of the second to-be-transmitted data packet, and the format of the packet header of the second to-be-transmitted data packet is shown in table 4. When step S121 is executed, since the first priority adjustment flag of the first to-be-transmitted packet is "11", that is, the first to-be-transmitted packet is the liftable priority flag; if the second priority adjustment flag of the second to-be-sent data packet is "00", that is, the priority adjustment flag is a reducible priority flag, that is, if there is a second to-be-sent data packet whose priority adjustment direction is exactly opposite, then step S122 is executed; if there is no second data packet to be sent with the opposite priority adjustment direction, step S123 is executed, so far, flexible adjustment of the priority of the data packet to be sent can be achieved.
TABLE 3
First priority First priority adjustment identification Other header fields
2 11
TABLE 4
Figure BDA0001239498230000061
Figure BDA0001239498230000071
And S122, respectively adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment identifier and the second priority adjustment identifier.
Based on the description in step S121, after it is determined that there is a second to-be-transmitted data packet with an opposite priority adjustment direction in step S121, the first priority of the first to-be-transmitted data packet may be adjusted to "5", and the second priority of the second to-be-transmitted data packet may be adjusted to "2", so that the adjustment of the priority of the to-be-transmitted data packet is realized.
And S123, keeping a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted unchanged.
Based on the header information of the first to-be-transmitted data packet in step S121, when the second priority adjustment flag in the data packet of the second to-be-transmitted data packet is "10 or 11", it indicates that there is no second to-be-transmitted data packet in the direction opposite to the priority adjustment direction of the first to-be-transmitted data packet, and the first priority corresponding to the first to-be-transmitted data packet and the second priority corresponding to the second to-be-transmitted data packet are kept unchanged.
And S13, updating the flow table according to the adjusted first priority and the adjusted second priority.
After steps S11 and S12 are executed, the priority adjustment of the packet to be sent may be completed, and in order to enable the router to send the packet to be sent according to the adjusted priority, step S13 is executed to update the flow table, and then the updated flow table is sent to the router, so that the router obtains the updated flow table. Therefore, the router can send the data packets to be sent according to the updated flow table, so that the router can be guaranteed to preferentially send some data packets which have lower original priority and need to be sent urgently, and the flexibility of a transmission network is effectively improved.
Preferably, in order to improve the network resource utilization efficiency of the current transport network, in another embodiment of the present invention, before performing step S12 or S121, it may be determined that the current network resources do not satisfy the network resources required by all the data packets to be currently transmitted. That is, only in the case of insufficient network resources, the transmission priority of the data packet can be adjusted in the manner provided in the first embodiment, and in the case of sufficient network resources, that is, when the current network resources satisfy the network resources required by all the data packets to be sent, the SDN controller may, when receiving the data packet to be sent, for example, judging that the transmission priority of the data packet needs to be improved according to the priority adjustment information field carried by the data packet to be transmitted, because the current network resources are sufficient, whether the data packet needing to be sent exists in the current data packet queue to be sent or not does not need to be judged, the priority of the data packet can be directly improved, so that the data packet to be sent can be sent immediately without waiting, and the utilization efficiency of network resources and the sending efficiency of the data packet are improved.
In the method for dynamically adjusting a flow chart provided in the first embodiment of the present invention, after a data packet sending request is received, where the data packet sending request carries a first data packet to be sent, and the first data packet to be sent carries first priority adjustment information, according to the first priority adjustment information and second priority adjustment information carried in a second data packet to be sent included in a data packet sending queue to be sent, a first priority corresponding to the first data packet to be sent and a second priority corresponding to the second data packet to be sent are respectively adjusted; and updating the flow table according to the adjusted first priority and the adjusted second priority. By adopting the method for dynamically adjusting the flow table provided by the embodiment of the invention, the flow table entry is dynamically adjusted by adjusting the priority of the data packet to be sent, so that the router is ensured to preferentially send the data packet which is lower in original priority but is urgently needed to be sent according to the updated flow table entry, and the sending sequence of the data packet to be sent is flexibly adjusted.
Example two
In order to better implement dynamic adjustment of a flow entry used for transmitting a data packet to be transmitted, in the embodiment of the present invention, the first priority adjustment information of the first data packet to be transmitted further includes an available point number, and the adjustment of the flow table is further implemented on the basis of the first embodiment of the present invention by using the available point number. The packet header format of the data packet to be sent in the second embodiment of the present invention is shown in table 5:
TABLE 5
Priority level Priority adjustment identification Number of available points Other header fields
It should be noted that the available points are used to indicate points of the to-be-sent data packet that can be used for transaction, for example, if the priority of the to-be-sent data packet needs to be raised, corresponding points need to be paid from the available points; and the available points are obtained by adjusting the priority of the data packet according to preset basic points, and the basic points are distributed according to the initial priority of the data packet. For example, before a data packet to be sent is sent for the first time, corresponding basic points are allocated to the data packet to be sent according to the priority of the data packet to be sent, if the priority of the data packet to be sent needs to be adjusted, the remaining points after adjustment are available points, wherein the higher the priority is, the higher the basic points allocated to the data packet to be sent are, refer to the corresponding relationship between the priority and the basic points shown in table 6:
TABLE 6
Priority level Number of base points
5 100
4 85
3 70
2 65
1 50
In specific implementation, the specific process of adjusting the priority of the data packet to be sent by using the available points is as follows: as shown in fig. 3, a schematic flow chart of the second embodiment of the present invention for implementing dynamic flow chart adjustment based on the first embodiment of the present invention may include the following steps:
s21, receiving a data packet sending request, where the data packet sending request carries a first to-be-sent data packet, and the first to-be-sent data packet carries first priority adjustment information.
In specific implementation, refer to the execution process of step S11 in the first embodiment.
S22, judging whether a second data packet to be sent with the opposite direction to the priority adjustment direction of the first data packet to be sent exists according to a first priority adjustment identifier carried in the first data packet to be sent and a second priority adjustment identifier carried in a second data packet to be sent contained in a data packet to be sent sending queue, and if so, executing the step S23; otherwise, step S26 is executed.
In specific implementation, refer to the determination process in step S121 in the first embodiment, which is not described herein again.
S23, judging whether the available points are more than or equal to the transaction benchmark points required by the second data packet to be sent; if so, go to step S24; otherwise, step S26 is executed.
Preferably, the second embodiment of the present invention provides two methods for determining the transaction benchmark points required by the second data packet to be sent, which are respectively described in detail below:
the method comprises the following steps: specifying transaction benchmark points by SDN controller
In specific implementation, the SDN controller specifies transaction benchmark points when the priority of the data packet to be sent is adjusted, for example, when the priority adjustment identifier of the data packet to be sent is raised, the transaction benchmark points are different according to the difference of the priorities, which can be referred to as shown in table 7:
TABLE 7
Initial priority Promote to corresponding priority Transaction reference points
1 5 40
1 4 30
1 3 15
2 5 30
2 4 15
…… …… ……
For example, the first to-be-transmitted packet is first transmitted, the first priority adjustment flag of the first to-be-transmitted packet is "11", that is, the raised priority flag, and the first priority of the current first to-be-transmitted packet is "1 level", as described with reference to table 6 and table 7. When determining that the first priority level of the first packet to be sent needs to be raised, the SDN controller first queries that the priority level of the first packet to be sent needs to be raised to several levels, for example, 5 levels, and queries whether a second packet to be sent whose priority level is 5 levels and whose priority level can be lowered exists in a current packet to be sent transmission queue, if so, compares the available points (the available points for first sending is the basic points) with the transaction reference points 40 that are adjusted to 5 levels, so that the available points of the first packet to be sent are easily greater than the transaction reference points 40, then step S24 is executed, that is, the first priority level corresponding to the first packet to be sent is adjusted to 5 levels, and the second priority level corresponding to the second packet to be sent is adjusted to 1 level, at this time, the available points of the first packet to be sent become 10, the available point of the second data packet to be sent is changed into 140, thereby realizing the adjustment of the priority of the data packet to be sent.
The second method comprises the following steps: determining transaction reference points from data packets to be transmitted
In a specific implementation, for example, the first to-be-transmitted packet is transmitted for the first time, the first priority adjustment flag of the first to-be-transmitted packet is "11", that is, the priority adjustment flag is raised, and the first priority of the current first to-be-transmitted packet is "1". When determining that a first data packet to be sent needs to be upgraded to a corresponding first priority, the SDN controller inquires that the data packet to be sent needs to be upgraded to several levels, such as to 5 levels, and inquires whether a second data packet to be sent with a priority of 5 and a priority of 1 is available in a current data packet to be sent transmission queue, if so, the SDN controller sends an inquiry request to the second data packet to be sent with a priority of 5 again, the inquiry request is used for inquiring a transaction reference point required by the second data packet to be sent to reduce the priority of 1 to 1, if so, the determined transaction reference point is 30, the SDN controller determines whether an available point 50 (the available point is equal to the base point for the first time) of the first data packet to be sent is greater than the determined transaction reference point 30, if so, step S24 is executed; otherwise, step S26 is executed.
Further, if a plurality of second to-be-transmitted data packets capable of reducing the self-priority are determined, determining transaction reference points required by each second to-be-transmitted data packet, and then performing the determination process of step S23, respectively, and if a plurality of second to-be-transmitted data packets satisfying the determination condition of step S23 exist, selecting the second to-be-transmitted data packet with the lowest required transaction reference point to be adjusted with the first to-be-transmitted data packet, that is, performing step S24; if the transaction benchmark points required by a plurality of second data packets to be sent are the same under the condition that step S23 is satisfied, optionally performing priority adjustment on one second data packet to be sent and the first data packet to be sent.
Preferably, if there are a plurality of first packets to be transmitted, the first packets to be transmitted may be adjusted according to the priority adjustment procedure of the second embodiment of the present invention, which is not described in detail herein.
Further, if there are multiple first packets to be sent and the destination priorities are the same, the adjustment process of the second embodiment of the present invention may be performed in the order from the low priority to the high priority, and will not be described in detail herein.
S24, respectively adjusting a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier.
And S25, updating the flow table according to the adjusted first priority and the adjusted second priority.
If the determination result in the step S24 is yes, the flow table in the router is updated by using the adjusted priority, so that the router sends the data packet to be sent according to the updated flow table, thereby ensuring that the router can send some data packets which have lower original priority but need to be sent urgently, and effectively improving the flexibility of the transmission network.
And S26, keeping a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted unchanged.
Preferably, in order to improve the utilization efficiency of the network resources of the current transmission network, before step S121 is executed in the second embodiment of the present invention, it is determined that the current network resources do not satisfy the network resources required by all the data packets to be currently sent.
In another method for dynamically adjusting a flow table provided in the second embodiment of the present invention, on the basis of the first embodiment, the first priority adjustment information of the first to-be-transmitted data packet further includes an available point number, and after a data packet transmission request is received, according to a first priority adjustment identifier and the available point number in the first priority adjustment information, a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet are respectively adjusted, so as to update a flow table entry, thereby further flexibly adjusting the priority of the to-be-transmitted data packet, and further meeting an actual priority requirement of the to-be-transmitted data packet.
Application scenarios: SDN controller-based method for dynamically adjusting flow meter
In order to better understand the present invention, a flow table adjusting method provided in an embodiment of the present invention is described by using a data packet to be sent as an IP data packet, and referring to fig. 4, an execution process of an SDN controller is as follows:
s31, receiving an IP data packet sending request, wherein the IP data packet sending request carries a first IP data packet to be sent.
In specific implementation, the header of the first IP data packet to be sent carries first priority adjustment information, where the first priority adjustment information includes a first priority adjustment identifier and available points. Specifically, refer to the description of step S12 regarding the first priority adjustment flag in the first embodiment, and refer to the description regarding the available points in the second embodiment, and repeated descriptions are omitted here.
And S32, reading the header information of the first IP data packet to be sent.
In specific implementation, step S32 is to read the first priority adjustment flag and the available points in the packet header information.
S33, acquiring a first priority adjustment identification of the first IP data packet to be sent.
In specific implementation, the first priority adjustment flag may be in three states, for example, "11" is a priority raising flag; "10" is a keep priority invariant flag; "00" is a priority reduction flag.
Therefore, after the first priority adjustment flag is acquired in step S33, description is made in three branches according to the three states in which the first priority adjustment flag exists. If the first priority adjustment flag is "11", performing step S34; if the first priority adjustment flag is "00", performing step S38; if the first priority adjustment flag is "10", step S312 is performed. The following are introduced separately:
(1) the first priority adjustment flag is "11", then the process is executed as:
s34, judging whether a second IP data packet to be sent with the priority adjustment mark of '00' exists or not, if so, executing a step S35; otherwise, step S37 is executed.
In specific implementation, reference may be made to the execution process of step S121 in the first embodiment, and details are not described here.
S35, judging whether the available points of the first IP data packet to be sent are more than or equal to the transaction reference points required by the second IP data packet to be sent, if so, executing a step S36; otherwise, step S37 is executed.
In specific implementation, reference may be made to the determination process of step S23 in the second embodiment, and the detailed description is omitted here.
And S36, respectively adjusting a first priority corresponding to the first IP data packet to be sent and a second priority of the second IP data packet to be sent.
And S37, keeping a first priority corresponding to the first IP data packet to be sent and a second priority of the second IP data packet to be sent unchanged.
After step S36 or S37 is executed, steps S312 and S313 are executed again to perform update and transmission of the flow table.
(1) If the first priority adjustment flag is "00", the execution procedure is as follows:
s38, judging whether a second IP data packet to be sent with a second priority adjustment mark of '11' exists, if so, executing a step S39; otherwise, step S311 is performed.
In specific implementation, reference may be made to the execution process of step S121 in the first embodiment, and details are not described here.
S39, judging whether the available points of the second IP data packet to be sent are more than or equal to the transaction reference points required by the first IP data packet to be sent, if so, executing the step S310; otherwise, step S311 is performed.
In specific implementation, refer to the determination process of step S23 in step two, which is not described herein again.
S310, respectively adjusting a first priority corresponding to the first IP data packet to be sent and a second priority of the second IP data packet to be sent.
S311, keeping a first priority corresponding to the first IP data packet to be sent and a second priority of the second IP data packet to be sent unchanged.
After step S310 or S311 is executed, steps S312 and S313 are executed again to update and transmit the flow table.
(3) The first priority adjustment flag is "10", then the process is executed as:
and S312, updating the flow table entry.
And S313, sending the updated flow table item to a router, wherein the flow table item is used for triggering the router to send the IP data packet to be sent according to the updated flow table.
EXAMPLE III
Based on the same inventive concept, the embodiment of the present invention further provides a device for dynamically adjusting a current meter, and since the principle of the device for solving the problem is similar to the method for dynamically adjusting the current meter, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 5, a schematic structural diagram of a flow table adjusting device according to a third embodiment of the present invention may include a receiving unit 51, an adjusting unit 52, and an updating unit 53, where:
a receiving unit 51, configured to receive a data packet sending request, where the data packet sending request carries a first data packet to be sent, and the first data packet to be sent carries first priority adjustment information;
an adjusting unit 52, configured to respectively adjust a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment information and second priority adjustment information carried in the second data packet to be transmitted included in a data packet to be transmitted transmission queue;
an updating unit 53, configured to update the flow table according to the adjusted first priority and the adjusted second priority.
In specific implementation, the first priority adjustment information includes a first priority adjustment identifier, and the second priority adjustment information includes a second priority adjustment identifier; and the adjusting unit 52, specifically including: a judging subunit, an adjusting subunit and a holding subunit, wherein:
the judging subunit is configured to judge whether a second to-be-sent data packet in a direction opposite to the priority adjustment direction of the first to-be-sent data packet exists according to a first priority adjustment identifier carried in the first to-be-sent data packet and a second priority adjustment identifier carried in a second to-be-sent data packet included in a to-be-sent data packet transmission queue;
the adjusting subunit is configured to, when the determination result of the determining subunit is yes, respectively adjust a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier;
and the holding subunit is configured to, when the determination result of the determining subunit is negative, hold a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet unchanged.
Further, the first priority adjustment information further includes available points; and the apparatus further comprises a judging unit, wherein:
the judging unit is configured to, when the judging result of the judging subunit is yes, and before the adjusting subunit adjusts the first priority corresponding to the first to-be-transmitted data packet and the second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier, respectively, determine whether the available points are greater than or equal to the transaction reference points required by the second to-be-transmitted data packet;
the adjusting subunit is further configured to, when the determination result of the determining unit is yes, respectively adjust a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier;
the holding subunit is further configured to, when the determination result of the determining unit is negative, hold a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet unchanged.
Preferably, the available points are obtained by adjusting the priority of the data packet according to preset basic points, and the basic points are distributed according to the initial priority of the data packet.
In specific implementation, the apparatus further includes a determining unit, wherein:
the determining unit is configured to determine that the current network resources do not meet the network resources required by all current data packets to be sent before the adjusting unit respectively adjusts the first priority corresponding to the first data packet to be sent and the second priority corresponding to the second data packet to be sent according to the first priority adjustment information and the second priority adjustment information carried in the second data packet to be sent included in the data packet to be sent transmission queue.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same or in multiple pieces of software or hardware in practicing the invention. For example, the dynamic flow table adjusting device provided in the third embodiment of the present invention may be disposed in an SDN controller, and the SDN controller adjusts a flow table used for sending a data packet to be sent.
The dynamic adjustment flow meter device provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned module division is only one of many module division, and if the module division is divided into other modules or not, it should be within the scope of the present application as long as the dynamically adjusting flow table apparatus has the above-mentioned functions.
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 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.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method of dynamically adjusting a flow meter, comprising:
receiving a data packet sending request, wherein the data packet sending request carries a first data packet to be sent, the first data packet to be sent carries first priority adjustment information, and the first priority adjustment information comprises a first priority adjustment identifier;
respectively adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment information and second priority adjustment information carried in the second data packet to be transmitted contained in a data packet to be transmitted transmission queue, wherein the second priority adjustment information comprises a second priority adjustment identifier;
respectively adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment information and second priority adjustment information carried in the second data packet to be transmitted contained in a data packet to be transmitted transmission queue, and specifically includes: judging whether a second data packet to be sent with the opposite priority adjustment direction to the first data packet to be sent exists or not according to a first priority adjustment identifier carried in the first data packet to be sent and a second priority adjustment identifier carried in a second data packet to be sent contained in a data packet to be sent sending queue; if so, respectively adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment identifier and the second priority adjustment identifier; if not, keeping a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted unchanged;
and updating the flow table according to the adjusted first priority and the adjusted second priority.
2. The method of claim 1, wherein the first priority adjustment information further includes a number of available points; and
if the determination result is yes, before adjusting the first priority corresponding to the first to-be-transmitted data packet and the second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier, further comprising:
judging whether the available points are more than or equal to transaction reference points required by the second data packet to be sent;
if so, respectively adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted according to the first priority adjustment identifier and the second priority adjustment identifier;
and if not, keeping a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted unchanged.
3. The method of claim 2, wherein the available points are obtained by adjusting the priority of the data packet according to preset base points, and the base points are distributed according to the initial priority of the data packet.
4. The method according to any one of claims 1 to 3, wherein before adjusting a first priority corresponding to the first data packet to be transmitted and a second priority corresponding to the second data packet to be transmitted respectively according to the first priority adjustment information and second priority adjustment information carried in the second data packet to be transmitted included in a data packet to be transmitted transmission queue, the method further comprises:
and determining that the current network resources do not meet the network resources required by all the current data packets to be sent.
5. An apparatus for dynamically adjusting a current meter, comprising:
a receiving unit, configured to receive a data packet sending request, where the data packet sending request carries a first data packet to be sent, and the first data packet to be sent carries first priority adjustment information, where the first priority adjustment information includes a first priority adjustment identifier;
an adjusting unit, configured to respectively adjust a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment information and second priority adjustment information carried in the second to-be-transmitted data packet included in a to-be-transmitted data packet transmission queue, where the second priority adjustment information includes a second priority adjustment identifier;
the adjusting unit specifically includes: a judging subunit, an adjusting subunit and a holding subunit, wherein:
the judging subunit is configured to judge whether a second to-be-sent data packet in a direction opposite to the priority adjustment direction of the first to-be-sent data packet exists according to a first priority adjustment identifier carried in the first to-be-sent data packet and a second priority adjustment identifier carried in a second to-be-sent data packet included in a to-be-sent data packet transmission queue;
the adjusting subunit is configured to, when the determination result of the determining subunit is yes, respectively adjust a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier;
the holding subunit is configured to, when the determination result of the determining subunit is negative, hold a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet unchanged;
and the updating unit is used for updating the flow table according to the adjusted first priority and the adjusted second priority.
6. The apparatus of claim 5, wherein the first priority adjustment information further comprises a number of available points; and the apparatus further comprises a judging unit, wherein:
the judging unit is configured to, when the judging result of the judging subunit is yes, and before the adjusting subunit adjusts the first priority corresponding to the first to-be-transmitted data packet and the second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier, respectively, determine whether the available points are greater than or equal to the transaction reference points required by the second to-be-transmitted data packet;
the adjusting subunit is further configured to, when the determination result of the determining unit is yes, respectively adjust a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet according to the first priority adjustment identifier and the second priority adjustment identifier;
the holding subunit is further configured to, when the determination result of the determining unit is negative, hold a first priority corresponding to the first to-be-transmitted data packet and a second priority corresponding to the second to-be-transmitted data packet unchanged.
7. The apparatus of claim 6, wherein the available points are obtained by performing packet priority adjustment according to preset base points, and the base points are allocated according to initial packet priorities.
8. The apparatus according to any one of claims 5 to 7, further comprising a determination unit, wherein:
the determining unit is configured to determine that the current network resources do not meet the network resources required by all current data packets to be sent before the adjusting unit respectively adjusts the first priority corresponding to the first data packet to be sent and the second priority corresponding to the second data packet to be sent according to the first priority adjustment information and the second priority adjustment information carried in the second data packet to be sent included in the data packet to be sent transmission queue.
CN201710129348.4A 2017-03-06 2017-03-06 Method and device for dynamically adjusting current meter Active CN108540404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710129348.4A CN108540404B (en) 2017-03-06 2017-03-06 Method and device for dynamically adjusting current meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710129348.4A CN108540404B (en) 2017-03-06 2017-03-06 Method and device for dynamically adjusting current meter

Publications (2)

Publication Number Publication Date
CN108540404A CN108540404A (en) 2018-09-14
CN108540404B true CN108540404B (en) 2021-09-10

Family

ID=63489752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710129348.4A Active CN108540404B (en) 2017-03-06 2017-03-06 Method and device for dynamically adjusting current meter

Country Status (1)

Country Link
CN (1) CN108540404B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11936565B2 (en) * 2018-11-02 2024-03-19 Telefonaktiebolaget Lm Ericsson (Publ) Methods and apparatus for data traffic control in networks
CN111817985B (en) * 2019-04-10 2024-02-02 华为技术有限公司 Service processing method and device
CN111401992A (en) * 2020-03-06 2020-07-10 上海数据交易中心有限公司 Data distribution method and device, storage medium and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098173A (en) * 2006-06-30 2008-01-02 华为技术有限公司 Method for dynamic regulating business service quality of transmission in wireless network
CN101616098B (en) * 2009-08-12 2011-11-16 杭州华三通信技术有限公司 Method and device for dispatching TCP data stream
CN101771983B (en) * 2009-12-14 2014-05-21 中国联合网络通信集团有限公司 Control method and system applied to emergency communication scene
JP6252112B2 (en) * 2013-11-06 2017-12-27 富士通株式会社 Packet processing apparatus, packet processing method, and packet processing system
CN104754014B (en) * 2013-12-31 2019-01-01 中国移动通信集团公司 A kind of adjustment of transfer resource priority control method, apparatus and system
CN105245469B (en) * 2015-08-27 2019-05-28 珠海豹好玩科技有限公司 Data transmission method, device and system
CN105450550B (en) * 2015-11-10 2019-02-12 北京奇虎科技有限公司 The channel priorities method of adjustment and device of router

Also Published As

Publication number Publication date
CN108540404A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN111600930B (en) Micro-service request traffic management method, device, server and storage medium
CN101326845B (en) Method and apparatus for specifying service quality of data grouping transmission
US10057887B2 (en) Method and device for triggering buffer state reporting BSR
CN108540404B (en) Method and device for dynamically adjusting current meter
CN1981491B (en) Methods and devices for supplying quality of service parameters in HTTP messages
CN108810903A (en) A kind of configuration of data transmission and data transmission method and device
WO2012035911A1 (en) In-vehicle data relay device and vehicle control system
CN101411237A (en) Apparatus, method, and computer program product providing persistent uplink and downlink resource allocation
CN103298119B (en) A kind of instruction of running time-frequency resource and confirmation method and device
CN110351057A (en) Information transmission, information determine method and device, storage medium and electronic device
JP2005333434A (en) Radio module
CN105656800A (en) Method and device for transmitting message
CN109617806B (en) Data traffic scheduling method and device
CN104219312A (en) Program installation method and program installation device
CN114666279B (en) Method and system for issuing PCC session management policy in 5G system
CN112995056A (en) Traffic scheduling method, electronic device and storage medium
CN113852554B (en) Data transmission method, device and equipment
CN104780120A (en) Method and device for transmitting files in local area network
CN116388811B (en) Wireless communication method, access point and storage medium relating to space stream communication
CN112671520B (en) Method, device, apparatus and medium for determining downlink control information
US9420583B2 (en) Combined voice and data communications in a distributed hybrid allocation and reservation multiple access mobile wireless network
CN113099504B (en) Communication method and related device of wireless self-organizing network
CN112667260B (en) OTA remote upgrading system and method based on intelligent brain
US20090067345A1 (en) Radio terminal, radio system, and program
CN116405073B (en) Wireless communication method, wireless device, and computer-readable storage medium

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