CN105187321A - Method and device for flow control - Google Patents

Method and device for flow control Download PDF

Info

Publication number
CN105187321A
CN105187321A CN201510312383.0A CN201510312383A CN105187321A CN 105187321 A CN105187321 A CN 105187321A CN 201510312383 A CN201510312383 A CN 201510312383A CN 105187321 A CN105187321 A CN 105187321A
Authority
CN
China
Prior art keywords
queue
traffic messages
local device
congested
opposite equip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510312383.0A
Other languages
Chinese (zh)
Inventor
杨建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201510312383.0A priority Critical patent/CN105187321A/en
Publication of CN105187321A publication Critical patent/CN105187321A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/11Identifying congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Abstract

The invention discloses a method and a device for flow control, which relates to the field of information technologies and can improve the accuracy of flow control. The method comprises the steps that firstly local-end equipment determines a queue in which flow message congestion occurs at an output port when flow message congestion occurs at the output port of the local-end equipment; then the local-end equipment acquires IPv6 flow label identifiers corresponding to flow messages in the queue in which flow message congestion occurs and sends a flow control message carrying the IPv6 flow label identifiers to opposite-end equipment; and finally, the opposite-end equipment determines the flow messages corresponding to the IPv6 flow label identifiers and the queue sending the flow messages according to the IPv6 flow label identifiers, and adjusts the interval time of the queue for sending the flow messages. The method and the device disclosed by the invention are applicable to the local-end equipment to determine the flow message in which flow congestion occurs, and are applicable to the opposite-end equipment to adjust the interval time of the queue sending the flow messages.

Description

