Embodiment
The embodiment of the invention provides a kind of communication means, gateway and network, be used for when the CEE switch links to each other with the traditional ethernet switch and belongs to the CEE switch and communicate by letter with the network node of traditional ethernet switch, can keeping the enhancement function of CEE switch.
Need to prove that the embodiment of the invention is not changed traditional ethernet switch and CEE switch, but require the traditional ethernet switch to support Pause (time-out) function, corresponding with the enhancement function such as PFC based on priority of CEE switch.When carrying out transfer of data according to the priority of data traffic type, if the quantity of the priority of CEE switch processes data traffic type is more than traditional ethernet switch ports themselves and/or MAC (Media Access Control, medium access control) other quantity of level of address, so, in the traditional ethernet switch, can suspend the transmission of certain discharge pattern data by the Pause function, make the high discharge pattern high priority data transmission of priority, to realize the controls to transfer of data relevant such as PFC of CEE switch with discharge pattern priority.In the traditional ethernet switch, the obliterated data phenomenon can take place when network traffics surpass certain limitation, the Pause function is to design in order to reduce obliterated data, it can suspend the transmission of certain discharge pattern data, and allow other discharge pattern data be transmitted normally, but when the Pause function is suspended certain discharge pattern transfer of data, may stop all traffic transport on the physical link, and PFC is a kind of enhancing to the Pause function, can on a physical link, create 3 to 8 independently virtual links, and allow to suspend separately and restart wherein any virtual link, this method makes switch not have the packet loss service for the single virtual link establishment, and it can be coexisted with other discharge pattern on the same interface.
According to current technical standard, priority in the CEE switch has 3 to 8 usually, and this rule is applied to enhancement function such as PFC, ETS equally, this just is mapped with above-mentioned 3 to 8 virtual links, promptly gives different priority to different virtual links.In the transmission of reality, the CEE exchange opportunity is carried out the processing of data traffic type according to the difference of virtual link priority.
See also Fig. 1, an embodiment of the communication means that the embodiment of the invention provides comprises:
101, traditional ethernet switch ports themselves and/or the MAC Address classification that will divide are in advance carried out the rank setting;
In traditional ethernet, traditional ethernet switch and each terminal communicate, the data traffic type of each terminal can be divided into 3 to 8 classes, comprise storage class and non-storage class, general, the data traffic type can determine that understandable, the data traffic type also can be determined jointly according to the port and the MAC Address of switch according to the port or the MAC Address of switch.Traditional ethernet switch ports themselves and/or MAC Address can be divided into the classification that quantity equates according to the data traffic type that receives, for example, each terminal data flow that switch ports themselves is received has 5 classes, then switch ports themselves and/or MAC Address also fall into 5 types, divide the concrete mode of classification and can not do concrete qualification herein by existing techniques in realizing.
In the embodiment of the invention, can be according to the priority of the data traffic type transfers in the traditional ethernet, the traditional ethernet switch ports themselves and/or the MAC Address classification (for example 3 to 8 classes) of dividing are in advance carried out the rank setting, and data traffic type corresponding port and/or MAC Address rank that priority is high are also high.In actual applications, the priority of data traffic type transfers is relevant with the critical degree of data in the traditional ethernet network, data type, priority that for example critical degree is high are also high, so, when the data traffic type of each terminal of traditional ethernet switch can be divided into 3 to 8 time-likes, its corresponding rank also can be divided into 3 to 8 ranks.
For example, with the storage class flow as most important, the data type that override transmits, then its corresponding port and/or MAC Address rank also are set to the superlative degree, understandable, in actual applications, also can be with the other types flow as the highest discharge pattern of priority, and its corresponding port and/or MAC Address rank can be set to highest port and/or MAC Address, other rank of discharge pattern priority and port and/or MAC Address level is provided with relevant with actual application, does not do concrete qualification herein.
102, the priority of set rank and CEE switch processes data traffic type is set up corresponding relation;
The priority of CEE switch processes data traffic type can be divided into 3 to 8 grades, is specially techniques well known, repeats no more herein.
Need to prove, gateway is in CEE switch one side, and functional equivalent has the flow control of priority in the CEE switch, strengthen functions such as transmission selection and congested announcement, and the Frame that the traditional ethernet switch that receives can be sent is transmitted to the CEE switch.
Gateway is set up corresponding relation with the rank of each generic port of traditional ethernet switch and/or MAC Address and the priority of CEE switch processes data traffic type, each generic port of traditional ethernet switch and/or MAC Address rank are high, the high priority of corresponding CEE switch processes data traffic type, otherwise, each generic port of traditional ethernet switch and/or MAC Address rank are low, the low priority of corresponding CEE switch processes data traffic type is set up the detailed process of corresponding relation and will be described in detail in subsequent embodiment.
103, receive the Frame that traditional ethernet switch and CEE switch send;
Gateway receives the Frame of traditional ethernet switch and the transmission of CEE switch.
104,, the Frame of traditional ethernet switch transmission and the Frame of CEE switch transmission are transmitted to the other side according to the corresponding relation of being set up.
According to the corresponding relation of in step 102, having set up, gateway is transmitted to the CEE switch with the Frame that the traditional ethernet switch of receiving sends, the Frame that the CEE switch of receiving is sent is transmitted to the traditional ethernet switch, and concrete repeating process sees also subsequent embodiment.
Gateway in the embodiment of the invention is connected and data transfer direction with traditional ethernet switch and CEE switch, see also Fig. 2,201 is the traditional ethernet switch, 202 is gateway, 203 is the CEE switch, 204 is the terminal of traditional ethernet switch, and traditional ethernet switch 201 sends to gateway 202 with the Frame of each terminal 204, is transmitted to CEE switch 203 by gateway 202.
In the embodiment of the invention, between traditional ethernet switch and CEE switch, increased a gateway, this gateway is according to the priority of data traffic type transfers in the traditional ethernet network, this priority is relevant with the critical degree of data, the data type priority that for example critical degree is high is also high, the port and/or the MAC Address classification of dividing are in advance carried out the rank setting, then the port divided and/or the rank of MAC Address classification and the priority of CEE switch processes data traffic type are set up corresponding relation, the Frame that makes the traditional ethernet switch send transmits according to the priority of the CEE switch processes data traffic type of correspondence by gateway, because the enhancement function of CEE switch realizes by the priority feature of deal with data flow type, thus present embodiment can keep that the CEE switch compares the traditional ethernet switch the different types of traffic prioritization is carried out the enhancement function of transfer of data.
Gateway in the invention process is connected and data transfer direction with CEE switch and traditional ethernet switch, see also Fig. 3,301 is the traditional ethernet switch, 302 is gateway, 303 is the CEE switch, 304 is the terminal of traditional ethernet switch, 305 is the Ethernet optical-fibre channel (FCoE of CEE switch, Fiber Channel over Ethernet) node, CEE switch 303 sends to gateway 302 with the Frame of FCoE node 305, be transmitted to traditional ethernet switch 301 by gateway 302, send to corresponding terminal by traditional ethernet switch 301 again.
For ease of understanding, introduce the communication means that provides in the embodiment of the invention with another embodiment below, see also Fig. 4, another embodiment of the communication means that provides in the embodiment of the invention comprises:
401, traditional ethernet switch ports themselves and/or the MAC Address classification that will divide are in advance carried out the rank setting;
The content of the step 401 in the embodiment of the invention sees also the aforementioned described content of step 101 in embodiment illustrated in fig. 1, repeats no more herein.
402, set rank is corresponding one by one with the priority of CEE switch processes data traffic type, wherein, high more rank is corresponding to high more priority;
This step is corresponding to the step 102 among Fig. 1.
With the set a plurality of traditional ethernet switch ports themselves and/or the rank of MAC Address classification, corresponding one by one with a plurality of priority of deal with data flow type in the CEE switch, wherein, high more rank is corresponding to high more priority.
In general, all kinds of rank of traditional ethernet switch ports themselves and/or MAC Address can be divided into 3 to 8 grades, the priority of CEE switch processes data traffic type also can be divided into 3 to 8 grades, when the two quantity is identical, can be corresponding one by one by order from high to low, be highest-ranking port and/or MAC Address in each generic port of traditional ethernet switch and/or the MAC Address, the limit priority of corresponding CEE switch processes data traffic type, below each rank corresponding one by one respectively, minimum port and/or the MAC Address of rank in each generic port of traditional ethernet switch and/or MAC Address, the lowest priority of corresponding CEE switch processes data traffic type.
And all kinds of rank of traditional ethernet switch ports themselves and/or MAC Address, with the priority quantity of CEE switch processes data traffic type when unequal, can be earlier that the two is highest corresponding, below each rank corresponding in turn, after the few side of progression has corresponding offside progression corresponding respectively, the side residue progression that progression is many can not have corresponding offside progression, for example, all kinds of rank of traditional ethernet switch ports themselves and/or MAC Address divides 1,2,3 totally 3 grades, and the priority of CEE switch processes data traffic type is 1,2,3,4,5 totally 5 grades, wherein the superlative degree of the two is 1 grade, so, can 1 grade in the priority of 1 grade of port of traditional ethernet switch and/or MAC Address and CEE switch processes data traffic type is corresponding, the former 2 grades of ports and/or MAC Address can be corresponding with the latter's priority 2 level, the former 3 grades of ports and/or MAC Address can be corresponding with the latter's priority 3 level, and latter two priority of CEE switch processes data traffic type does not have the port and/or the MAC Address rank of corresponding traditional ethernet switch.
403, receive the Frame that the traditional ethernet switch sends;
This step is corresponding to the step 103 among Fig. 1.
Gateway receives the Frame that the traditional ethernet switch sends.
404, search the priority of the corresponding CEE switch processes of the rank data traffic type of classification under the port of the Frame that sends with the traditional ethernet switch and/or the MAC Address;
In the corresponding relation of from step 402, being set up, search with step 403 in the rank of classification under the port of the Frame that sends of the traditional ethernet switch that receives and/or the MAC Address, the priority of corresponding CEE switch processes data traffic type.
Need to prove, search other concrete mode of this level and can not do concrete qualification herein by existing techniques in realizing.
405, the Frame that the traditional ethernet switch that receives is sent is transmitted to the CEE switch.
Concrete, when gateway receives the Frame of traditional ethernet switch transmission, gateway at first can know this Frame from the port and/or the MAC Address of traditional ethernet switch, and determine the rank of classification under this port and/or the MAC Address, then in the corresponding relation of the priority of the rank of port of from step 402, setting up and/or MAC Address classification and CEE switch processes data traffic type, find with this port and/or MAC Address under the corresponding priority of rank of classification, and after adding the precedence information that finds to this Frame, this Frame is sent to the CEE switch.
Need to prove, more than the Frame that just the traditional ethernet switch that receives is sent is transmitted to a kind of concrete mode of CEE switch, and is understandable, also has other modes can realize the forwarding of gateway to Frame, can not do concrete qualification herein by existing techniques in realizing.
Above-mentioned steps 404~405 is corresponding to the step 104 among Fig. 1.
In the embodiment of the invention, because gateway is from the corresponding relation of the priority of the rank of the port set up and/or MAC Address classification and CEE switch processes data traffic type, find with this port and/or MAC Address under the corresponding priority of rank of classification, and after adding the precedence information that finds to this Frame, this Frame is sent to the CEE switch, so, the CEE switch just can use enhancement function such as its PFC and according to the priority of this Frame this Frame be transmitted.Thereby, when the high-level more high priority more corresponding to CEE switch processes data traffic type, it is most important to make that the traditional ethernet switch sends over, and the data that override transmits are able to can't harm transmission in the transmission of CEE switch override in CEE switch cloud.
More than the Frame that the traditional ethernet switch that receives sent from gateway be transmitted to CEE switch process the communication means that the embodiment of the invention provides be described, the Frame that the CEE switch that receives is sent from gateway is transmitted to traditional ethernet switch process the communication means that the embodiment of the invention provides is described below, see also Fig. 5, another embodiment of communication means comprises in the embodiment of the invention:
501~502, the content of the step 501 in the embodiment of the invention to 502 sees also aforementioned step 401 in embodiment illustrated in fig. 4 to 402 described contents, repeats no more herein.
503, receive the Frame that the CEE switch sends;
This step is corresponding to the step 103 among Fig. 1.
Gateway receives the Frame that the CEE switch sends.
504, from the corresponding relation of being set up, search the corresponding rank of precedence information of carrying in the Frame that sends with the CEE switch;
In the corresponding relation that gateway is set up, search the traditional ethernet switch ports themselves of the precedence information correspondence of carrying in the Frame of the CEE switch transmission that receives and/or the rank of MAC Address classification from step 502.
Need to prove, search other concrete mode of this level and can not do concrete qualification herein by existing techniques in realizing.
505,, be transmitted to the corresponding port and/or the MAC Address of traditional ethernet switch with the Frame of CEE switch transmission.
When gateway receives the Frame of CEE switch transmission, gateway is at first according to the precedence information that carries in this Frame, determine the priority of the CEE switch processes data traffic type of this Frame correspondence, then in the corresponding relation of the priority of the rank of port of from step 502, setting up and/or MAC Address classification and CEE switch processes data traffic type, find the rank corresponding, and this Frame sent to have other port of level and/or the MAC Address that this finds on the traditional ethernet switch with the priority of this Frame.
Need to prove, more than the Frame that just the CEE switch that receives is sent is transmitted to a kind of concrete mode of traditional ethernet switch, and is understandable, also has other modes can realize the forwarding of gateway to Frame, can not do concrete qualification herein by existing techniques in realizing.
Above-mentioned steps 504~505 is corresponding to the step 104 among Fig. 1.
In the embodiment of the invention, because of gateway can be according to the precedence information that carries in this Frame, determine the priority of the CEE switch processes data traffic type of this Frame correspondence, from the corresponding relation of the priority of the rank of the port set up and/or MAC Address classification and CEE switch processes data traffic type, find the rank corresponding with the priority of this Frame, and this Frame sent to have other port of level and/or the MAC Address that this finds on the traditional ethernet switch, like this, the traditional ethernet switch just can use its Pause function and according to the port and/or the MAC Address that receive this Frame, this Frame be transmitted.Thereby, when the high-level more high priority more corresponding to CEE switch processes data traffic type, the traditional ethernet switch can use its Pause function will be from the Frame prioritised transmission of those urgent, important high priorities of CEE switch, the possibility of Pause is lower, perhaps, the Frame of not critical low priority is preferentially suspended, make to be assigned to higher bandwidth in the data frame transfer process of high priority.
The gateway that the embodiment of the invention provides is described below, sees also Fig. 6, an embodiment of the gateway that the embodiment of the invention provides comprises:
Unit 601 is set, is used for the traditional ethernet switch ports themselves and/or the MAC Address classification of dividing are in advance carried out the rank setting;
Corresponding unit 602 is used for setting up corresponding relation with the set rank in unit 601 is set with the priority of deal with data flow type in the CEE switch;
Receiving element 603 is used to receive the Frame of traditional ethernet switch transmission and the Frame that the CEE switch sends;
Retransmission unit 604 is used for the corresponding relation set up according to corresponding unit 602, and the Frame that Frame that the traditional ethernet switch is sent and CEE switch send is transmitted to the other side.
Need to prove that the retransmission unit 604 in the embodiment of the invention can further include:
Search unit 6041, be used for when receiving element 603 receives the Frame of traditional ethernet switch transmission, from the corresponding relation that corresponding unit 602 is set up, search the priority of deal with data flow type in the corresponding CEE switch of rank of classification under the port of the Frame that sends with the traditional ethernet switch and/or the MAC Address;
Adding device 6042, the precedence information that is used for finding add the Frame that the traditional ethernet switch sends to;
Transmitting element 6043, the Frame that is used for adding device 6042 has been added precedence information is transmitted to the CEE switch.
In addition, searching unit 6041 also is used for searching the corresponding rank of precedence information of carrying in the Frame that sends with the CEE switch when receiving element 603 receives the Frame of CEE switch transmission; Then, transmitting element 6043 also is used for the Frame with the transmission of CEE switch, be transmitted to the corresponding port and/or the MAC Address of traditional ethernet switch, wherein, corresponding port and/or MAC Address are to have to search level other traditional ethernet switch ports themselves and/or MAC Address that unit 6041 finds.
In the embodiment of the invention, traditional ethernet switch ports themselves and/or the MAC Address classification that to divide in advance unit 601 are set carry out the rank setting, corresponding unit 602 is with set rank, set up corresponding relation with the priority of deal with data flow type in the CEE switch, with the set a plurality of traditional ethernet switch ports themselves and/or the rank of MAC Address classification, corresponding one by one with a plurality of priority of deal with data flow type in the CEE switch, wherein, high more rank is corresponding to high more priority, receiving element 603 receives the Frame of traditional ethernet switch transmission and the Frame that the CEE switch sends, retransmission unit 604 is transmitted to the other side according to the corresponding relation of being set up with the Frame of traditional ethernet switch transmission and the Frame of CEE switch transmission.
Wherein, when the Frame that the traditional ethernet switch is sent when retransmission unit 604 is transmitted to the CEE switch, search unit 6041 from the corresponding relation that corresponding unit 602 is set up, search the priority of deal with data flow type in the corresponding CEE switch of rank of classification under the port of the Frame that sends with the traditional ethernet switch and/or the MAC Address, adding device 6042 adds the precedence information that finds to this Frame, by transmitting element 6043 this Frame is sent to the CEE switch, so, the CEE switch just can use enhancement function such as its PFC and according to the priority of this Frame this Frame be transmitted.Thereby, when the high-level more high priority more corresponding to CEE switch processes data traffic type, it is most important to make that the traditional ethernet switch sends over, and the data that override transmits are able to can't harm transmission in the transmission of CEE switch override in CEE switch cloud.
When the Frame that the CEE switch is sent when retransmission unit 604 is transmitted to the traditional ethernet switch, search unit 6041 from the corresponding relation that corresponding unit 602 is set up, search the corresponding rank of precedence information of carrying in the Frame that sends with the CEE switch, and by transmitting element 6043 this Frame is sent to and to have other port of level and/or the MAC Address that this finds on the traditional ethernet switch, therefore the traditional ethernet switch uses its Pause function and according to the port and/or the MAC Address that receive this Frame, this Frame is transmitted, thereby, when the high-level more high priority more corresponding to CEE switch processes data traffic type, the traditional ethernet switch can use its Pause function will be urgent from those of CEE switch, the Frame prioritised transmission of important high priority, the possibility of Pause is lower, perhaps, the Frame with not critical low priority preferentially suspends.
Introduce the communication network in the embodiment of the invention below, see also Fig. 7, an embodiment of the communication network in the embodiment of the invention comprises:
Gateway 701, traditional ether switch 702 and CEE switch 703, this gateway 701 connects traditional ethernet switch 702 and CEE switch 703.
The Frame that Frame that this gateway 701 can be sent traditional ether switch 702 to the method for embodiment shown in Figure 5 according to above-mentioned Fig. 1 and CEE switch 703 are sent is transmitted to the other side.In addition, this gateway 701 can be gateway as shown in Figure 6.
Understandable, the above object lesson of the technical scheme that provides of the embodiment of the invention just, in actual applications, as long as meet following application scenarios: a side is the CEE switch, the perhaps CEE cloud that constitutes by a plurality of CEE switches, an other side is the traditional ethernet switch, the both sides switch need link to each other and communicate, so, for the enhancement function that guarantees the traditional ethernet switch of comparing that the CEE switch has is not lost, for example PFC all can add an intermediate equipment between this two classes switch, be the gateway of the foregoing description, with the technical scheme that realizes that the embodiment of the invention provides.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than a kind of communication means provided by the present invention and gateway are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.