CN103888372B - Traffic shaping method and data processing equipment - Google Patents
Traffic shaping method and data processing equipment Download PDFInfo
- Publication number
- CN103888372B CN103888372B CN201210560438.6A CN201210560438A CN103888372B CN 103888372 B CN103888372 B CN 103888372B CN 201210560438 A CN201210560438 A CN 201210560438A CN 103888372 B CN103888372 B CN 103888372B
- Authority
- CN
- China
- Prior art keywords
- message
- data
- offset
- descriptor
- data descriptor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Communication Control (AREA)
Abstract
The invention provides a traffic shaping method and data processing equipment. The method is characterized by generating a compensation value, wherein the compensation value is not more than the alteration value of byte of a message in the process of first overhead processing; and after compensating message length value in a data descriptor of message data based on the compensation value, carrying out traffic shaping scheduling so as to enable the message length in the data descriptor corresponding to the message data to be same with the actual sent length of the message. Therefore, the precision of traffic shaping is improved, the probability that the message is discarded in receiving equipment is reduced, and the utilization rate of link bandwidth can be further improved.
Description
Technical field
The present invention relates to communication technical field more particularly to a kind of flow shaping method and data processing equipment.
Background technology
In existing network, generally using flow shape technique, to the irregular of a certain connection of a certain network or not
Meeting the burst flow of predetermined amount of flow characteristic carries out restriction outflow, and active accommodation goes out to port flow output speed, make message with
It is sent out than more uniform speed, the bandwidth match being beneficial between network upstream and downstream module or equipment, it is to avoid unnecessary
Packet loss and congestion.
Traffic shaping generally realized using buffer queue and token bucket mode, when message transmitting spped rate it is too fast, to not meeting
The message of discharge characteristic carries out being cached in buffer queue, reduces the discarding of the message caused by burst flow.When token bucket has
During enough tokens, then these buffered messages are uniformly sent out, therefore traffic shaping may increase delay.
Fig. 1 is refer to, in existing message transmission process, such as device A sends message to equipment B, in order to reduce by device A
The loss of the message that burst flow is caused, can carry out traffic shaping process in the outlet of device A to message, to whole beyond flow
The message of shape discharge characteristic, will cache in device A, when continuing to send next group message, then take from buffer queue
Outgoing packet is transmitted.The message for being so sent to equipment B specifies the flow for all meeting equipment B, so as to reduce message in equipment B
On discarding.If conversely, not doing traffic shaping process, all messages beyond equipment B discharge characteristics in the outlet of device A
To be abandoned by equipment B.
But, in actual applications, device A sending direction carries out general traffic shaping to the message for being sent to equipment B,
Often in order to improve packaging efficiency and link bandwidth utilization rate, inside device A header is compressed or is added, laid equal stress on
New encapsulated message.If message length originally in flow shaping dispatching queue is L, header is compressed before sending
Or after addition, message length is changed into L-X or L+X(X is message length changing value).Cause the message forwarded on physical link
Message length when traffic shaping is carried out with device A can be inconsistent, so as to reduce the precision of traffic shaping, if when sending,
Actual message length increases, it is likely that be dropped beyond its flow regulation when equipment B is received;And when device A sends,
Its actual message length is reduced, then can reduce physical link bandwidth utilization efficiency.So how to effectively improve the essence of traffic shaping
Degree is the problem of urgent need to resolve.
The content of the invention
The main technical problem to be solved in the present invention is to provide a kind of flow shaping method and data processing equipment, it is to avoid
Cause the low problem of packet loss and link bandwidth utilization rate because of traffic shaping.
To solve above-mentioned technical problem, the technical solution used in the present invention is as follows:
A kind of flow shaping method is provided, is comprised the following steps:
Data processing equipment receives message;
First overhead processing is carried out to the message, message data is obtained;
Generate offset;The offset is not more than the change values of message byte during the first overhead processing;
The corresponding data descriptor of the message data is obtained, the data descriptor includes:The message data
Message length value;And the message length value is changed according to the offset;
The data descriptor after by modification is added in flow shaping dispatching queue;
When the data descriptor is dispatched successfully, during into the state of transmission, the data descriptor is read, and according to described
Offset recovers the message length value of modification;
The data descriptor after according to recovery, reads corresponding message data, and carries out the to the message data
Two overhead processings;
Send newly-generated message.
Further, the offset is the change values of message byte during the first overhead processing.
Further, the mode for generating offset is specially:Directly record first of the message when receiving
The change values of byte during overhead processing;Or according to the type of the data processing equipment, it is calculated the change values.
Further, first overhead processing is comprised the following steps:Addition subport Vlan, peels off message lead code
And frame period, peel off FCS.
Further, second overhead processing is comprised the following steps:Addition message lead code and frame period, addition
FCS, peels off subport Vlan.
Further, if message byte number in the first overhead processing increases, the offset is described for just
The absolute value of offset is equal to the message byte number increases the absolute value of numerical value;If message word in the first overhead processing
Joint number is reduced, then the offset is negative, and the absolute value of the offset is equal to the message byte number and reduces the absolute of numerical value
Value.
Further, when the offset is timing, message length value in the data descriptor of the message is repaiied
Change and comprise the following steps:
The corresponding data descriptor of the message data is obtained, the message length value recorded in the data descriptor is subtracted
Remove the absolute value of the offset;The data descriptor after by modification is added in flow shaping dispatching queue;Work as institute
State data descriptor to dispatch successfully, during into the state of transmission, read the data descriptor, will record in the data descriptor
Message length value plus the offset absolute value;
When the offset is to bear, the modification to the data descriptor of the message includes following step:
The corresponding data descriptor of the message data is obtained, the message length value recorded in the data descriptor is added
The absolute value of the upper offset;The data descriptor after by modification is added in flow shaping dispatching queue;Work as institute
State data descriptor to dispatch successfully, during into the state of transmission, read the data descriptor, will record in the data descriptor
Message length value deduct the absolute value of the offset.
Further, it is further comprising the steps of before the data descriptor is read:
The data processing equipment is processed the message data, is set up data corresponding with the message data and is retouched
State symbol.
Further, before the data descriptor after by modification is added in flow shaping dispatching queue,
It is further comprising the steps of:Traffic shaping compensation is enabled and offset is mapped in the data descriptor.
The present invention also provides a kind of data processing equipment, including:Receiver module, generation module, the first adjusting module, second
Adjusting module and sending module;
The receiver module is used to receive message, and carries out the first overhead processing to the message, obtains message data;
The generation module is used to generate offset;The offset is not more than the message in the first overhead processing process
The change values of middle byte;
First adjusting module is used to obtain the corresponding data descriptor of the message data, and is changed according to the offset
The message length value, and by modification after the data descriptor be added in flow shaping dispatching queue;
Second adjusting module is used for when the data descriptor is dispatched successfully, during into the state of transmission, reads described
Data descriptor, and recover the message length value of modification according to the offset;
The sending module be used for according to recovery after the data descriptor, read corresponding message data, it is entered
The overhead processing of row second, and the message that process is completed is transmitted.
Further, the offset that the generation module is generated is message byte during the first overhead processing
Change values.
Further, the generation module includes collecting unit or computing unit;The collecting unit is used for direct
Gather the change values of message byte during the first overhead processing;The computing unit is used for according to the data processing
The type of equipment, is calculated the change values.
Further, the receiver module is additionally operable to carry out the first overhead processing to the message, including:Add sub- end
Mouth Vlan, peels off message lead code and frame period, peels off FCS.
Further, the sending module is additionally operable to carry out the second overhead processing to the message, including:Addition message
Lead code and frame period, add FCS, peel off subport Vlan.
Further, the generation module also includes:Judging unit;
The judging unit is to increase or reduction for judging message byte number during the first overhead processing,
If increasing, the offset is remembered for just, if reducing, remember that the offset is negative, and the absolute value of the offset is equal to
The message byte number changes the absolute value of numerical value.
Further, first adjusting module also includes:First positive justification unit and the first negative justification unit;It is described
Second adjusting module also includes:Second positive justification unit and the second negative justification unit;
The first positive justification unit is used for when the offset is timing, obtains the corresponding data of the message data and retouches
Symbol is stated, the message length value recorded in the data descriptor is deducted into the absolute value of the offset;By the institute after modification
State data descriptor to be added in flow shaping dispatching queue;
The second positive justification unit is used for when the offset is timing, the data descriptor is read, by the number
The absolute value of the offset is added according to the message length value recorded in descriptor;
The first negative justification unit is used for when the offset is to bear, and obtains the corresponding data of the message data and retouches
Symbol is stated, the message length value recorded in the data descriptor is added into the absolute value of the offset;By the institute after modification
State data descriptor to be added in flow shaping dispatching queue;
The second negative justification unit is used for when the offset is to bear, and the data descriptor is read, by the number
The absolute value of the offset is deducted according to the message length value recorded in descriptor.
Further, the data processing equipment also includes:Processing module;The processing module is used for the message
Data are processed, and set up data descriptor corresponding with the message data.
Further, first adjusting module be additionally operable to by traffic shaping compensation enable and offset be mapped to it is described
In data descriptor.
The invention has the beneficial effects as follows:A kind of flow shaping method and data processing equipment are provided, by generating a benefit
Value is repaid, the offset is not more than the change values of message byte during the first overhead processing, and according to the offset to message
Message length value compensates laggard inbound traffics shaping scheduling in the data descriptor of data, makes the data corresponding to message data
The length of the message length value transmission actual with last message in descriptor is identical.So as to improve the precision of traffic shaping, subtract
Lack the probability that message is dropped on the receiving device, also can further improve link bandwidth utilization rate.
Further, in the present invention, offset has positive and negative point, when offset is timing, to message length value reality
Now just compensate, make the message length value in flow shaping dispatching in data descriptor identical with the actual message length for sending, from
And improve link bandwidth utilization rate;When offset is to bear, negative compensation is realized to message length value, in making flow shaping dispatching
Message length value in data descriptor is identical with the actual message length for sending, so that the precision of traffic shaping is improve,
Reduce the probability that message is dropped on the receiving device.
Description of the drawings
Fig. 1 is traffic shaping process schematic in this prior art;
Fig. 2 is data processing equipment structural representation in one embodiment of the invention;
Fig. 3 is flow shaping method flow chart in one embodiment of the invention.
Specific embodiment
The present invention general idea be:By before the data descriptor of message is put into into scheduling queue, according to compensation
Value is made an amendment to message length value therein, makes message length value of the message in queue with the actual message length phase for sending
Deng.The size of the actual transmission of message is set to match with the flow regulation of receiving device, so as to reduce the probability that message is dropped
With raising link bandwidth utilization rate.Need to set an offset in the application, in theory only no more than message exists the offset
The byte change values of message length in first overhead processing, can be achieved with technical scheme, but preferably, realize effect
Best scheme is that offset is equal to the byte change values of message message length in the first overhead processing, and compensation can be made maximum
Change, be prevented effectively from traffic shaping and cause the low problem of packet loss and link bandwidth utilization rate.It is right after offset is generated
Message length value in the corresponding data descriptor of message data is put in scheduling queue after compensating.And dispatching successfully
When afterwards, into the state of transmission, the message length value in data descriptor is recovered, carry out being sent after the second overhead processing.To make
Technical solution of the present invention and advantage are clearer, combine accompanying drawing below by specific embodiment and the present invention are made further in detail
Explanation.
Fig. 2 is refer to, a kind of data processing equipment is provided in this application, it includes:Receiver module, generation module,
One adjusting module, the second adjusting module and sending module.Wherein, receiver module is used to receive message;Generation module is used to generate
Offset;The offset is not more than the change values of message byte during the first overhead processing;But in the present embodiment, it is
Facilitate elaboration, be equal to using a kind of preferably offset value mode, i.e. offset in the application and this message opened first
The mode of the change values of byte is illustrated to this programme in pin processing procedure.First adjusting module is used to obtain message data pair
The data descriptor answered, and message length value therein is changed according to offset, then by modification after data description
Symbol is added in flow shaping dispatching queue;Second adjusting module is used for when data descriptor is dispatched successfully, into the state of transmission
When, the data descriptor is read, and recover the message length value of modification according to offset;After sending module is used for according to recovery
Data descriptor, reads corresponding message data, and the second overhead processing is carried out to it, and the message that process is completed is carried out to send out
Send.In the present embodiment, data processing equipment can also further include:Processing module;It is right to be used at the processing module
Message data is processed, and sets up data descriptor corresponding with the message data.
In the present embodiment, generation module can further include collecting unit or computing unit;Wherein, collecting unit is used
In the change values for directly gathering message byte during the first overhead processing, and as offset;Computing unit is main
For according to the type of the data processing equipment, being calculated the change values.Both are according to different acquisition modes to mending
Repay value to be obtained.Generation module in the present embodiment can also be further included:Judging unit;The judging unit is mainly used in sentencing
Disconnected message byte number during the first overhead processing is to increase or reduces, if increasing, remembers that the offset is just, if subtracting
It is few, then remember that the offset is negative, and the absolute value of offset is equal to the absolute value that the message byte number changes numerical value.
The first adjusting module in the present embodiment can also include:First positive justification unit and the first negative justification unit;The
Two adjusting modules can also include:Second positive justification unit and the second negative justification unit.Wherein, the first positive justification unit and second
Positive justification unit is used for when offset is timing, and the message length value in data descriptor is adjusted, and the first negative justification
Unit and the second negative justification unit are used for when offset is to bear, and the message length value in data descriptor is adjusted.
Fig. 3 is refer to, in order that the flow shaping method explanation in the application is apparent, below in conjunction with the application
The concrete effect of data processing equipment is described in detail to the flow shaping method in the application.
Flow shaping method in the application is comprised the following steps:
Step 302:Data processing equipment receives message, and carries out the first overhead processing to message, obtains message data;Enter
Enter step 304.
In this step, by data processing equipment receiver module receive from each physical port message, and in order to
Follow-up processing procedure can be carried out to message, receiver module is after message is received, in addition it is also necessary to which it is carried out at the first expense
Reason, and the first overhead processing includes:Addition subport Vlan(Virtual Local Area Network, VLAN),
Message lead code and frame period are peeled off, FCS is peeled off(Flash Communication Server, frame check sequence), and according to
The difference of each data processing equipment and message, after message carries out overhead processing, the changing value of byte is also different.
Step 304:Obtain offset;Into step 306.
In this step, the change values of message message length byte in the first overhead processing are obtained by generation module, should
Value is offset, and the acquisition methods of the value can be:Collecting unit in generation module directly gathers receiver module to report
Text carries out the change values of byte during the overhead processing of message first, and as offset;Or it is main by computing unit
According to the data processing equipment and the type of message, by the offset for being calculated the message.In the present embodiment, compensate
The value mode of value be not limited to it is identical with message change values, as long as in theory it is less than message length change values and is capable of achieving
Scheme in the application, the offset situation equal with message length change values is only a kind of preferably embodiment party in the application
Formula.
Step 306:The corresponding data descriptor of message data is obtained, and it is long to change message therein according to the offset
Angle value;Into step 308.
Before this step, can also comprise the following steps:Message data is processed, and is set up and message data pair
The data descriptor answered.After receiver module carries out overhead processing to message, Business Processing is carried out to it by processing module, and built
Found data descriptor corresponding with message data.Data descriptor includes the message length value of message data.
It is further comprising the steps of before this step:Judge the positive and negative of offset.The process by generation module judgement list
Unit is completing, if message byte number during the first overhead processing increases, judging unit judges offset for just, offset
Absolute value be equal to the byte number increase numerical value absolute value;If message byte number in the first overhead processing is reduced, sentence
Disconnected offset is negative, and the absolute value of offset is equal to the absolute value that the byte number reduces numerical value.
In this step, if judge module judges offset for just, the first positive justification unit in the first adjusting module
The data descriptor of the message data is transferred, and message length value therein is deducted into the absolute value of offset.If judge module
Judge that offset is negative, then the first negative justification unit in the first adjusting module transfers the data descriptor of the message, and by its
In message length value plus offset absolute value.
Additionally, after this step is completed, it is further comprising the steps of:Traffic shaping compensation is enabled and offset is mapped to
In the data descriptor.In order to be able to enable subsequent module quickly to process message accordingly, need to mend traffic shaping
Repay enable and offset is mapped to data descriptor, so that subsequent module is operated to message data.
Step 308:Data descriptor after modification is added in flow shaping dispatching queue;Into step 310.
Step 310:Data descriptor is dispatched successfully, during into the state of transmission, reads the data descriptor, and according to institute
State the message length value that offset recovers modification;Into step 312.
In this step, if offset is just, the second positive justification unit reads data descriptor, by data descriptor
Absolute value of the message length value of record plus the offset.If offset is negative, the second negative justification unit reads the number
According to descriptor, the message length value recorded in data descriptor is deducted into the absolute value of the offset.Although reality now
Message data length is differed with the message length value in flow shaping dispatching, but is also needed before message data sends to report
Text carries out the second overhead processing.So processing procedure now can guarantee that message length after the second overhead processing with
Message length during flow shaping dispatching is identical, and the loss ratio of message and the utilization rate of bandwidth are reduced with this.
Step 312:According to the data descriptor after recovery, corresponding message data is read, and carry out the to message data
Two overhead processings;Into step 314.
In this step, the inverse operations of the first overhead processing is carried out to message data, i.e., message data is added before message
Leading code and frame period, add FCS, peel off subport Vlan.So that message can be normally carried out sending.
Step 314:Send newly-generated message.
Below with PTN(Packet Transport Network, Packet Transport Network)As a example by equipment, illustrate to be flowed in the application
The idiographic flow of amount Shape correction, this equipment is by 1 piece of main control switchboard(Abbreviation mainboard)With 4 pieces of service processing board compositions, its master
Plate adopts the WP3 chips of PMC companies, ether service processing board(Abbreviation line card)Responsible subport Vlan addition and deletion, and thoroughly
Biography process.Here direction is referred to as received before message data is joined the team, is gone out team and is referred to as sending direction, specific implementation method step is such as
Under:
Receive direction:
Step 401:Line card 1 receives message, adds 4 byte subports Vlan;Mainboard receives MAC and peels off 20 byte lead codes
And frame period, mainboard flow point class 4 bytes FCS of stripping, obtain message data;
Step 402:The plate type for being changed according to message length in step 401 and being obtained, calculated flow rate shaping offset,
Offset=4-20-4=-20 bytes;
Step 403:Message data obtains final output data descriptor, by step 402 through the process of mainboard WP3 chips
Compensation mark and offset write the data descriptor;
Step 404:Obtain data descriptor(BD, Buffer Descriptor), according to the configuration in step 403, by BD
Middle message length value adds 20 bytes, traffic shaping compensation is enabled and offset is mapped in BD, content write-back again after renewal
To in BD;
Step 405:BD after updating in step 404 is joined the team to flow shaping dispatching queue;
Sending direction:
Step 406:During scheduler traffic shaping, according to the traffic shaping parameter and algorithm of queue configuration, read step 404
In BD go out team, the compensation of the traffic shaping of the then mapping in BD is enabled and offset, and the message length value in BD is subtracted
Go 20 bytes;
Step 407:Message length value after being updated according to BD in step 406, the memory block that message data is pointed to from BD
Read, be sent to out to port;
Step 408:Mainboard sends MAC and adds 20 byte lead codes and frame period, adds 4 bytes FCS;
Step 409:Message warp card 2 to be peeled off and be sent to physical circuit after 4 byte subports Vlan;
Above content is to combine specific embodiment further description made for the present invention, it is impossible to assert this
It is bright to be embodied as being confined to these explanations.For general technical staff of the technical field of the invention, do not taking off
On the premise of present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the protection of the present invention
Scope.
Claims (18)
1. a kind of flow shaping method, it is characterised in that comprise the following steps:
Data processing equipment receives message;
First overhead processing is carried out to the message, message data is obtained;
Generate offset;The offset is not more than the change values of message byte during the first overhead processing;
The corresponding data descriptor of the message data is obtained, the data descriptor includes:The message of the message data
Length value;And the message length value is changed according to the offset;
The data descriptor after by modification is added in flow shaping dispatching queue;
When the data descriptor scheduling queue success, during into the state of transmission, the data descriptor is read, and according to described
Offset recovers the message length value of modification;
The data descriptor after according to recovery, reads corresponding message data, and carries out second to the message data and open
Pin process, second overhead processing is the inverse operations of first overhead processing;
Send newly-generated message.
2. flow shaping method as claimed in claim 1, it is characterised in that the offset is the message in the first expense
The change values of byte in processing procedure.
3. flow shaping method as claimed in claim 2, it is characterised in that the mode of the generation offset is specially:Directly
Connect the change values for recording byte during the first overhead processing of the message when receiving;Or set according to the data processing
Standby type, is calculated the change values.
4. flow shaping method as claimed in claim 1, it is characterised in that first overhead processing is comprised the following steps:
Addition subport Vlan;Peel off message lead code and frame period;Peel off FCS.
5. flow shaping method as claimed in claim 1, it is characterised in that second overhead processing is comprised the following steps:
Addition message lead code and frame period;Addition FCS;Peel off subport Vlan.
6. flow shaping method as claimed in claim 2, it is characterised in that if message byte in the first overhead processing
Number increases, then the offset is for just, the absolute value of the offset is equal to the message byte number increases the absolute value of numerical value;
If message byte number in the first overhead processing is reduced, the offset is negative, and the absolute value of the offset is equal to
The message byte number reduces the absolute value of numerical value.
7. flow shaping method as claimed in claim 6, it is characterised in that when the offset is timing, to the message
Data descriptor in the modification of message length value comprise the following steps:
The corresponding data descriptor of the message data is obtained, the message length value recorded in the data descriptor is deducted into institute
State the absolute value of offset;The data descriptor after by modification is added in flow shaping dispatching queue;When the number
According to descriptor scheduling queue success, during into the state of transmission, the data descriptor is read, will be recorded in the data descriptor
Message length value plus the offset absolute value;
When the offset is to bear, the modification to the data descriptor of the message includes following step:
The corresponding data descriptor of the message data is obtained, the message length value recorded in the data descriptor is added into institute
State the absolute value of offset;The data descriptor after by modification is added in flow shaping dispatching queue;When the number
According to descriptor scheduling queue success, during into the state of transmission, the data descriptor is read, will be recorded in the data descriptor
Message length value deduct the absolute value of the offset.
8. the flow shaping method as any one of claim 1-7, it is characterised in that reading the data descriptor
Before, it is further comprising the steps of:
The data processing equipment is processed the message data, sets up data description corresponding with the message data
Symbol.
9. the flow shaping method as any one of claim 1-7, it is characterised in that the number after by modification
It is further comprising the steps of before being added in flow shaping dispatching queue according to descriptor:Traffic shaping compensation is enabled and compensated
Value is mapped in the data descriptor.
10. a kind of data processing equipment, it is characterised in that include:Receiver module, generation module, the first adjusting module, second are adjusted
Mould preparation block and sending module;
The receiver module is used to receive message, and carries out the first overhead processing to the message, obtains message data;
The generation module is used to generate offset;The offset is not more than message word during the first overhead processing
The change values of section;
First adjusting module is used to obtain the corresponding data descriptor of the message data, and according to offset modification
Message length value, and by modification after the data descriptor be added in flow shaping dispatching queue;
Second adjusting module is used to work as the data descriptor scheduling queue success, during into the state of transmission, reads described
Data descriptor, and recover the message length value of modification according to the offset;
The sending module be used for according to recovery after the data descriptor, read corresponding message data, the is carried out to it
Two overhead processings, and the message that process is completed is transmitted;Second overhead processing is the anti-of first overhead processing
Operation.
11. data processing equipments as claimed in claim 10, it is characterised in that the offset that the generation module is generated is institute
State the change values of message byte during the first overhead processing.
12. data processing equipments as claimed in claim 11, it is characterised in that the generation module include collecting unit or
Computing unit;The collecting unit is used to directly gather the change values of message byte during the first overhead processing;Institute
Computing unit is stated for according to the type of the data processing equipment, being calculated the change values.
13. data processing equipments as claimed in claim 10, it is characterised in that the receiver module is additionally operable to the message
The first overhead processing is carried out, including:Addition subport Vlan;Peel off message lead code and frame period;Peel off FCS.
14. data processing equipments as claimed in claim 10, it is characterised in that the sending module is additionally operable to the message
The second overhead processing is carried out, including:Addition message lead code and frame period;Addition FCS;Peel off subport Vlan.
15. data processing equipments as claimed in claim 11, it is characterised in that the generation module also includes:Judging unit;
The judging unit is used to judge that message byte number during the first overhead processing is to increase or reduces, if increasing
Plus, then the offset is remembered just, if reducing, to remember that the offset is negative, and the absolute value of the offset is equal to described
Message byte number changes the absolute value of numerical value.
16. data processing equipments as claimed in claim 15, it is characterised in that first adjusting module also includes:First
Positive justification unit and the first negative justification unit;Second adjusting module also includes:Second positive justification unit and the second negative justification
Unit;
The first positive justification unit is used for when the offset is timing, obtains the corresponding data description of the message data
Symbol, by the message length value recorded in the data descriptor absolute value of the offset is deducted;Described in after modification
Data descriptor is added in flow shaping dispatching queue;
The second positive justification unit is used for when the offset is timing, reads the data descriptor, and the data are retouched
State the absolute value that the message length value recorded in symbol adds the offset;
The first negative justification unit is used for when the offset is to bear, and obtains the corresponding data description of the message data
Symbol, by the message length value recorded in the data descriptor absolute value of the offset is added;Described in after modification
Data descriptor is added in flow shaping dispatching queue;
The second negative justification unit is used for when the offset is to bear, and reads the data descriptor, and the data are retouched
State the absolute value that the message length value recorded in symbol deducts the offset.
17. data processing equipments as any one of claim 10-16, it is characterised in that also include:Processing module;
The processing module is used to process the message data, and sets up data descriptor corresponding with the message data.
18. data processing equipments as any one of claim 10-16, it is characterised in that first adjusting module
It is additionally operable to enable traffic shaping compensation and offset is mapped in the data descriptor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210560438.6A CN103888372B (en) | 2012-12-21 | 2012-12-21 | Traffic shaping method and data processing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210560438.6A CN103888372B (en) | 2012-12-21 | 2012-12-21 | Traffic shaping method and data processing equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103888372A CN103888372A (en) | 2014-06-25 |
CN103888372B true CN103888372B (en) | 2017-05-17 |
Family
ID=50957096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210560438.6A Expired - Fee Related CN103888372B (en) | 2012-12-21 | 2012-12-21 | Traffic shaping method and data processing equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103888372B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3057273B1 (en) * | 2015-02-13 | 2019-03-27 | Mitsubishi Electric R&D Centre Europe B.V. | Method for a traffic shaping in a network |
CN111510394B (en) * | 2019-01-31 | 2022-04-12 | 华为技术有限公司 | Message scheduling method, related equipment and computer storage medium |
CN113746854B (en) * | 2021-09-09 | 2023-06-06 | 苏州盛科通信股份有限公司 | QoS management method, message transmission method and message transmission device |
CN115314446B (en) * | 2022-07-22 | 2024-05-28 | 烽火通信科技股份有限公司 | Message bandwidth compensation method, device and equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594692A (en) * | 2012-02-23 | 2012-07-18 | 中兴通讯股份有限公司 | Traffic shaping method and device |
-
2012
- 2012-12-21 CN CN201210560438.6A patent/CN103888372B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594692A (en) * | 2012-02-23 | 2012-07-18 | 中兴通讯股份有限公司 | Traffic shaping method and device |
Non-Patent Citations (2)
Title |
---|
基于IP网络服务质量的研究与实现;时公涛;《微电子学与计算机》;20051231;第22卷(第12期);第116-119 * |
基于漏桶理论及令牌桶算法的网络流量整形策略的研究与实现;刘元峰;《中国优秀硕士学位论文全文数据库》;20081130(第11期);I139-62 * |
Also Published As
Publication number | Publication date |
---|---|
CN103888372A (en) | 2014-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12074643B2 (en) | Data transmission method and apparatus, terminal device and storage medium | |
CN103888372B (en) | Traffic shaping method and data processing equipment | |
CN103369593B (en) | A kind of method compressing reconciliation compressed ethernet message and network element device | |
CN102325084B (en) | Method and system for realizing data exchange in IEC104 (international electrotechnical commission 104) communication protocol forwarding | |
CN101719850B (en) | Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device | |
CN102447606A (en) | Data transmission flow control method and device | |
CN102546364A (en) | Network data distribution method and device | |
CN103338158A (en) | GOOSE message transmission delay jitter suppression method | |
CN102388594B (en) | Method, device and system for data transmission | |
CN102255790A (en) | Method and system for informing congestion control information | |
CN102487330B (en) | Method and device for sending operation, administration and maintenance messages | |
CN107566294B (en) | Network storm suppression method applicable to IEC62439 standard | |
CN101141351B (en) | Method of settling frame loss of frequency offset | |
CN101631074B (en) | Multilink message sending method, device and network equipment | |
CN108199975B (en) | Flow control method and device | |
CN101789843A (en) | Method for implementing multi-line E1 binding and network bridge | |
CN108768810A (en) | A kind of transient state big data high-efficiency transmission method based on FC | |
CN105530065B (en) | For system and method at IEEE1588 pairs of PRP/HSR | |
CN111726300A (en) | Data sending method and device | |
CN110912894A (en) | Communication protocol conversion system and method for heat supply metering network | |
CN105119845A (en) | Energy-efficiency data stream transmission mechanism of non-first in first-out packet | |
CN101635668A (en) | Method and system for transmitting and controlling ethernet data | |
CN110784365A (en) | Standby device of station control layer and entity device of transformer substation and automatic online method thereof | |
CN116055573B (en) | Hybrid data processing method and architecture | |
CN102640461A (en) | Device and method for distributing data over a plurality of physical links |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170517 Termination date: 20191221 |
|
CF01 | Termination of patent right due to non-payment of annual fee |