CN105122740B - It is a kind of to shunt method, interchanger, controller and the system reported - Google Patents
It is a kind of to shunt method, interchanger, controller and the system reported Download PDFInfo
- Publication number
- CN105122740B CN105122740B CN201480000182.0A CN201480000182A CN105122740B CN 105122740 B CN105122740 B CN 105122740B CN 201480000182 A CN201480000182 A CN 201480000182A CN 105122740 B CN105122740 B CN 105122740B
- Authority
- CN
- China
- Prior art keywords
- newdata
- packet
- interchanger
- initial switch
- reported
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
Abstract
The invention discloses a kind of methods for shunting and reporting, including:Initial switch is when the newdata packet not reported is more than reporting ability upper threshold, it determines to separate at least one newdata packet reported, according to the information for other interchangers being connected directly with the initial switch, at least one newdata packet reported selection is separated for shunting the shunting interchanger reported to be described, to the shunting interchanger send described in separate at least one newdata packet reported, so as to the shunting interchanger by it is described to separate at least one newdata reported and wrap offer the controller.The embodiment of the present invention also provides corresponding equipment and system.Technical solution of the present invention is when there are many newdata packet that initial switch receives, the reporting newdata packet of the task can be turned other interchangers by being connected directly with initial switch to report, to accelerate the report speed of newdata packet, newdata packet congestion is avoided in initial switch.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of to shunt the method reported, interchanger, controller and be
System.
Background technology
Openflow is a kind of agreement for realizing software defined network (Software defined network, SDN),
The basic thought of Openflow networks is the separation for realizing data forwarding layer and control layer.Wherein OpenFlow interchangers are responsible for
The forwarding of data Layer, and controller Controller realizes the function of control layer.
Therefore entire Openflow networks are divided into data channel and control channel.
OpenFlow interchangers are mainly responsible for the forwarding of data.After OpenFlow interchangers receive data packet, exist first
Flow table item is matched in the flow table being previously obtained, flow table item is used to indicate processing method of the interchanger to the data packet, if
Flow table item is mixed, then can determine that the data packet is if not matching flow table item according to flow table item forwarding data packet
Newdata packet is then sent to Controller by newdata packet, by Controller according to the newdata packet and net
Network topology information determines the flow table item of the newdata packet.
It was found by the inventors of the present invention that in the prior art when the amount for receiving newdata packet in an interchanger short time
When larger, cannot each newdata packet be sent to controller in time in time, a large amount of newdata packet is caused to be in obstruction
State.
Invention content
The embodiment of the present invention provide it is a kind of shunting the method that reports, can by with the initial friendship that receives newdata packet
Other interchangers being connected directly of changing planes report the newdata packet not reported to controller shunting, to accelerate newdata
The report speed of packet avoids newdata packet congestion in initial switch.The embodiment of the present invention additionally provides corresponding friendship
It changes planes, controller and system.
First aspect present invention provides a kind of method for shunting and reporting, including:
Initial switch is determined to separate and is reported when the newdata packet not reported is more than reporting ability upper threshold
At least one newdata packet, wherein the newdata packet be not matched to flow table item in the initial switch
Data packet, the flow table item are used to indicate processing method of the initial switch to the newdata packet;
According to the information for other interchangers being connected directly with the initial switch, reported at least for described to separate
One newdata packet selection is for shunting the shunting interchanger reported;
The corresponding interim stream of at least one newdata packet reported is separated described in being established on the initial switch
List item, the output port of the interim flow table item are set as the port of the shunting interchanger;
According to the interim flow table item, at least one newly-built number reported is separated to described in shunting interchanger transmission
According to packet, so as to the shunting interchanger by it is described to separate at least one newdata reported and wrap offer the controller.
In the first possible realization method of first aspect, the method further includes:
It to be separated described in being sent to the shunting interchanger at least one newdata packet reported described in encapsulation
The identification information of initial switch is used for institute so that mark shunting is reported to the controller by the shunting interchanger
It states controller and the initial switch is determined according to the identification information, and to be separated according to described in initial switch determination
The corresponding flow table item of at least one newdata packet reported.
With reference to first aspect or first aspect the first possible realization method, in second of possible realization method,
The information for other interchangers that the basis is connected directly with the initial switch, for it is described to separate report it is at least one
The selection of newdata packet is for before shunting the shunting interchanger reported, the method to further include:
Receive the information for other interchangers being connected directly with the initial switch that the controller is sent.
With reference to first aspect, the first or second of possible realization method of first aspect, in the third possible realization
In mode, the method further includes:
When the initial switch determines that the newdata packet not reported is less than reporting ability bottom threshold, described in deletion
Interim flow table item.
With reference to first aspect, first aspect the first, second or the third possible realization method, in the 4th kind of possibility
Realization method in, the interim flow table item is located in last flow table of the initial switch, and be lowest priority.
Second aspect of the present invention provides a kind of method for shunting and reporting, including:
Receive the newdata packet that reports of shunting interchanger, wherein the newdata packet be in initial switch not
It is matched to flow table item, and by the initial switch when the newdata packet not reported reports the capacity threshold upper limit more than it,
It is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used to indicate the initial switch to described new
Build the processing method of data packet;
According to the newdata packet, the initial switch is determined;
Information is determined according to the rule in the initial switch and the newdata packet, determines the newdata packet
Flow table item.
It is described according to the newdata packet in the first possible realization method of second aspect, it determines described first
Beginning interchanger, including:
Parse the identification information of the interchanger encapsulated in the newdata packet;
According to the identification information of the interchanger, the initial switch is determined.
In conjunction with second aspect or second aspect the first possible realization method, in second of possible realization method,
The method further includes:
The information that other interchangers being connected directly with the initial switch are sent to the initial switch, with toilet
It states initial switch and determines the shunting interchanger for forwarding the newdata packet.
In conjunction with second aspect, second aspect the first or second of possible realization method, in the third possible realization
In mode, the rule determines that information includes one or more of the addresses media access control Mac, IP address, port numbers.
Third aspect present invention provides a kind of interchanger, including:
Determination unit, for when the newdata packet not reported is more than reporting ability upper threshold, determining to separate
At least one newdata packet reported, wherein the newdata packet is not to be matched to flow table item in initial switch
Data packet, the flow table item are used to indicate processing method of the initial switch to the newdata packet;
Selecting unit is described true for the information according to other interchangers being connected directly with the initial switch
At least one newdata packet reported that separate that order member determines is selected for shunting the shunting interchanger reported;
Creating unit, for separate at least one newdata packet reported described in the foundation on the initial switch
Corresponding interim flow table item, the output port of the interim flow table item are set as the shunting friendship of the selecting unit selection
The port changed planes;
Transmission unit, the interim flow table item for being created according to the creating unit are sent out to the shunting interchanger
At least one newdata packet reported is separated described in sending, so that the shunting interchanger reports described to separate at least
One newdata, which is wrapped, offers the controller.
In the first possible realization method of the third aspect, the interchanger further includes:
Encapsulation unit, for the transmission unit to shunting interchanger send described in separate report it is at least one
The identification information that the initial switch is encapsulated in newdata packet, so that the shunting interchanger reports mark shunting
To the controller, the initial switch is determined according to the identification information for the controller, and according to described initial
Interchanger will separate the corresponding flow table item of at least one newdata packet reported described in determining.
In conjunction with the third aspect or the third aspect the first possible realization method, in second of possible realization method,
The interchanger further includes:
Receiving unit, other interchangers being connected directly with the initial switch sent for receiving the controller
Information.
In conjunction with the third aspect, the third aspect the first or second of possible realization method, in the third possible realization
In mode, the interchanger further includes:
Deleting unit, for determining the newdata packet not reported less than under reporting ability threshold value in the determination unit
In limited time, the interim flow table item is deleted.
Fourth aspect present invention provides a kind of controller, including:
Receiving unit, the newdata packet reported for receiving shunting interchanger, wherein the newdata packet is first
Flow table item is not matched in beginning interchanger, and is more than its reporting ability in the newdata packet not reported by the initial switch
When upper threshold, it is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used to indicate the initial friendship
The processing method changed planes to the newdata packet;
First determination unit, the newdata packet for being received according to the receiving unit, determines the initial friendship
It changes planes;
Second determination unit, the initial switch for being determined according to first determination unit and the newly-built number
Information is determined according to the rule in packet, determines the flow table item of the newdata packet.
In the first possible realization method of fourth aspect, first determination unit includes:
Parsing subunit, the identification information for parsing the interchanger encapsulated in the newdata packet;
Determination subelement, the identification information of the interchanger for being parsed according to the parsing subunit, determines institute
State initial switch.
In conjunction with fourth aspect or fourth aspect the first possible realization method, in second of possible realization method,
The controller further includes:
Transmission unit, for sending other interchangers being connected directly with the initial switch to the initial switch
Information, forward the shunting interchanger of the newdata packet so that the initial switch determines.
In conjunction with fourth aspect, fourth aspect the first or second of possible realization method, in the third possible realization
In mode, the rule determines that information includes one or more of the addresses media access control Mac, IP address, port numbers.
Fifth aspect present invention provides a kind of interchanger, including:Input equipment, output equipment, processor and memory;
Wherein, the processor is for executing following steps:
The newdata packet not reported be more than reporting ability upper threshold when, determine to separate report it is at least one
Newdata packet, wherein the newdata packet is the data packet for not being matched to flow table item in the initial switch, described
Flow table item is used to indicate processing method of the initial switch to the newdata packet;
According to the information for other interchangers being connected directly with the initial switch, reported at least for described to separate
One newdata packet selection will separate on the initial switch described in foundation for shunting the shunting interchanger reported
The corresponding interim flow table item of at least one newdata packet of report, the output port of the interim flow table item are set as described point
Flow the port of interchanger;
According to the interim flow table item, at least one newly-built number reported is separated to described in shunting interchanger transmission
According to packet, so as to the shunting interchanger by it is described to separate at least one newdata reported and wrap offer the controller.
Sixth aspect present invention provides a kind of controller, including:Input equipment, output equipment, processor and memory;
The input equipment, which is used to receive, shunts the newdata packet that reports of interchanger, wherein the newdata packet is
It is not matched to flow table item in initial switch, and is reported more than it in the newdata packet not reported by the initial switch
When the capacity threshold upper limit, it is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used to indicate described first
Processing method of the beginning interchanger to the newdata packet;
The processor is used to, according to the newdata packet, the initial switch is determined, according to the initial exchange
Rule in machine and the newdata packet determines information, determines the flow table item of the newdata packet.
In the first possible realization method of the 6th aspect, the rule determines that information includes media access control
One or more of the addresses Mac, IP address, port numbers.
Seventh aspect present invention provides a kind of information interaction system, including:Controller, at least one interchanger and at least one
A host,
The controller sends at least one interchanger and is exchanged with what at least one interchanger was connected directly
The information of machine;
The interchanger of a large amount of newdata packets will be received at least one interchanger as initial switch;
Initial switch is determined to separate and is reported when the newdata packet not reported is more than reporting ability upper threshold
At least one newdata packet, wherein the newdata packet be not matched to flow table item in the initial switch
Data packet, the flow table item are used to indicate processing method of the initial switch to the newdata packet;
The initial switch is wanted according to the information for other interchangers being connected directly with the initial switch to be described
At least one newdata packet selection reported is separated for shunting the shunting interchanger reported;
The initial switch will separate at least one newdata reported described in being established on the initial switch
Corresponding interim flow table item is wrapped, the output port of the interim flow table item is set as the port of the shunting interchanger;
The initial switch according to the interim flow table item, to the shunting interchanger send described in separate and report
At least one newdata packet;
The controller receives the newdata packet that shunting interchanger reports, wherein the newdata packet is initial
Flow table item is not matched in interchanger, and is more than its reporting ability threshold in the newdata packet not reported by the initial switch
When being worth the upper limit, it is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used to indicate the initial exchange
Processing method of the machine to the newdata packet;
The controller determines the initial switch according to the newdata packet, according to the initial switch and
Rule in the newdata packet determines information, determines the flow table item of the newdata packet.
In the first possible realization method of the 7th aspect, the rule determines that information includes media access control
One or more of the addresses Mac, IP address, port numbers.
In the embodiment of the present invention, when there are many newdata packet that initial switch receives, newdata packet can will be reported
Task turn other interchangers by being connected directly with initial switch to report, report speed to accelerate newdata packet
Degree, avoids newdata packet congestion in initial switch.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the embodiment schematic diagram that the method reported is shunted in the embodiment of the present invention;
Fig. 2A and Fig. 2 B are another embodiment schematic diagrams that the method reported is shunted in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram that the method reported is shunted in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram that the method reported is shunted in the embodiment of the present invention;
Fig. 5 is an embodiment schematic diagram of interchanger in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of interchanger in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram of interchanger in the embodiment of the present invention;
Fig. 8 is another embodiment schematic diagram of interchanger in the embodiment of the present invention;
Fig. 9 is an embodiment schematic diagram of controller in the embodiment of the present invention;
Figure 10 is another embodiment schematic diagram of controller in the embodiment of the present invention;
Figure 11 is another embodiment schematic diagram of controller in the embodiment of the present invention;
Figure 12 is another embodiment schematic diagram of interchanger in the embodiment of the present invention;
Figure 13 is another embodiment schematic diagram of controller in the embodiment of the present invention;
Figure 14 is an embodiment schematic diagram of information interaction system in the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention provide it is a kind of shunting the method that reports, can by with the initial friendship that receives newdata packet
Other interchangers being connected directly of changing planes report the newdata packet not reported to controller shunting, to accelerate newdata
The report speed of packet avoids newdata packet congestion in initial switch.The embodiment of the present invention additionally provides corresponding friendship
It changes planes, controller and system.It is described in detail separately below.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Refering to fig. 1, the embodiment provided in an embodiment of the present invention for shunting the method reported includes:
Controller, interchanger 1, interchanger 2, interchanger 3, interchanger 4, host A and host B, controller respectively with exchange
Machine 1, interchanger 2, interchanger 3 and interchanger 4 communicate to connect, certainly, a software defined network (Software defined
Network, SDN) in may include many interchangers and host, Fig. 1 is only illustrated for these.
Assuming that 1 moment of interchanger receives 10 newdata packets, the interchanger 1 in the embodiment of the present invention is initial exchange
Machine, this 10 newdata packets can come from different hosts, it is assumed that the number of 10 newdata packets is respectively 1-10, is exchanged
Machine 1 can cache these newdata packets, then determine whether the newdata packet not reported is more than reporting ability upper threshold, such as
Fruit be more than reporting ability threshold value, it is determined that separate the newdata packet reported, it is assumed that interchanger 1 in limit of power can more than
3 newdata packets are reported, such as:Interchanger 1 reports the newdata packet that number is 1-3, then can determine that by number be 4-10
Newdata packet separate and report.
Reporting ability threshold value can be interchanger by judging that itself cpu busy percentage, newdata packet buffer Buffer's
Number accounts for ratio of total Buffer numbers etc. to determine, other modes can also be used to determine that this is not limited by the present invention.
Can include the source host information for sending the newdata packet and the destination host information to be reached in newdata packet.
Controller first can send the exchange being respectively connected directly to interchanger 1, interchanger 2, interchanger 3 and interchanger 4
The information of machine, but the information of all interchangers being connected directly not necessarily is sent, for the interchanger of transmission being connected directly
Information can determine that controller can judge whether the interchanger that each interchanger is connected directly empty in several ways by controller
Spare time comes number of switches and priority that reasonable arrangement issues.
When controller sends the information for the interchanger being connected directly to interchanger, the openflow of an expansion can be passed through
Message realizes, the number of the interchanger being connected directly with this interchanger, interchanger can be carried in openflow message
It identifies, and the port numbers being connected with this interchanger.
Such as:The information of the interchanger being connected directly sent to interchanger 1 is interchanger 2, is issued to interchanger 2 straight
The information for connecing connected interchanger is interchanger 1 and interchanger 3, the information of the interchanger being connected directly issued to interchanger 3
For interchanger 2.
Interchanger 1 is after determination reports 7 newdata packet shuntings, according to the interchanger being connected directly with interchanger
Information, it may be determined that the interchanger of shunting be interchanger 2, moreover, interchanger 1 can also be each to separate the newly-built number reported
Interim flow table item is established according to packet, the output port of the interim flow table item is set as the port of the shunting interchanger, also
It is the port for setting the output port of all corresponding interim flow table items of newdata packet that separate and report to interchanger 2.
It is reported in this way, 7 newdata packets that number is 4-10 can be transferred to interchanger 2 by interchanger 1, and
And when sending 7 newdata packets that number is 4-10 to interchanger 2, interchanger 1 is encapsulated in each newdata packet
Identification information, identification information can be the mark of interchanger, can also be the mark of interchanger and the port numbers of interchanger.
After interchanger 2 receives 7 newdata packets that number is 4-10, it is assumed that interchanger 2 can only in limit of power
Report four newdata packets of number 4-7, then interchanger 2 further according to the interchanger being connected directly with interchanger 2 information, really
The fixed newdata packet that cannot report residue is transferred to interchanger 3, that is, interchanger 2 again by number is 8-10 3 it is new
It builds data packet and is transferred to interchanger 3, it is assumed that interchanger 3 confirms in limit of power can report 3 newdata packets, then exchanges
Machine 3 no longer reports information to the transfer of other interchangers.Interchanger 2 is sending 3 newdatas that number is 8-10 to interchanger 3
Bao Shi can encapsulate the identification information of upper interchanger 2 in newly-built stream.
In this way, 10 newdata packets are just reported by interchanger 1, interchanger 2, interchanger 3 respectively, interchanger 1 reports volume
Number three newdata packets for being 1-3, interchanger 2 reports four newdata packets that number is 4-7, interchanger 3 to report number
For three newdata packets of 8-10, can be held by openflow message when interchanger is to controller report newdata packet
It carries.
The mark of the interchanger encapsulated in the newdata packet of transfer for interchanger can understand refering to Fig. 2A,
The format of the three newdata packets for the number 1-3 that interchanger 1 reports can be tag1 (port1)+payload, and interchanger 2 reports
The format of four newdata packets of number 4-7 can be tag2 (port1) tag1 (port1)+payload, interchanger 3 reports
The format of three newdata packets of number 8-10 can be tag3 (port1) tag2 (port1) tag1 (port1)+payload.
Wherein, tag is the mark of interchanger, and port is the port numbers of interchanger, i.e. interchanger receives the port numbers of the newdata packet.
Controller receive this 10 report information after, so that it may with according to reporting the format of information to parse number 1-3's
Newdata packet derives from interchanger 1, and the newdata packet of number 4-7 experienced interchanger 2 and interchanger 1, primary source in
The newdata packet of interchanger 1, number 8-10 experienced interchanger 3, interchanger 2 and interchanger 1, and primary source is in interchanger 1.
In this way, controller can be according to network topological information, each report the source host carried in information and purpose master
The information of machine determines 10 respective flow table items of newdata packet, by taking newdata packet 1 therein as an example, newdata packet 1
Source host is host A, and destination host is host B, and controller is assured that the forward-path of newdata packet 1 is interchanger
1-- 4-host Bs of interchanger.Controller is determined according to the forward-path to be sent to the flow table item of interchanger 1 and is sent to interchanger
4 flow table item, the flow table item for being sent to interchanger 1 are newdata packet 1:1-interchanger of interchanger 4 is sent to interchanger 4
Flow table item is newdata packet 1:Interchanger 4- host Bs.Certainly, 1-interchanger of interchanger 4 can be specifically in above-mentioned flow table item
It is set as newdata packet being sent to the port that interchanger 1 arrives interchanger 4, interchanger 4- host Bs can will be created
Data packet is sent to the port that interchanger 4 arrives host B.
In this way, interchanger 1 receives flow table item newdata packet 1:It, will be by newdata after 1-interchanger of interchanger 4
Packet 1 is sent to interchanger 4, and it is newdata packet 1 that interchanger 4, which receives flow table item,:Interchanger 4- host Bs and interchanger 1 are sent out
After the newdata packet 1 sent, newdata packet 1 will be sent to host B.
When interchanger 1 receive number include by 11 data packet information it is identical as the newdata packet that number is 1
When, then the flow table item for numbering the data packet for being 11 to match the newdata packet foundation for being 1 according to number is handled.
When interchanger 1 determines that the newdata packet not reported is less than reporting ability bottom threshold, delete described interim
Flow table item.Such as:When reporting ability upper threshold is the 80% of central processing unit reporting ability, in the newdata not reported
When packet is more than the 80% of central processing unit reporting ability, then the process that above-mentioned shunting reports is executed, if under reporting ability threshold value
It is limited to the 50% of central processing unit reporting ability, then newdata packet is reduced to the 50% or less of central processing unit reporting ability
When, interchanger 1 deletes the interim flow table item established before, no longer executes above-mentioned shunting and reports, but by all newdatas
The work of packet is all completed by interchanger 1.
Initial exchange chance establishes interim flow table item in the embodiment of the present invention, and the specific format of flow table item is as shown in Figure 2 B,
Matching domain therein, action Action include but not limited to described in Fig. 2 B:
As shown in Figure 2 B, the interim flow table item generally automatically generated is located in last flow table of initial switch.
In_port matching domains in matching domain can be the specific port of this section point, can also use wildcard (*), indicate
Fail matched newdata packet from some port of this interchanger or whole port.
Other match fields in matching domain indicate other matching domains in flow table, equally can be specifically to be worth
Wildcard (*) can also be used.
The priority P riority of flow table item is 0, indicates lowest priority, that is to say, that finally can just be matched to this flow table
.That is, only matching can just be matched to this flow table item less than the newdata stream of other flow table items, it is sent to other interchangers
It is shunted.
The corresponding instruction Instr of flow table item is write actions, is shown to be and writes action.
The corresponding action action of flow table item includes that the data packet of newly-built stream is increased tag (push of a mark
Tag), modification tag values (write tag value, including No. port in switch identification and in_port), are output to some
Port (output port), this port are exactly the port numbers of the initial switch obtained and the interchanger being connected directly.
It is output to the specific port which is connected with the interchanger being connected directly in newly-increased flow table item action, is not this programme
The emphasis of discussion.There are many method, such as each newly-built busy extent for flowing into port and the priority according to neighbor node
Deng.
The data packet that the interchanger that is connected directly is transferred to involved in the present invention carries the identification information of this interchanger, main
If carrying newdata packet is in the ingress port information of this interchanger.It is by push tag and the write tag in flow table item
Come what is realized, the specific format of the two actions is shown in Openflow agreements for value actions.
Tag applications are described in detail below:
In order to be identified by exchange hardware, the information of initial switch is placed on by we meets IP agreement specification
It is realized in tag labels.
Some tunnel heads for being currently known can be used to realize in this kind of tag, including but not limited to the following tag head, example
Such as MPLS Tag, GRE Tag, VLAN Tag, Vxlan Tag.In order to meet the needs of shifting at many levels, known to these
Tunnel head preferably supports multilayer nest.
It, can will be to controller when there are many newdata packet that initial switch receives in embodiments described above
The task of newdata packet is reported to turn to be assisted by being connected directly other interchangers with initial switch, to accelerate newly-built number
According to the report speed of packet, newdata packet congestion is avoided in initial switch.
Refering to Fig. 3, from the perspective of interchanger, another implementation provided in an embodiment of the present invention for shunting the method reported
Example include:
101, initial switch is determined to separate when the newdata packet not reported is more than reporting ability upper threshold
At least one newdata packet reported.
Wherein, the newdata packet is the data packet for not being matched to flow table item in the initial switch, the stream
List item is used to indicate processing method of the initial switch to the newdata packet.
Interchanger can first inquire the flow table item stored on interchanger after receiving data packet, if inquiring corresponding stream
List item, interchanger will handle the data packet according to flow table item, if not inquiring flow table item, it is determined that the data packet is new
Data packet is built, needs to ask the corresponding flow table item of newdata packet to controller.
The forward rule of the data packet stored on interchanger 1 can be 1-interchanger of interchanger 2, be stored on interchanger 2
The forward rule of data packet can be 2-interchanger of interchanger 3, and the forward rule stored on interchanger 3 can be interchanger 3-
Host D.
102, according to the information for other interchangers being connected directly with the initial switch, described to separate reports
At least one newdata packet selection is for shunting the shunting interchanger reported.
One interchanger can have several interchangers being connected directly, and load can be selected when selection shunts interchanger most
One or several light interchangers are as shunting interchanger.
103, to separate that at least one newdata packet reported is corresponding to be faced described in being established on the initial switch
When flow table item, the output port of the interim flow table item is set as the port of the shunting interchanger.
Which interchanger newdata packet is diverted on shunt namely for instruction and report by interim flow table item, this
Sample, newdata packet will be diverted on the shunting interchanger according to interim flow table item, not have to be directed to each newdata packet
Determine primary shunting interchanger.
104, according to the interim flow table item, to the shunting interchanger send described in separate report it is at least one new
Build data packet, so as to the shunting interchanger by it is described to separate at least one newdata reported and wrap offer the control
Device.
It, can will be new to controller report when there are many newdata packet that initial switch receives in the embodiment of the present invention
The building data packet of the task turns to be assisted by being connected directly other interchangers with initial switch, to accelerate newdata packet
Report speed avoids newdata packet congestion in initial switch.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 3 or alternative embodiment, provided in an embodiment of the present invention point
In another embodiment for the method that stream reports, the method can also include:
It to be separated described in being sent to the shunting interchanger at least one newdata packet reported described in encapsulation
The identification information of initial switch is used for institute so that mark shunting is reported to the controller by the shunting interchanger
It states controller and the initial switch is determined according to the identification information, and to be separated according to described in initial switch determination
The corresponding flow table item of at least one newdata packet reported.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 3 or alternative embodiment, provided in an embodiment of the present invention point
In another embodiment for the method that stream reports, the letter for other interchangers that the basis is connected directly with the initial switch
Breath will separate at least one newdata packet reported selection for before shunting the shunting interchanger reported to be described, described
Method further includes:
Receive the information for other interchangers being connected directly with the initial switch that the controller is sent.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 3 or alternative embodiment, provided in an embodiment of the present invention point
In another embodiment for the method that stream reports, the method can also include:
When the initial switch determines that the newdata packet not reported is less than reporting ability bottom threshold, described in deletion
Interim flow table item.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 3 or alternative embodiment, provided in an embodiment of the present invention point
In another embodiment for the method that stream reports, the interim flow table item is located in last flow table of the initial switch,
And it is lowest priority.
The corresponding several embodiments of Fig. 3 can refering to fig. 1, the description of the corresponding embodiment parts Fig. 2A and Fig. 2 B managed
Solution, this place, which is not done, excessively to be repeated.
Refering to Fig. 4, from the perspective of controller, another implementation provided in an embodiment of the present invention for shunting the method reported
Example include:
201, the newdata packet that shunting interchanger reports is received.
Wherein, the newdata packet is not to be matched to flow table item in initial switch, and by the initial switch
When the newdata packet not reported reports the capacity threshold upper limit more than it, it is transmitted to the number that the shunting interchanger is reported
According to packet, the flow table item is used to indicate processing method of the initial switch to the newdata packet.
202, according to the newdata packet, the initial switch is determined.
203, information is determined according to the rule in the initial switch and the newdata packet, determines the newly-built number
According to the flow table item of packet.
Here rule determines that information is that some in newdata packet are used for determining the information of flow table item, can be specifically
The one or more of the addresses Mac, IP address, port numbers etc., such as:According to the media access control (Media in newdata packet
Access Control, Mac) address, IP address, it may be determined that the addresses Mac, IP address be certain values newdata packet carry out
Respective treated flow table item.
In the embodiment of the present invention, controller can receive the newly-built number cached on initial switch from multiple shunting interchangers
According to packet, in this way, controller can determine the flow table item of each newdata packet in time according to newdata packet, so as to avoid
Newdata packet congestion is in initial switch.
Optionally, provided in an embodiment of the present invention to shunt the method reported on the basis of above-mentioned Fig. 4 corresponding embodiments
Another embodiment in, it is described according to the newdata packet, determine the initial switch, may include:
Parse the identification information of the interchanger encapsulated in the newdata packet;
According to the identification information of the interchanger, the initial switch is determined.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 4 or alternative embodiment, provided in an embodiment of the present invention point
In another embodiment for the method that stream reports, the method can also include:
The information that other interchangers being connected directly with the initial switch are sent to the initial switch, with toilet
It states initial switch and determines the shunting interchanger for forwarding the newdata packet.
The corresponding several embodiments of Fig. 4 can refering to fig. 1, the description of the corresponding embodiment parts Fig. 2A and Fig. 2 B managed
Solution, this place, which is not done, excessively to be repeated.
Refering to Fig. 5, an embodiment of interchanger 30 provided in an embodiment of the present invention includes:
Determination unit 301, for when the newdata packet not reported is more than reporting ability upper threshold, determining to divide
Go out at least one newdata packet reported, wherein the newdata packet is not to be matched to flow table item in initial switch
Data packet, the flow table item is used to indicate processing method of the initial switch to the newdata packet;
Selecting unit 302 is described for the information according to other interchangers being connected directly with the initial switch
At least one newdata packet reported that separate that determination unit 301 determines selects to exchange for shunting the shunting reported
Machine;
Creating unit 303, for separate at least one newly-built number reported described in the foundation on the initial switch
According to corresponding interim flow table item is wrapped, the output port of the interim flow table item is set as the institute of the selection of the selecting unit 302
State the port of shunting interchanger;
Transmission unit 304, the interim flow table item for being created according to the creating unit 303 are handed over to the shunting
At least one newdata packet reported will be separated described in transmission by changing planes, so that the shunting interchanger reports described to separate
At least one newdata wrap and offer the controller.
In the embodiment of the present invention, determination unit 301 the newdata packet not reported be more than reporting ability upper threshold when,
Determine to separate at least one newdata packet reported, wherein the newdata packet be in initial switch not
It is fitted on the data packet of flow table item, the flow table item is used to indicate processing side of the initial switch to the newdata packet
Method, selecting unit 302 are the determination unit according to the information for other interchangers being connected directly with the initial switch
The 301 at least one newdata packets reported that separate determined select, for shunting the shunting interchanger reported, to create
Unit 303 will separate the corresponding interim flow table of at least one newdata packet reported described in being established on the initial switch
, the output port of the interim flow table item is set as the port of the shunting interchanger of the selection of the selecting unit 302,
The interim flow table item that transmission unit 304 is created according to the creating unit 303 is wanted to described in shunting interchanger transmission
Separate at least one newdata packet reported, so as to the shunting interchanger by it is described to separate report it is at least one newly-built
Data packet is reported to the controller.In the embodiment of the present invention, when there are many newdata packet that initial switch receives, it can incite somebody to action
The task of newdata packet is reported to turn other interchangers by being directly connected to report, to accelerate newdata packet
Report speed avoids newdata packet congestion in initial switch.
Optionally, on the basis of above-mentioned Fig. 5 corresponding embodiments, refering to Fig. 6, interchanger provided in an embodiment of the present invention
Another embodiment in, the interchanger further includes:
Encapsulation unit 305, for the transmission unit 304 to the shunting interchanger send described in separate and report
At least one newdata packet in encapsulate the identification information of the initial switch, so that the shunting interchanger is by the mark
Know shunting and be reported to the controller, the initial switch, and root are determined according to the identification information for the controller
The corresponding flow table item of at least one newdata packet reported is separated according to described in initial switch determination.
Optionally, on the basis of above-mentioned Fig. 6 corresponding embodiments, refering to Fig. 7, interchanger provided in an embodiment of the present invention
Another embodiment in, the interchanger further includes:
Receiving unit 306, other friendships being connected directly with the initial switch sent for receiving the controller
The information changed planes.
Optionally, on the basis of above-mentioned Fig. 7 corresponding embodiments, refering to Fig. 8, interchanger provided in an embodiment of the present invention
Another embodiment in, the interchanger further includes:
Deleting unit 307, for determining that the newdata packet not reported is less than reporting ability in the determination unit 301
When bottom threshold, the interim flow table item is deleted.
Refering to Fig. 9, an embodiment of controller provided in an embodiment of the present invention includes:
Receiving unit 401, for receiving the newdata packet that reports of shunting interchanger, wherein the newdata packet is
It is not matched to flow table item in initial switch, and is reported more than it in the newdata packet not reported by the initial switch
When the capacity threshold upper limit, it is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used to indicate described first
Processing method of the beginning interchanger to the newdata packet;
First determination unit 402, for the newdata packet that is received according to the receiving unit 401, described in determination
Initial switch;
Second determination unit 403, the initial switch for being determined according to first determination unit 402 and described
Rule in newdata packet determines information, determines the flow table item of the newdata packet.
Here rule determines that information is that some in newdata packet are used for determining the information of flow table item, can be specifically
The one or more of the addresses Mac, IP address, port numbers etc., such as:According to the media access control (Media in newdata packet
Access Control, Mac) address, IP address, it may be determined that the addresses Mac, IP address be certain values newdata packet carry out
Respective treated flow table item.
In the embodiment of the present invention, receiving unit 401 receives the newdata packet that shunting interchanger reports, wherein described new
Data packet is built not to be matched to flow table item in initial switch, and by the initial switch in the newdata packet not reported
When reporting the capacity threshold upper limit more than it, it is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used for
Indicate processing method of the initial switch to the newdata packet, the first determination unit 402 is according to the receiving unit
The 401 newdata packets received determine that the initial switch, the second determination unit 403 determine single according to described first
Rule in the initial switch and the newdata packet that member 402 determines determines information, determines the newdata packet
Flow table item.In the embodiment of the present invention, controller can cache newly-built from multiple shunting interchangers reception initial switch
Data packet, in this way, controller can determine the flow table item of each newdata packet according to the newdata packet of reception, to keep away
Newdata packet congestion is exempted from initial switch.
Optionally, on the basis of above-mentioned Fig. 9 corresponding embodiments, refering to fig. 10, control provided in an embodiment of the present invention
In another embodiment of device, first determination unit 402 includes:
Parsing subunit 4021, the identification information for parsing the interchanger encapsulated in the newdata packet;
Determination subelement 4022, the mark letter of the interchanger for being parsed according to the parsing subunit 4021
Breath, determines the initial switch.
Optionally, on the basis of above-mentioned Figure 10 corresponding embodiments, refering to fig. 11, control provided in an embodiment of the present invention
In another embodiment of device, the controller 40 further includes:
Transmission unit 404, for sending other friendships being connected directly with the initial switch to the initial switch
The information changed planes, so that the initial switch determines the shunting interchanger of the forwarding newdata packet.
The transmission unit 404 is additionally operable to the friendship for including into the flow table item that second determination unit 403 determines
It changes planes and sends the flow table item.
Figure 12 is the structural schematic diagram of interchanger of the embodiment of the present invention 30.Interchanger 30 may include input equipment 310, output
Equipment 320, processor 330 and memory 340.
Memory 340 may include read-only memory and random access memory, and provide instruction sum number to processor 330
According to.The a part of of memory 340 can also include nonvolatile RAM (NVRAM).
Memory 340 stores following element, executable modules or data structures either their subset or
Their superset:
Operational order:Including various operational orders, for realizing various operations.
Operating system:Including various system programs, for realizing various basic businesses and the hardware based task of processing.
In embodiments of the present invention, operational order (operational order that processor 330 is stored by calling memory 340
It is storable in operating system), execute following operation:
The newdata packet not reported be more than reporting ability upper threshold when, determine to separate report it is at least one
Newdata packet, wherein the newdata packet is the data packet for not being matched to flow table item in the initial switch, described
Flow table item is used to indicate processing method of the initial switch to the newdata packet;
According to the information for other interchangers being connected directly with the initial switch, reported at least for described to separate
One newdata packet selection is for shunting the shunting interchanger reported;
The corresponding interim stream of at least one newdata packet reported is separated described in being established on the initial switch
List item, the output port of the interim flow table item are set as the port of the shunting interchanger;
According to the interim flow table item, by output equipment 320 to the shunting interchanger send described in separate and report
At least one newdata packet.
In the embodiment of the present invention, in the embodiment of the present invention, when there are many newdata packet that initial switch receives, it can incite somebody to action
Other interchangers of the task turn of newdata packet by being connected directly with initial switch are reported to report, it is newly-built to accelerate
The report speed of data packet avoids newdata packet congestion in initial switch.
Processor 330 controls the operation of interchanger 30, and processor 330 can also be known as CPU (Central Processing
Unit, central processing unit).Memory 340 may include read-only memory and random access memory, and to processor 330
Instruction and data is provided.The a part of of memory 340 can also include nonvolatile RAM (NVRAM).Specifically
Application in, the various components of interchanger 30 are coupled by bus system 350, wherein bus system 350 except includes count
Can also include power bus, controlling bus and status signal bus in addition etc. except bus.But for the sake of clear explanation,
Various buses are all designated as bus system 350 in figure.
The method that the embodiments of the present invention disclose can be applied in processor 330, or be realized by processor 330.
Processor 330 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 330 or the instruction of software form.Above-mentioned processing
Device 330 can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array
(FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.May be implemented or
Person executes disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be microprocessor or
Person's processor can also be any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be straight
Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed
At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can
In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory 340, and processor 330 is read
Information in access to memory 340, in conjunction with the step of its hardware completion above method.
Optionally, the processor 330 be additionally operable to the shunting interchanger send described in separate report to
The identification information that the initial switch is encapsulated in a few newdata packet, so that the shunting interchanger divides the mark
Stream is reported to the controller, determines the initial switch according to the identification information for the controller, and according to institute
The corresponding flow table item of at least one newdata packet reported will be separated described in initial switch determination by stating.
Optionally, the input equipment 310 is used to receive that the controller to send and the direct phase of the initial switch
The information of other interchangers even.
Optionally, the processor 330 is additionally operable to the newdata packet for determining not report less than under reporting ability threshold value
In limited time, the interim flow table item is deleted.
The interim flow table item is located in last flow table of the initial switch, and is lowest priority.
Figure 13 is the structural schematic diagram of controller of the embodiment of the present invention 40.Controller 40 may include input equipment 410, output
Equipment 420, processor 430 and memory 440.
Memory 440 may include read-only memory and random access memory, and provide instruction sum number to processor 430
According to.The a part of of memory 440 can also include nonvolatile RAM (NVRAM).
Memory 440 stores following element, executable modules or data structures either their subset or
Their superset:
Operational order:Including various operational orders, for realizing various operations.
Operating system:Including various system programs, for realizing various basic businesses and the hardware based task of processing.
In embodiments of the present invention, operational order (operational order that processor 430 is stored by calling memory 440
It is storable in operating system), execute following operation:
The newdata packet that shunting interchanger reports is received by input equipment, wherein the newdata packet is first
Flow table item is not matched in beginning interchanger, and is more than its reporting ability in the newdata packet not reported by the initial switch
When upper threshold, it is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used to indicate the initial friendship
The processing method changed planes to the newdata packet;
According to the newdata packet, the initial switch is determined;
Information is determined according to the rule in the initial switch and the newdata packet, determines the newdata packet
Flow table item.
Here rule determines that information is that some in newdata packet are used for determining the information of flow table item, can be specifically
The one or more of the addresses Mac, IP address, port numbers etc., such as:According to the media access control (Media in newdata packet
Access Control, Mac) address, IP address, it may be determined that the addresses Mac, IP address be certain values newdata packet carry out
Respective treated flow table item.
In the embodiment of the present invention, controller can receive the newly-built number cached on initial switch from multiple shunting interchangers
According to packet, in this way, controller can determine the flow table item of each newdata packet in time according to newdata packet, so as to avoid
Newdata packet congestion is in initial switch.
Processor 430 controls the operation of controller 40, and processor 430 can also be known as CPU (Central Processing
Unit, central processing unit).Memory 440 may include read-only memory and random access memory, and to processor 430
Instruction and data is provided.The a part of of memory 440 can also include nonvolatile RAM (NVRAM).Specifically
Application in, the various components of controller 40 are coupled by bus system 450, wherein bus system 450 except includes count
Can also include power bus, controlling bus and status signal bus in addition etc. except bus.But for the sake of clear explanation,
Various buses are all designated as bus system 450 in figure.
The method that the embodiments of the present invention disclose can be applied in processor 430, or be realized by processor 430.
Processor 430 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 430 or the instruction of software form.Above-mentioned processing
Device 430 can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array
(FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.May be implemented or
Person executes disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be microprocessor or
Person's processor can also be any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be straight
Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed
At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can
In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory 440, and processor 430 is read
Information in access to memory 440, in conjunction with the step of its hardware completion above method.
Optionally, the processor 430 can specifically parse the mark letter of the interchanger encapsulated in the newdata packet
Breath, according to the identification information of the interchanger, determines the initial switch.
Optionally, the output equipment 420 is used to send and the direct phase of the initial switch to the initial switch
The information of other interchangers even, so that the initial switch determines that the shunting for forwarding the newdata packet exchanges
Machine.
Refering to fig. 14, an embodiment of information interaction system provided in an embodiment of the present invention includes:Interchanger 30A, it exchanges
Machine 30B, interchanger 30C, interchanger 30D, controller 40 and host 50A and host 50B only illustrate in the embodiment of the present invention
It is bright, can essentially there are more interchangers and more hosts and host, not drawn one by one in Figure 14.
The controller 40 is sent respectively to the interchanger 30A, interchanger 30B, interchanger 30C, interchanger 30D and institute
State the information for the interchanger that interchanger 30 is connected directly;
The interchanger 30A receives newdata packet from host 50A, and host 50A, actually interchanger are only depicted in figure
30A can also receive the newdata packet of other hosts transmission;
When the interchanger 30A is as initial switch,
The interchanger 30A determines to separate when the newdata packet not reported is more than reporting ability upper threshold
At least one newdata packet reported, wherein the newdata packet is not to be matched to flow table in the initial switch
The data packet of item, the flow table item are used to indicate processing method of the initial switch to the newdata packet;
The interchanger 30A is wanted according to the information for other interchangers being connected directly with the initial switch to be described
At least one newdata packet selection reported is separated for shunting the shunting interchanger reported;
The interchanger 30A will separate at least one newdata packet reported described in being established on the initial switch
Corresponding interim flow table item, the output port of the interim flow table item are set as the port of the shunting interchanger;
The interchanger 30A according to the interim flow table item, to the shunting interchanger send described in separate and report
At least one newdata packet;
The controller 40 receives the newdata packet that shunting interchanger reports, wherein the newdata packet is first
Flow table item is not matched in beginning interchanger, and is more than its reporting ability in the newdata packet not reported by the initial switch
When upper threshold, it is transmitted to the data packet that the shunting interchanger is reported, the flow table item is used to indicate the initial friendship
The processing method changed planes to the newdata packet;
The controller 40 determines the initial switch according to the newdata packet, according to the initial switch
Information is determined with the rule in the newdata packet, determines the flow table item of the newdata packet.
Forward-path described in the flow table item can be interchanger 30A- interchanger 30D- hosts 50B;
The controller 40 sends the flow table item of the newdata packet to interchanger 30A and interchanger 30D;
The newdata is forwarded a packet to interchanger 30D, interchanger 30D by the interchanger 30A according to the flow table item
The newdata is forwarded a packet into host B.
Here rule determines that information is that some in newdata packet are used for determining the information of flow table item, can be specifically
The one or more of the addresses Mac, IP address, port numbers etc., such as:According to the media access control (Media in newdata packet
Access Control, Mac) address, IP address, it may be determined that the addresses Mac, IP address be certain values newdata packet carry out
Respective treated flow table item.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include:ROM, RAM, disk or CD etc..
Method, interchanger, controller and system that shunting reports is provided for the embodiments of the invention above to carry out
It is discussed in detail, principle and implementation of the present invention are described for specific case used herein, above example
Illustrate the method and its core concept for being merely used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to
According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification
It should not be construed as limiting the invention.
Claims (22)
1. a kind of shunting the method reported, which is characterized in that including:
Initial switch is determined to separate when the newdata packet for not reporting to controller is more than reporting ability upper threshold
At least one newdata packet reported, make in the initial switch remaining newdata packet be no more than its reporting ability or
Remaining newdata packet is reported in limit of power on it in initial switch described in person, wherein the newdata packet be
The data packet of flow table item is not matched in the initial switch, the flow table item is used to indicate the initial switch to described
The processing method of newdata packet;
According to the information for other interchangers being connected directly with the initial switch, for it is described to separate report it is at least one
The selection of newdata packet is for shunting the shunting interchanger reported;
The corresponding interim flow table item of at least one newdata packet reported is separated described in being established on the initial switch,
The output port of the interim flow table item is set as the port of the shunting interchanger;
According to the interim flow table item, at least one newdata reported is separated to described in shunting interchanger transmission
Packet, so as to the shunting interchanger by it is described to separate at least one newdata reported and wrap offer the controller.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
To be separated described in being sent to the shunting interchanger encapsulate at least one newdata packet reported it is described initial
The identification information of interchanger is used for the control so that mark shunting is reported to the controller by the shunting interchanger
Device processed determines the initial switch according to the identification information, and is reported according to be separated described in initial switch determination
The corresponding flow table item of at least one newdata packet.
3. according to the method described in claim 1, it is characterized in that, the basis and the initial switch be connected directly its
The information of his interchanger will separate at least one newdata packet reported selection for shunting the shunting reported exchange to be described
Before machine, the method further includes:
Receive the information for other interchangers being connected directly with the initial switch that the controller is sent.
4. method according to any one of claims 1 to 3, which is characterized in that the method further includes:
When the initial switch determines that the newdata packet not reported is less than reporting ability bottom threshold, delete described interim
Flow table item.
5. method according to any one of claims 1 to 3, which is characterized in that the interim flow table item is located at the initial friendship
In last flow table changed planes, and it is lowest priority.
6. a method of shunting reports, and is applied to controller, which is characterized in that the method includes:
Receive the newdata packet that shunting interchanger reports, wherein the newdata packet is not matched in initial switch
To flow table item, and by the initial switch capacity threshold is reported more than it in the newdata packet for not reporting to the controller
When the upper limit, the number for being transmitted to the shunting interchanger direct-connected with the initial switch and being reported of limit of power is reported more than it
According to packet, the flow table item is used to indicate processing method of the initial switch to the newdata packet;
According to the newdata packet, the initial switch is determined;
Information is determined according to the rule in the initial switch and the newdata packet, determines the stream of the newdata packet
List item.
7. according to the method described in claim 6, it is characterized in that, described according to the newdata packet, determine described initial
Interchanger, including:
Parse the identification information of the interchanger encapsulated in the newdata packet;
According to the identification information of the interchanger, the initial switch is determined.
8. according to the method described in claim 6, it is characterized in that, the method further includes:
The information that other interchangers being connected directly with the initial switch are sent to the initial switch, so as to described first
Beginning interchanger determines the shunting interchanger for forwarding the newdata packet.
9. according to any method of claim 6 to 8, which is characterized in that the rule determines that information includes media access
Control one or more of the addresses Mac, IP address, port numbers.
10. a kind of initial switch, which is characterized in that including:
Determination unit, for when the newdata packet for not reporting to controller is more than reporting ability upper threshold, determining to want
At least one newdata packet reported is separated, remaining newdata packet in the initial switch is made to report energy no more than it
Remaining newdata packet is reported in limit of power on it in power or the initial switch, wherein the newdata packet
Not to be matched to the data packet of flow table item in initial switch, the flow table item is used to indicate the initial switch to described
The processing method of newdata packet;
Selecting unit is described determining single for the information according to other interchangers being connected directly with the initial switch
At least one newdata packet reported that separate that member determines is selected for shunting the shunting interchanger reported;
Creating unit is corresponded to for separate at least one newdata packet reported described in the foundation on the initial switch
Interim flow table item, the output port of the interim flow table item is set as the shunting interchanger of the selecting unit selection
Port;
Transmission unit, the interim flow table item for being created according to the creating unit send institute to the shunting interchanger
State at least one newdata packet that separate and report, so as to the shunting interchanger by it is described to separate report it is at least one
Newdata, which is wrapped, offers the controller.
11. interchanger according to claim 10, which is characterized in that the interchanger further includes:
Encapsulation unit, for the transmission unit to shunting interchanger send described in separate report it is at least one newly-built
The identification information that the initial switch is encapsulated in data packet, so that mark shunting is reported to institute by the shunting interchanger
Controller is stated, the initial switch is determined according to the identification information for the controller, and according to the initial exchange
Machine will separate the corresponding flow table item of at least one newdata packet reported described in determining.
12. interchanger according to claim 10, which is characterized in that the interchanger further includes:
Receiving unit, the letter for receiving other interchangers being connected directly with the initial switch that the controller is sent
Breath.
13. according to any interchangers of claim 10-12, which is characterized in that the interchanger further includes:
Deleting unit, for determining the newdata packet not reported less than under reporting ability threshold value in the determination unit 301
In limited time, the interim flow table item is deleted.
14. a kind of controller, which is characterized in that including:
Receiving unit, the newdata packet reported for receiving shunting interchanger, wherein the newdata packet is initially to hand over
Flow table item is not matched in changing planes, and is more than it in the newdata packet for not reporting to the controller by the initial switch
When reporting ability upper threshold, the shunting interchanger direct-connected with the initial switch is transmitted to more than what it reported limit of power
The data packet reported, the flow table item are used to indicate processing method of the initial switch to the newdata packet;
First determination unit, the newdata packet for being received according to the receiving unit, determines the initial switch;
Second determination unit, the initial switch for being determined according to first determination unit and the newdata packet
In rule determine information, determine the flow table item of the newdata packet.
15. controller according to claim 14, which is characterized in that first determination unit includes:
Parsing subunit, the identification information for parsing the interchanger encapsulated in the newdata packet;
Determination subelement, the identification information of the interchanger for being parsed according to the parsing subunit determine described first
Beginning interchanger.
16. controller according to claim 14, which is characterized in that the controller further includes:
Transmission unit, the letter for sending other interchangers being connected directly with the initial switch to the initial switch
Breath, so that the initial switch determines the shunting interchanger of the forwarding newdata packet.
17. according to any controller of claim 14 to 16, which is characterized in that the rule determines that information includes media
One or more of the addresses access control Mac, IP address, port numbers.
18. a kind of initial switch, which is characterized in that including:Input equipment, output equipment, processor and memory;
Wherein, the processor is for executing following steps:
When the newdata packet for not reporting to controller is more than reporting ability upper threshold, determines to separate and report at least
One newdata packet makes remaining newdata packet in the initial switch be no more than its reporting ability or described initial
Remaining newdata packet is reported in limit of power on it in interchanger, wherein the newdata packet is in the initial friendship
The data packet of flow table item is not matched in changing planes, the flow table item is used to indicate the initial switch to the newdata packet
Processing method;
According to the information for other interchangers being connected directly with the initial switch, for it is described to separate report it is at least one
The selection of newdata packet will be separated on the initial switch described in foundation and be reported for shunt the shunting interchanger reported
The corresponding interim flow table item of at least one newdata packet, the output port of the interim flow table item are set as the shunting and hand over
The port changed planes;
According to the interim flow table item, at least one newdata reported is separated to described in shunting interchanger transmission
Packet, so as to the shunting interchanger by it is described to separate at least one newdata reported and wrap offer the controller.
19. a kind of controller, which is characterized in that including:Input equipment, output equipment, processor and memory;
The input equipment is used to receive the newdata packet that shunting interchanger reports, wherein the newdata packet is first
Flow table item is not matched in beginning interchanger, and by the initial switch in the newdata Bao Chao for not reporting to the controller
When crossing it and reporting the capacity threshold upper limit, being transmitted to for limit of power is reported to be handed over the direct-connected shunting of the initial switch more than it
It changes planes the data packet reported, the flow table item is used to indicate processing side of the initial switch to the newdata packet
Method;
The processor is used to, according to the newdata packet, determine the initial switch, according to the initial switch and
Rule in the newdata packet determines information, determines the flow table item of the newdata packet.
20. controller according to claim 19, which is characterized in that the rule determines that information includes media access control
One or more of the addresses Mac, IP address, port numbers.
21. a kind of information interaction system, which is characterized in that including:Controller, at least one interchanger and at least one host,
The controller sends the interchanger being connected directly at least one interchanger at least one interchanger
Information;
The interchanger of a large amount of newdata packets will be received at least one interchanger as initial switch;
Initial switch is determined to want when the newdata packet for not reporting to the controller is more than reporting ability upper threshold
At least one newdata packet reported is separated, remaining newdata packet in the initial switch is made to report energy no more than it
Remaining newdata packet is reported in limit of power on it in power or the initial switch, wherein the newdata packet
Not to be matched to the data packet of flow table item in the initial switch, the flow table item is used to indicate the initial switch pair
The processing method of the newdata packet;
The initial switch will be separated according to the information for other interchangers being connected directly with the initial switch to be described
At least one newdata packet selection reported is for shunting the shunting interchanger reported;
The initial switch will separate at least one newdata packet pair reported described in being established on the initial switch
The interim flow table item answered, the output port of the interim flow table item are set as the port of the shunting interchanger;
The initial switch reports at least according to the interim flow table item to be separated described in shunting interchanger transmission
One newdata packet;
The controller receives the newdata packet that shunting interchanger reports, wherein the newdata packet is in initial exchange
Flow table item is not matched in machine, and is more than thereon in the newdata packet for not reporting to the controller by the initial switch
Report the capacity threshold upper limit when, more than its report limit of power be transmitted to the shunting interchanger direct-connected with the initial switch into
The data packet that row reports, the flow table item are used to indicate processing method of the initial switch to the newdata packet;
The controller determines the initial switch according to the newdata packet, according to the initial switch and described
Rule in newdata packet determines information, determines the flow table item of the newdata packet.
22. system according to claim 21, which is characterized in that the rule determines that information includes media access control
One or more of the addresses Mac, IP address, port numbers.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/072560 WO2015127600A1 (en) | 2014-02-26 | 2014-02-26 | Shunting and reporting method, switch, controller and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105122740A CN105122740A (en) | 2015-12-02 |
CN105122740B true CN105122740B (en) | 2018-07-20 |
Family
ID=54008122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201480000182.0A Active CN105122740B (en) | 2014-02-26 | 2014-02-26 | It is a kind of to shunt method, interchanger, controller and the system reported |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105122740B (en) |
WO (1) | WO2015127600A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108111436B (en) * | 2017-11-30 | 2023-04-18 | 浙江宇视科技有限公司 | Network equipment cache scheduling method and system |
CN112039773A (en) * | 2020-09-23 | 2020-12-04 | 迈普通信技术股份有限公司 | Shunting method, device, system, network equipment and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106528A (en) * | 2007-07-31 | 2008-01-16 | 杭州华三通信技术有限公司 | Packet forward system and method based on secure device and its secure device |
CN102685006A (en) * | 2012-05-03 | 2012-09-19 | 中兴通讯股份有限公司 | Method and device for forwarding data messages |
CN103379039A (en) * | 2012-04-23 | 2013-10-30 | 华为技术有限公司 | Method, device and system for flow statistics |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002252640A (en) * | 2001-02-23 | 2002-09-06 | Fujitsu Ltd | Network repeater and method and system for the same |
US6704372B2 (en) * | 2001-09-18 | 2004-03-09 | Broadlogic Network Technologies Inc. | Digital implementation of multi-channel demodulators |
US20070104096A1 (en) * | 2005-05-25 | 2007-05-10 | Lga Partnership | Next generation network for providing diverse data types |
US9219686B2 (en) * | 2006-03-31 | 2015-12-22 | Alcatel Lucent | Network load balancing and overload control |
CN101106518B (en) * | 2006-07-10 | 2011-10-26 | 中兴通讯股份有限公司 | Service denial method for providing load protection of central processor |
KR101478475B1 (en) * | 2010-09-09 | 2014-12-31 | 닛본 덴끼 가부시끼가이샤 | Computer system and communication method in computer system |
JP6007976B2 (en) * | 2011-12-27 | 2016-10-19 | 日本電気株式会社 | Communication system, controller, communication method and program |
CN103179046B (en) * | 2013-04-15 | 2016-03-30 | 昆山天元昌电子有限公司 | Based on data center's flow control methods and the system of openflow |
CN103414637B (en) * | 2013-07-29 | 2016-03-30 | 北京华为数字技术有限公司 | A kind of method of traffic forwarding and relevant apparatus |
-
2014
- 2014-02-26 WO PCT/CN2014/072560 patent/WO2015127600A1/en active Application Filing
- 2014-02-26 CN CN201480000182.0A patent/CN105122740B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106528A (en) * | 2007-07-31 | 2008-01-16 | 杭州华三通信技术有限公司 | Packet forward system and method based on secure device and its secure device |
CN103379039A (en) * | 2012-04-23 | 2013-10-30 | 华为技术有限公司 | Method, device and system for flow statistics |
CN102685006A (en) * | 2012-05-03 | 2012-09-19 | 中兴通讯股份有限公司 | Method and device for forwarding data messages |
Also Published As
Publication number | Publication date |
---|---|
WO2015127600A1 (en) | 2015-09-03 |
CN105122740A (en) | 2015-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9942142B2 (en) | Using segmentation identification to identify destination node within network environment | |
CN105791463B (en) | A kind of method and apparatus for realizing virtual machine communication | |
CN103004158B (en) | There is the network equipment of programmable core | |
US11005781B2 (en) | Networking method for data center network and data center network | |
CN105340217B (en) | A kind of message processing method, apparatus and system | |
CN104219145B (en) | Network system and method for routing | |
CN105122747B (en) | Control device and control method in SDN network | |
CN103812930B (en) | A kind of method and device of scheduling of resource | |
CN108475244A (en) | Accelerate network packet processing | |
CN105812340B (en) | A kind of method and apparatus of virtual network access outer net | |
CN104704772B (en) | Communication system, virtual network managing device, virtual network management method | |
JP6323547B2 (en) | COMMUNICATION SYSTEM, CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM | |
CN105247831A (en) | Flow table modifying method, flow table modifying device, and openflow network system | |
CN105991435A (en) | Method and apparatus of acquiring port path | |
CN110224935A (en) | A kind of method and device handling multicast data message | |
CN109218200A (en) | A kind of message processing method and device | |
CN104521188B (en) | A kind of methods, devices and systems for setting up light bypass | |
CN105122740B (en) | It is a kind of to shunt method, interchanger, controller and the system reported | |
CN104038446B (en) | link discovery method and device | |
CN110061885A (en) | Gateway discharging method, device, gateway and medium | |
CN106506409B (en) | A kind of management method and network management exchange of network management exchange | |
CN102387027B (en) | Network configuration method, ring network system and node | |
US10177935B2 (en) | Data transfer system, data transfer server, data transfer method, and program recording medium | |
CN107070791A (en) | A kind of SDN system and its data transmission method | |
CN115996201A (en) | Flow table processing method, openflow switch and computing device |
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 |