CN104348753B - Data packet forwarding method and packet transfer device, packet - Google Patents
Data packet forwarding method and packet transfer device, packet Download PDFInfo
- Publication number
- CN104348753B CN104348753B CN201310320101.2A CN201310320101A CN104348753B CN 104348753 B CN104348753 B CN 104348753B CN 201310320101 A CN201310320101 A CN 201310320101A CN 104348753 B CN104348753 B CN 104348753B
- Authority
- CN
- China
- Prior art keywords
- bandwidth
- user
- session
- data packet
- packet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A kind of data packet forwarding method of offer of the embodiment of the present invention and packet transfer device, packet.Data packet forwarding method and packet transfer device, packet provided in an embodiment of the present invention, by allocating permission burst bandwidth in advance for user, when the new session of the user arrives, it is that the new session distributes the first available bandwidth according to the occupied bandwidth of the permission burst bandwidth of the user and the user, the data packet flow of the new session in the given time is happened suddenly to the first available bandwidth, to improve the initial buffer speed of new session, shorten initial buffering time, the service request of the quick response network user.
Description
Technical field
The present embodiments relate to the communication technology more particularly to a kind of data packet forwarding method and data packet forwarding dresses
It sets.
Background technology
The appearance of the high band width service such as Internet video, challenges to the service quality of existing network, prolonged initial
Buffering challenge user's patience and service loyalty, the service request of the quick response network user become in the urgent need to address and ask
Topic.
Existing multilevel service quality(Hierarchical quality of service, abbreviation HQoS) technology carries
Ensure for the business of " user+business " grade, by differentiated service type and according to business to the different demands tune of bandwidth, time delay
The distribution of whole bandwidth resources, the preferential bandwidth and priority for ensureing delay sensitive business, when shortening buffering to a certain extent
It is long.
However, under the prior art, when user needs to access the big datas such as big picture, big webpage, big video or big file
When, it is slow often to will appear network initial communication, the case where needing long-time refresh page or long-time business initial buffer,
User is caused to need to wait for the long period.
Invention content
A kind of data packet forwarding method of offer of the embodiment of the present invention and packet transfer device, packet, are initially delayed with shortening business
It rushes the time, the service request of the quick response network user.
In a first aspect, the embodiment of the present invention provides a kind of data packet forwarding method, the method includes:
Received data packet;
Session information table is inquired according to the session information in the data packet;
If it is determined that the data packet is the first data packet of the first session of user, then the occupancy band of the user is obtained
It is wide;According to the occupied bandwidth of the user and it is the pre-assigned permission burst bandwidth of the user, institute is distributed in acquisition
State the first available bandwidth of the first session;The signing bandwidth for allowing burst bandwidth to be more than the user;
According to first available bandwidth, the data packet of first session is forwarded in the given time.
According in a first aspect, in the first possible realization method of first aspect, the method further includes:
Within the predetermined time, the average occupied bandwidth of the user is obtained, if the average occupied bandwidth is more than institute
Signing bandwidth is stated, then gradually reduces the permission burst bandwidth until being not more than the signing bandwidth.
According in a first aspect, in second of possible realization method of first aspect, the method further includes:
Within the predetermined time, the total flow of the user is counted, if the total flow reaches adjustment threshold value, gradually
The permission burst bandwidth is reduced until being not more than the signing bandwidth.
According to first aspect, first aspect the first to any one in second of possible realization method,
In the third possible realization method of one side, the method further includes:
After reaching the predetermined time, according to the occupied bandwidth and the signing bandwidth, institute is distributed in acquisition
State the second available bandwidth of the first session;And according to second available bandwidth, forward the data packet of first session.
According to first aspect, first aspect the first to any one in the third possible realization method,
In 4th kind of possible realization method of one side, the method further includes:
When it is the first data packet of the first session of the user to judge the data packet, in the session information table
Increase a session information list item, the information for storing first session newly.
Second aspect, the embodiment of the present invention provide a kind of packet transfer device, packet, and described device includes:
Receiving module is used for received data packet;
Enquiry module, the session information in the data packet for being received according to the receiving module inquire session information
Table;
Acquisition module, if judging the first data of first session of the data packet for user for the enquiry module
Packet then obtains the occupied bandwidth of the user, and divides in advance according to the occupied bandwidth of the user and for the user
The permission burst bandwidth matched obtains the first available bandwidth for distributing to first session;The permission burst bandwidth is more than institute
State the signing bandwidth of user;
Forwarding module, first available bandwidth for being obtained according to the acquisition module, forwards in the given time
The data packet of first session.
According to second aspect, in the first possible realization method of second aspect, described device further includes adjustment mould
Block, within the predetermined time, obtaining the average occupied bandwidth of the user, if the average occupied bandwidth is more than described
Signing bandwidth, then gradually reduce the permission burst bandwidth until being not more than the signing bandwidth.
According to second aspect, in second of possible realization method of second aspect, described device further includes adjustment mould
Block, within the predetermined time, counting the total flow of the user, if the total flow reaches adjustment threshold value, gradually
The permission burst bandwidth is reduced until being not more than the signing bandwidth.
According to second aspect, second aspect the first to any one in second of possible realization method,
In the third possible realization method of two aspects, the acquisition module is additionally operable to after reaching the predetermined time, according to institute
Occupied bandwidth and the signing bandwidth are stated, the second available bandwidth for distributing to first session is obtained;
The forwarding module, is additionally operable to second available bandwidth obtained according to the acquisition module, forwarding described the
The data packet of one session.
According to second aspect, second aspect the first to any one in the third possible realization method,
In 4th kind of possible realization method of two aspects, described device further includes session information table maintenance module, for being looked into described
When inquiry module judges that the data packet is the first data packet of the first session of the user, increased newly in the session information table
One session information list item, the information for preserving first session.
Data packet forwarding method and packet transfer device, packet provided in an embodiment of the present invention, by being allocated in advance for user
Allow burst bandwidth, when the new session of the user arrives, according to the permission burst bandwidth of the user and the user
Occupied bandwidth be the new session distribute the first available bandwidth so that the data packet stream of the new session in the given time
Amount can happen suddenly to the first available bandwidth, to improve the initial buffer speed of new session, shorten initial buffering time, quickly ring
Answer the service request of the network user.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is data packet forwarding method flow chart provided in an embodiment of the present invention;
Fig. 2 is the available bandwidth of the permission burst bandwidth of user provided in an embodiment of the present invention and the new session of user
Principle schematic;
Fig. 3 is the permission burst bandwidth that the average occupied bandwidth provided in an embodiment of the present invention based on user adjusts user
Principle schematic;
Fig. 4 is that the principle for the permission burst bandwidth that the total flow provided in an embodiment of the present invention based on user adjusts user is shown
It is intended to;
Fig. 5 is the structural schematic diagram of packet transfer device, packet provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another packet transfer device, packet provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is data packet forwarding method flow chart provided in an embodiment of the present invention.The method can be used for needing to network
The scene that business accelerates into row buffering, and can be applied to various businesses and various networks.As shown in Figure 1, the method packet
It includes:
101, received data packet;
102, according to the session in the data packet(session)Information inquiry session information table;
103, if it is determined that the data packet is the first data packet of the first session of user, then having accounted for for the user is obtained
Use bandwidth;According to the occupied bandwidth of the user and it is the pre-assigned permission burst bandwidth of the user, obtains distribution
To the first available bandwidth of first session, the signing bandwidth for allowing burst bandwidth to be more than the user;
104, according to first available bandwidth, the data packet of first session is forwarded in the given time.Optionally,
After reaching the predetermined time, according to the occupied bandwidth of the user and the signing bandwidth of the user, distribution is obtained
To the second available bandwidth of first session;And according to second available bandwidth, forward the data packet of first session.
If it is determined that the data packet is not the first data packet of first session, then according to the occupancy band of the user
The signing bandwidth of the wide and described user obtains the third available bandwidth for distributing to first session;And according to the third
Available bandwidth forwards the data packet of first session.
Specifically, data packet forwarding method provided in an embodiment of the present invention is specifically executed by packet transfer device, packet, described
Packet transfer device, packet can be interchanger, the network equipments such as router.The packet transfer device, packet is typically deployed at business
On gateway, such as Broadband Remote Access Server(Broadband Remote Access Server, abbreviation BRAS).
In the present invention, if it is determined that the data packet is the first data packet of the first session of user, then it represents that described first
Session is the new session of the user.
Under normal conditions, the signing bandwidth of user is fixed, such as can be 2Mbps(Megabits per second), service carries
Donor can be user's bandwidth allocation according to the signing bandwidth of the user.When the user has new business, ISP's meeting
According to the signing bandwidth of the user and the occupied bandwidth of the user, available bandwidth is distributed for the new business of the user, this
The limited available bandwidth of the new business of the sample user is in the signing bandwidth of the user and the occupied bandwidth of the user.When this
It is limited due to distributing to the available bandwidth of new business of the user when new business of user needs to access big data, it causes
Business initial buffering time is longer.
In data packet forwarding method provided in an embodiment of the present invention, packet transfer device, packet is that user allocates permission in advance
Burst bandwidth(Wherein, the signing bandwidth for allowing burst bandwidth to be more than the user), to allow the user in the predetermined time
The bandwidth of interior occupancy can reach the permission burst bandwidth;After packet transfer device, packet receives data packet, according to the number
According in packet session information inquire session information table, with judge the data packet whether be the user the first session it is first
Data packet, the session information table is recording the session information of user;If it is determined that the data packet is the first of the user
The first data packet of session, then it represents that first session is the new session of the user, then packet transfer device, packet is according to institute
It states the permission burst bandwidth of user and the occupied bandwidth of the user, obtains and distribute to the first available of first session
Bandwidth;In the given time, packet transfer device, packet forwards the data packet of first session according to first available bandwidth.
Since first available bandwidth is determined by the permission burst bandwidth of the user and the occupied bandwidth of the user, because
And the data packet flow of first session can happen suddenly to first available bandwidth.
Wherein, the predetermined time can carry out differentiation setting according to the type of service and business demand of user, also may be used
It is identical with all sessions;The predetermined time can be period specified time, such as be set as several seconds, as long as can ensure session
Initial buffer speed height to shorten initial buffering time.
Data packet forwarding method provided in an embodiment of the present invention, by allocating permission burst bandwidth in advance for user, in institute
When stating the new session arrival of user, the occupied bandwidth according to the permission burst bandwidth of the user and the user is described
New session distributes the first available bandwidth, and the data packet flow of the new session can happen suddenly to the first available band in the given time
Width shortens initial buffering time, the service request of the quick response network user to improve the initial buffer speed of new session.
Fig. 2 is the available bandwidth of the permission burst bandwidth of user provided in an embodiment of the present invention and the new session of user
Principle schematic.As shown in Fig. 2, real broken lineIndicate total available bandwidth of user, dash line broken lineIndicate the occupied bandwidth of the already-existing session of user, chain-dotted line broken lineIndicate that user's is new
The available bandwidth of session;Also, the available bandwidth of the new session of user is equal to the existing meeting of the total available bandwidth and user of user
The difference of the occupied bandwidth of words, that is, the existing meeting of total available bandwidth-user of available bandwidth=user of the new session of user
The occupied bandwidth of words.
Total available bandwidth of user allows the band that happens suddenly depending on resource allocation policy, the signing bandwidth of user and user's
The factors such as width.As shown in Fig. 2, the signing bandwidth of user is 6Mbps, the permission burst bandwidth of user is 10Mbps, in T1-T3
Between in section, the upper limit of total available bandwidth of user can happen suddenly from 6Mbps to 10Mbps.At the T1 moment, total available band of user
Width is 1Mbps, and the occupied bandwidth of the already-existing session of user is 1Mbps, and after user establishes a new session, the total of user can
With bandwidth by 1Mbps(The T1 moment)It happens suddenly to 10Mbps(The T2 moment), correspondingly, the available bandwidth of the new session can also be by 0
(The T1 moment)It happens suddenly to 9Mbps(The T2 moment).Therefore, within the T1-T3 periods, new session of the packet transfer device, packet to user
Data packet when being forwarded, new session may be implemented bursts of traffic, such as the flow of new session happens suddenly at the T2 moment and arrives
9Mbps。
On the basis of the above embodiments, after reaching the predetermined time, packet transfer device, packet is user's distribution
Allow burst bandwidth will not revival, packet transfer device, packet according to the occupied bandwidth of user and the signing bandwidth of user,
Obtain the second available bandwidth for distributing to first session;And according to second available bandwidth, forward first session
Data packet.As shown in figure 3, since the T3 moment, total available bandwidth of user is restricted to the signing bandwidth of user
(6Mbps), packet transfer device, packet is according to the occupied bandwidth of user(1Mbps)And signing bandwidth(6Mbps), obtain distribution
To the second available bandwidth of first session(5Mbps), and according to second available bandwidth, forward first session
Data packet, in this case session are not allowed to bursts of traffic.
On the basis of the above embodiments, after packet transfer device, packet receives data packet, according in the data packet
Session information inquire session information table, with judge the data packet whether be user the first session first data packet.It is described
Session information table is recording the session information of user;The session information may include five-tuple information, wherein five-tuple is believed
Breath includes:Source IP address, purpose IP address, source port number, destination slogan and protocol type.Specifically, data packet forwarding dress
It sets after receiving data packet, obtains the five-tuple information of the data packet, and with the five-tuple information of the data packet for first
Key assignments inquire session information table, with judge the data packet whether be user the first session first data packet.
If inquiry is less than the five-tuple information with the data packet, i.e., described first key assignments, phase in session information table
When the session information list item matched, then the packet transfer device, packet judges the first number of first session of the data packet for user
According to packet, and a session information list item can be increased newly in session information table, the information for preserving first session, specifically
Ground, will be in the five-tuple information preservation of the data packet to the newly-increased session information list item.Then, packet transfer device, packet root
The first of first session is distributed to according to the permission burst bandwidth of the user and the acquisition of occupied bandwidth of the user
Available bandwidth;According to the first available bandwidth of first session of acquisition, packet transfer device, packet dynamic creation access control
List(Access Control List, abbreviation ACL)And queue, retransmitting paramater is generated, the retransmitting paramater at least may include
The first available bandwidth and ACL of first session;Packet transfer device, packet forwards data packet according to the retransmitting paramater, carries out
Bandwidth Management and control, specifically, packet transfer device, packet in the given time, according to first available bandwidth forwarding described in
The data packet of first session, since the first available bandwidth of the first session of user is by the permission burst bandwidth of user and user
Occupied bandwidth determine, thus, the data packet flow of first session can happen suddenly to the first available bandwidth.
Wherein, the packet transfer device, packet also safeguards the session information table, specifically includes and creates the session information
Table increases newly, aging(It deletes)Session information list item in the session information table, specifically, packet transfer device, packet are periodical
Conversate information table aging, if session information list item is not hit more than the preset period, will be aging.
If inquiring the five-tuple information with the data packet in session information table, i.e., described first key assignments matches
Session information list item when, the packet transfer device, packet judge the data packet not be user the first session first data
It wraps, then the packet transfer device, packet is distributed to described according to the occupied bandwidth of user and the signing bandwidth of user, acquisition
The third available bandwidth of first session;And according to the third available bandwidth, forward the data packet of first session.
On the basis of the above embodiments, for delay sensitive business, when the available bandwidth burst of user is to allowing to happen suddenly
When bandwidth, the available bandwidth of delay sensitive business also realizes burst accordingly, and duration is buffered so as to shorten business.
But, it will usually there are some users often to carry out big flow download, or frequently accesses video, it is a large amount of to occupy
Network bandwidth, in order to realize the reasonable distribution between different user and dispatch limited network bandwidth resources to improve network entirety
QoS of customer, can be to excessively using the user of Internet resources to carry out bandwidth limitation.Further, the embodiment of the present invention carries
In the data packet forwarding method of confession, packet transfer device, packet is additionally operable to the bandwidth use information of counting user, and according to the band
Wide use information calculates the average occupied bandwidth of user;Optionally, packet transfer device, packet is additionally operable to the data flow of counting user
Information is measured, and calculates the total flow of user according to the data traffic information.ISP can adjust according to preset strategy
For the permission burst bandwidth of user's distribution, the preset strategy may include one of following two strategies:
Strategy 1:Average occupied bandwidth based on user:
Within the predetermined time, packet transfer device, packet obtains the average occupied bandwidth of user, if the average occupancy
Band is wider than the signing bandwidth of user, then gradually reduces the permission burst bandwidth until being not more than the signing bandwidth.
Fig. 3 is the permission burst bandwidth that the average occupied bandwidth provided in an embodiment of the present invention based on user adjusts user
Principle schematic.As shown in figure 3, real broken lineIndicate the permission burst bandwidth of user, dash lineIndicate the average occupied bandwidth of user.When initial, packet transfer device, packet allows the band that happens suddenly for user's distribution
Width is 10Mbps, and the signing bandwidth of user is 6Mbps.At the T0 moment, the average occupied bandwidth of user is more than signing bandwidth
6Mbps, then packet transfer device, packet burst bandwidth will be allowed to be adjusted to 9Mbps, the permission burst bandwidth after adjustment is no more than flat
Equal occupied bandwidth, such as;Similarly, at T1 moment, T2 moment and T3 moment, packet transfer device, packet to allow burst bandwidth into
Row gradually adjusts, and the permission burst bandwidth after adjustment is no more than signing bandwidth 6Mbps.Further, as shown in figure 3, in T5
User can be turned up when packet transfer device, packet confirms the average occupied bandwidth of user no more than signing bandwidth 6Mbps in moment
Permission burst bandwidth, to improve QoS of customer, quickly respond user service request.
Strategy 2:Total flow based on user:
Within the predetermined time, the total flow of packet transfer device, packet counting user, if the total flow reaches adjustment
Threshold value then gradually reduces the permission burst bandwidth until being not more than the signing bandwidth.
Fig. 4 is that the principle for the permission burst bandwidth that the total flow provided in an embodiment of the present invention based on user adjusts user is shown
It is intended to.As shown in figure 4, real broken lineIndicate the permission burst bandwidth of user.When initial, packet transfer device, packet is
The permission burst bandwidth of user's distribution is 3.1Mbps, over time, such as is added up since monthly 1 day, when user is working as
When the total flow of the moon reaches a certain adjustment threshold value, for example, the total flow of user reaches 5G at the t0 moment, then data packet forwarding fills
Setting will allow burst bandwidth to be adjusted to 1Mbps;Similarly, 8G and 15G is reached in conjunction with other adjustment threshold value such as total flows, will permitted
Perhaps burst bandwidth is gradually adjusted, such as adjusts separately 128Kbps and 10Kbps, until making it be not more than the signing of user
Bandwidth.
On the basis of the above embodiments, user can be directed to and divide rank, average occupied bandwidth based on user or
Total flow controls the user of low level, is punished the user when average occupied bandwidth is more than signing bandwidth, i.e.,
The permission burst bandwidth for turning down user, to limit excessive use of the user to Internet resources.
Data packet forwarding method provided in an embodiment of the present invention, can be according to the total of the average occupied bandwidth of user or user
Flow is adjusted to the permission burst bandwidth of user's distribution, realizes and is adjusted to the ladderization of the permission burst bandwidth of user, thus
Reasonable distribution and the limited network bandwidth resources of scheduling are to improve the QoS of customer of network entirety between different user.
Fig. 5 is the structural schematic diagram of packet transfer device, packet provided in an embodiment of the present invention.As shown in figure 5, the present embodiment
Packet transfer device, packet 500, including:Receiving module 501, enquiry module 502, acquisition module 503 and forwarding module 504,
In:
The receiving module 501 is used for received data packet;
The enquiry module 502, the session information in the data packet for being received according to the receiving module 501 are looked into
Ask session information table, with judge the data packet whether be user the first session first data packet;
The acquisition module 503, for judging first session of the data packet for user in the enquiry module 502
When first data packet, the occupied bandwidth of the user is obtained, and according to the occupied bandwidth of the user and be the use
The pre-assigned permission burst bandwidth in family obtains the first available bandwidth for distributing to first session;It is described to allow the band that happens suddenly
It is wider than the signing bandwidth of the user;
The forwarding module 504, first available bandwidth for being obtained according to the acquisition module 503, predetermined
The data packet of forwarding first session in time.
Optionally, the acquisition module 503 is additionally operable to after reaching the predetermined time, according to the occupied bandwidth
And the signing bandwidth, obtain the second available bandwidth for distributing to first session;Correspondingly, the forwarding module 504,
It is additionally operable to second available bandwidth obtained according to acquisition module 503, forwards the data packet of first session.
Further, the acquisition module 503 is described for judging the data packet not in the enquiry module 502
The first data packet of first session obtains distribution according to the occupied bandwidth of the user and the signing bandwidth of the user
To the third available bandwidth of first session;Correspondingly, the forwarding module 504 is additionally operable to be obtained according to acquisition module 503
The third available bandwidth, forward the data packet of first session.
The session information table is recording the session information of user;The session information may include five-tuple information,
Wherein five-tuple information includes:Source IP address, purpose IP address, source port number, destination slogan and protocol type.Specifically,
After the packet transfer device, packet 500 receives data packet, the five-tuple information of the data packet is obtained, and according to the data
The five-tuple information inquiry session information table of packet, with judge the data packet whether be user the first session first data
Packet.
Specifically, the packet transfer device, packet 500 passes through 501 received data packet of the receiving module;The inquiry mould
Session information in the data packet that block 502 is received according to the receiving module 501 inquires session information table;The acquisition mould
Block 503 obtains the use when the enquiry module 502 judges first data packet of the data packet for the first session of user
The occupied bandwidth at family, and allow the band that happens suddenly according to the occupied bandwidth of the user and for the user is pre-assigned
Width obtains the first available bandwidth for distributing to first session;Then the forwarding module 504 is according to the acquisition module
503 first available bandwidths obtained, forward the data packet of first session in the given time.
The packet transfer device, packet 500 provided in an embodiment of the present invention can be used for executing data shown in Fig. 1 of the present invention
The technical solution of package transmitting method embodiment, implementing principle and technical effect are similar, and detail can refer to method shown in Fig. 1
Embodiment, details are not described herein again.
Optionally, the packet transfer device, packet 500 further includes adjustment module 505;
The adjustment module 505, within the predetermined time, the average occupied bandwidth of the user being obtained, if institute
It states average occupied bandwidth and is more than the signing bandwidth, then gradually reduce the permission burst bandwidth until being not more than the signing band
It is wide.
The adjustment module 505, is additionally operable within the predetermined time, counts the total flow of the user, if described total
Flow reaches adjustment threshold value, then gradually reduces the permission burst bandwidth until being not more than the signing bandwidth.
Optionally, the packet transfer device, packet 500 further includes session information table maintenance module 506;The session information
Table maintenance module 506 is for safeguarding the session information table;It specifically includes and creates the session information table, increase newly, aging(It deletes
It removes)Session information list item in the session information table;The session information table maintenance module 506 is specifically used in enquiry module
When the 502 judgement data packets are the first data packet of the first session of the user, one is increased newly in the session information table
Session information list item, the information for preserving first session.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment(Can be personal computer, server or the network equipment etc.)Or processor(processor)It is each to execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory(Read-
Only Memory, ROM), random access memory(Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function module
Division progress for example, in practical application, can be complete by different function modules by above-mentioned function distribution as needed
At the internal structure of device being divided into different function modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Fig. 6 is the structural schematic diagram of another packet transfer device, packet provided in an embodiment of the present invention.As shown in fig. 6, this reality
The packet transfer device, packet 600 of example is applied, including:Processor 601, memory 602 and communication interface 603, further include communication bus
604;Processor 601, memory 602 and communication interface 603 are connected with each other by bus 604.
Above-mentioned processor 601 can be general processor, including central processing unit(Central Processing
Unit, abbreviation CPU), network processing unit(Network Processor, abbreviation NP)Deng;It can also be digital signal processor
(DSP), application-specific integrated circuit(ASIC), ready-made programmable gate array(FPGA)Or it is other programmable logic device, discrete hard
Part component.
Memory 602, for storing program.Specifically, program may include program code, and said program code includes meter
Calculation machine operational order.Memory 602 may include high-speed RAM, it is also possible to further include nonvolatile memory(non-volatile
memory), a for example, at least magnetic disk storage.
The communication interface 603 is for the communication between the packet transfer device, packet 600 and other equipment;By described logical
Letter interface can receive or transmission data packet.
When the packet transfer device, packet 600 is run, communicated between processor 601 and memory 602, processor 601
The program stored in memory 602 is called, following operation is executed:
Received data packet;
Session information table is inquired according to the session information in the data packet;
If it is determined that the data packet is the first data packet of the first session of user, then the occupancy band of the user is obtained
It is wide;According to the occupied bandwidth of the user and it is the pre-assigned permission burst bandwidth of the user, institute is distributed in acquisition
State the first available bandwidth of the first session;The signing bandwidth for allowing burst bandwidth to be more than the user;
According to first available bandwidth, the data packet of first session is forwarded in the given time.
Optionally, further include:After reaching the predetermined time, according to the occupied bandwidth and the signing band
Width obtains the second available bandwidth for distributing to first session;And according to second available bandwidth, forward first meeting
The data packet of words.
Optionally, further include:When it is not the first data packet of the first session of the user to judge the data packet, root
According to the occupied bandwidth of user and the signing bandwidth of user, the third available bandwidth for distributing to first session is obtained;And
According to the third available bandwidth, the data packet of first session is forwarded.
Optionally, further include:Within the predetermined time, the average occupied bandwidth of the user is obtained, if described average
Occupied bandwidth is more than the signing bandwidth, then gradually reduces the permission burst bandwidth until being not more than the signing bandwidth;Or
Person,
Within the predetermined time, the total flow of the user is counted, if the total flow reaches adjustment threshold value, gradually
The permission burst bandwidth is reduced until being not more than the signing bandwidth.
Optionally, further include:When it is the first data packet of the first session of the user to judge the data packet, in institute
It states and increases a session information list item, the information for storing first session in session information table newly.
Optionally, the memory is additionally operable to store the session information table;The session information table is recording user
Session information, the session information may include five-tuple information, and wherein five-tuple information includes:Source IP address, destination IP
Address, source port number, destination slogan and protocol type.Specifically, the packet transfer device, packet 600 receives data packet
Afterwards, the five-tuple information of the data packet is obtained, and according to the five-tuple information inquiry session information table of the data packet, to sentence
The fixed data packet whether be user the first session first data packet.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit
Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
Using packet transfer device, packet provided in an embodiment of the present invention, by allocating permission burst bandwidth in advance for user,
When the new session of the user arrives, the occupied bandwidth according to the permission burst bandwidth of the user and the user is
The new session distributes the first available bandwidth, and can happen suddenly can to first for the data packet flow of the new session in the given time
Shorten initial buffering time with bandwidth to improve the initial buffer speed of new session, the business of the quick response network user is asked
It asks.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of data packet forwarding method, which is characterized in that including:
Received data packet;
Session information table is inquired according to the session information in the data packet;
If it is determined that the data packet is the first data packet of the first session of user, then the occupied bandwidth of the user is obtained;
According to the occupied bandwidth of the user and it is the pre-assigned permission burst bandwidth of the user, acquisition distributes to described the
First available bandwidth of one session;The signing bandwidth for allowing burst bandwidth to be more than the user, wherein described first is available
The value of bandwidth is the difference of the permission burst bandwidth and the occupied bandwidth of the user;
According to first available bandwidth, the data packet of first session is forwarded in the given time.
2. according to the method described in claim 1, it is characterized in that, further including:
Within the predetermined time, the average occupied bandwidth of the user is obtained, if the average occupied bandwidth is more than the label
About bandwidth then gradually reduces the permission burst bandwidth until being not more than the signing bandwidth.
3. according to the method described in claim 1, it is characterized in that, further including:
Within the predetermined time, the total flow of the user is counted, if the total flow reaches adjustment threshold value, is gradually reduced
The permission burst bandwidth is until being not more than the signing bandwidth.
4. method according to any one of claims 1 to 3, which is characterized in that further include:
After reaching predetermined time, according to the occupied bandwidth and the signing bandwidth, acquisition distributes to described the
Second available bandwidth of one session;And according to second available bandwidth, forward the data packet of first session.
5. method according to any one of claims 1 to 3, which is characterized in that further include:
When it is the first data packet of the first session of the user to judge the data packet, increased newly in the session information table
One session information list item, the information for storing first session.
6. a kind of packet transfer device, packet, which is characterized in that including:
Receiving module is used for received data packet;
Enquiry module, the session information in the data packet for being received according to the receiving module inquire session information table;
Acquisition module, if judging the first data packet of first session of the data packet for user for the enquiry module,
The occupied bandwidth of the user is obtained, and is permitted according to the occupied bandwidth of the user and for the user is pre-assigned
Perhaps burst bandwidth obtains the first available bandwidth for distributing to first session;The permission burst bandwidth is more than the user
Signing bandwidth, wherein the value of first available bandwidth be it is described allow burst bandwidth and the user occupancy band
Wide difference;
Forwarding module, first available bandwidth for being obtained according to the acquisition module, in the given time described in forwarding
The data packet of first session.
7. device according to claim 6, which is characterized in that described device further includes adjustment module, for described pre-
In fixing time, the average occupied bandwidth of the user is obtained, if the average occupied bandwidth is more than the signing bandwidth, gradually
The permission burst bandwidth is reduced until being not more than the signing bandwidth.
8. device according to claim 6, which is characterized in that described device further includes adjustment module, for described pre-
In fixing time, the total flow of the user is counted, if the total flow reaches adjustment threshold value, gradually reducing described allows to happen suddenly
Bandwidth is until being not more than the signing bandwidth.
9. according to claim 6 to 8 any one of them device, which is characterized in that
The acquisition module is additionally operable to after reaching the predetermined time, according to the occupied bandwidth and the signing band
Width obtains the second available bandwidth for distributing to first session;
The forwarding module is additionally operable to second available bandwidth obtained according to the acquisition module, forwards first meeting
The data packet of words.
10. according to claim 6 to 8 any one of them device, which is characterized in that described device further includes session information table dimension
Protect module, for the enquiry module judge the data packet be the user the first session first data packet when,
Increase a session information list item, the information for preserving first session in the session information table newly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310320101.2A CN104348753B (en) | 2013-07-26 | 2013-07-26 | Data packet forwarding method and packet transfer device, packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310320101.2A CN104348753B (en) | 2013-07-26 | 2013-07-26 | Data packet forwarding method and packet transfer device, packet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104348753A CN104348753A (en) | 2015-02-11 |
CN104348753B true CN104348753B (en) | 2018-10-12 |
Family
ID=52503582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310320101.2A Active CN104348753B (en) | 2013-07-26 | 2013-07-26 | Data packet forwarding method and packet transfer device, packet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104348753B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113423121A (en) * | 2015-08-17 | 2021-09-21 | 中兴通讯股份有限公司 | Bandwidth configuration method and device and data transmission method and device |
CN105471766B (en) * | 2015-11-25 | 2019-01-04 | 中国联合网络通信集团有限公司 | A kind of method of adjustment and device of web page access rate |
CN110048968B (en) * | 2019-04-12 | 2021-06-22 | 网宿科技股份有限公司 | Domain name bandwidth adjusting method and device |
US10958592B2 (en) | 2019-04-12 | 2021-03-23 | Wangsu Science & Technology Co., Ltd. | Domain name bandwidth adjustment method and apparatus |
CN111526033B (en) * | 2020-02-25 | 2023-06-06 | 上海飞旗网络技术股份有限公司 | Data packet delivery method and system based on composite priority control |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100020756A1 (en) * | 2008-07-24 | 2010-01-28 | Adapt4, Llc | Dynamically transformed channel set quality of service |
CN102185777B (en) * | 2011-05-11 | 2014-04-30 | 烽火通信科技股份有限公司 | Multi-stage hierarchical bandwidth management method |
CN102546423B (en) * | 2012-01-20 | 2014-10-29 | 福建星网锐捷网络有限公司 | Method and device for queue scheduling and network device |
CN103200124B (en) * | 2013-03-07 | 2016-12-28 | 北京华为数字技术有限公司 | The method of adjustment of a kind of business game and device |
-
2013
- 2013-07-26 CN CN201310320101.2A patent/CN104348753B/en active Active
Non-Patent Citations (1)
Title |
---|
基于RouterOS***的流量控制策略研究;王洪波;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130615;正文第13-15页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104348753A (en) | 2015-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10772081B2 (en) | Airtime-based packet scheduling for wireless networks | |
US10523458B2 (en) | Multicast to unicast conversion technique | |
US11316795B2 (en) | Network flow control method and network device | |
US7782776B2 (en) | Shared weighted fair queuing (WFQ) shaper | |
US8611217B2 (en) | Subscriber/service differentiation in advanced wireless networks | |
EP2283620B1 (en) | Partitioning entity and method for partitioning capacity | |
US20150282180A1 (en) | Dynamic allocation of network bandwidth | |
CN104348753B (en) | Data packet forwarding method and packet transfer device, packet | |
WO2017024824A1 (en) | Aggregated link-based traffic management method and device | |
WO2008022459A1 (en) | Oversubscription in broadband network | |
CN103858474A (en) | Enhanced performance service-based profiling for transport networks | |
CN107786468B (en) | hQoS-based MPLS network bandwidth allocation method and device | |
CN109792405B (en) | Method and apparatus for shared buffer allocation in a transmission node | |
JP2018037974A (en) | Gateway router, communication system, traffic flow control method, and program | |
EP2991295A1 (en) | System and method for handling data flows in an access network | |
EP3127288B1 (en) | Method, communication management module, network node and computer program product for scheduling in shared communication networks | |
US20230254264A1 (en) | Software-defined guaranteed-latency networking | |
US10742710B2 (en) | Hierarchal maximum information rate enforcement | |
Pang et al. | Enhanced layer 3 service differentiation for WLAN | |
Pranindito et al. | A performance analysis of packet scheduling algorithms between homogeneous algorithm and hybrid algorithm in point to multipoint WiMAX networks | |
CN113810314A (en) | Data scheduling method, device and storage medium | |
Wee et al. | Statistical approach in bandwidth granting process for IEEE 802.16 networks | |
Chakravarthy et al. | Improved credit based scheduling scheme with QOS in IEEE 802.16 WBA networks | |
Prior et al. | Performance evaluation of the RSVP reservation aggregation model | |
Fesehaye | Sharing Network Resources Efficiently |
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 |