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 enhancing 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(to suspend) function, to strengthen function corresponding with the PFC of the Priority-based of CEE switch etc.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 certain discharge pattern data transfer by the Pause function, make the high discharge pattern high priority data transmission of priority, to realize the controls to transfer of data relevant with discharge pattern priority such as PFC of CEE switch.In the traditional ethernet switch, the obliterated data phenomenon can occur when network traffics surpass certain limitation, the Pause function is to design in order to reduce obliterated data, it can suspend certain discharge pattern data transfer, 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 create 3 to 8 independently virtual links at a physical link, and allow to suspend separately and restart wherein any virtual link, this method make switch can for the single virtual link establishment without the packet loss service, can with same interface on the coexistence of other discharge pattern.
According to current technical standard, priority in the CEE switch has 3 to 8 usually, and this rule is applied to PFC equally, and ETS etc. strengthen function, this just is mapped with above-mentioned 3 to 8 virtual links, namely 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 according to port or the MAC Address of switch understandable, the data traffic type also can be determined jointly according to port and 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 by existing techniques in realizing, not do concrete restriction herein.
In the embodiment of the invention, can be according to the priority of the data traffic type transfers in the traditional ethernet, 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 port and/or MAC Address rank that the data traffic type that priority is high is corresponding 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 during to 8 class, 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 arranges relevant with actual application, does not do concrete restriction 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 the functions such as transmission selection and congestion notification, 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, according to the corresponding relation of setting up, 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 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, 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, so that the Frame that the traditional ethernet switch sends transmits according to the priority of the CEE switch processes data traffic type of correspondence by gateway, because the enhancing function of CEE switch realizes by the priority feature of deal with data flow type, the compare flow prioritization to dissimilar of traditional ethernet switch is carried out the enhancing function of transfer of data thereby present embodiment can keep the CEE switch.
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, the below introduces the communication means that provides in the embodiment of the invention with another embodiment, sees also Fig. 4, and 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, higher rank is corresponding to higher priority;
This step is corresponding to the step 102 among Fig. 1.
With 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, higher rank is corresponding to higher 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, until minimum port and/or the MAC Address of rank in each generic port of traditional ethernet switch and/or the 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, when unequal with the priority quantity of CEE switch processes data traffic type, can be first that the two is highest corresponding, below each rank corresponding in turn, after the few side of progression has respectively corresponding offside progression corresponding, the side residue progression that progression is many can be without the offside progression of correspondence, 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 is without port and/or the MAC Address rank of the traditional ethernet switch of correspondence.
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 data traffic type of the rank 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, setting 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 that searching other concrete mode of this level can by existing techniques in realizing, be not specifically limited herein.
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 port and/or the MAC Address of traditional ethernet switch, and determine the rank of classification under this port and/or the MAC Address, in the corresponding relation of the priority of the port of then from step 402, setting up and/or the rank of MAC Address classification and CEE switch processes data traffic type, find with this port and/or MAC Address under the corresponding priority of the 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, the Frame that more than 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 that gateway is to the forwarding of Frame, can by existing techniques in realizing, not do concrete restriction herein.
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 the 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 the enhancing functions such as its PFC and according to the priority of this Frame this Frame be transmitted.Thereby, when more high-level more high priority corresponding to CEE switch processes data traffic type, can be so that the traditional ethernet switch send over be most important, 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 below sends the CEE switch that receives from gateway is transmitted to traditional ethernet switch process the communication means that the embodiment of the invention provides is described, 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 setting 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 traditional ethernet switch ports themselves corresponding to the precedence information that carries in the Frame that the CEE switch that receives sends and/or the rank of MAC Address classification from step 502.
Need to prove that searching other concrete mode of this level can by existing techniques in realizing, be not specifically limited herein.
505, with the Frame of CEE switch transmission, be transmitted to corresponding ports and/or the MAC Address of traditional ethernet switch.
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 that this Frame is corresponding, in the corresponding relation of the priority of the port of then from step 502, setting up and/or the rank of 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.
Need to prove, the Frame that more than 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 that gateway is to the forwarding of Frame, can by existing techniques in realizing, not do concrete restriction herein.
Above-mentioned steps 504 ~ 505 is corresponding to the step 104 among Fig. 1.
In the embodiment of the invention, because gateway can be according to the precedence information that carries in this Frame, determine the priority of the CEE switch processes data traffic type that this Frame is corresponding, 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 more high-level more high priority 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, so that can 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:
Setting unit 601, the traditional ethernet switch ports themselves and/or the MAC Address classification that are used for dividing are in advance carried out the rank setting;
Corresponding unit 602 is used for the rank that setting unit 601 is set, sets up corresponding relation with the priority of deal with data flow type in the CEE switch;
Receiving element 603 is used for receiving the Frame of traditional ethernet switch transmission and the Frame that the CEE switch sends;
Retransmission unit 604 for the corresponding relation of setting up according to corresponding unit 602, is transmitted to the other side with the Frame of traditional ethernet switch transmission and the Frame of CEE switch transmission.
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 the rank of classification under the port of the Frame that sends with the traditional ethernet switch and/or the MAC Address;
Adding device 6042 is used for adding the precedence information that finds to Frame that the traditional ethernet switch sends;
Transmitting element 6043 is transmitted to the CEE switch for the Frame that adding device 6042 has been added precedence information.
In addition, search unit 6041 and also be used for when receiving element 603 receives the Frame of CEE switch transmission, search the corresponding rank of precedence information of carrying in the Frame that sends with the CEE switch; Then, transmitting element 6043 also is used for the Frame with the transmission of CEE switch, be transmitted to corresponding ports and/or the MAC Address of traditional ethernet switch, wherein, corresponding ports 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 MAC Address classification that setting unit 601 will be divided are in advance carried 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 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, higher rank is corresponding to higher 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 setting 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 the 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 the enhancing functions such as its PFC and according to the priority of this Frame this Frame be transmitted.Thereby, when more high-level more high priority corresponding to CEE switch processes data traffic type, can be so that the traditional ethernet switch send over be most important, 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 more high-level more high priority 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.
The below introduces the communication network in the embodiment of the invention, sees also Fig. 7, and an embodiment of the communication network in the embodiment of the invention comprises:
Gateway 701, traditional ethernet switch 702 and CEE switch 703, this gateway 701 connects traditional ethernet switch 702 and CEE switch 703.
The Frame that the Frame that this gateway 701 can be sent traditional ethernet 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 CEE cloud that is perhaps consisted of by a plurality of CEE switches, an other side is the traditional ethernet switch, the both sides switch need to link to each other and communicate, so, for the enhancing 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 above-described embodiment, 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 above-described embodiment method is to come the relevant hardware of instruction 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 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, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.