Control method and the device of flow
Technical field
The present invention relates to areas of information technology, particularly a kind of method and device controlling flow.
Background technology
Along with the development of the communication technology, data service flow also increases rapidly, in communication apparatus transmission network, the network equipment can forward the flow of the opposite equip. transmission received by multiple inbound port by an outbound port, therefore, by the situation of the outbound port generation flow congestion and packet loss that cause the network equipment, in order to avoid above-mentioned situation, need the interval time controlling opposite equip. transmitted traffic message.
At present, a kind of method controlling flow, when flow congestion appears in the port of export of local device, local device controls message, to adjust the interval time of opposite equip. transmitted traffic message to opposite equip. transmitted traffic.
But, when local device controls message to opposite equip. transmitted traffic, the port of all devices of opposite equip. is by the time interval of adjustment to local device transmitted traffic message, with the traffic messages making different business corresponding, all adjustment is sent to the interval time of local device, thus causes the accuracy controlling flow lower.
Summary of the invention
The invention provides a kind of method and the device that control flow, the accuracy controlling flow can be improved.
The technical solution used in the present invention is:
First aspect, the invention provides a kind of method controlling flow, comprising:
When the outbound port generation traffic messages of local device is congested, described local device determines the queue that described outbound port generation traffic messages is congested;
Described local device obtains the IPv6 stream label mark that in the congested queue of described generation traffic messages, traffic messages is corresponding;
Described local device, by carrying the flow control message of described IPv6 stream label mark, is sent to opposite equip.;
Described opposite equip. determines according to described IPv6 stream label mark the traffic messages that described IPv6 stream label mark is corresponding, and sends the queue of described traffic messages, and adjusts the interval time that described queue sends described traffic messages.
Second aspect, the invention provides a kind of device controlling flow, comprising:
First determining unit, is arranged in local device, for when the outbound port generation traffic messages of local device is congested, determines the queue that described outbound port generation traffic messages is congested;
First acquiring unit, is arranged in described local device, for obtaining the IPv6 stream label mark that in the congested queue of described generation traffic messages, traffic messages is corresponding;
Transmitting element, is arranged in described local device, for the flow control message by carrying the described IPv6 stream label mark that described first acquiring unit obtains, is sent to opposite equip.;
Second determining unit, is arranged in described opposite equip., for determining according to described IPv6 stream label mark the traffic messages that described IPv6 stream label mark is corresponding, and sends the queue of described traffic messages;
Adjustment unit, is arranged in described opposite equip., sends the interval time of described traffic messages for adjusting described queue.
The method of control flow provided by the invention and device, when the outbound port generation traffic messages of local device is congested, first local device determines the queue that port generation traffic messages is congested, then local device obtains and IPv6 stream label mark corresponding to traffic messages in the congested queue of traffic messages occurs and will carry the flow control message of IPv6 stream label mark, be sent to opposite equip., last opposite equip. determines according to IPv6 stream label mark the traffic messages that IPv6 stream label mark is corresponding, and the queue of transmitted traffic message, and adjust the interval time of queue transmitted traffic message.Control compared with message with current local device to opposite equip. transmitted traffic, the present invention determines the congested queue of traffic messages occurs by local device, the flow control message that this can be carried IPv6 stream label mark in this queue is sent to opposite equip., with the queue making opposite equip. determine the traffic messages that this IPv6 stream label mark is corresponding and opposite equip. corresponding to this traffic messages, namely the queue of the opposite equip. sending the type traffic messages can be determined, thus the interval time that opposite equip. sends the type traffic messages can be adjusted, and then the accuracy controlling flow can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in the present invention or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram controlling flow in the embodiment of the present invention;
Fig. 2 is the another kind of method flow diagram controlling flow in the embodiment of the present invention;
Fig. 3 is the method flow diagram that in the embodiment of the present invention, another controls flow;
Fig. 4 is the method flow diagram that in the embodiment of the present invention, another controls flow;
Fig. 5 is the method flow diagram that in the embodiment of the present invention, another controls flow;
Fig. 6 is the apparatus structure schematic diagram controlling flow in the embodiment of the present invention;
Fig. 7 is the another kind of apparatus structure schematic diagram controlling flow in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method controlling flow, and can improve the accuracy controlling flow, as shown in Figure 1, described method comprises:
101, when the outbound port generation traffic messages of local device is congested, local device determines the queue that port generation traffic messages is congested.
For the embodiment of the present invention, the outbound port of local device receives and forwards the traffic messages of multiple inbound port transmission, therefore will cause the outbound port of local device that congested or packet loss occurs.
For the embodiment of the present invention, the outbound port of local device is provided with multiple queue, and each queue stores a kind of traffic messages, and different queues stores different traffic messages.In embodiments of the present invention, the traffic messages flowed out when this local device outbound port is less than the traffic messages that this outbound port flows into, then this outbound port traffic messages congested will occur.
For the embodiment of the present invention, due to the rate of outflow and the inflow velocity difference of dissimilar traffic messages, then the Congestion Level SPCC of each queue is different, therefore, when the outbound port generation packet congestion of local device, then determines congested queue occurs.
102, local device obtains and IPv6 stream label mark corresponding to traffic messages in the congested queue of traffic messages occurs.
For the embodiment of the present invention, different traffic messages is configured with different Internet protocols (English full name: InternetProtocolVersion6, english abbreviation: IPv6), and different IPv6 stream label marks is for identifying different traffic messages.Such as, IPv6 stream label 1 is for identifying traffic messages 1, IPv6 stream label 2 for identifying traffic messages 2.
103, local device is by carrying the flow control message of IPv6 stream label mark, is sent to opposite equip..
For the embodiment of the present invention, there is header in flow control message, defines a flow label field in this header, defines IPv6 stream label mark in this field, to identify, congested traffic messages occurs.In embodiments of the present invention, local device, by carrying the flow control message of IPv6 stream label mark, is sent to opposite equip., to inform the traffic messages that flow congestion occurs in this local device.
104, opposite equip. determines the traffic messages that IPv6 stream label mark is corresponding and the queue of transmitted traffic message according to IPv6 stream label mark, and adjusts the interval time of queue transmitted traffic message.
For the embodiment of the present invention, the flow control message carrying IPv6 stream label mark is sent to opposite equip. by local device, the traffic messages that flow congestion occurs is known in local device to make opposite equip., opposite equip. determines the queue sending this traffic messages in the device again, and adjusts the interval time of transmitted traffic message in this queue.
For the embodiment of the present invention, because opposite equip. needs the traffic messages determining packet congestion occurs in local device, queue corresponding in opposite equip., therefore, the IPv6 stream label mark of carrying in the flow control message that opposite equip. sends according to local device, determine to occur in local device the queue that the traffic messages of packet congestion and opposite equip. send this traffic messages, thus adjust the interval time of this queue transmitted traffic message.
The method of the control flow that the embodiment of the present invention provides, when the outbound port generation traffic messages of local device is congested, first local device determines the queue that port generation traffic messages is congested, then local device obtains and IPv6 stream label mark corresponding to traffic messages in the congested queue of traffic messages occurs and will carry the flow control message of IPv6 stream label mark, be sent to opposite equip., last opposite equip. determines according to IPv6 stream label mark the traffic messages that IPv6 stream label mark is corresponding, and the queue of transmitted traffic message, and adjust the interval time of queue transmitted traffic message.Control compared with message with current local device to opposite equip. transmitted traffic, the embodiment of the present invention is determined the congested queue of traffic messages occurs by local device, the flow control message that this can be carried IPv6 stream label mark in this queue is sent to opposite equip., with the queue making opposite equip. determine the traffic messages that this IPv6 stream label mark is corresponding and opposite equip. corresponding to this traffic messages, namely the queue of the opposite equip. sending the type traffic messages can be determined, thus the interval time that opposite equip. sends the type traffic messages can be adjusted, and then the accuracy controlling flow can be improved.
In the implementation that the another kind of the embodiment of the present invention is possible, on the basis of implementation as shown in Figure 1, step 101, when the outbound port generation traffic messages of local device is congested, local device is determined the queue that port generation traffic messages is congested can also comprise step 201 as shown in Figure 2 before.
201, opposite equip. is traffic messages configuration of IP v6 stream label mark.
For the embodiment of the present invention, opposite equip. is traffic messages configuration of IP v6 stream label mark, to identify in opposite equip. to the traffic messages that local device sends.
For the embodiment of the present invention, because opposite equip. needs the queue that the traffic messages of the IPv6 stream label mark of carrying in the flow control message determining to send in local device is corresponding in opposite equip., because the queue generation packet congestion of local device, the traffic messages in the congested queue of this queue generation traffic messages can be obtained, and the IPv6 stream label of this traffic messages mark is sent to opposite equip., opposite equip. can determine according to this IPv6 stream label mark the queue sending this traffic messages.
For the embodiment of the present invention, by opposite equip. be traffic messages configuration of IP v6 stream label mark, can determine to occur in local device the IPv6 stream label mark of traffic messages in the queue of flow congestion, and send the queue corresponding in opposite equip. of traffic messages corresponding to this IPv6 stream label mark, thus the interval time of this traffic messages of transmission of this queue in this opposite equip. can be adjusted, and then the accuracy controlling flow can be improved further.
In the implementation that the another kind of the embodiment of the present invention is possible, on the basis of implementation as shown in Figure 1, step 101, when the outbound port generation traffic messages of local device is congested, local device is determined the queue that port generation traffic messages is congested can also comprise step 301 as shown in Figure 3 before.
301, local device is the queue configuration congestion threshold value in the outbound port of local device.
For the embodiment of the present invention, local device needs, for each queue configuration congestion threshold value in this equipment, when namely the traffic messages of buffer memory reaches this congestion threshold value in a queue, to characterize this queue generation packet congestion.
For the embodiment of the present invention, congestion threshold value can account for the percentage of this queue spatial cache for the traffic messages of buffer memory, also can be the quantity of the traffic messages of buffer memory in this queue spatial cache.Do not limit in embodiments of the present invention.
Such as, congestion threshold value can for accounting for this queue spatial cache 80%, or in this queue spatial cache, the quantity of the traffic messages of buffer memory is 100.
For the embodiment of the present invention, local device is by being each queue configuration congestion threshold value, can work as this local device generation traffic messages congested time, determine the queue that packet congestion occurs, thus the interval time of this queue transmitted traffic message can be adjusted, and then the accuracy controlling flow can be improved further.
In the implementation that the another kind of the embodiment of the present invention is possible, on the basis of implementation as shown in Figure 3, step 101, when the outbound port generation traffic messages of local device is congested, local device determines the queue that port generation traffic messages is congested, specifically can be implemented as step 401 as shown in Figure 4, step 101, when the outbound port generation traffic messages of local device is congested, local device determines the queue that port generation traffic messages is congested, step 402-403 can also be comprised afterwards, step 103, local device will carry the flow control message of IPv6 stream label mark, be sent to opposite equip., specifically can be implemented as step 404.
401, when the outbound port generation packet congestion of local device, local device determines the queue exceeding congestion threshold value.
For the embodiment of the present invention, when local device detects the outbound port generation packet congestion of this local device, then there is queue generation traffic messages in sign local device congested, namely there is the congestion threshold value that the traffic messages of buffer memory in queue has exceeded this queue.
For the embodiment of the present invention, when the outbound port generation packet congestion of local device, local device every preset time, can detect the caching situation of traffic messages in each queue in this equipment outbound port, then judges the threshold value whether this queue reaches congested.
For the embodiment of the present invention, preset time can be arranged by local device, also can be arranged by user.Do not limit in embodiments of the present invention.
402, local device determines the Congestion Level SPCC of the queue exceeding congestion threshold value.
Wherein, in the queue of Congestion Level SPCC sign, the flow of buffer memory accounts for the percentage of queue spatial cache.
For the embodiment of the present invention, when the outbound port of local device occurs congested, the Congestion Level SPCC of each queue in this outbound port is not identical.
Such as, there are 5 queues in the outbound port of local device, be respectively queue 1, queue 2, queue 3, queue 4 and queue 5, when the outbound port generation packet congestion of this local device, the Congestion Level SPCC of queue 1 is 70%, the Congestion Level SPCC of queue 2 is 75%, the Congestion Level SPCC of queue 3 is 80%, the Congestion Level SPCC of queue 4 be 85% and the Congestion Level SPCC of queue 5 be 90%.
403, local device is according to the Congestion Level SPCC of queue exceeding congested value, determines to exceed the time out that traffic messages in the queue of congested value is corresponding.
For the embodiment of the present invention, because the Congestion Level SPCC of each queue is not identical, then this local device is according to the Congestion Level SPCC of each queue, is each queue configuration time out, to make opposite equip. according to time out, adjust the interval time of each queue transmitted traffic message.
Wherein, the Congestion Level SPCC of queue is more serious, and local device is that the time out of this queue configuration is longer.
Such as, if the Congestion Level SPCC of queue 1 is 70%, the Congestion Level SPCC of queue 2 is 75%, the Congestion Level SPCC of queue 3 is 80%, the Congestion Level SPCC of queue 4 be 85% and the Congestion Level SPCC of queue 5 be 90%, then local device is that to configure time out be 1 second (s) in queue 1, the time out configured for queue 2 is 1.5s, the time out configured for queue 3 is 2s, for queue 4 configure time out be 2.5s, and for queue 5 configure time out be 3s.
404, local device by carry exceed congested value queue in traffic messages corresponding IPv6 stream label mark and time out be sent to opposite equip..
For the embodiment of the present invention, this IPv6 stream label mark and time out are sent to this opposite equip. by flow control message.Wherein, IPv6 stream label mark corresponding to traffic messages in one or more queue and time out is carried in this flow control message.
For the embodiment of the present invention, local device is by the Congestion Level SPCC for each queue configuration congestion threshold and queue, can judge whether each queue exceedes congestion threshold value, and the time out of each queue is determined according to the Congestion Level SPCC of each queue, thus opposite equip. can be made according to the time out of correspondence, queue in accurate control opposite equip. sends the interval time of this traffic messages, and then can improve the accuracy controlling flow further.
In the implementation that the another kind of the embodiment of the present invention is possible, on the basis of implementation as shown in Figure 4, step 404, local device by carry exceed congested value queue in traffic messages corresponding IPv6 stream label mark and time out be sent to opposite equip., step 501-502 as shown in Figure 5 can also be comprised afterwards, step 104, opposite equip. determines according to IPv6 stream label mark the traffic messages that IPv6 stream label mark is corresponding, and the queue of transmitted traffic message, and adjust the interval time of queue transmitted traffic message, specifically can be implemented as step 503.
501, opposite equip. receives flow control message.
Wherein, flow control message carries IPv6 stream label mark corresponding to traffic messages in the queue exceeding congested value and time out.
For the embodiment of the present invention, this flow control message comprises: IPv6 flow label field, comprise medium education (English full name: MediaAccessControl, english abbreviation: MAC) address, source MAC, command code (English full name: OPCODE), type of message field in this IPv6 flow label field and carry the quantity of stream label.
Wherein, target MAC (Media Access Control) address is multicast address, can is 01-80-c2-00-00-01, and source MAC is the MAC Address of local device flow inbound port, and OPCODE is set to the particular type of 0002, and the value of type of message field is set as the 0x8818 fixed.
For the embodiment of the present invention, opposite equip. is by resolving flow control message, target MAC (Media Access Control) address, source MAC and the type of message field of carrying in this flow control message can be obtained, thus can determine whether this flow control message is IPv6 stream label message according to target MAC (Media Access Control) address, source MAC and type of message field, and carry out flow control according to the flow control flow process of this IPv6 stream label, and then the accuracy controlling flow can be improved further.
502, opposite equip. resolves flow control message, obtains exceeding IPv6 stream label mark and time out that in the queue of congested value, traffic messages is corresponding.
For the embodiment of the present invention, opposite equip. is by resolving flow control message, obtain target MAC (Media Access Control) address OPCODE and type of message field, to make opposite equip. according to target MAC (Media Access Control) address OPCODE and type of message field, to judge that whether this flow control message is the flow control message of IPv6 stream label.
For the embodiment of the present invention, opposite equip. resolves flow control message, can get IPv6 stream label mark corresponding to traffic messages in the congested queue of local device generation message flow and time out.
503, opposite equip. determines according to IPv6 stream label mark the traffic messages that IPv6 stream label mark is corresponding, and the queue of transmitted traffic message, and according to time out, the interval time of the queue transmitted traffic message of the traffic messages that adjustment IPv6 stream label is corresponding.
For the embodiment of the present invention, opposite equip. obtains by parsing the IPv6 stream label that in the congested queue of local device generation message flow, traffic messages is corresponding and identifies and time out, the queue sending this traffic messages in opposite equip. can be determined according to IPv6 stream label mark, and can time out corresponding to this queue, control the interval time of this queue transmitted traffic message, thus the accuracy controlling flow can be improved further.
Further, the method of the control flow that the embodiment of the present invention provides, by opposite equip. be traffic messages configuration of IP v6 stream label mark, can determine to occur in local device the IPv6 stream label mark of traffic messages in the queue of flow congestion, and send the queue corresponding in opposite equip. of traffic messages corresponding to this IPv6 stream label mark, thus the interval time of this traffic messages of transmission of this queue in this opposite equip. can be adjusted, and then the accuracy controlling flow can be improved further; Local device is by being each queue configuration congestion threshold value, can work as this local device generation traffic messages congested time, determine the queue that packet congestion occurs, thus the interval time of this queue transmitted traffic message can be adjusted, and then the accuracy controlling flow can be improved further; Local device is by the Congestion Level SPCC for each queue configuration congestion threshold and queue, can judge whether each queue exceedes congestion threshold value, and the time out of each queue is determined according to the Congestion Level SPCC of each queue, thus opposite equip. can be made according to the time out of correspondence, queue in accurate control opposite equip. sends the interval time of this traffic messages, and then can improve the accuracy controlling flow further; Opposite equip. is by resolving flow control message, target MAC (Media Access Control) address, source MAC and the type of message field of carrying in this flow control message can be obtained, thus can determine whether this flow control message is IPv6 stream label message according to target MAC (Media Access Control) address, source MAC and type of message field, and carry out flow control according to the flow control flow process of this IPv6 stream label, and then the accuracy controlling flow can be improved further; Opposite equip. obtains by parsing the IPv6 stream label that in the congested queue of local device generation message flow, traffic messages is corresponding and identifies and time out, the queue sending this traffic messages in opposite equip. can be determined according to IPv6 stream label mark, and can time out corresponding to this queue, control the interval time of this queue transmitted traffic message, thus the accuracy controlling flow can be improved further.
As the realization to method shown in Fig. 1, Fig. 2, Fig. 3 Fig. 4 and Fig. 5, the embodiment of the present invention additionally provides a kind of device controlling flow, for improving the accuracy controlling flow, as shown in Figure 6, described device comprises: the first determining unit 61, acquiring unit 62, transmitting element 63, second determining unit 64, adjustment unit 65.
First determining unit 61, is arranged in local device, for when the outbound port generation traffic messages of local device is congested, determines the queue that port generation traffic messages is congested.
Acquiring unit 62, is arranged in local device, for obtaining, IPv6 stream label mark corresponding to traffic messages in the congested queue of traffic messages occurs.
Transmitting element 63, is arranged in local device, for the flow control message by carrying the IPv6 stream label mark that acquiring unit 62 obtains, is sent to opposite equip..
Second determining unit 64, is arranged in opposite equip., for determining the traffic messages that IPv6 stream label mark is corresponding and the queue of transmitted traffic message according to IPv6 stream label mark.
Adjustment unit 65, is arranged in opposite equip., for adjusting the interval time of queue transmitted traffic message.
Further, as shown in Figure 7, described device also comprises: the first dispensing unit 71, second dispensing unit 72.
First dispensing unit 71, is arranged in opposite equip., for being traffic messages configuration of IP v6 stream label mark.
Second dispensing unit 72, is arranged in local device, for being the queue configuration congestion threshold value in the outbound port of local device.
First determining unit 61, is arranged in local device, and specifically for when the outbound port generation packet congestion of local device, local device determines the queue exceeding congestion threshold value.
First determining unit 61, is arranged in local device, determines the Congestion Level SPCC of the queue exceeding congested value specifically for local device.
Wherein, in the queue of Congestion Level SPCC sign, the traffic messages of buffer memory accounts for the percentage of queue spatial cache.
First determining unit 61, is arranged in local device, also for according to the Congestion Level SPCC of queue exceeding congested value, determines to exceed the time out that traffic messages in the queue of congested value is corresponding.
Transmitting element 63, is arranged in local device, also for by carry exceed congested value queue in traffic messages corresponding IPv6 stream label mark and time out be sent to opposite equip..
Further, as shown in Figure 7, described device also comprises: receiving element 73, resolution unit 74;
Receiving element 73, is arranged in opposite equip., for receiving flow control message.
Wherein, flow control message carries IPv6 stream label mark corresponding to traffic messages in the queue exceeding congested value and time out.
Resolution unit 74, is arranged in opposite equip., for resolving flow control message, obtains exceeding IPv6 stream label mark and time out that in the queue of congested value, traffic messages is corresponding.
Adjustment unit 65, is arranged in opposite equip., specifically for according to time out, adjusts the interval time of the queue transmitted traffic message of traffic messages corresponding to IPv6 stream label mark.
The device of the control flow that the embodiment of the present invention provides, when the outbound port generation traffic messages of local device is congested, first local device determines the queue that port generation traffic messages is congested, then local device obtains and IPv6 stream label mark corresponding to traffic messages in the congested queue of traffic messages occurs and will carry the flow control message of IPv6 stream label mark, be sent to opposite equip., last opposite equip. determines according to IPv6 stream label mark the traffic messages that IPv6 stream label mark is corresponding, and the queue of transmitted traffic message, and adjust the interval time of queue transmitted traffic message.Control compared with message with current local device to opposite equip. transmitted traffic, the embodiment of the present invention is determined the congested queue of traffic messages occurs by local device, the flow control message that this can be carried IPv6 stream label mark in this queue is sent to opposite equip., with the queue making opposite equip. determine the traffic messages that this IPv6 stream label mark is corresponding and opposite equip. corresponding to this traffic messages, namely the queue of the opposite equip. sending the type traffic messages can be determined, thus the interval time that opposite equip. sends the type traffic messages can be adjusted, and then the accuracy controlling flow can be improved.
Further, the device of the control flow that the embodiment of the present invention provides, by opposite equip. be traffic messages configuration of IP v6 stream label mark, can determine to occur in local device the IPv6 stream label mark of traffic messages in the queue of flow congestion, and send the queue corresponding in opposite equip. of traffic messages corresponding to this IPv6 stream label mark, thus the interval time of this traffic messages of transmission of this queue in this opposite equip. can be adjusted, and then the accuracy controlling flow can be improved further; Local device is by being each queue configuration congestion threshold value, can work as this local device generation traffic messages congested time, determine the queue that packet congestion occurs, thus the interval time of this queue transmitted traffic message can be adjusted, and then the accuracy controlling flow can be improved further; Local device is by the Congestion Level SPCC for each queue configuration congestion threshold and queue, can judge whether each queue exceedes congestion threshold value, and the time out of each queue is determined according to the Congestion Level SPCC of each queue, thus opposite equip. can be made according to the time out of correspondence, queue in accurate control opposite equip. sends the interval time of this traffic messages, and then can improve the accuracy controlling flow further; Opposite equip. is by resolving flow control message, target MAC (Media Access Control) address, source MAC and the type of message field of carrying in this flow control message can be obtained, thus can determine whether this flow control message is IPv6 stream label message according to target MAC (Media Access Control) address, source MAC and type of message field, and carry out flow control according to the flow control flow process of this IPv6 stream label, and then the accuracy controlling flow can be improved further; Opposite equip. obtains by parsing the IPv6 stream label that in the congested queue of local device generation message flow, traffic messages is corresponding and identifies and time out, the queue sending this traffic messages in opposite equip. can be determined according to IPv6 stream label mark, and can time out corresponding to this queue, control the interval time of this queue transmitted traffic message, thus the accuracy controlling flow can be improved further.
It should be noted that, other the corresponding descriptions in the device of the control flow provided in the embodiment of the present invention corresponding to each unit, reference diagram 1, correspondence in Fig. 2, Fig. 3, Fig. 4 and Fig. 5 can describe, do not repeat them here.
The device of the control flow that the embodiment of the present invention provides can realize the above-mentioned embodiment of the method provided, and concrete function realizes the explanation referred in embodiment of the method, does not repeat them here.The method of the control flow that the embodiment of the present invention provides and device go for the traffic messages that local device determines to occur flow congestion, and opposite equip. adjustment sends the interval time of the queue of this traffic messages.But be not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. control a method for flow, it is characterized in that, comprising:
When the outbound port generation traffic messages of local device is congested, described local device determines the queue that described outbound port generation traffic messages is congested;
Described local device obtains the IPv6 stream label mark that in the congested queue of described generation traffic messages, traffic messages is corresponding;
Described local device, by carrying the flow control message of described IPv6 stream label mark, is sent to opposite equip.;
Described opposite equip. determines according to described IPv6 stream label mark the traffic messages that described IPv6 stream label mark is corresponding, and sends the queue of described traffic messages, and adjusts the interval time that described queue sends described traffic messages.
2. the method for control flow according to claim 1, is characterized in that, described when the outbound port generation traffic messages of local device is congested, and described local device also comprises before determining the step of the queue that described outbound port generation traffic messages is congested:
Described opposite equip. is described traffic messages configuration of IP v6 stream label mark.
3. the method for control flow according to claim 2, is characterized in that, described when the outbound port generation traffic messages of local device is congested, and described local device also comprises before determining the step of the queue that described outbound port generation traffic messages is congested:
Described local device is the queue configuration congestion threshold value in the outbound port of described local device.
4. the method for control flow according to claim 3, is characterized in that, described when the outbound port generation traffic messages of local device is congested, and described local device determines the step of the queue that described outbound port generation traffic messages is congested, specifically comprises:
When the outbound port generation packet congestion of described local device, described local device determines the queue exceeding described congestion threshold value;
Described when the outbound port generation traffic messages of local device is congested, described local device also comprises after determining the step of the queue that described outbound port generation traffic messages is congested:
Described local device exceedes the Congestion Level SPCC of the queue of described congested value described in determining, the traffic messages that described Congestion Level SPCC characterizes buffer memory in described queue accounts for the percentage of described queue spatial cache;
Described local device according to described in exceed the Congestion Level SPCC of the queue of described congested value, exceed the time out that traffic messages in the queue of described congested value is corresponding described in determining;
Described local device will carry the flow control message of described IPv6 stream label mark, is sent to the step of opposite equip., specifically comprises:
IPv6 stream label mark corresponding for traffic messages described in the queue exceeding described congested value described in carrying and time out are sent to described opposite equip. by described local device.
5. the method for control flow according to claim 4, it is characterized in that, described local device also comprises after IPv6 stream label mark corresponding for traffic messages described in the queue exceeding described congested value described in carrying and time out are sent to the step of described opposite equip.:
Described opposite equip. receives described flow control message, the IPv6 stream label mark that described in the queue exceeding described congested value described in described flow control message carries, traffic messages is corresponding and time out;
Described opposite equip. resolves described flow control message, exceedes IPv6 stream label mark and time out that in the queue of described congested value, traffic messages is corresponding described in obtaining;
The described queue of described adjustment sends the step of the interval time of described traffic messages, specifically comprises:
Described opposite equip., according to described time out, adjusts the interval time of the queue transmitted traffic message of traffic messages corresponding to described IPv6 stream label.
6. control a device for flow, it is characterized in that, comprising:
First determining unit, is arranged in local device, for when the outbound port generation traffic messages of local device is congested, determines the queue that described outbound port generation traffic messages is congested;
Acquiring unit, is arranged in described local device, for obtaining the IPv6 stream label mark that in the congested queue of described generation traffic messages, traffic messages is corresponding;
Transmitting element, is arranged in described local device, for the flow control message by carrying the described IPv6 stream label mark that described first acquiring unit obtains, is sent to opposite equip.;
Second determining unit, is arranged in described opposite equip., for determining according to described IPv6 stream label mark the traffic messages that described IPv6 stream label mark is corresponding, and sends the queue of described traffic messages;
Adjustment unit, is arranged in described opposite equip., sends the interval time of described traffic messages for adjusting described queue.
7. the device of control flow according to claim 6, is characterized in that, described device also comprises: the first dispensing unit;
Described first dispensing unit, is arranged in described opposite equip., for being described traffic messages configuration of IP v6 stream label mark.
8. the device of control flow according to claim 6, is characterized in that, described device also comprises: the second dispensing unit;
Described second dispensing unit, is arranged in described local device, for the queue configuration congestion threshold value in the outbound port for described local device.
9. the device of control flow according to claim 8, is characterized in that,
Described first determining unit, is arranged in described local device, and specifically for when the outbound port generation packet congestion of described local device, described local device determines the queue exceeding described congestion threshold value;
Described first determining unit, be arranged in described local device, exceed the Congestion Level SPCC of the queue of described congested value described in determining specifically for described local device, the traffic messages that described Congestion Level SPCC characterizes buffer memory in described queue accounts for the percentage of described queue spatial cache;
Described first determining unit, is arranged in described local device, also for exceeding the Congestion Level SPCC of the queue of described congested value described in basis, exceedes the time out that traffic messages in the queue of described congested value is corresponding described in determining;
Described transmitting element, is arranged in described local device, also for IPv6 stream label mark corresponding for traffic messages described in the queue exceeding described congested value described in carrying and time out are sent to described opposite equip..
10. the device of control flow according to claim 9, is characterized in that, described device also comprises: receiving element, resolution unit;
Described receiving element, is arranged in described opposite equip., for receiving described flow control message, and the IPv6 stream label mark that described in the queue exceeding described congested value described in described flow control message carries, traffic messages is corresponding and time out;
Described resolution unit, is arranged in described opposite equip., for resolving described flow control message, exceedes IPv6 stream label mark and time out that in the queue of described congested value, traffic messages is corresponding described in obtaining;
Described adjustment unit, is positioned at described opposite equip., specifically for according to described time out, adjusts the interval time of the queue transmitted traffic message of traffic messages corresponding to described IPv6 stream label.
CN201510312383.0A 2015-06-08 2015-06-08 Method and device for flow control Pending CN105187321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510312383.0A CN105187321A (en) 2015-06-08 2015-06-08 Method and device for flow control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510312383.0A CN105187321A (en) 2015-06-08 2015-06-08 Method and device for flow control

