CN106921534A - Data traffic monitoring and managing method and device - Google Patents
Data traffic monitoring and managing method and device Download PDFInfo
- Publication number
- CN106921534A CN106921534A CN201510996558.4A CN201510996558A CN106921534A CN 106921534 A CN106921534 A CN 106921534A CN 201510996558 A CN201510996558 A CN 201510996558A CN 106921534 A CN106921534 A CN 106921534A
- Authority
- CN
- China
- Prior art keywords
- message
- network equipment
- token
- unit
- token bucket
- 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.)
- Withdrawn
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/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
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- 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/215—Flow control; Congestion control using token-bucket
-
- 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/22—Traffic shaping
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to the communications field, more particularly to a kind of data traffic monitoring and managing method and device.Data traffic monitoring and managing method includes:The network equipment receives message;The network equipment determines corresponding first token bucket of the message;The network equipment judges whether priority symbol corresponding with the message;If there is priority symbol corresponding with the message, the network equipment deducts the token with the message data amount equal amount from first token bucket, and is green by the packet labeling;If there is no priority symbol corresponding with the message, the network equipment marks the color of the message according to the quantity of token in first token bucket.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of data traffic monitoring and managing method and device.
Background technology
Service quality (English:Quality of service, referred to as:QoS) be one kind according to user's request
The technology for Internet resources being allocated and being dispatched.Traffic policing (English in QoS:traffic
Policing) technology, is the technology of the flow of supervisory network equipment.The network equipment passes through the network to each
The user that equipment accesses network presets bandwidth.By traffic policing, user is passed through into the network equipment
The data traffic of transmission is limited in user bandwidth range set in advance.
When the data traffic that the user is sent to the network equipment is more than the bandwidth set in advance, should
The network equipment abandons or postpones data of the forwarding beyond bandwidth set in advance.
Above-mentioned traffic policing mechanism is generally using token bucket (English:Token bucket) realize.Token
Bucket is method of the network equipment to needing the data traffic of forwarding to be supervised.Each token in token bucket
Represent a data volume for unit.Each user one token bucket of correspondence.The network equipment in token bucket with
Fixed speed addition token.The network equipment is equal to its corresponding use to the speed that token is added in token bucket
The bandwidth set in advance at family.When the network equipment receives message, it is determined that order corresponding with the message
Whether there is available token in board bucket.Mean to forward the message in the network equipment with available token
Within the user of message bandwidth set in advance, therefore the network equipment forwards the message.In net
Described in network device forwards during message, the data volume sum and the message of representative are also deducted from the token bucket
The equal token of data volume.
However, a user may be different for the bandwidth demand of different types of business.As the user
When being sent to the total data flow of the network equipment beyond bandwidth set in advance, user needs network
Equipment ensures that priority business high is forwarded first, or needs the network equipment to ensure the industry of high priority
The ratio that business is forwarded is not less than ratio set in advance.
Traditional token bucket methodology to traffic policing, the network equipment can only according to user's bandwidth set in advance,
Judge whether currently received message can be forwarded.Cannot first for user ensures priority business high
It is forwarded, cannot more ensures that the ratio that the business of high priority is forwarded is not less than ratio set in advance,
Demand with user is not inconsistent.
The content of the invention
This application provides a kind of data traffic monitoring and managing method and device, to realize number by token bucket
According under the scene of traffic policing, realize when total data flow exceedes and presets bandwidth, according to user's
Demand priority ensures that priority business high is forwarded.
First aspect, there is provided a kind of data traffic monitoring and managing method, methods described includes:
The network equipment receives message.
The network equipment determines corresponding first token bucket of the message.
The network equipment judges whether priority symbol corresponding with the message.
If there is priority symbol corresponding with the message, the network equipment is from first token bucket
The middle token deducted with the message data amount equal amount, and be green by the packet labeling.
If there is no priority symbol corresponding with the message, the network equipment is according to the described first order
The quantity of token, marks the color of the message in board bucket.
By such scheme, priority symbol corresponding with the message is judged whether, can preferentially turned
The high priority message at hair family, directly deducts the token of respective numbers, so that preferably from token bucket
Realize according to user's request, the preferential business for ensureing high priority is forwarded.
Optionally, state after the network equipment receives message, and determine corresponding first token of the message
Before bucket, methods described also includes:
The network equipment determines corresponding second token bucket of the message;
The color of network equipment message according to the number tag of token in second token bucket;
If the message of token number tag of the network equipment in second token bucket
Color is green, and the network equipment creates the corresponding priority symbol of the message.
Optionally, the network equipment determines the second token bucket according to the message, including:
The network equipment obtains field according to instruction set in advance from the message, according to the word
Section determines the second token bucket.
Optionally, the network equipment determines the second token bucket according to the message, including:
The network equipment determines the second token bucket according to the port for receiving the message.
Optionally, after the network equipment receives the message, corresponding first order of the message is determined
Before board bucket, methods described also includes:
The network equipment obtains field according to instruction set in advance from the message;
If the value of the field is preset value, it is corresponding excellent that the network equipment creates the message
First identify.
A kind of second aspect, there is provided data traffic maintenance device, described device includes receiving unit, the
One determining unit, judging unit and the first indexing unit, wherein:
The receiving unit is used to receive message;
First determining unit is used to determine corresponding first token of message that the receiving unit is received
Bucket;
The judging unit is used to judge whether priority symbol corresponding with the message;
If the judging unit judges there is priority symbol corresponding with the message, first mark
Unit is used to deduct the token with the message data amount equal amount from first token bucket, and will
The packet labeling is green;
If the judging unit judges do not exist priority symbol corresponding with the message, first mark
Note unit is used for the quantity according to token in first token bucket, marks the color of the message.
Optionally, described device also includes the second determining unit, the second indexing unit and creating unit,
Wherein,
Second determining unit is used for, after the receiving unit receives the message and described
Before first determining unit determines corresponding first token bucket of the message, the message corresponding is determined
Two token buckets;
Second indexing unit is used for, and is reported according to the number tag of token in second token bucket
The color of text;
The creating unit is used for, if token number of the indexing unit in second token bucket
The color for measuring the message of mark is green, and the creating unit creates the corresponding preferential mark of the message
Know.
Optionally, second determining unit specifically for:
Field is obtained from the message according to instruction set in advance, the second order is determined according to the field
Board bucket.
Optionally, second determining unit specifically for:
The port of the message is received according to the receiving unit, the second token bucket is determined.
Optionally, described device also includes acquiring unit and creating unit, and the acquiring unit is used in institute
State after receiving unit receives the message, and first determining unit determines that the message is corresponding
Before first token bucket, the network equipment obtains field according to instruction set in advance from the message;
If the value of the field is preset value, it is corresponding excellent that the creating unit creates the message
First identify.
By such scheme, priority symbol corresponding with the message is judged whether, can preferentially turned
The high priority message at hair family, directly deducts the token of respective numbers, so that preferably from token bucket
Realize according to user's request, the preferential business for ensureing high priority is forwarded.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality
The accompanying drawing to be used needed for example or description of the prior art is applied to be briefly described, it should be apparent that, under
Accompanying drawing in the description of face is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of application scenarios schematic diagram provided in an embodiment of the present invention.
Fig. 2 is the flow chart that a kind of use token bucket realizes data traffic monitoring and managing method.
Fig. 3 is a kind of flow chart of data traffic monitoring and managing method provided in an embodiment of the present invention.
Fig. 4 is the flow chart of another data traffic monitoring and managing method provided in an embodiment of the present invention.
Fig. 5 is a kind of flow chart of data traffic maintenance device provided in an embodiment of the present invention.
Specific embodiment
The network architecture and business scenario of embodiment of the present invention description are to more clearly illustrate this hair
The technical scheme of bright embodiment, does not constitute the restriction for technical scheme provided in an embodiment of the present invention,
Those of ordinary skill in the art understand, with the differentiation and the appearance of new business scene of the network architecture, this hair
The technical scheme that bright embodiment is provided is equally applicable for similar technical problem.
ISP's (English:Internet service provider, referred to as:ISP fortune)
In battalion's business's network, Provider Edge (English:Provider edge, referred to as:PE) equipment would generally be right
The data traffic sent by the user of the PE equipment access operator networks carries out traffic policing.
As shown in figure 1, user 1 and user 2 are by the access network 2 of the network equipment 105, the network equipment
105 according to user 1 and user 2 each bandwidth set in advance to user 1 and user 2 to the network equipment
105 data traffics for sending are supervised.
When mutually sending data between two networks of different operators, a PE for carrier network
The flow of the data that equipment can also send to another carrier network to the PE equipment is supervised.
For example, the network equipment 102 in network 1 shown in Fig. 1 sends to the network equipment 103 in network 2
Data.The network equipment 102 presets bandwidth to net to the network equipment 103 to the transmission data of network 1
The data traffic that network equipment 103 sends carries out traffic policing, and the network equipment 103 is also to the network equipment 102
The bandwidth that presets for sending data to network 2 is supervised to the data traffic that the network equipment 102 sends
Pipe.
For example, the network equipment 101, can to the network equipment 105, user 1 and user 2
Be router, the network switch, fire wall, WDM, Packet Transport Network equipment, base station,
Base station controller or data center etc..
For sake of convenience, in the application, the equipment of data, referred to as institute will be sent by certain network equipment
State the user of certain network equipment.For example, the user mentioned in the application, both can be shown in Fig. 1
Being set to network shown in the user 1 and user 2, or Fig. 1 of data is sent to the network equipment 105
Standby 103 network equipments 102 for sending data.
The network equipment presets bandwidth to each user.For example, the bandwidth can be by the grade of service
Agreement (English:Service-level agreement, referred to as:SLA) set, it is also possible to by stream
Amount adjustment agreement (English:Traffic conditioning agreement, referred to as:TCA) set.
When the data traffic that user is sent to the network equipment is more than bandwidth set in advance, the network equipment
Forwarding will be abandoned or postponed beyond the data for presetting bandwidth.
Under normal circumstances, the network equipment to the oversight mechanism of flow generally by token bucket algorithm to being sent to
State the network equipment message whether in the network equipment to being carried out within such message bandwidth set in advance
Mark, and further determined whether that message is carried out the treatment such as to forward according to mark.For example, being noted in request
Solution (English:Request for Comments, RFC) 2697 define single-rate three-color marker (English
Text:Single Rate Three Color Marker, referred to as:SrTCM), it is fixed in RFC2698 standards
Justice a two rate three color marker (English:Two Rate Three Color Marker, referred to as:trTCM).
The network equipment can use committed access rate (English to bandwidth set in advance described in message:
Committed access rate, referred to as:CAR) describe.For example, in trTCM, net
Network equipment can be by committed information rate (English to each user bandwidth set in advance:committed
Information rate, referred to as:CIR) and peak information rate (English:Peak information rate,
Referred to as:PIR) describe.CIR refers to the bandwidth that network equipment promissory warranty user transmits data, PIR
It refer to the network equipment when user's transmitted data amount is larger, it is allowed to the bandwidth that user can additionally use.Net
Network equipment ensures user can be forwarded with being not more than the data of CIR transmission by the network equipment.In net
Network equipment ensure that after the business that each user is transmitted within the CIR, if the network equipment also have it is surplus
Remaining bandwidth, the then data that can forward user to be transmitted more than CIR and less than or equal to PIR;The network equipment
Abandon or postpone data of the forwarding user to be transmitted more than PIR.
Accordingly, the token bucket of trTCM includes C barrels and P barrels.Increased with CIR in described C barrels and made
Board, it is described P barrels in token is increased with PIR, until the token quantity in corresponding bucket reaches and presets
The upper limit.For example, the upper limit set in advance is by Committed Burst Size (English in described C barrels:Committed
Burst Size, referred to as:CBS) describe, it is described P barrels in the upper limit set in advance happened suddenly by peak value
Size (English:Peak Burst Size, referred to as:PBS) describe.
Each token represents a data traffic for unit, the i.e. network equipment in the message that the network equipment is received
A data for unit are often forwarded, then 1 token is deducted from corresponding token bucket.For example, an order
Board can represent a bit (English:Bit), a byte (English:) or eight hytes Byte
(English:octet).Token bucket increases token with certain speed, refers to increase in token bucket in the unit interval
Plus token quantity corresponding to data volume, it is equal with the speed.Such as CIR is 100Mbit/s,
Token is added with CIR, 1 token represents 1bit, refers to increase 1M tokens per second.
Below by taking trTCM as an example, the method to being realized traffic policing by CAR is described in detail.
Fig. 2 is shown a kind of network equipment and the method flow that data traffic is supervised is realized using trTCM
Figure.After the network equipment receives message, the corresponding token bucket of the message is determined, the token bucket includes
P barrels and C barrels.Then, the network equipment performs following steps.
S201, the network equipment determines the token quantity in P barrels.If the token quantity in described P barrels is small
In 0, S202 is performed, if token quantity is more than 0 in described P barrels, perform S203.
The packet labeling is red by S202, the network equipment.Specifically, labeled as red,
Mean that the corresponding user's current data flow of the token bucket has exceeded PIR.Further, network sets
It is standby to abandon or postpone to send the message.
S203, the network equipment determine it is described C barrels in token quantity.If in described C barrels
Token quantity is less than 0, performs S204.If the token quantity in described C barrels is more than 0, S205 is performed.
The packet labeling is yellow by S204, the network equipment, is deducted accordingly from described P barrel
Token number.Specifically, labeled as yellow, it is meant that the corresponding user's current data stream of the token bucket
Amount is not above PIR more than CIR.Further, whether the network equipment detection currently has
Remaining bandwidth.If the network equipment currently has remaining bandwidth, the message is forwarded.If described
The network equipment then abandons or postpones to send the message currently without remaining bandwidth.Additionally, the network
Equipment also deducts corresponding token number from P barrels.For example, the size of the message is 640bit, each
Token represents 1bit, then 640 tokens are deducted from described P barrels.
The packet labeling is green by S205, the network equipment, from described P barrels and described C barrels
It is middle to deduct corresponding token number respectively.Specifically, labeled as green, it is meant that the token bucket correspondence
User's current data flow be less than or equal to CIR.Further, the network equipment forwards the message.
It is green by packet labeling, refers to that corresponding with the message first is set in the network equipment
Mark, described first identifies for indicating the network equipment to the forwarding of the message in the message pair
Within the CIR for answering, the network equipment should forward the message.It is red by packet labeling, refers to
The second mark corresponding with the message is set in the network equipment, and described second identifies for indicating
Forwarding of the network equipment to the message sets beyond the corresponding CIR of the message, and the network
It is standby to abandon or postpone the forwarding message.It is yellow by the packet labeling, refers in the network
The 3rd mark corresponding with the message is set in equipment, and the described 3rd identifies for indicating the network to set
The standby forwarding to the message is beyond the corresponding CIR of the message, but the network equipment is to described
Message forwarding, discarding postpone forwarding, depending on the bandwidth of the network equipment current residual.
For example, the network equipment 105 shown in Fig. 1 can be using above-mentioned token bucket respectively to user 1
The data traffic sent with user 2 is supervised, and the network equipment 103 shown in Fig. 1 can use above-mentioned
Token bucket is supervised to the data traffic that the network equipment 102 sends.
However, same user is for different all types of business, it is understood that there may be different bandwidth demands.
That is, when the user is sent to the total data flow of the network equipment beyond bandwidth set in advance,
User needs the network equipment to ensure that priority business high is forwarded first, or needs the network equipment to ensure
The ratio that the business of high priority is forwarded is not less than ratio set in advance.
For example, user sends service message and operational administrative within a period of time to the network equipment
Safeguard (English:Operations, administration and maintenance, referred to as:OAM) report
The total flow of text, the service message and OAM message is more than CIR.And OAM message exists for user
Communication plays an important roll in network, and flow occupancy is smaller, therefore user needs always to be flowed in data
When amount is more than CIR, the preferential forwarding for ensureing OAM message.In scheme shown in Fig. 2, if
The service message for first reaching the network equipment uses up the token in the corresponding token bucket of the user, then described
Before token bucket not yet adds enough tokens, the OAM message reaches the network equipment, then may be used
Can be abandoned by the network equipment.Actual demand with user is not inconsistent.
Fig. 3 shows a kind of flow of data traffic monitoring and managing method provided in an embodiment of the present invention.
S301, the network equipment receives message.
For example, the network equipment can be the network equipment 101 shown in Fig. 1 to the network equipment 105
In a network equipment.
S302, the network equipment determines corresponding first token bucket of the message.
For example, first token bucket is the token supervised for the total flow to first user
Bucket, the message is the message that the first user sends to the network equipment.Possible show in one kind
In example, the network equipment determines the first user by receiving the port of the message.In another kind
In possible example, the network equipment determines the first user by the field in the message.
For example, the field can be VLAN (mark (English:virtual local area network
Identifier, referred to as:VID) field.The network equipment is by inquiring about VID set in advance and user
Mapping, determine the first user.
Optionally, the network equipment obtains field according to instruction set in advance from the message.Such as
The value of really described field is preset value, and the network equipment creates the corresponding priority symbol of the message.
For example, specify in SLA of the network equipment with the first user, described first
Total number of users exceedes when presetting bandwidth of the first user according to flow, and OAM message is ensured first
Forwarding.The message that the network equipment is received is ethernet frame (English:Ethernet frame),
The network equipment is from the ethernet frame stem (English in the message:Header too net class is extracted in)
Type (English:EtherType) field, for 0x8902, (16 enter the value of the EtherType fields
System), i.e., described message is OAM message, then the network equipment establishment message is corresponding preferential
Mark.
For example, the network equipment sets the message corresponding metadata (English by instructing:
Metadata in), the priority symbol is write in the metadata.For example, the message pair
In the metadata for answering, with the priority symbol, the priority symbol is 0, it is meant that described
Message does not exist corresponding priority symbol.The network equipment is set to 1 by by the priority symbol,
Create the priority symbol.
For example, if defining CIR in SLA between the network equipment and the first user
And PIR, then first token bucket can be the token bucket including C barrels He P barrels shown in Fig. 2.Such as
CIR is specify only in SLA between the really described network equipment and the first user, then first order
Board bucket can also be the token bucket of srTCM specified in RFC2697.First token bucket can be with
C barrels shown in Fig. 2 is only included, i.e., when having available token in C barrels, the network equipment is by C
Labeled as green, when not having available token in described C barrels, the network equipment marks C barrels to bucket
It is red.
S303, the network equipment determines whether there is priority symbol corresponding with the message.If deposited
In priority symbol corresponding with the message, S304 is performed;If there is no corresponding with the message excellent
First identify, perform S305.
For example, the priority symbol can be the priority symbol of establishment in S302.The network sets
It is standby that it is marked to the message in the token quantity by the message in first token bucket
Before, the corresponding metadata of the message is first read, whether include in the retrieval metadata described
Priority symbol.For example, the metadata includes priority symbol, value of the priority symbol etc.
In 1, it is meant that the message has corresponding priority symbol;The value of the priority symbol is equal to 0, meaning
Taste the message in the absence of corresponding priority symbol.
S304, the network equipment is deducted and the message data amount equal numbers from first token bucket
The token of amount, and be green by the packet labeling.
It should be noted that being deducted from first token bucket and the message data amount equal amount
Token, it, according to the corresponding token bucket algorithm of first token bucket, is being green by the packet labeling to refer to
Corresponding token is deducted respectively from some sub- token bucket in first token bucket during color.For example,
First token bucket includes as shown in Figure 2 C barrels and P barrels of the two sub- token bucket, then according to Fig. 2
Shown token bucket algorithm, the network equipment is deducted and the report from described C barrels and in described P barrels
The token of literary data volume equal amount.
In a kind of possible example, no matter the available token quantity in first token bucket more than etc.
In 0,0 is also less than, the network equipment is deducted and the message data from first token bucket
Measure the token of equal amount.I.e. for exist correspondence priority symbol message, no matter the current data of user
Flow exceedes how much preset bandwidth, and the network equipment ensures the message that there is the priority symbol
It is forwarded.
In alternatively possible example, the network equipment sets the first preset value, described first
Preset value is less than 0.If available token bucket quantity is more than or equal to institute in first token bucket
When stating the first preset value, the network equipment is deducted and the message data amount from the first token bucket
The token of equal amount;If the first token bucket quantity is less than first preset value, i.e. institute
The quantity of token in the first token bucket is stated for negative, and the absolute value of the negative presets less than first
The absolute value of value, it is meant that the network equipment is carried preferentially due to ensureing in the message that the user sends
The flow of the message of mark, forwarded quite in the case where bandwidth is preset beyond the user
The message of quantity, therefore the network equipment cannot again forward message of the user with priority symbol.
For example, first preset value is -2Mbit.
S305, the network equipment marks the message according to the quantity of token in first token bucket
Color.
It should be noted that in embodiment shown in Fig. 3, to realize the function of traffic policing, described
One token bucket needs at least can be by packet labeling into green or red both colors.First token
Whether bucket can be yellow by the packet labeling, or labeled as more other colors, the application does not do
Limitation.
Fig. 4 shows a kind of flow of data traffic monitoring and managing method provided in an embodiment of the present invention.
S401, the network equipment receives message.
S402, the network equipment determines corresponding second token bucket of the message.
S403, the face of network equipment message according to the number tag of token in the second token bucket
Color.If the message of token number tag of the network equipment in second token bucket
Color is green, performs S404 and its subsequent step;If the network equipment is according to the described second order
The color of the message of the token number tag in board bucket is not green, performs S405 and its follow-up step
Suddenly.
S404, the network equipment creates the corresponding priority symbol of the message.
S405, the network equipment determines corresponding first token bucket of the message.
S406, the network equipment determines whether there is priority symbol corresponding with the message.If deposited
In priority symbol corresponding with the message, S407 is performed;If there is no corresponding with the message excellent
First identify, perform S408.
S407, the network equipment is deducted and the message data amount equal amount from the first token bucket
Token, and be green by the packet labeling.
S408, the network equipment marks the message according to the quantity of token in first token bucket
Color.
For example, the message that the network equipment is received is the message of first user.The first user
SLA in specify first user CIR be 100Mbit/s, PIR is 120Mbit/s.Wherein, it is described
First user needs video traffic to ensure 30Mbit/s.Specifically, the first user needs video industry
Business ensures that 30Mbit/s refers to, if the video traffic flow is less than or equal to 30Mbit/s, total data
Flow is more than 100Mbit/s, then the video traffic needs complete in the corresponding token bucket of the first user
Portion is labeled as green;If the video traffic flow be more than 30Mbit/s, in the video traffic
Part within 30Mbit/s needs all to be marked in the corresponding token bucket of the first user,
Beyond the part of 30Mbit/s the remaining 70Mbit/s of CIR are shared with other business of the first user.
The second token bucket in S402 includes C barrels that adds token with the speed of 30Mbit/s.If institute
The message that message is video traffic is stated, then the network equipment determines the message correspondence second token
Bucket.For example, after the network equipment receives the message, the VID field of the message is obtained,
The VID field identifies the first user simultaneously and the message is video traffic.For example, institute
State VID field to be represented by 3 hexadecimal numbers, highest order is used to identify user, when highest order is 1,
Represent that the user is first user;Lowest order is used for mark business-type, when lowest order is 1, table
Show that the type of service is video traffic.When the value of the VID field is 0x101, the network sets
It is standby to determine that the message is the video traffic message of first user, so that it is determined that message correspondence described the
Two token buckets.
In a kind of possible example, second token bucket only includes described C barrels.In S403,
The network equipment judge it is described C barrels in whether include available token, if there is available token,
It is then green by the packet labeling;Then it is red by the packet labeling if there is no available token
Color.
In alternatively possible example, second token bucket include it is described C barrels, and with 30Mbit/s
Speed addition P barrels of token.In S403, flow mark of the network equipment according to Fig. 2
Remember the color of the message.
Can refer to such as RFC2698 it should be noted that there is available token in the application, in token bucket
In the trTCM of offer similar token bucket algorithm, the corresponding data volume of the quantity of token in the token bucket
More than the data volume carried in the message;May also mean that the token bucket being similar in flow as described in Figure 2
In algorithm, the corresponding data volume of the quantity of token is more than 0 in the token bucket.
For example, the network equipment described in S404 is by instructing the setting message corresponding
In metadata, the priority symbol is write in the metadata.
For example, corresponding first token bucket of the message is determined in S405, is the first user pair
The token bucket answered.For example, the token bucket includes C barrels and P barrels, described C barrels with 100Mbit/s's
Speed adds token, and the described P barrels speed with 120Mbit/s adds token.
The concrete mode of S406 to S408, the specific implementation with S303 to S305 is identical, no
Repeat again.
Fig. 5 shows a kind of schematic diagram of data traffic maintenance device provided in an embodiment of the present invention.
As shown in figure 5, data traffic maintenance device 500 includes receiving unit 501, the first determining unit
502, the indexing unit 504 of judging unit 503 and first.
The receiving unit 501 is used to receive message;
First determining unit 502 is used to determine the message corresponding that the receiving unit 501 is received
One token bucket;
The judging unit 503 is used to judge whether priority symbol corresponding with the message;
If the judging unit 503 judges there is priority symbol corresponding with the message, described first
Indexing unit 504 is used to deduct the order with the message data amount equal amount from first token bucket
Board, and be green by the packet labeling;
If the judging unit 503 judges do not exist priority symbol corresponding with the message, described the
One indexing unit 504 is used for the quantity according to token in first token bucket, marks the face of the message
Color.
Optionally, described device 500 also include the second determining unit 505, the second indexing unit 506 with
And creating unit 507.
Second determining unit 505 is used for, after the receiving unit 501 receives the message,
And before first determining unit 502 determines corresponding first token bucket of the message, it is determined that described
Corresponding second token bucket of message;
Second indexing unit 506 is used for, according to the number tag institute of token in second token bucket
State the color of message;
The creating unit 507 is used for, if second indexing unit 506 is according to second token
The color of the message of the token number tag in bucket is green, creates the corresponding preferential mark of the message
Know.
In a kind of possible example, second determining unit 505 specifically for:According to presetting
Instruction obtain field from the message, the second token bucket is determined according to the field.
In alternatively possible example, second determining unit 505 specifically for:Connect according to described
The port that unit 501 receives the message is received, the second token bucket is determined.
Optionally, described device 500 also includes acquiring unit and creating unit, and the acquiring unit is used for
After the receiving unit 501 receives the message, and first determining unit 502 determines institute
Before stating corresponding first token bucket of message, the network equipment is according to instruction set in advance from the report
Field is obtained in text;If the value of the field is preset value, the creating unit creates the report
The corresponding priority symbol of text.
Method shown in Fig. 5, in can apply to the method for Fig. 3 embodiments or the method for Fig. 4 embodiments,
Realize the function of its network equipment.Other additional functions, the side of refer to that described device 500 can be realized
To the description of control chip in method embodiment, repeat no more herein.
It is apparent to those skilled in the art that, it is for convenience and simplicity of description, above-mentioned to retouch
The specific work process of the system, apparatus, and unit stated, may be referred to the correspondence in preceding method embodiment
Process, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, device and side
Method, can realize by another way.For example, device embodiment described above is only to illustrate
Property, for example, the division of the unit, only a kind of division of logic function can be with when actually realizing
There is other dividing mode, such as multiple units or component can be combined or be desirably integrated into another and be
System, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection, can be electrical or other forms.
It is described as separating component illustrate unit can be or may not be it is physically separate, make
For the part that unit shows can be or may not be physical location, you can with positioned at a place,
Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Person whole units realize the purpose of this embodiment scheme.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to which two or more units are integrated in a list
In unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds software
The form of functional unit is realized.Such as, detector, transmitter, receiver, obtaining unit can lead to
Cross general central processor CPU or application specific integrated circuit (Application Specific Integrated
Circuit, ASIC) or field programmable gate array (Field-Programmable Gate Array,
FPGA) realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can store in a computer
In read/write memory medium.Above-mentioned SFU software functional unit storage is in a storage medium, including some fingers
Order is used to so that a computer equipment (can be personal computer, server, or network equipment etc.)
Perform the part steps of each embodiment methods described of the invention.And foregoing storage medium includes:USB flash disk,
Mobile hard disk, read-only storage (Read-Only Memory, abbreviation ROM), random access memory
Device (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various can be stored
The medium of program code.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than to it
Limitation;Although being described in detail to the present invention with reference to the foregoing embodiments, the ordinary skill of this area
Personnel should be understood:It can still modify to the technical scheme described in foregoing embodiments, or
Person carries out equivalent to which part technical characteristic;And these modifications or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a kind of data traffic monitoring and managing method, it is characterised in that including:
The network equipment receives message;
The network equipment determines corresponding first token bucket of the message;
The network equipment judges whether priority symbol corresponding with the message;
If there is priority symbol corresponding with the message, the network equipment is from first token bucket
The middle token deducted with the message data amount equal amount, and be green by the packet labeling;
If there is no priority symbol corresponding with the message, the network equipment is according to the described first order
The quantity of token, marks the color of the message in board bucket.
2. method according to claim 1, it is characterised in that the network equipment receive message it
Afterwards, and before corresponding first token bucket of the determination message, methods described also includes:
The network equipment determines corresponding second token bucket of the message;
The color of network equipment message according to the number tag of token in second token bucket;
If the message of token number tag of the network equipment in second token bucket
Color is green, and the network equipment creates the corresponding priority symbol of the message.
3. method according to claim 2, it is characterised in that the network equipment is according to the report
Text determines the second token bucket, including:
The network equipment obtains field according to instruction set in advance from the message, according to the word
Section determines the second token bucket.
4. method according to claim 2, it is characterised in that the network equipment is according to the report
Text determines the second token bucket, including:
The network equipment determines the second token bucket according to the port for receiving the message.
5. the method according to right 1, it is characterised in that the network equipment receive the message it
Afterwards, before determining corresponding first token bucket of the message, methods described also includes:
The network equipment obtains field according to instruction set in advance from the message;
If the value of the field is preset value, it is corresponding excellent that the network equipment creates the message
First identify.
6. a kind of data traffic maintenance device, it is characterised in that including receiving unit, the first determining unit,
Judging unit and the first indexing unit, wherein:
The receiving unit is used to receive message;
First determining unit is used to determine corresponding first token of message that the receiving unit is received
Bucket;
The judging unit is used to judge whether priority symbol corresponding with the message;
If the judging unit judges there is priority symbol corresponding with the message, first mark
Unit is used to deduct the token with the message data amount equal amount from first token bucket, and will
The packet labeling is green;
If the judging unit judges do not exist priority symbol corresponding with the message, first mark
Note unit is used for the quantity according to token in first token bucket, marks the color of the message.
7. method according to claim 6, it is characterised in that described device also includes that second determines
Unit, the second indexing unit and creating unit, wherein,
Second determining unit is used for, after the receiving unit receives the message and described
Before first determining unit determines corresponding first token bucket of the message, the message corresponding is determined
Two token buckets;
Second indexing unit is used for, and is reported according to the number tag of token in second token bucket
The color of text;
The creating unit is used for, if order of second indexing unit in second token bucket
The color of the message of board number tag is green, creates the corresponding priority symbol of the message.
8. method according to claim 7, it is characterised in that second determining unit is specifically used
In:
Field is obtained from the message according to instruction set in advance, the second order is determined according to the field
Board bucket.
9. method according to claim 7, it is characterised in that second determining unit is specifically used
In:
The port of the message is received according to the receiving unit, the second token bucket is determined.
10. the method according to right 6, it is characterised in that described device also include acquiring unit and
Creating unit, the acquiring unit is used for after the receiving unit receives the message, and described
Before first determining unit determines corresponding first token bucket of the message, the network equipment is according in advance
The instruction of setting obtains field from the message;
If the value of the field is preset value, it is corresponding excellent that the creating unit creates the message
First identify.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510996558.4A CN106921534A (en) | 2015-12-25 | 2015-12-25 | Data traffic monitoring and managing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510996558.4A CN106921534A (en) | 2015-12-25 | 2015-12-25 | Data traffic monitoring and managing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106921534A true CN106921534A (en) | 2017-07-04 |
Family
ID=59455748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510996558.4A Withdrawn CN106921534A (en) | 2015-12-25 | 2015-12-25 | Data traffic monitoring and managing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106921534A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107465630A (en) * | 2017-08-30 | 2017-12-12 | 郑州云海信息技术有限公司 | A kind of bandwidth traffic monitoring and managing method and system |
CN111385220A (en) * | 2018-12-29 | 2020-07-07 | 北京华为数字技术有限公司 | Method and device for transmitting message |
CN112152865A (en) * | 2019-06-27 | 2020-12-29 | 中兴通讯股份有限公司 | Network performance measuring device and method |
CN113518017A (en) * | 2021-06-29 | 2021-10-19 | 新华三信息安全技术有限公司 | Network state analysis method, device, equipment and machine readable storage medium |
-
2015
- 2015-12-25 CN CN201510996558.4A patent/CN106921534A/en not_active Withdrawn
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107465630A (en) * | 2017-08-30 | 2017-12-12 | 郑州云海信息技术有限公司 | A kind of bandwidth traffic monitoring and managing method and system |
CN107465630B (en) * | 2017-08-30 | 2021-08-31 | 郑州云海信息技术有限公司 | Bandwidth flow supervision method and system |
CN111385220A (en) * | 2018-12-29 | 2020-07-07 | 北京华为数字技术有限公司 | Method and device for transmitting message |
CN111385220B (en) * | 2018-12-29 | 2023-04-18 | 北京华为数字技术有限公司 | Method and device for transmitting message |
CN112152865A (en) * | 2019-06-27 | 2020-12-29 | 中兴通讯股份有限公司 | Network performance measuring device and method |
CN112152865B (en) * | 2019-06-27 | 2023-06-27 | 中兴通讯股份有限公司 | Network performance measuring device and method |
CN113518017A (en) * | 2021-06-29 | 2021-10-19 | 新华三信息安全技术有限公司 | Network state analysis method, device, equipment and machine readable storage medium |
CN113518017B (en) * | 2021-06-29 | 2023-04-18 | 新华三信息安全技术有限公司 | Network state analysis method, device, equipment and machine readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100463418C (en) | Network performance test method, system and network device | |
CN100382517C (en) | Network QoS test method and system | |
CN112994961B (en) | Transmission quality detection method, device, system and storage medium | |
CN110519119B (en) | Bandwidth management method and device based on video network and storage medium | |
CN107864061A (en) | A kind of method of virtual machine port speed constraint and mirror image in private clound | |
WO2009146621A1 (en) | Data processing method, broadband network gateway, policy controller and access device | |
US9113356B2 (en) | Control of data flows over transport networks | |
CN104685839B (en) | For handling the method and apparatus of grouping | |
CN102136989A (en) | Message transmission method, system and equipment | |
CN105474602A (en) | Method, device and equipment of identifying attack flow in software defined network | |
CN106921534A (en) | Data traffic monitoring and managing method and device | |
CN112600684B (en) | Bandwidth management and configuration method of cloud service and related device | |
US20170222953A1 (en) | User packet forwarding control method and processing node | |
CN107896182B (en) | Message forwarding method and device | |
CN104160735A (en) | Packet processing method, forwarder, packet processing device and packet processing system | |
CN111224889A (en) | Data transmission method and device | |
US10033589B1 (en) | Management of services to subscriber groups in a distributed service plane environment | |
CN106921997A (en) | A kind of method and device for distributing transmission channel | |
CN104283812B (en) | A kind of method and system for identifying user's access bandwidth | |
US10491423B2 (en) | VLAN tag communication method by using a remote network element port and apparatus | |
CN115484193A (en) | Method, system, storage medium and device for monitoring and analyzing network packet loss flow | |
US8537671B2 (en) | Hierarchical packet policer | |
CN105376174A (en) | Method and apparatus for performing policy based on service chaining in LTE/EPC | |
CN107210973B (en) | Message processing method, device and system | |
KR20080035129A (en) | The method and apparatus for classification according to the service flow of the ip packet |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170704 |
|
WW01 | Invention patent application withdrawn after publication |