Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not full content.
Fig. 1 is the network topology structure figure that the implementation method of the service quality that provides of the embodiment of the present invention is provided.Referring to Fig. 1, the network of the implementation method of the service quality that the enforcement embodiment of the present invention provides comprises: terminal station 101 and bridge 102.On described terminal station 101, operation has at least one virtual switch.Described virtual switch is a kind of software function module of the program composition that moves on terminal station.Each virtual switch has it self virtual network interface card, can independently receive and send data by virtual switch described in this network interface unit, completes the function of the switch of similar reality.
Described terminal station 101 is directly connected with bridge 102.Described bridge 102 has multiple network connection ports, and is connected with described terminal station 101 and outer net by the network connection port of these physics.By network connection port, described bridge 102 can be respectively from described terminal station 101 and outer net receive and send data, thereby complete the virtual switch in terminal station 101 and the function of outer net described in bridge joint.
Fig. 2 shows the first embodiment of the present invention.
Fig. 2 is the flow chart of the implementation method of the service quality that provides of first embodiment of the invention.Referring to Fig. 2, the implementation method of described service quality comprises:
S210, on terminal station, the message to be sent of at least one virtual switch of operation is sent to bridge by the network interface unit in described terminal station, wherein, described virtual switch is the virtual switch on the virtual machine (Kernal-based virtual machine, KVM) operating in based on linux kernel.
Described terminal station comprises a network interface unit.This network interface unit is the network interface unit of physics.By this network interface unit, the virtual switch moving on described terminal station can receive message or message is sent to bridge from bridge.
In addition, the virtual switch moving on terminal station all has media access control (Mediaaccess control, MAC) address separately.Each virtual switch, in the time sending message, all adds the MAC Address of self in the message sending.Like this, when bridge equipment receives the message of the virtual switch transmission moving on described terminal station, just can recognize this message is by which virtual switch on terminal station to be sent.
Adding after the MAC Address that virtual switch is corresponding in each message to be sent, on terminal station, the message to be sent of at least one virtual switch of operation is sent to bridge by the network interface unit in described terminal station, no matter the destination-address of this message is the virtual switch moving on described terminal station, or other outer net equipment.
S220, bridge receives after the message of the virtual switch transmission moving on described terminal station, according at least one pre-configured QoS policy rule, the message receiving is dispatched.
Bridge is the bridging device between terminal station and outer net described in bridge joint.The message that the virtual switch moving on described terminal station sends all needs to forward through described bridge.In bridge, be provided with at least one qos policy rule in advance.
Described qos policy rule is to realize based on Access Control List (ACL) (Access control list, ACL), and be associated with the MAC Address of virtual switch.Described qos policy rule can be simultaneously carried out associatedly with multiple MAC Address, also can only carry out associated with a MAC Address.
Qos policy rule is that network manager configures on described bridge equipment by configuration order, and described configuration order is the configuration order under global schema, rather than configuration order under port mode.
Qos policy rule can be common qos policy rule, can be also the special qos policy rule for VEPA network traffics.By specially for the qos policy rule of VEPA network traffics referred to as VEPA qos policy rule.And, for VEPA qos policy rule, a VEPA qos policy rule associated multiple MAC Address simultaneously, a MAC Address can only be bound a VEPA qos policy.
It should be noted that, when described virtual switch moves, namely virtual switch migrates to another physical port in same terminal station from a physical port, or when virtual switch migrates on an other station terminal station, be also automatically migrated to object physical port or object terminal station for the qos policy rule of this virtual switch configuration.
The present embodiment is by utilizing terminal station to be gone up the message to be sent of at least one virtual switch of operation, bridge is dispatched the message receiving according at least one pre-configured QoS policy rule again, make network manager to implement QoS management to VEPA network traffics, realized the QoS of the VEPA network equipment is guaranteed.
Fig. 3 shows the second embodiment of the present invention.
Fig. 3 is the flow chart of the implementation method of the service quality that provides of second embodiment of the invention.The implementation method of described service quality is take the above embodiment of the present invention as basis, further, after bridge is dispatched the message receiving according at least one pre-configured QoS policy rule, also comprise: when terminal station receives through the message of bridge scheduling, transmit it to object virtual switch according to the MAC Address of virtual switch.Concrete, referring to Fig. 3, the implementation method of described service quality comprises:
S310, on terminal station, the message to be sent of at least one virtual switch of operation is sent to bridge by the network interface unit in described terminal station, and wherein, described virtual switch is the virtual switch on the virtual machine KVM operating in based on linux kernel.
S320, bridge receives after the message of the virtual switch transmission moving on described terminal station, according at least one pre-configured QoS policy rule, the message receiving is dispatched.
S330, when terminal station receives through the message of bridge scheduling, transmits it to object virtual switch according to the MAC Address of virtual switch.
Because described bridge is the bridge coil device between described terminal station and outer net, therefore described bridge not only can receive the message that described terminal station sends, and also can send message to described terminal station.
The message that is sent to described terminal station due to bridge comprises the MAC Address of the object virtual switch of this message, therefore terminal station can be according to the MAC Address of object virtual switch by this message transmissions to object virtual switch.
The present embodiment by the message that receives bridge in terminal station and send after, by this message according to the MAC Address of different virtual switch by this message transmissions to object virtual switch, realized the QoS of the VEPA network equipment guaranteed.
Fig. 4 shows the third embodiment of the present invention.
Fig. 4 is the flow chart of the qos policy rule-based scheduling in the implementation method of the service quality that provides of third embodiment of the invention.The implementation method of described service quality is take first embodiment of the invention as basis, further, bridge receives after the message of the virtual switch transmission moving on described terminal station, according at least one pre-configured QoS policy rule, the message receiving is dispatched and is comprised:
S221, if the message receiving take the virtual switch that moves on described terminal station as destination address, bridge reflects described message according to a pre-configured qos policy rule.
The message that bridge receives may be the message of the destination address of the virtual switch to move on described terminal station, may not be also virtual switch to move on the described terminal station message as destination address.These two kinds of message bridges are all needed them to carry out QoS assurance.Therefore, bridge is processed the message receiving according to the VEPA qos policy rule that receives the port of message and be associated with this port.
If the message receiving is virtual switch to move on the described terminal station message as destination address, described bridge, according to the VEPA qos policy rule being associated with the port that receives this message, is reflected back described terminal station by the message receiving.
S222, if the message receiving not take the virtual switch that moves on described terminal station as destination address, bridge is sent to outer net according to a pre-configured qos policy rule by described message.
If the message that described bridge receives is not virtual switch to move on the described terminal station message as destination address, described bridge is according to the VEPA qos policy rule being associated with the port that receives this message, by the message transmissions receiving to outer net.
The different destination addresses of the message that the present embodiment receives by basis, on bridge to these messages from different port repeats, implement simultaneously QoS ensure, in realizing the function of VEPA to send message QoS guarantee is provided.
Fig. 5 shows the fourth embodiment of the present invention.
Fig. 5 is the flow chart of the implementation method of the service quality that provides of fourth embodiment of the invention.The implementation method of described service quality is take the first embodiment of the present invention as basis, further, before the message to be sent of at least one virtual switch moving on it being sent to bridge by the network interface unit in described terminal station in terminal station, also comprise: bridge is learnt the MAC Address of at least one virtual switch moving on described terminal station.Concrete, the implementation method of described service quality comprises:
S510, bridge is learnt the MAC Address of at least one virtual switch moving on described terminal station.
Each virtual switch moving on described terminal station has corresponding with it virtual network interface card, and each virtual network interface jig has unique MAC Address.Therefore each virtual switch, moving on described terminal station has the MAC Address of unique correspondence with it.For message being transferred to virtual switch according to MAC Address, bridge need to be learnt the MAC Address of the virtual switch moving on described terminal station.
The MAC Address of the virtual switch that bridge can move on disposable learning terminal of the moment being connected with terminal station station, also can with the process of terminal station communication in the MAC Address of the virtual switch that moves on real-time learning terminal station.
The study of the MAC Address of bridge to the virtual switch moving on terminal station is to realize by the discovery of VEPA phantom station interface and configuration protocol (VSI discovery and configuration protocol, VDP).
S520, on terminal station, the message to be sent of at least one virtual switch of operation is sent to bridge by the network interface unit in described terminal station, and wherein, described virtual switch is the virtual switch on the virtual machine KVM operating in based on linux kernel.
S530, bridge receives after the message of the virtual switch transmission moving on described terminal station, according at least one pre-configured QoS policy rule, the message receiving is dispatched.
The present embodiment, by before message to be sent is sent to bridge, uses the MAC Address of the virtual switch moving on bridge learning terminal station, makes bridge can know the mac address information of different virtual switch.
Fig. 6 shows the fifth embodiment of the present invention.
Fig. 6 is the structure chart in the terminal station that provides of fifth embodiment of the invention.Referring to Fig. 6, described terminal station comprises: message transmission processing module 610.
Described message transmission processing module 610 is for being sent to bridge by the message to be sent of at least one virtual switch moving on terminal station by the network interface unit in described terminal station, wherein, described virtual switch is the virtual switch on the virtual machine KVM operating in based on linux kernel.
Preferably, described terminal station also comprises: message receiving processing module 620.
Described message receiving processing module 620 is for after dispatching the message receiving according at least one pre-configured QoS policy rule at bridge, while receiving the message of dispatching through bridge, transmit it to object virtual switch according to the MAC Address of virtual switch.
The present embodiment is by being sent to bridge by the message to be sent of the virtual switch moving on terminal station by network interface unit, and in the time receiving the message of dispatching through bridge, transmit it to object virtual switch according to the MAC Address of virtual switch, realized the QoS of VEPA network traffics is guaranteed.
Fig. 7 shows the sixth embodiment of the present invention.
Fig. 7 is the structure chart of the bridge that provides of sixth embodiment of the invention.Referring to Fig. 7, described bridge comprises: QoS scheduler module 710.
Described QoS scheduler module 710, for receiving after the message of the virtual switch transmission moving on described terminal station, is dispatched the message receiving according at least one pre-configured qos policy rule.
Preferably, described QoS scheduler module 710 comprises: QoS reflector element 711 and QoS transmitting element 712.
Described QoS reflector element 711 is for during as destination address, reflecting described message according to a pre-configured qos policy rule take the virtual switch that moves on described terminal station at the message receiving.
Described QoS transmitting element 712 is not for during as destination address, being sent to outer net according to a pre-configured qos policy rule by described message take the virtual switch that moves on described terminal station at the message receiving.
Preferably, described bridge also comprises: MAC address learning module 720.
Described MAC address learning module 720, for before the message to be sent of at least one virtual switch moving on it being sent to bridge by the network interface unit in described terminal station in terminal station, is learnt the MAC Address of at least one virtual switch moving on described terminal station.
Preferably, described qos policy rule is to realize based on Access Control List (ACL), and be associated with the MAC Address of virtual switch.
The present embodiment, by receiving after the message of the virtual switch transmission moving on described terminal station, is dispatched the message receiving according at least one pre-configured qos policy rule, has realized the QoS of VEPA network traffics is guaranteed.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Those of ordinary skills should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can realize with the executable program code of computer installation, thereby they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module realize.Like this, the present invention is not restricted to the combination of any specific hardware and software.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, the same or analogous part between each embodiment mutually referring to.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various changes and variation.All any modifications of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included within spirit of the present invention and principle.