Publications (1)

Publication Number Publication Date
CN105187321A true CN105187321A (en) 2015-12-23

Family

ID=54909172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510312383.0A Pending CN105187321A (en) 2015-06-08 2015-06-08 Method and device for flow control

Country Status (1)

Country Link
CN (1) CN105187321A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107817944A (en) * 2016-09-12 2018-03-20 华为技术有限公司 A kind of data processing method and storage device
CN108667739A (en) * 2017-03-27 2018-10-16 华为技术有限公司 Jamming control method, apparatus and system
CN109347757A (en) * 2018-11-09 2019-02-15 锐捷网络股份有限公司 Message congestion control method, system, equipment and storage medium
WO2019072072A1 (en) * 2017-10-11 2019-04-18 华为技术有限公司 Congestion flow identification method and network device
CN113300974A (en) * 2020-07-10 2021-08-24 阿里巴巴集团控股有限公司 Congestion control method, equipment and computer readable medium
CN113300974B (en) * 2020-07-10 2024-04-26 阿里巴巴集团控股有限公司 Congestion control method, device and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070268903A1 (en) * 2006-05-22 2007-11-22 Fujitsu Limited System and Method for Assigning Packets to Output Queues
CN102932267A (en) * 2012-11-22 2013-02-13 合肥华云通信技术有限公司 Distributed flow control method for Ethernet switch
CN103997465A (en) * 2014-05-27 2014-08-20 华为技术有限公司 Method and device for generating CNM

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070268903A1 (en) * 2006-05-22 2007-11-22 Fujitsu Limited System and Method for Assigning Packets to Output Queues
CN102932267A (en) * 2012-11-22 2013-02-13 合肥华云通信技术有限公司 Distributed flow control method for Ethernet switch
CN103997465A (en) * 2014-05-27 2014-08-20 华为技术有限公司 Method and device for generating CNM

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赖常明; 唐国芳; 王磊;: "基于IPv6数据包标记拥塞控制算法的改进", 《广东通信技术》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107817944A (en) * 2016-09-12 2018-03-20 华为技术有限公司 A kind of data processing method and storage device
CN107817944B (en) * 2016-09-12 2021-05-18 华为技术有限公司 Data processing method and storage device
CN108667739A (en) * 2017-03-27 2018-10-16 华为技术有限公司 Jamming control method, apparatus and system
WO2019072072A1 (en) * 2017-10-11 2019-04-18 华为技术有限公司 Congestion flow identification method and network device
CN109660463A (en) * 2017-10-11 2019-04-19 华为技术有限公司 A kind of congestion stream recognition method and the network equipment
US11146489B2 (en) 2017-10-11 2021-10-12 Huawei Technologies Co., Ltd. Congestion flow identification method and network device
CN109347757A (en) * 2018-11-09 2019-02-15 锐捷网络股份有限公司 Message congestion control method, system, equipment and storage medium
CN113300974A (en) * 2020-07-10 2021-08-24 阿里巴巴集团控股有限公司 Congestion control method, equipment and computer readable medium
CN113300974B (en) * 2020-07-10 2024-04-26 阿里巴巴集团控股有限公司 Congestion control method, device and computer readable medium

