A kind of message processing method, relevant device and computer-readable recording mediumTechnical field
The present invention relates to the communications field, more particularly to a kind of message processing method, relevant device and computer-readable storageMedium.
Background technology
Generic route encapsulation (GRE, Generic Routing Encapsulation) technology is a kind of tunneling technique, such asShown in Fig. 1, this technology can set up virtual IP (IP, Internet between two endpoint of a tunnelsProtocol) connect, and initial data message encapsulated in new channel message, thus realize double layer network extension and two layersThe establishment of overlay networks.During using GRE technical transmission data, because Business Stream is encapsulated in tunnel, therefore transmission when withoutMethod recognize different business stream, so cannot also be provided for the different business in tunnel end to end service quality (QoS,Quality of Service) control.For this problem, correlation technique there is no effective solution.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provide a kind of message processing method, relevant device andComputer-readable recording medium.
What the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of message processing method, applied to the first interchanger, including:
The list item of corresponding first Business Stream of searching data message in flow table;The corresponding list item of first Business Stream is extremelyThe gre tunneling information of first Business Stream and the stream label information for identifying first Business Stream are included less;
Using the list item found, the data message is packaged into GRE messages;And the GRE messages are forwarded to instituteThe corresponding QoS port queues of the first Business Stream are stated, to send the GRE messages;Wherein, institute is at least carried in the GRE messagesState stream label information.
In such scheme, when the data message is packaged into GRE messages, increase by the first mark in the GRE messages;First mark, which is characterized, supports stream label.
It is described that the data message is packaged into GRE messages in such scheme, including:
Increase the stream label information and the first mark in the GRE heads of the GRE messages.
It is described to increase the stream label information and first mark in the GRE heads of the GRE messages in such schemeKnow, including:
The stream label information and first mark are set in described GRE reserved domain.
It is described before the list item of corresponding first Business Stream of the searching data message in the first table in such schemeMethod also includes:
Judge whether the information received is data message, obtains judged result;
When judged result characterize receive information be data message when in the first table searching data message corresponding firstThe list item of Business Stream.
In such scheme, methods described also includes:
When not finding the list item of corresponding first Business Stream of data message in the flow table, data message is sentGive software defined network SDN controllers;
The SDN controllers are received for the corresponding forward-path relevant information of first traffic flow configuration;The forwardingPath-related information at least includes:Stream label information and gre tunneling information;
According to the forward-path relevant information of reception, the corresponding list item of first Business Stream is set in the flow table.
The embodiment of the present invention additionally provides a kind of message processing method, applied to SDN controllers, including:
Receive the data message of the first interchanger transmission;
:The corresponding list item of corresponding first Business Stream of data message that stream label mapping table search is received;Described firstThe corresponding list item of Business Stream comprises at least gre tunneling information and the stream label information for identifying first Business Stream;
The label information and gre tunneling information of first Business Stream are sent to the gre tunneling of the first Business Stream of transmissionSource interchanger and intermediary switch so that source interchanger and intermediary switch set the list item of flow table;The flow table includes tableLevy the list item of the forward-path relevant information of Business Stream.
In such scheme, methods described also includes:
According to the related transmitting information and QoS information of first Business Stream, the label letter of first Business Stream is generatedBreath;
The corresponding list item of first Business Stream is set in the stream label mapping table.
The embodiment of the present invention provides a kind of message processing method again, applied to second switch, including:
Receive GRE messages;
The GRE messages of reception are parsed, the stream label information for identifying first Business Stream is obtained;
The corresponding list item of stream label information of first Business Stream is searched in flow table;First Business Stream is failed to be sold at auctionSign the gre tunneling information that the corresponding list item of information comprises at least first Business Stream;
According to the gre tunneling information of first Business Stream, the GRE messages of reception are forwarded to first Business Stream pairThe QoS port queues answered, to send the GRE messages of the reception.
In such scheme, the GRE messages of described pair of reception are parsed, and obtain the stream for identifying first Business StreamDuring label information, methods described includes:
The GRE messages of reception are parsed, the first mark is obtained;When the described first mark, which is characterized, supports stream label,The GRE messages that further parsing is received, obtain the stream label information for identifying first Business Stream.
In such scheme, the GRE messages of reception are parsed, including:
The GRE heads of the GRE messages of reception are parsed.
In such scheme, methods described also includes:
It is the corresponding forward-path relevant information of first traffic flow configuration to receive SDN controllers;The forward-pathRelevant information at least includes:Stream label information and gre tunneling information;
According to the forward-path relevant information of reception, the corresponding list item of first Business Stream is set in the flow table.
The embodiment of the present invention additionally provides a kind of first interchanger, including:First processor and can be for storingThe first memory of the computer program run on one processor,
Wherein, when the first processor is used to run the computer program, above-mentioned first exchanger side is performed anyThe step of method.
The embodiment of the present invention provides a kind of SDN controllers again, including:Second processor and for store can be secondThe second memory of the computer program run on processor,
Wherein, when the second processor is used to run the computer program, the step of above-mentioned SDN sides either method is performedSuddenly.
The embodiment of the present invention additionally provides a kind of second switch, including:3rd processor and can be for storing3rd memory of the computer program run on three processors,
Wherein, when the 3rd processor is used to run the computer program, above-mentioned second switch side is performed anyThe step of method.
The embodiment of the present invention provides a kind of computer-readable recording medium again, is stored thereon with computer program, describedThe step of above-mentioned first exchanger side either method is realized when computer program is executed by processor, or realize above-mentioned SDN sidesThe step of either method, or the step of realize above-mentioned second switch side either method.
Message processing method provided in an embodiment of the present invention, relevant device and computer-readable recording medium, using failing to be sold at auctionLabel information carrys out identification service stream, and work flow is sent into corresponding QoS port queues according to stream label information, makes Business StreamSend, controlled so that the different business for ensureing to realize in tunnel provides QoS end to end from corresponding QoS ports, that is,Say, QoS performance guarantees end to end can be provided to the Business Stream that gre tunneling is carried.
Brief description of the drawings
In accompanying drawing (it is not necessarily drawn to scale), similar reference phase described in different viewsAs part.Accompanying drawing generally shows each embodiment discussed herein by way of example and not limitation.
Fig. 1 is gre tunneling schematic diagram in correlation technique;
Fig. 2 is the method flow schematic diagram of the Message processing of the embodiment of the present invention one;
Fig. 3 is the heading form schematic diagram of GRE messages in correlation technique;
Fig. 4 is the GRE message format schematic diagrames that the embodiment of the present invention supports stream label;
Fig. 5 is the method flow schematic diagram of the Message processing of the embodiment of the present invention two;
Fig. 6 is the method flow schematic diagram of the Message processing of the embodiment of the present invention three;
Fig. 7 is the method flow schematic diagram of the Message processing of the embodiment of the present invention four;
Fig. 8 is the method flow schematic diagram of the Message processing of the embodiment of the present invention five;
The cloud data center system architecture schematic diagram of Fig. 9 embodiment of the present invention six;
Figure 10 is the SDN controller architecture schematic diagrames of the embodiment of the present invention six;
Figure 11 is the SDN switch structural representation of the embodiment of the present invention six;
Figure 12 is that the SDN controllers of the embodiment of the present invention six interact schematic diagram with interchanger;
Figure 13 is the entry format schematic diagram of the stream label mapping table of the embodiment of the present invention six;
Figure 14 is the SDN tunnel source interchanger Message Processing schematic flow sheets of the embodiment of the present invention six;
Figure 15 is the SDN intermediary switch Message Processing schematic flow sheets of the embodiment of the present invention six;
Figure 16 is the table item matching domain schematic diagram of the embodiment of the present invention six;
Figure 17 is the flow table configuration schematic diagram of the embodiment of the present invention six;
Figure 18 is the switch architecture schematic diagram of the embodiment of the present invention 7 first;
Figure 19 is the SDN controller architecture schematic diagrames of the embodiment of the present invention seven;
Figure 20 is the second switch structural representation of the embodiment of the present invention seven.
Embodiment
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings.
When using GRE technologies, because Business Stream is encapsulated in tunnel, therefore the None- identified different business in transmissionStream, so cannot also provide QoS controls end to end for the different business in tunnel.
Based on above-mentioned technical problem, it is thus proposed that a solution:Wrapped by the external network protocols (IP) in GREIP precedence or differentiated services code points (DSCP) value are set on head, so as to provide the QoS control abilities in tunnel, controlThe priority and bandwidth allocation in different tunnels, differentiated service is provided for the business in different tunnels.
But, on the one hand, such scheme is only capable of providing the QoS controls in different tunnels, still can not be for tunnel carrying notQoS controls are provided with Business Stream;On the other hand, DSCP priority degree of establishment is very limited, it is impossible to support fineness to requireThe granularity of higher stream.
Based on this, in various embodiments of the present invention:Stream label information is generated for Business Stream, for distinguishing in tunnelDifferent business stream;When Business Stream process of passing through tunnel source interchanger, tunnel source interchanger is mapped to corresponding tunnel ID according to flow tableAnd stream label information, GRE messages are encapsulated, the QoS queue of different port is mapped to and is forwarded to next-hop intermediary switch node;When Business Stream passes through intermediary switch node, the corresponding tunnel ID of intermediary switch node matching and stream label, according to stream labelDifference is mapped to different port QoS queue and is forwarded to next-hop.
Scheme provided in an embodiment of the present invention, identifies the different business stream in tunnel using stream label information, and according toWork flow is sent to corresponding QoS port queues by stream label information, it is achieved thereby that the different business in tunnel provides endQoS to end is controlled, that is to say, that can provide QoS performance guarantees end to end to the Business Stream that gre tunneling is carried.
Embodiment one
The embodiment of the present invention provides a kind of message processing method, applied to the first interchanger, as shown in Fig. 2 this method bagInclude:
Step 201:The list item of corresponding first Business Stream of searching data message in flow table;
Here, the corresponding list item of first Business Stream comprises at least the gre tunneling information and use of first Business StreamIn the stream label information for identifying first Business Stream.
During practical application, stream label information and gre tunneling information are distributed for first Business Stream by SDN controllers,The label information and gre tunneling information of first Business Stream are sent to the source of the gre tunneling of the first Business Stream of transmission and exchangedMachine and intermediary switch, so that source interchanger and intermediary switch set the list item of flow table.
In one embodiment, when not finding the list item of corresponding first Business Stream of data message in the flow table,Data message is sent to SDN controllers;
The SDN controllers are received for the corresponding forward-path relevant information of first traffic flow configuration;The forwardingPath-related information at least includes:Stream label information and gre tunneling information;
According to the forward-path relevant information of reception, the corresponding list item of first Business Stream is set in the flow table.
Then, step 201~202 are re-executed.
Step 202:Using the list item found, the data message is packaged into GRE messages;And by the GRE messagesThe corresponding QoS port queues of first Business Stream are forwarded to, to send the GRE messages.
Wherein, the stream label information is at least carried in the GRE messages.
Here, during practical application, the stream label information can be carried in GRE headings, it is only necessary to parse GRE messagesHead can obtain stream label information, can so greatly speed up processing speed.
During practical application, in order to save expense, a mark can be added in messages, whether supports to fail to be sold at auction to characterizeLabel.
Based on this, in one embodiment, when the data message is packaged into GRE messages, increase in the GRE messagesFirst mark;First mark, which is characterized, supports stream label.
With as the stream label info class, it is described first mark can also carry in GRE headings, it is only necessary to solveAnalysis GRE headings can obtain the first mark, so as to judge whether to support stream label, when supporting stream label, further solveAnalyse message;Further analytic message is not needed when not supporting stream label, processing speed can be so greatly speeded up.
It is described that the data message is packaged into GRE messages based on this, including:
Increase the stream label information and the first mark in the GRE heads of the GRE messages.
Here, Fig. 3 is the heading form schematic diagram of general GRE messages.As shown in figure 3, comprising reserved in general GREDomain, including Reserved0 and Reserved1, it is possible to set stream label information and first to identify using reserved domain, so thatGRE are extended.
It is described to increase the stream label information and first mark, bag in the GRE heads of the GRE messages based on thisInclude:
The stream label information and first mark are set in described GRE reserved domain.
Fig. 4 is supports the GRE message formats of stream label, from fig. 4, it can be seen that increasing by 1 in the Reserved0 domains of GREBit come indicate whether support stream label, such as 1 represent support stream label, 0 represent do not support stream label;When support stream labelWhen, there are 2 bytes to identify stream label information in Reserved1 domains.
It should be noted that:During practical application, the specific length of the first mark and stream label information can be come as neededSet, the embodiment of the present invention is defined not to this.Meanwhile, the embodiment of the present invention is not to the first mark in Reserved0The particular location in domain is defined.In other words, how above-mentioned implementation is exemplary description described GRE pre-Stay domain that stream label information and first mark are set.
Different QoS ports have different priority and bandwidth safeguard, and each QoS ports are to that should have a teamRow, according to the QoS of data message requirement, GRE messages are placed into corresponding port queue, so as to from corresponding QoS endsMouth is sent.For example for, queue 1 ensures 10M bandwidth (one QoS port of correspondence), and queue 2 ensures 100M bandwidth (correspondenceAnother QoS port), in network congestion, higher bandwidth safeguard can be had by entering the packet of enqueue 2.
View of the above, it will be seen that first interchanger needs data message being packaged into GRE messages, so instituteIt is source interchanger to state the first interchanger.
Scheme provided in an embodiment of the present invention, the list item of corresponding first Business Stream of searching data message in flow table;InstituteThe corresponding list item of the first Business Stream is stated including at least the gre tunneling information of first Business Stream and for identifying first industryThe stream label information of business stream;Using the list item found, the data message is packaged into GRE messages;And by the GRE messagesThe corresponding QoS port queues of first Business Stream are forwarded to, to send the GRE messages;Wherein, in the GRE messages extremelyThe stream label information is carried less, using stream label information come identification service stream, and according to stream label information come by work flowCorresponding QoS port queues are sent to, Business Stream is sent from corresponding QoS ports, so as to ensure to realize the difference in tunnelBusiness provides QoS end to end and controlled, that is to say, that can provide QoS performances end to end to the Business Stream that gre tunneling is carriedEnsure.
In addition, increasing the stream label information and the first mark in the GRE heads of the GRE messages, GRE reports are so receivedWen Shi, it is only necessary to which the stream label information and the first mark can be obtained by parsing GRE, without parsing all GRE messages,In this way, greatly accelerating processing speed.
Embodiment two
The embodiment of the present invention provides a kind of message processing method, applied to the first interchanger, as shown in figure 5, this method bagInclude:
Step 501:Judge whether the information received is data message, obtains judged result;
Step 502:When judged result characterize receive information be data message when in the first table searching data message pairThe list item for the first Business Stream answered;
That is, when the information received is that data message is ability corresponding first business of searching data message in flow tableThe list item of stream.When the information of reception is control message, corresponding operation is performed according to the type of message, for example for,When type of message is flow table configuration message, the list item for the information configuration flow table that message is indicated is configured according to flow table, when message classWhen type is port configuration message, information configuration QoS ports that message is indicated etc. are configured according to port.
Here, the corresponding list item of first Business Stream comprises at least the gre tunneling information and use of first Business StreamIn the stream label information for identifying first Business Stream.
During practical application, stream label information and gre tunneling information are distributed for first Business Stream by SDN controllers,The label information and gre tunneling information of first Business Stream are sent to the source of the gre tunneling of the first Business Stream of transmission and exchangedMachine and intermediary switch, so that source interchanger and intermediary switch set the list item of flow table.
In one embodiment, when not finding the list item of corresponding first Business Stream of data message in the flow table,Data message is sent to SDN controllers;
The SDN controllers are received for the corresponding forward-path relevant information of first traffic flow configuration;The forwardingPath-related information at least includes:Stream label information and gre tunneling information;
According to the forward-path relevant information of reception, the corresponding list item of first Business Stream is set in the flow table.
Then, go to search corresponding list item in flow table again, and perform step 503.
Step 503:Using the list item found, the data message is packaged into GRE messages;And by the GRE messagesThe corresponding QoS port queues of first Business Stream are forwarded to, to send the GRE messages.
Wherein, the stream label information is at least carried in the GRE messages.
Here, during practical application, the stream label information can be carried in GRE headings, it is only necessary to parse GRE messagesHead can obtain stream label information, can so greatly speed up processing speed.
During practical application, in order to save expense, a mark can be added in messages, whether supports to fail to be sold at auction to characterizeLabel.
Based on this, in one embodiment, when the data message is packaged into GRE messages, increase in the GRE messagesFirst mark;First mark, which is characterized, supports stream label.
With as the stream label info class, it is described first mark can also carry in GRE headings, it is only necessary to solveAnalysis GRE headings can obtain the first mark, so as to judge whether to support stream label, when supporting stream label, further solveAnalyse message;Further analytic message is not needed when not supporting stream label, processing speed can be so greatly speeded up.
It is described that the data message is packaged into GRE messages based on this, including:
Increase the stream label information and the first mark in the GRE heads of the GRE messages.
Here, Fig. 3 is the heading form schematic diagram of general GRE messages.As shown in Fig. 2 comprising reserved in general GREDomain, including Reserved0 and Reserved1, it is possible to set stream label information and first to identify using reserved domain, so thatGRE are extended.
It is described to increase the stream label information and first mark, bag in the GRE heads of the GRE messages based on thisInclude:
The stream label information and first mark are set in described GRE reserved domain.
Fig. 4 is supports the GRE message formats of stream label, from fig. 4, it can be seen that increasing by 1 in the Reserved0 domains of GREBit come indicate whether support stream label, such as 1 represent support stream label, 0 represent do not support stream label;When support stream labelWhen, there are 2 bytes to identify stream label information in Reserved1 domains.
It should be noted that:During practical application, the specific length of the first mark and stream label information can be come as neededSet, the embodiment of the present invention is defined not to this.Meanwhile, the embodiment of the present invention is not to the first mark in Reserved0The particular location in domain is defined.In other words, how above-mentioned implementation is exemplary description described GRE pre-Stay domain that stream label information and first mark are set.
Different QoS ports have different priority and bandwidth safeguard, and each QoS ports are to that should have a teamRow, according to the QoS of data message requirement, GRE messages are placed into corresponding port queue, so as to from corresponding QoS endsMouth is sent.For example for, queue 1 ensures 10M bandwidth (one QoS port of correspondence), and queue 2 ensures 100M bandwidth (correspondenceAnother QoS port), in network congestion, higher bandwidth safeguard can be had by entering the packet of enqueue 2.
View of the above, it will be seen that first interchanger needs data message being packaged into GRE messages, so instituteIt is source interchanger to state the first interchanger.
Scheme provided in an embodiment of the present invention, the list item of corresponding first Business Stream of searching data message in flow table;InstituteThe corresponding list item of the first Business Stream is stated including at least the gre tunneling information of first Business Stream and for identifying first industryThe stream label information of business stream;Using the list item found, the data message is packaged into GRE messages;And by the GRE messagesThe corresponding QoS port queues of first Business Stream are forwarded to, to send the GRE messages;Wherein, in the GRE messages extremelyThe stream label information is carried less, using stream label information come identification service stream, and according to stream label information come by work flowCorresponding QoS port queues are sent to, Business Stream is sent from corresponding QoS ports, so as to ensure to realize the difference in tunnelBusiness provides QoS end to end and controlled, that is to say, that can provide QoS performances end to end to the Business Stream that gre tunneling is carriedEnsure.
In addition, increasing the stream label information and the first mark in the GRE heads of the GRE messages, GRE reports are so receivedWen Shi, it is only necessary to which the stream label information and the first mark can be obtained by parsing GRE, without parsing all GRE messages,In this way, greatly accelerating processing speed.
Embodiment three
The embodiments of the invention provide a kind of message processing method, applied to SDN controllers, as shown in fig. 6, this method bagInclude:
Step 601:Receive the data message of the first interchanger transmission;
Step 602:The corresponding list item of corresponding first Business Stream of data message that table search is received is mapped in stream label;
Wherein, the corresponding list item of first Business Stream comprises at least gre tunneling information and for identifying first industryThe stream label information of business stream.
During practical application, network manager can configure the service-level agreement of first Business Stream to SDN controllers(SLA, Service-Level Agreement) demand, SDN controllers set stream according to the SLA requirement of first Business StreamThe list item of label mapping table.
Specifically, SDN controllers are according to the related transmitting information and QoS information of first Business Stream, generate described theThe label information of one Business Stream;
The corresponding list item of first Business Stream is set in the stream label mapping table.
Here, when generating the label information of first Business Stream, SDN controllers can utilize first Business StreamThe related transmitting informations such as source, purpose IP.MAC, port and QoS information generate Hash (hash) value, and the hash values are madeFor the stream label information of first Business Stream.Certainly, during practical application, other modes can also be used to generate described firstThe label information of Business Stream, as long as the label information of first Business Stream of generation ensure that the stream label can be distinguished notWith the QoS information of Business Stream.
Step 603:The label information and gre tunneling information of first Business Stream are sent to the first Business Stream of transmissionThe source interchanger and intermediary switch of gre tunneling, so that source interchanger and intermediary switch set the list item of flow table.
Wherein, the flow table includes the list item for the forward-path relevant information for characterizing Business Stream.
In the embodiment of the present invention, the label information of the first Business Stream described in SDN controllers and gre tunneling information are sent to biographyThe source interchanger and intermediary switch of the gre tunneling of defeated first Business Stream, so that source interchanger and intermediary switch set flow tableList item, so so that source interchanger and intermediary switch can be using stream label information come identification service stream, and according to failing to be sold at auctionWork flow is sent to corresponding QoS port queues by label information, Business Stream is sent from corresponding QoS ports, so as to ensureRealize the different business in tunnel and QoS controls end to end are provided, that is to say, that can to the Business Stream that gre tunneling is carriedQoS performance guarantees end to end are provided.
Example IV
The embodiments of the invention provide a kind of message processing method, applied to second switch, as shown in fig. 7, this methodIncluding:
Step 701:Receive GRE messages;
Step 702:The GRE messages of reception are parsed, the stream label for identifying first Business Stream is obtained and believesBreath;
Here, when the GRE messages to reception are parsed, the GRE messages of reception is parsed, the first mark is obtainedKnow;When the described first mark, which is characterized, supports stream label, the GRE messages that further parsing is received obtain being used to identify described theThe stream label information of one Business Stream.
Wherein, when supporting stream label, further analytic message;Need not further it be parsed when not supporting stream labelMessage, can so greatly speed up processing speed.
When the described first mark and the increase of stream label information are in the packet header of the GRE messages, second switch dockingThe GRE heads of the GRE messages of receipts are parsed, it is only necessary to which these information can be obtained by parsing packet header, so, it is possible to greatly speed up placeManage speed.
Step 703:The corresponding list item of stream label information of first Business Stream is searched in flow table;
Here, the corresponding list item of stream label information of first Business Stream comprises at least the GRE of first Business StreamTunnel information;
Step 704:According to the gre tunneling information of first Business Stream, the GRE messages of reception are forwarded to described firstThe corresponding QoS port queues of Business Stream, to send the GRE messages of the reception.
Different QoS ports have different priority and bandwidth safeguard, and each QoS ports are to that should have a teamRow, according to the QoS of data message requirement, GRE messages are placed into corresponding port queue, so as to from corresponding QoS endsMouth is sent.For example for, queue 1 ensures 10M bandwidth (one QoS port of correspondence), and queue 2 ensures 100M bandwidth (correspondenceAnother QoS port), in network congestion, higher bandwidth safeguard can be had by entering the packet of enqueue 2.
Wherein, when the information of reception is not GRE messages but during control message, second switch is held according to the type of messageThe corresponding operation of row, for example for, when type of message is flow table configuration message, the letter that message is indicated is configured according to flow tableThe list item of breath configuration flow table, when type of message is port configuration message, the information configuration QoS that message is indicated is configured according to portPort etc..
View of the above, it will be seen that the second switch needs to carry out forward process, institute to the GRE messages of receptionIt is intermediary switch with the second switch.
Scheme provided in an embodiment of the present invention, is parsed to the GRE messages of reception, obtains being used to identify first industryThe stream label information of business stream;The corresponding list item of stream label information of first Business Stream is searched in flow table;First industryThe corresponding list item of stream label information of business stream comprises at least the gre tunneling information of first Business Stream;According to first industryThe gre tunneling information of business stream, is forwarded to the corresponding QoS port queues of first Business Stream, to send by the GRE messages of receptionWork flow, using stream label information come identification service stream, and is sent to by the GRE messages of the reception according to stream label informationCorresponding QoS port queues, make Business Stream be sent from corresponding QoS ports, so as to ensure to realize the different business in tunnelThere is provided QoS end to end to control, that is to say, that the Business Stream that gre tunneling is carried can be provided QoS performances guarantor end to endBarrier.
In addition, when receiving GRE messages, it is only necessary to which the stream label information and the first mark can be obtained by parsing GRE, andAll GRE messages need not be parsed, in this way, greatly accelerating processing speed
Second switch is parsed to the GRE heads of the GRE messages of reception, obtains stream label information and the first mark, onlyNeed parsing packet header to obtain these information, so, it is possible to greatly speed up processing speed.
Embodiment five
The embodiments of the invention provide a kind of message processing method, applied to second switch, as shown in figure 8, this methodIncluding:
Step 801:It is the corresponding forward-path relevant information of the first traffic flow configuration to receive SDN controllers;
Here, the forward-path relevant information at least includes:Stream label information and gre tunneling information.
Step 802:According to the forward-path relevant information of reception, the corresponding table of first Business Stream is set in flow table;
Wherein, can be described first when SDN controllers receive the data message of the first Business Stream of the first interchanger transmissionThe corresponding forward-path relevant information of traffic flow configuration, and be sent to the first interchanger and the second exchange, that is, it is sent to source exchangeMachine and intermediary switch, so that these interchangers can identify first Business Stream using stream label information, and according to streamFirst work flow is sent to corresponding QoS port queues by label information, makes first Business Stream from corresponding QoSPort is sent.
Step 803:Receive GRE messages;
Step 804:The GRE messages of reception are parsed, the stream label for identifying first Business Stream is obtained and believesBreath;
Here, when the GRE messages to reception are parsed, the GRE messages of reception is parsed, the first mark is obtainedKnow;When the described first mark, which is characterized, supports stream label, the GRE messages that further parsing is received obtain being used to identify described theThe stream label information of one Business Stream.
Wherein, when supporting stream label, further analytic message;Need not further it be parsed when not supporting stream labelMessage, can so greatly speed up processing speed.
When the described first mark and the increase of stream label information are in the packet header of the GRE messages, second switch dockingThe GRE heads of the GRE messages of receipts are parsed, it is only necessary to which these information can be obtained by parsing packet header, so, it is possible to greatly speed up placeManage speed.
Step 805:The corresponding list item of stream label information of first Business Stream is searched in flow table;
Here, the corresponding list item of stream label information of first Business Stream comprises at least the GRE of first Business StreamTunnel information;
Step 806:According to the gre tunneling information of first Business Stream, the GRE messages of reception are forwarded to described firstThe corresponding QoS port queues of Business Stream, to send the GRE messages of the reception.
Different QoS ports have different priority and bandwidth safeguard, and each QoS ports are to that should have a teamRow, according to the QoS of data message requirement, GRE messages are placed into corresponding port queue, so as to from corresponding QoS endsMouth is sent.For example for, queue 1 ensures 10M bandwidth (one QoS port of correspondence), and queue 2 ensures 100M bandwidth (correspondenceAnother QoS port), in network congestion, higher bandwidth safeguard can be had by entering the packet of enqueue 2.
Wherein, when the information of reception is not GRE messages but during control message, second switch is held according to the type of messageThe corresponding operation of row, for example for, when type of message is flow table configuration message, the letter that message is indicated is configured according to flow tableThe list item of breath configuration flow table, when type of message is port configuration message, the information configuration QoS that message is indicated is configured according to portPort etc..
View of the above, it will be seen that the second switch needs to carry out forward process, institute to the GRE messages of receptionIt is intermediary switch with the second switch.
Scheme provided in an embodiment of the present invention, is parsed to the GRE messages of reception, obtains being used to identify first industryThe stream label information of business stream;The corresponding list item of stream label information of first Business Stream is searched in flow table;First industryThe corresponding list item of stream label information of business stream comprises at least the gre tunneling information of first Business Stream;According to first industryThe gre tunneling information of business stream, is forwarded to the corresponding QoS port queues of first Business Stream, to send by the GRE messages of receptionWork flow, using stream label information come identification service stream, and is sent to by the GRE messages of the reception according to stream label informationCorresponding QoS port queues, make Business Stream be sent from corresponding QoS ports, so as to ensure to realize the different business in tunnelThere is provided QoS end to end to control, that is to say, that the Business Stream that gre tunneling is carried can be provided QoS performances guarantor end to endBarrier.
In addition, when receiving GRE messages, it is only necessary to which the stream label information and the first mark can be obtained by parsing GRE, andAll GRE messages need not be parsed, in this way, greatly accelerating processing speed
Second switch is parsed to the GRE heads of the GRE messages of reception, obtains stream label information and the first mark, onlyNeed parsing packet header to obtain these information, so, it is possible to greatly speed up processing speed.
Embodiment six
The present embodiment is an Application Example.
Fig. 9 is cloud data center system architecture schematic diagram.The application scenarios of the embodiment of the present invention can be shown in Fig. 9System framework.As shown in figure 9, operation is more on physical host 1 and main frame 2 of the system including running multiple virtual machines, each main frameIndividual virtual switch br-int and br-tun.Wherein, virtual switch br-int is used to connect multiple virtual machine ports and virtualInterchanger br-tun;Virtual switch br-tun be used for opposite end gre tunneling interchanger, and provide GRE encapsulate/decapsulate work(Energy.By multiple physics SDN switches SDN-switch1, SDN-switch2 between main frame, and virtual SDN switch br-Int, br-tun are connected with each other, and SDN controllers are responsible for the unified management and control of physics and virtual SDN switch.
Wherein, using during the scheme of the embodiment of the present invention, it is necessary to SDN controllers and SDN switch (including physical exchangeMachine and virtual switch) function increased newly or improved.
As shown in Figure 10, SDN controllers include:Management interface, switch management module, Topology Management module, path meterCalculate module, flow table management module, stream label management module and stream label mapping table.Wherein, management interface is used to receive to interchangerSend out message;Switch management module is used to manage interchanger and port QoS configuration informations;Topology Management module, which is used to manage, to be exchangedMachine topology information;It is one suitable network paths of business stream calculation that path calculation module, which is used for according to qos requirement,;Flow table manages mouldBlock is used for according to network path and stream label information the generation flow table calculated and notifies associated switch to configure flow table;Stream labelManagement module is used to generate stream label according to business stream information and QoS information and map information is saved in into stream label mapping tableIn.
Here, the newly-increased module of SDN controllers includes:Flow table management module, stream label management module and stream label mappingTable.
As shown in figure 11, SDN switch includes:Management interface, data-interface, flow table configuration module, Port Management module,Processing data packets module, flow table matching module.Wherein, management interface is used for SDN controller messagings;Data-interface is used forTo other network node transceiving data messages;The configuration information that flow table configuration module is used to be sent according to SDN controllers is being exchangedCorresponding flow table is configured on machine;Port Management module is used to manage switch ports themselves information and configuration port QoS etc.;PacketProcessing module is used to handle accordingly to data message according to the next step processing of flow table match decision action and be forwarded to accordinglyPort;Flow table matching module is used for for data packet matched suitable flow table and determines the processing mode of next step.
Here, the newly-increased module of SDN switch includes:Flow table matching module and processing data packets module.
Scheme provided in an embodiment of the present invention is:
SDN controllers are received after the Business Stream that source interchanger is sent, according to four layers of information (SLA requirement) of network of Business StreamAnd QoS demand generation stream label information, for distinguishing the different business stream in tunnel.Afterwards by failing to be sold at auction that the Business Stream mapsSign information and gre tunneling information notifies gre tunneling source interchanger and intermediary switch node to configure corresponding flow table.
Gre tunneling source interchanger configuration flow table, when Business Stream process of passing through tunnel source interchanger, correspondence is mapped to according to flow tableTunnel ID and stream label information, GRE messages are encapsulated, and map to different port QoS queue, to be forwarded to friendship in the middle of next-hopChange planes node.
Here, when encapsulation carries the GRE messages of stream label, it is necessary to extend GRE Header reserved domain, increase is failed to be sold at auctionLabel are supported, for distinguishing the different business stream that tunnel is carried.1-12bit is reserved domain in GRE, and 1bit is increased in reserved domainAs stream label flag bit, if stream label flag bit is set to 1, increase by 2 bytes in GRE header as stream label domain,If stream label flag bit is set to 0, expression does not map stream label, and specific form can be as shown in Figure 4.
Intermediary switch configures flow table, matching stream label and tunnel information, when Business Stream passes through intermediary switch node,Corresponding tunnel ID and stream label are matched, is that GRE messages are forwarded to corresponding QoS port queues by the Business Stream after encapsulation, to forwardTo next-hop.
Figure 12 is that Application Example SDN controllers of the present invention interact schematic diagram with interchanger.As shown in figure 12, interactionIncluding:
Step 1201:Network manager is to SDN controller configuration service stream SLA requirements;
Step 1202:SDN controllers are mapped to port QoS configurations, and update stream label and reflect according to Business Stream SLA requirementThe list item of firing table;
Here, the entry format of stream label mapping table is as shown in figure 13.
Step 1203:Source virtual machine sends request of data to SDN tunnel sources interchanger;
Step 1204:SDN tunnel source interchangers are received after the data message of request, corresponding when not found in flow tableDuring list item, Packet-in message is sent to SDN controllers, is asked as the Business Stream calculating network path, mapping stream label letterBreath, and configure flow table;
Step 1205:SDN controllers are received after request, search stream label mapping table, for one satisfaction of the business stream calculationThe end to end network approach of QoS demand, and Configuration network node port QoS;
Step 1206:SDN controllers send interchanger configuring request to SDN tunnel sources interchanger and SDN intermediary switch,Configure corresponding ports QoS;
Step 1207:After the completion of SDN tunnel sources interchanger and the configuration of SDN intermediary switch, to SDN controller send configurationsCompletion message;
Step 1208:After all relevant network node QoS configuration is finished, SDN controllers according to related transmitting information andQoS information generates stream label information;
Step 1209:SDN controllers send flow table configuration message to SDN tunnel sources interchanger and SDN intermediary switch, withBusiness Stream is mapped to stream label information;
Step 1210:SDN tunnel sources interchanger and SDN intermediary switch update the list item of flow table according to the message of transmission;
Step 1211:SDN tunnel sources interchanger is searching flow table according to the corresponding Business Stream of data message, and in dataThe information such as stream label, tunnel ID are added in message, to encapsulate GRE messages, and corresponding port QoS queue are forwarded to;
Step 1212:SDN intermediary switch is received after GRE messages, searches flow table, matches the information such as stream label, tunnel ID,Corresponding port QoS queue is forwarded to, to forward request of data to target virtual machine, terminates currently processed process.
The concrete processing procedure of SDN tunnel sources interchanger and SDN intermediary switch is described separately below.
Figure 14 is SDN tunnel source interchanger Message Processing schematic flow sheets.As shown in figure 14, the process includes:
Step 1400:Receive a message;
Step 1401:It is data message or control message to judge message, if data message then performs step 1402,If being control message, then step 1407 is performed;
Step 1402:Whether the corresponding Business Stream of detection data message has the list item of matching in flow table, if so, then holdingRow step 1403, otherwise performs step 1406;
Step 1403:Judge whether next step processing action needs to set stream label according to the particular content of list item, ifIt is then to perform step 1404, otherwise, performs step 1405;
Here, if there is the stream label information of Business Stream in list item, show that next step action needs to set stream label, such asThere is no the stream label information of Business Stream in fruit list item, then show that next step action need not set stream label.
Step 1404:GRE messages are encapsulated, it is 1 that stream label flag bit is set in GRE, and stream label domain is set, and turnedThe QoS queue of corresponding port is sent to, to send GRE messages, step 1410 is performed afterwards;
Step 1405:GRE messages are encapsulated, it is 0 to set stream label flag bit, and be forwarded to corresponding port QoS queue, to send outGo out GRE messages, step 1410 is performed afterwards;
Step 1406:Packet-in message is sent to SDN controllers, is asked as the Business Stream calculating network path, mappingStream label, and flow table is configured, step 1402 is continued executing with after being assigned, is now surely found with regard to one in flow table correspondingList item;
Step 1407:Whether detection control message type is flow table configuration message, if it is, step 1408 is performed, it is noThen, step 1409 is performed;
Step 1408:Flow table is configured, so as to which Business Stream is mapped into related stream label and tunnel and port QoS queue, itStep 1410 is performed afterwards;
Step 1409:Port QoS queue is configured, step 1410 is performed afterwards;
Step 1410:Terminate currently processed flow.
Figure 15 is SDN intermediary switch Message Processing schematic flow sheets.As shown in figure 15, the process includes:
Step 1500:Receive a message;
Step 1501:It is data message or control message to judge message, if data message then performs step 1502,If control message, then step 1506 is performed;
Step 1502:Whether the corresponding Business Stream of detection data message has the list item of matching in flow table, if so, then holdingRow step 1503, otherwise performs step 1505;
Step 1503:Tunnel ID and stream label are matched, step 1504 is performed afterwards;
Step 1504:According to matching flow table forwarding data packets to corresponding port QoS queue, to send GRE messages, afterwardsPerform step 1509;
Step 1505:The data message is abandoned, step 1509 is performed afterwards;
Step 1506:Whether detection control message type is flow table configuration message, if it is, step 1507 is performed, it is noThen, step 1508 is performed;
Step 1507:Flow table is configured, so as to which Business Stream is mapped into related stream label and tunnel and port QoS queue, itStep 1509 is performed afterwards;
Step 1508:Port QoS queue is configured, step 1509 is performed afterwards;
Step 1509:Terminate currently processed flow.
Wherein, SDN tunnel sources interchanger and SDN intermediary switch are when matching the list item of Business Stream, and table item matching domain canWith as shown in figure 16.Wherein, in figure 16, wildcards represents asterisk wildcard, and in_port represents inbound port, and dl_src represents sourceMAC Address, dl_dst represents destination-mac address, and dl_vlan represents that virtual LAN VLAN identifies (ID), dl_vlan_pcp tablesShow 802.1q priority, dl_typ represents Ether frame type, and nw_tos represents IP TOS values, and nw_proto represents IP agreement, nw_Src represents source IP address, and nw_dst represents purpose IP address, and tp_src represents TCP/IP source ports, and tp_dst represents TCP/IPDestination interface, flowid represents stream label.
It should be noted that:Matching domain shown in Figure 16 is only a kind of example, can also be as needed during practical applicationCan be other matching domains, the embodiment of the present invention is defined not to this.
In addition, the flow table configuration of SDN tunnel sources interchanger and SDN intermediary switch is as shown in figure 17.Wherein, in Figure 17In, src IP represent source IP address, and dest IP represent target ip address, and in port represent inbound port, and dl_vlan represents VLANID, Action1=strip_vlan, set_tunnel=5, set_flowid=1102, output port=5015 represents,Remove VLAN, it is 5 to set tunnel ID, and it is 1102 to set stream label, and exit port is 5015, Action=enqueue:5114:1 tableShow into enqueue 5114:1.5114:1 represents that port numbers are 5114, and queue number is 1.
It should be noted that:Flow table configuration shown in Figure 17 is only a kind of example, can also be according to need during practical applicationCan be other configurations, the embodiment of the present invention is defined not to this.
Embodiment seven
Method to realize the embodiment of the present invention, the present embodiment provides a kind of first interchanger, as shown in figure 18, and described theOne interchanger 180 includes:First processor 181 and for storing the computer program that can be run on first processorOne memory 182,
Wherein, when the first processor 181 is used to run the computer program, perform:
The list item of corresponding first Business Stream of searching data message in flow table;The corresponding list item of first Business Stream is extremelyThe gre tunneling information of first Business Stream and the stream label information for identifying first Business Stream are included less;
Using the list item found, the data message is packaged into GRE messages;And the GRE messages are forwarded to instituteThe corresponding QoS port queues of the first Business Stream are stated, to send the GRE messages;Wherein, institute is at least carried in the GRE messagesState stream label information.
In one embodiment, when the first processor 181 is used to run the computer program, perform:
When the data message is packaged into GRE messages, increase by the first mark in the GRE messages;First markKnow to characterize and support stream label.
In one embodiment, when the first processor 181 is used to run the computer program, perform:
Increase the stream label information and the first mark in the GRE heads of the GRE messages.
In one embodiment, when the first processor 181 is used to run the computer program, perform:
The stream label information and first mark are set in described GRE reserved domain.
In one embodiment, when the first processor 181 is additionally operable to run the computer program, perform:
Before the list item of corresponding first Business Stream of the searching data message in the first table, judge that the information received isNo is data message, obtains judged result;
When judged result characterize receive information be data message when in the first table searching data message corresponding firstThe list item of Business Stream.
In one embodiment, when the first processor 181 is additionally operable to run the computer program, perform:
When not finding the list item of corresponding first Business Stream of data message in the flow table, data message is sentGive software defined network SDN controllers;
The SDN controllers are received for the corresponding forward-path relevant information of first traffic flow configuration;The forwardingPath-related information at least includes:Stream label information and gre tunneling information;
According to the forward-path relevant information of reception, the corresponding list item of first Business Stream is set in the flow table.
It should be noted that:The first interchanger and the message processing method of the first exchanger side that above-described embodiment is provided are realApply example and belong to same design, it implements process and refers to embodiment of the method, repeats no more here.
Certainly, during practical application, as shown in figure 18, each component in the first interchanger 180 passes through the coupling of bus system 183It is combined.It is understood that bus system 183 is used to realize the connection communication between these components.Bus system 183, which is removed, includes numberOutside bus, in addition to power bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, in Figure 18It is middle that various buses are all designated as bus system 183.
Wherein, the number of the first processor 181 can be at least one.
First memory 182 in the embodiment of the present invention is used to store various types of data to support interchanger 180Operation.
The method that the embodiments of the present invention are disclosed can apply in first processor 181, or by first processor181 realize.First processor 181 is probably a kind of IC chip, the disposal ability with signal.In implementation process,Each step of the above method can be by the hardware in first processor 181 integrated logic circuit or the instruction of software formComplete.Above-mentioned first processor 181 can be general processor, digital signal processor (DSP, Digital Signal), or other PLDs, discrete gate or transistor logic, discrete hardware components etc. Processor.TheDisclosed each method, step and logic diagram in the embodiment of the present invention can be realized or performed to one processor 181.General placeIt can be microprocessor or any conventional processor etc. to manage device.The step of method with reference to disclosed in the embodiment of the present invention,Hardware decoding processor can be embodied directly in and perform completion, or held with the hardware in decoding processor and software module combinationRow is completed.Software module can be located in storage medium, and the storage medium is located at first memory 182, and first processor 181 is readThe information in first memory 182 is taken, the step of completing preceding method with reference to its hardware.
In the exemplary embodiment, the first interchanger 180 can by one or more application specific integrated circuits (ASIC,Application Specific Integrated Circuit), DSP, PLD (PLD, ProgrammableLogic Device), CPLD (CPLD, Complex Programmable Logic Device), sceneProgrammable gate array (FPGA, Field-Programmable Gate Array), general processor, controller, microcontroller(MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronic components are realized, are used forPerform preceding method.
Method to realize the embodiment of the present invention, the present embodiment additionally provides a kind of SDN controllers, as shown in figure 19, shouldSDN controllers 190 include:Second processor 191 and for storing the computer program that can be run in second processorSecond memory 192,
Wherein, when the second processor 191 is used to run the computer program, perform:
Receive the data message of the first interchanger transmission;
:The corresponding list item of corresponding first Business Stream of data message that stream label mapping table search is received;Described firstThe corresponding list item of Business Stream comprises at least gre tunneling information and the stream label information for identifying first Business Stream;
The label information and gre tunneling information of first Business Stream are sent to the gre tunneling of the first Business Stream of transmissionSource interchanger and intermediary switch so that source interchanger and intermediary switch set the list item of flow table;The flow table includes tableLevy the list item of the forward-path relevant information of Business Stream.
In one embodiment, when the second processor 191 is additionally operable to run the computer program, perform:
According to the related transmitting information and QoS information of first Business Stream, the label letter of first Business Stream is generatedBreath;
The corresponding list item of first Business Stream is set in the stream label mapping table.
It should be noted that:The SDN controllers that above-described embodiment is provided and the message processing method of SDN controllers side are implementedExample belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
Certainly, during practical application, as shown in figure 19, the SDN controllers 190 can also include:At least one network interface193.Each component in SDN controllers 190 is coupled by bus system 194.It is understood that bus system 194 is used forRealize the connection communication between these components.Bus system 194 is in addition to including data/address bus, in addition to power bus, controlBus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system 194 in Figure 19.
Wherein, the number of the second processor 191 can be at least one.
Network interface 193 is used for the communication of wired or wireless way between SDN controllers 190 and other equipment.
Second memory 192 in the embodiment of the present invention is used to store various types of data with the behaviour of SDN controllers 190Make.
The method that the embodiments of the present invention are disclosed can apply in second processor 191, or by second processor191 realize.Second processor 191 is probably a kind of IC chip, the disposal ability with signal.In implementation process,Each step of the above method can be by the hardware in second processor 191 integrated logic circuit or the instruction of software formComplete.Above-mentioned second processor 191 can be general processor, DSP, or other PLDs, discrete gate orPerson's transistor logic, discrete hardware components etc..Second processor 191 can be realized or performed in the embodiment of the present inventionDisclosed each method, step and logic diagram.General processor can be microprocessor or any conventional processor etc..KnotThe step of closing the method disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processor and perform completion, Huo ZheyongHardware and software module combination in decoding processor perform completion.Software module can be located in storage medium, and the storage is situated betweenMatter is located at second memory 192, and second processor 191 reads the information in second memory 192, completes foregoing with reference to its hardwareThe step of method.
In the exemplary embodiment, SDN controllers 190 can by one or more ASIC, DSP, PLD, CPLD, FPGA,General processor, controller, MCU, microprocessor (Microprocessor) or other electronic components are realized, before executionState method.
Method to realize the embodiment of the present invention, the present embodiment additionally provides a kind of second switch, as shown in figure 20, shouldSecond switch 200 includes:
3rd processor 201 and the 3rd memory for storing the computer program that can be run on the 3rd processor202,
Wherein, when the 3rd processor 201 is used to run the computer program, perform:
Receive GRE messages;
The GRE messages of reception are parsed, the stream label information for identifying first Business Stream is obtained;
The corresponding list item of stream label information of first Business Stream is searched in flow table;First Business Stream is failed to be sold at auctionSign the gre tunneling information that the corresponding list item of information comprises at least first Business Stream;
According to the gre tunneling information of first Business Stream, the GRE messages of reception are forwarded to first Business Stream pairThe QoS port queues answered, to send the GRE messages of the reception.
In one embodiment, when the 3rd processor 201 is used to run the computer program, perform:
The GRE messages of reception are parsed, when obtaining the stream label information for identifying first Business Stream, dockingThe GRE messages of receipts are parsed, and obtain the first mark;When the described first mark, which is characterized, supports stream label, further parsing connectsThe GRE messages of receipts, obtain the stream label information for identifying first Business Stream.
In one embodiment, when the 3rd processor 201 is used to run the computer program, perform:
The GRE heads of the GRE messages of reception are parsed.
In one embodiment, when the 3rd processor 201 is additionally operable to run the computer program, perform:
It is the corresponding forward-path relevant information of first traffic flow configuration to receive SDN controllers;The forward-pathRelevant information at least includes:Stream label information and gre tunneling information;
According to the forward-path relevant information of reception, the corresponding list item of first Business Stream is set in the flow table.
It should be noted that:The second switch that above-described embodiment is provided and the message processing method of second switch side are realApply example and belong to same design, it implements process and refers to embodiment of the method, repeats no more here.
Certainly, during practical application, as shown in figure 20, each component in second switch 200 passes through the coupling of bus system 203It is combined.It is understood that bus system 203 is used to realize the connection communication between these components.Bus system 203, which is removed, includes numberOutside bus, in addition to power bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, in Figure 20It is middle that various buses are all designated as bus system 203.
Wherein, the number of the 3rd processor 201 can be at least one.
The 3rd memory 202 in the embodiment of the present invention is used to store various types of data to support second switch200 operation.
The method that the embodiments of the present invention are disclosed can apply in the 3rd processor 201, or by the 3rd processor201 realize.3rd processor 201 is probably a kind of IC chip, the disposal ability with signal.In implementation process,Each step of the above method can pass through the integrated logic circuit of the hardware in the 3rd processor 201 or the instruction of software formComplete.The 3rd above-mentioned processor 201 can be general processor, DSP, or other PLDs, discrete gate orPerson's transistor logic, discrete hardware components etc..3rd processor 201 can be realized or performed in the embodiment of the present inventionDisclosed each method, step and logic diagram.General processor can be microprocessor or any conventional processor etc..KnotThe step of closing the method disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processor and perform completion, Huo ZheyongHardware and software module combination in decoding processor perform completion.Software module can be located in storage medium, and the storage is situated betweenMatter is located at the 3rd memory 202, and the 3rd processor 201 reads the information in the 3rd memory 202, completes foregoing with reference to its hardwareThe step of method.
In the exemplary embodiment, second switch 20 can by one or more ASIC, DSP, PLD, CPLD, FPGA,General processor, controller, MCU, microprocessor (Microprocessor) or other electronic components are realized, before executionState method.
It is appreciated that memory (such as first memory 182, second memory 192 and the 3rd in the embodiment of the present inventionMemory 202), it can be volatile memory or nonvolatile memory, may also comprise volatibility and nonvolatile memoryBoth.Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory), may be programmed read-only storageDevice (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, ErasableProgrammable Read-Only Memory), Electrically Erasable Read Only Memory (EEPROM, ElectricallyErasable Programmable Read-Only Memory), magnetic RAM (FRAM, ferromagneticRandom access memory), flash memory (Flash Memory), magnetic surface storage, CD or read-only optical disc(CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be magnetic disk storage or tape storageDevice.Volatile memory can be random access memory (RAM, Random Access Memory), and it is used as outside high speedCaching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM(SRAM, Static Random Access Memory), synchronous static RAM (SSRAM, SynchronousStatic Random Access Memory), dynamic random access memory (DRAM, Dynamic Random AccessMemory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random AccessMemory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data RateSynchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory(ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links dynamic random are depositedAccess to memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus arbitrary access are depositedReservoir (DRRAM, Direct Rambus Random Access Memory).The memory of description of the embodiment of the present invention is intended to bagInclude but be not limited to the memory of these and any other suitable type.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, for example includingThe first memory 182 of computer program, above computer program can be performed by the first processor 181 of the first interchanger 180,To complete step described in foregoing first exchanger side method.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, for example includingThe second memory 192 of computer program, above computer program can be performed by the second processor 191 of SDN controllers 190,To complete step described in foregoing SDN controls side method.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, for example including3rd memory 202 of computer program, above computer program can be performed by the 3rd processor 201 of second switch 200,To complete step described in the method for foregoing 3rd switch side.
During practical application, computer-readable recording medium can be FRAM, ROM, PROM, EPROM, EEPROM, FlashThe memories such as Memory, magnetic surface storage, CD or CD-ROM.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text means relevant with embodimentDuring special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure" in one embodiment " or " in one embodiment " identical embodiment is not necessarily referred to.In addition, these specific feature, knotsStructure or characteristic can be combined in one or more embodiments in any suitable manner.It should be understood that in the various implementations of the present inventionIn example, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be with its work(It can be determined with internal logic, any limit is constituted without tackling the implementation process of the embodiment of the present invention.The embodiments of the present inventionSequence number is for illustration only, and the quality of embodiment is not represented.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-rowHis property is included, so that process, method, article or device including a series of key elements not only include those key elements, andAnd also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherentlyKey element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including thisAlso there is other identical element in process, method, article or the device of key element.
, can be by it in several embodiments provided herein, it should be understood that disclosed apparatus and methodIts mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is onlyA kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be combined, orAnother system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portionCoupling point each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs of equipment or unit by some interfacesOr communication connection, can be electrical, machinery or other forms.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, anyThose familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be containedCover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.