Similar Documents

Publication Publication Date Title
EP2243302B1 (en) Method and nodes for congestion notification
EP3146682B1 (en) Method and system for managing flows in a network
CN101611601B (en) Proxy-based signaling architecture for streaming media services in a wireless communication system
US20220294722A1 (en) Transmission Quality Detection Method, Apparatus, and System, and Storage Medium
CN108964943B (en) Method and device for realizing IOAM packaging
JP7468969B2 (en) Apparatus for use in a first network node and an apparatus for use in a controller
CN105187321A (en) Method and device for flow control
CN102217378B (en) Method, device and system for detecting routing information
EP1650896A1 (en) Processing apparatus and method of analysing datagrams
CN104685839B (en) For handling the method and apparatus of grouping
EP3413514B1 (en) Method and device for managing network apparatus
JP2018524943A (en) Data transmission method, related apparatus, and system
CN105391647A (en) Method and system for flow control
CN113810295A (en) Path detection method, device and system
CN103166872A (en) Method for forwarding traffic in network and network equipment
US8923303B2 (en) Method, system and installation for forwarding data transmission frames
CN104506369A (en) Packet loss position detecting method and device
KR101992869B1 (en) Method and apparatus for managing mobility by service using multiproperty label switching in sdn
CN116527592A (en) Application layer stream following detection method and device based on APN (access point) and related equipment
JP4669454B2 (en) Data frame relay device and congestion control method in data communication network
CN102469016A (en) Device and method for determining path maximum transmission unit (PMTU) reversely
CN103067280B (en) Message processing method and device
CN111757273B (en) Multicast communication method, system, multicast application server and terminal of communication network
CN102215156A (en) Method, device and system for realizing flow forwarding
CN108632898B (en) Communication equipment and packet transmission method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223