CN104869058B - A kind of data message forwarding method and device - Google Patents

A kind of data message forwarding method and device Download PDF

Info

Publication number
CN104869058B
CN104869058B CN201510303127.5A CN201510303127A CN104869058B CN 104869058 B CN104869058 B CN 104869058B CN 201510303127 A CN201510303127 A CN 201510303127A CN 104869058 B CN104869058 B CN 104869058B
Authority
CN
China
Prior art keywords
data message
address
mac
flow table
forwarding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510303127.5A
Other languages
Chinese (zh)
Other versions
CN104869058A (en
Inventor
闫国旗
都海峰
杨轩嘉
张帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510303127.5A priority Critical patent/CN104869058B/en
Publication of CN104869058A publication Critical patent/CN104869058A/en
Application granted granted Critical
Publication of CN104869058B publication Critical patent/CN104869058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of data message forwarding method and devices, when virtual switch receives data message, if there is no the flow tables for forwarding the data message, the flow table request for forwarding the data message is then sent to controller, and the controller is made to issue flow table according to the target MAC (Media Access Control) address of data message;When receiving the flow table that controller issues, the data message is forwarded according to the flow table;If virtual router receives the data message of virtual switch forwarding, the target MAC (Media Access Control) address of the data message is replaced with into the corresponding MAC Address of purpose IP address, source MAC replaces with the MAC Address of the corresponding gateway of purpose IP address;And it is forwarded according to the corresponding route table items of the purpose IP address of the data message.The technical solution can realize the forwarding of two, three layer data messages in the case where saving equipment cost.

Description

A kind of data message forwarding method and device
Technical field
The present invention relates to field of communication technology, more particularly to a kind of data message forwarding method and device.
Background technology
In internet economy highly developed today, network has become one of vital infrastructure of IT field. It is required a high expenditure of energy due to virtual machine (VM) and container (Container) enormous amount especially for cloud computing computer room Safeguard network stabilization.
Current network of computer room is run directly in mostly on conventional TCP/IP physical network frameworks, and this physical arrangement exists It is very poor and also not high in O&M efficiency in terms of topological flexibility.In order to improve the flexibility of network of computer room structure, network work( (NFV), which can be virtualized, becomes one tide.Network virtualization refers to passing through computer x86 on the basis of computer room physical structure The function of platform simulation L2, L3 equipment realizes the control of network data forwarding.
Invention content
In view of this, a kind of data message forwarding method of the application offer and device, it can be in the feelings for saving equipment cost Under condition, the forwarding of two, three layer data messages is realized.
In order to solve the above technical problems, what the technical solution of the application was realized in:
A kind of data message forwarding method is applied to include the host in the system of host, management server and controller On, the host includes:Virtual switch and virtual router, this method include:
When the virtual switch receives data message, if there is no the flow tables for forwarding the data message, to control Device processed sends the flow table request for forwarding the data message, makes purpose media access control of the controller according to data message MAC Address issues flow table;When receiving the flow table that controller issues, the data message is forwarded according to the flow table;
If the virtual router receives the data message of virtual switch forwarding, by the purpose of the data message It is the corresponding MAC Address of purpose Internet protocol IP address that MAC Address, which is replaced, and source MAC replaces with purpose IP address correspondence Gateway MAC Address;And it is forwarded according to the corresponding route table items of the purpose IP address of the data message.
A kind of data message forwarding device is applied to include the host in the system of host, management server and controller On, which includes:Virtual switch unit and virtual router unit;
The virtual switch unit, when for receiving data message, if there is no the streams for forwarding the data message Table then sends the flow table request for forwarding the data message to controller, makes purpose matchmaker of the controller according to data message Body access control MAC addresses issue flow table;When receiving the flow table that controller issues, the datagram is forwarded according to the flow table Text;
The virtual router unit will be described if the data message for receiving virtual switch unit forwards It is the corresponding MAC Address of purpose Internet protocol IP address that the target MAC (Media Access Control) address of data message, which is replaced, and source MAC replaces with The MAC Address of the corresponding gateway of purpose IP address;And turned according to the corresponding route table items of the purpose IP address of the data message Hair.
As can be seen from the above technical solution, in the application by virtual in host, virtual router and virtual switch, It allows VM directly to exchange data with virtual switch, realizes the forwarding of Layer 2 data message;Virtual road is set by virtual router By realizing the forwarding of three layer data messages.By the technical solution, two, three can be realized in the case where saving equipment cost The forwarding of layer data message.
Description of the drawings
Fig. 1 is system group network schematic diagram in the embodiment of the present application;
Fig. 2 is message transmitting method flow diagram in the embodiment of the present application;
Fig. 3 is same host inside same subnet data transmission schematic diagram in the embodiment of the present application;
Fig. 4 is same host inside different sub-network data transmission schematic diagram in the embodiment of the present application;
Fig. 5 is the data transmission schematic diagram between the VM for belonging to different sub-network in the embodiment of the present application on different hosts;
Fig. 6 is the data transmission schematic diagram between the VM for belonging to same subnet in the embodiment of the present application on different hosts;
Fig. 7 is the apparatus structure schematic diagram for being applied to above-mentioned technology in the embodiment of the present application.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and examples, Technical scheme of the present invention is described in detail.
A kind of message transmitting method is provided in the embodiment of the present application, is applied to include host, management server and controller System in.
It is system group network schematic diagram in the embodiment of the present application referring to Fig. 1, Fig. 1.
Controller in Fig. 1 can be OpenFlow controllers, be responsible for interacting OpenFlow with virtual switch and controlling referring to It enables, when not being matched to the flow table of forwarding data packets on virtual switch, is sent to OpenFlow controllers and forward the number According to the flow table of message.
The self-defined forwarding plan of subnet isolation information and administrator that OpenFlow controller caches are obtained from management server Slightly;Based on MAC Address, the forwarding strategy of data packet is judged in L2 levels;Judge data packet according to administrator's custom instruction Forwarding strategy;Timing reports controller operating status etc. to management server.
In Fig. 1 by taking two hosts (host) as an example, master agent is arranged in each host, is responsible for carrying out with management server Interaction, establishes on host according to the instruction of management server and is arranged virtual switch and virtual flow-line.Main function packet It includes:Host L2 data virtual switched environments are established, the associated controller of virtual switch is specified;Establish host virtual flow-line plan Slightly;The L2 grades instruction that management server Push comes is received, virtual switch is applied to.Such as flow table is emptied, promote virtually to hand over It changes planes and arrives controller again and pull forwarding strategy;The L3 grades instruction that management server Push comes is received, virtual router is set, Network data flow is oriented to, for example, a certain VM/Container binds public network IP;Actively master is reported to management server Machine Network status etc..
Host includes:Master agent, virtual switch, virtual router and VM.
Wherein, the relevant information that master agent is used to obtain by management server establishes virtual switch, virtual flow-line Device and VM.
Virtual router is distributed virtual router, which also has gateway function, can know each VM MAC Address and the corresponding gateways of each VM MAC Address.
VM specific implementation when, can be KVM, Xen, or Container, such as docker, it is specifically used which kind of Realization is determined according to practical application.
Management server in Fig. 1 sends the server of management control instruction to master agent and controller.Responsible master The function is wanted to include:Friendly access interface is provided for administrator, receives and is responsible for issuing the management control instruction of administrator;It is new The virtual switch of addition selects suitable controller, provides load-balancing function;Routing forwarding Provisioning Policy is provided for host, The strategy is mainly used for providing outlet routing in L3 levels for the network data flow of VM/Container;To OpenFlow controllers The control strategy that push administrator additionally applies;In time by the exceptional state alarm of host and controller to operation maintenance personnel.
Below in conjunction with the accompanying drawings, the process that message transmissions are realized in the embodiment of the present application is described in detail.
It is message transmitting method flow diagram in the embodiment of the present application referring to Fig. 2, Fig. 2.The specific steps are:
Step 201, virtual switch is when receiving data message, if the flow table for forwarding the data message is not present, The flow table request for forwarding the data message is then sent to controller, makes the controller according to the purpose MAC of data message Location issues flow table;It receives the flow table that controller issues and the data message is forwarded according to flow table.
When controller receives the flow table request of the forwarding data packets of virtual switch transmission, it is first determined the datagram Text whether be data message between same tenant transmission;
When determining the transmission of data message of the data message between same tenant, according to the source MAC of data message Address and target MAC (Media Access Control) address determine the legitimacy of the data message, if legal, further according to the mesh of the data message MAC Address determination be transmitted to virtual machine and be still transmitted to virtual router;Otherwise, it is determined that the virtual switch is made to abandon The data message received.
When the transmission for determining data message of the data message between different tenants, it is determined that the virtual switch is made to lose Abandon the data message received.
When target MAC (Media Access Control) address is the MAC Address of the VM on this host, going out in the flow table issued for the virtual switch Interface is the interface that virtual switch is connected with purpose VM;
When target MAC (Media Access Control) address is the MAC Address of the VM on other hosts, in the flow table issued for the virtual switch Outgoing interface is the interface that virtual switch is connected with other hosts;
When target MAC (Media Access Control) address is gateway MAC address, the outgoing interface in the flow table issued for the virtual switch is virtual The interface that interchanger is connected with virtual router.
Therefore, when virtual switch receives the flow table that controller issues, the datagram received is forwarded according to flow table Text;
When target MAC (Media Access Control) address is the MAC Address of the VM on this host, by the outgoing interface in the flow table by the number It is transmitted to corresponding VM according to message;
It, will be described by the outgoing interface in the flow table when target MAC (Media Access Control) address is the MAC Address of the VM on other hosts Data message forwarding gives other hosts;
It, can be by the interface by the data message forwarding when the target MAC (Media Access Control) address of data message is gateway MAC address To virtual router.
In practical applications, when virtual machine obtains the MAC Address of purpose VM, with subnet VM obtain be VM reality MAC Address, what different sub-network obtained is the corresponding gateway MAC address of VM, therefore, the target MAC (Media Access Control) address of the data message of transmission For the MAC Address of the corresponding gateway of MAC Address or source MAC of purpose VM.
Step 202, virtual router is when receiving the data message of virtual switch forwarding, by the data message Target MAC (Media Access Control) address replaces with the corresponding MAC Address of purpose IP address, and source MAC replaces with the corresponding gateway of purpose IP address MAC Address;And it is forwarded according to the corresponding route table items of the purpose IP address of the data message.
The source MAC and target MAC (Media Access Control) address for the data message that virtual router sends virtual switch replace It changes, replaced target MAC (Media Access Control) address is the MAC Address of purpose VM, the i.e. corresponding MAC Address of purpose IP address;Replaced source MAC Address is the gateway MAC address of corresponding purpose VM, the i.e. MAC Address of the corresponding gateway of purpose IP address.
It is forwarded according to the corresponding route table items of the purpose IP address of the data message in this step, including:
When the corresponding VM of the purpose IP address of data message be this host on VM, then pass through going out in the route table items Interface will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to the virtual switch;
When the corresponding VM of the purpose IP address of data message be other hosts on VM, then by the route table items Outgoing interface will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to other hosts.
Below in conjunction with the accompanying drawings, it is the data message between same tenant with data message, and is legal datagram For text, data-message transmission process is described in detail.
Referring to Fig. 3, Fig. 3 is same host inside same subnet data transmission schematic diagram in the embodiment of the present application.
The routing direction of arrow presentation data message in Fig. 3, in figureIt arrivesThe transfer sequence of mark data message. VM1 and VM2 belongs to the same subnet of same tenant, and when VM1 needs to send datagram to VM2, source MAC is VM1's MAC Address MAC1, target MAC (Media Access Control) address are the MAC Address of VM2.
When virtual switch receives above-mentioned data message, if not being matched to corresponding flow table, ask to forward to controller The flow table of the data message.
Controller knows the target MAC (Media Access Control) address of the data message by the information of each VM obtained from management server For the MAC Address of the VM of the machine, then flow table is issued to virtual switch, the outgoing interface of the flow table is that (corresponding VM2 connects interface 1 Mouthful).
When virtual switch receives the flow table, the data message is sent to VM2 by the outgoing interface in flow table.
If virtual switch is matched to the flow table for forwarding the data message, the data message is directly forwarded.
Referring to Fig. 4, Fig. 4 is same host inside different sub-network data transmission schematic diagram in the embodiment of the present application.
The routing direction of arrow presentation data message in Fig. 4, in figureTo the transfer sequence of 4. mark data message. VM1 and VM2 belongs to the different sub-network of same tenant, and when VM1 needs to send datagram to VM2, source MAC is VM1's The corresponding gateway MAC address MAC10 of MAC Address MAC1, target MAC (Media Access Control) address VM1.
When virtual switch receives above-mentioned data message, if not being matched to corresponding flow table, ask to forward to controller The flow table of the data message.
Controller by the information of each gateway of the configuration on each VM and virtual router that are obtained from management server, Know that the target MAC (Media Access Control) address of the data message is the MAC Address MAC10 of the corresponding gateways of VM1, then issues stream to virtual switch The outgoing interface of table, the flow table is interface 1 (interface of corresponding virtual router).
When virtual switch receives the flow table, the data message is sent to virtually by the outgoing interface in flow table Router.
When virtual router receives the data message of virtual switch transmission, according to each master obtained from management server The information and gateway information of each virtual machine on machine replace source MAC and target MAC (Media Access Control) address for the data message.
The target MAC (Media Access Control) address of treated data message is the MAC Address of VM2, and source MAC is VM2 corresponding virtual The MAC Address 20 of gateway corresponding to machine.
And by treated, data message is sent to virtual switch by interface 2 according to the outgoing interface in route table items.
When virtual switch receives the data message of virtual router transmission, if not being matched to corresponding flow table, to Controller sends the flow table request for forwarding the data message.
Controller is that virtual switch issues flow table according to the data message target MAC (Media Access Control) address MAC2, the flow table Outgoing interface is interface 3.
Virtual switch receives the flow table, and the data message that virtual router is sent passes through the interface 3 in flow table It is sent to VM2.
The source MAC for the data message that VM2 is received is the MAC Address of the corresponding gateways of VM2, and target MAC (Media Access Control) address is The MAC Address of VM2, source IP address are the IP address of VM1, and purpose IP address is the IP address of VM2.
Referring to Fig. 5, Fig. 5 is the data transmission between the VM for belonging to different sub-network in the embodiment of the present application on different hosts Schematic diagram.
The routing direction of arrow presentation data message in Fig. 5, in figureIt arrivesThe transfer sequence of mark data message. When VM2 sends datagram to VM3, the source IP address of data message is the IP address of VM2, and purpose IP address is the IP of VM3 Location;Source MAC is the MAC Address MAC2 of VM2, and target MAC (Media Access Control) address is the gateway MAC address MAC20 of VM2.
When virtual switch 1 receives above-mentioned data message, if not being matched to corresponding flow table, sends and turn to controller The flow table request for sending out data message described.
Controller by the information of each gateway of the configuration on each VM and virtual router that are obtained from management server, Know that the target MAC (Media Access Control) address of the data message is the MAC Address MAC20 of the corresponding gateways of VM2, then issues stream to virtual switch The outgoing interface of table, the flow table is interface 1 (interface of corresponding virtual router).
When virtual switch 1 receives the flow table, the data message is sent to void by the outgoing interface in flow table Quasi- router.
It is each according to what is obtained from management server when virtual router 1 receives the data message of virtual switch transmission The information and gateway information of each virtual machine on host replace source MAC and target MAC (Media Access Control) address for the data message.
The target MAC (Media Access Control) address of treated data message is the MAC Address of VM3, and source MAC is VM3 corresponding virtual The MAC Address 30 of gateway corresponding to machine.
And by treated, data message is sent by interface 2 according to the outgoing interface in route table items.In specific implementation, It can be sent by the physical network card of host 1, and another host (host 2) is reached by physical switches.
When the virtual switch 2 of host 2 receives above-mentioned data message, if not being matched to corresponding flow table, to controller Send the flow table request for forwarding the data message.
When controller receives the flow table request of the transmission of virtual switch 2, determined according to the target MAC (Media Access Control) address of data message Forward the data message outgoing interface be interface 3, then issue outgoing interface be interface 3 flow table to virtual switch 2.
When virtual switch 2 receives the flow table, by the data message forwarding received to VM3.
The source IP address for the data message that VM3 is received is the IP address of VM2, and purpose IP address is the IP address of VM3, source MAC Address is the MAC Address MAC30 of the corresponding gateways of VM3, and target MAC (Media Access Control) address is the MAC Address of VM3.
So far, the transmission of the data message of VM2 to VM3 is realized.
Referring to Fig. 6, Fig. 6 is the data transmission between the VM for belonging to same subnet in the embodiment of the present application on different hosts Schematic diagram.
The routing direction of arrow presentation data message in Fig. 6, the transfer sequence for 1. arriving 6. mark data message in figure. When VM2 sends datagram to VM3, the source IP address of data message is the IP address of VM2, and purpose IP address is the IP of VM3 Location;Source MAC is the MAC Address MAC2 of VM2, and target MAC (Media Access Control) address is the MAC Address of VM3.
When virtual switch 1 receives above-mentioned data message, if not being matched to corresponding flow table, ask to forward to controller The flow table of the data message.
Controller determines that the data message is on different hosts by the information of each VM obtained from management server The data message of same subnet then issues flow table to virtual switch, and the outgoing interface of the flow table is interface 1.
When virtual switch 1 receives the flow table, the data message is sent to master by the outgoing interface in flow table Machine 2.
When virtual switch 2 on host 2 receives the flow table, if not being matched to corresponding flow table, sent out to controller The flow table for forwarding the data message is sent to ask.
When controller receives the flow table request of the transmission of virtual switch 2, determined according to the target MAC (Media Access Control) address of data message Forward the data message outgoing interface be interface 2, then issue outgoing interface be interface 2 flow table to virtual switch 2.
When virtual switch 2 receives above-mentioned flow table, by the data message forwarding received to VM3.
The source IP address for the data message that VM3 is received is the IP address of VM2, and purpose IP address is the IP address of VM3, source MAC Address is the MAC Address of VM2, and target MAC (Media Access Control) address is the MAC Address of VM3.
So far, the transmission of the data message of VM2 to VM3 is realized.
In above-mentioned implementation, if VM/Container or host delay machine, do not interfere with whole network.When restoring or move It can continue to obtain identical forwarding strategy from management server and OpenFlow controllers when shifting, continue to work normally.
If OpenFlow controller outages, virtual switch is by all data for process of directly letting pass according to default policy Packet.In addition, in specific implementation, can also be controlled using controller cluster, it is exemplified above by taking a controller as an example; Each controller is only in charge of a part of host in controller cluster, therefore some controller outage will not communicate whole network It produces bigger effect.
Management server due to load and it is little, in comparison the possibility of delay machine is smaller.It, can be with but for reliability A Standby server is configured by KeepAlive.Due to management server not reservoir host's machine Agent and controller, Therefore any influence is not had to Agent and controller when a switchover occurs.
Based on same inventive concept, the application also proposes a kind of data message forwarding device, is applied to include host, pipe It manages on the host in the system of server and controller.Referring to Fig. 7, Fig. 7 is to be applied to above-mentioned technology in the embodiment of the present application Apparatus structure schematic diagram.The device includes:Virtual switch unit 701 and virtual router unit 702;
Virtual switch unit 701, when for receiving data message, if there is no the streams for forwarding the data message Table then sends the flow table request for forwarding the data message to controller, makes purpose matchmaker of the controller according to data message Body access control MAC addresses issue flow table;When receiving the flow table that controller issues, the datagram is forwarded according to the flow table Text;
Virtual router unit 702, if the data message for receiving the forwarding of virtual switch unit 701, by institute The target MAC (Media Access Control) address for stating data message is replaced as the corresponding MAC Address of purpose Internet protocol IP address, source MAC replacement For the MAC Address of the corresponding gateway of purpose IP address;And according to the corresponding route table items of the purpose IP address of the data message Forwarding.
Preferably,
Virtual switch unit 701, when being specifically used for forwarding the data message according to the flow table, as purpose MAC When location is the MAC Address of the virtual machine VM on this host, the data message forwarding is given by the outgoing interface in the flow table Corresponding VM;When target MAC (Media Access Control) address is the MAC Address of the VM on other hosts, by the outgoing interface in the flow table by institute Data message forwarding is stated to other hosts;When target MAC (Media Access Control) address is the MAC Address of gateway, by the flow table Outgoing interface is by the data message forwarding to virtual router.
Preferably,
Virtual router unit 702 is specifically used for the corresponding route table items of purpose IP address according to the data message When forwarding, when the corresponding VM of the purpose IP address of data message be this host on VM, then pass through going out in the route table items Interface will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to virtual switch unit 701;Work as data message The corresponding VM of purpose IP address be VM on other hosts, then by the outgoing interface in the route table items by replacing source MAC The data message forwarding of address and target MAC (Media Access Control) address gives other hosts.
Preferably, the device further includes:Master agent unit 703;
Virtual switch is established and be arranged to master agent unit 703 for obtaining the configuration information in the management server Machine unit 701 and virtual router unit 702.
The unit of above-described embodiment can be integrated in one, and can also be deployed separately;A unit is can be merged into, also may be used To be further split into multiple subelements.
In conclusion the application by virtual in host, virtual router and virtual switch, allows VM and virtual switch Machine directly exchanges data, realizes the forwarding of Layer 2 data message;Virtual flow-line is set by virtual router, realizes three layer datas The forwarding of message.By the technical solution, turning for two, three layer data messages can be realized in the case where saving equipment cost Hair.
Under the premise of not changing the physical network topology of existing computer room, the flexible control to network structure is realized, Save network of computer room variable cost.
The x86 platforms of current generally existing are effectively utilized, realize the control of network data flow in the form of software.
The control ability to network data flow is enhanced by network controller, can be realized in many levels such as L2 and L3 To data distribution and filtering.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.

Claims (8)

1. a kind of data message forwarding method, be applied to include on the host in the system of host, management server and controller, It is characterized in that, the host includes:Virtual switch and virtual router, this method include:
When the virtual switch receives data message, if there is no the flow tables for forwarding the data message, to controller The flow table request for forwarding the data message is sent, purpose media access control MAC of the controller according to data message is made Address issues flow table;When receiving the flow table that controller issues, the data message is forwarded according to the flow table;Wherein, the stream Outgoing interface in table is determined by the controller according to the target MAC (Media Access Control) address of data message;
If the virtual router receives the data message of virtual switch forwarding, by the purpose MAC of the data message It is the corresponding MAC Address of purpose Internet protocol IP address that address, which is replaced, and source MAC replaces with the corresponding net of purpose IP address The MAC Address of pass;And it is forwarded according to the corresponding route table items of the purpose IP address of the data message.
2. according to the method described in claim 1, it is characterized in that, described forward the data message, packet according to the flow table It includes:
It, will be described by the outgoing interface in the flow table when target MAC (Media Access Control) address is the MAC Address of the virtual machine VM on this host Data message forwarding gives corresponding VM;
When target MAC (Media Access Control) address is the MAC Address of the VM on other hosts, by the outgoing interface in the flow table by the data Message is transmitted to other hosts;
When target MAC (Media Access Control) address is the MAC Address of gateway, the data message forwarding is given by the outgoing interface in the flow table Virtual router.
3. according to the method described in claim 1, it is characterized in that, described correspond to according to the purpose IP address of the data message Route table items forwarding, including:
When the corresponding VM of the purpose IP address of data message be this host on VM, then pass through the outgoing interface in the route table items The data message forwarding of source MAC and target MAC (Media Access Control) address will be replaced to the virtual switch;
When the corresponding VM of the purpose IP address of data message be other hosts on VM, then by going out to connect in the route table items Mouth will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to other hosts.
4. according to the method described in any one of claim 1-3, which is characterized in that the host further includes:Master agent;
The master agent obtains the configuration information in the management server, establishes and be arranged the virtual switch and virtual Router.
5. a kind of data message forwarding device, be applied to include on the host in the system of host, management server and controller, It is characterized in that, the device includes:Virtual switch unit and virtual router unit;
The virtual switch unit, when for receiving data message, if there is no the flow table for forwarding the data message, The flow table request for forwarding the data message is sent to controller, makes purpose media interviews of the controller according to data message Control MAC Address issues flow table;When receiving the flow table that controller issues, the data message is forwarded according to the flow table;Its In, the outgoing interface in the flow table is determined by the controller according to the target MAC (Media Access Control) address of data message;
The virtual router unit will be described if the data message for receiving the virtual switch unit forwards It is the corresponding MAC Address of purpose Internet protocol IP address that the target MAC (Media Access Control) address of data message, which is replaced, and source MAC replaces with The MAC Address of the corresponding gateway of purpose IP address;And turned according to the corresponding route table items of the purpose IP address of the data message Hair.
6. device according to claim 5, which is characterized in that
The virtual switch unit, when being specifically used for forwarding the data message according to the flow table, when target MAC (Media Access Control) address is When the MAC Address of the virtual machine VM on this host, by the outgoing interface in the flow table by the data message forwarding to correspondence VM;When target MAC (Media Access Control) address is the MAC Address of the VM on other hosts, by the outgoing interface in the flow table by the number It is transmitted to other hosts according to message;When target MAC (Media Access Control) address is the MAC Address of gateway, by going out to connect in the flow table Mouth is by the data message forwarding to virtual router.
7. device according to claim 5, which is characterized in that
The virtual router unit is specifically used for being forwarded according to the corresponding route table items of purpose IP address of the data message When, when the corresponding VM of the purpose IP address of data message be this host on VM, then pass through the outgoing interface in the route table items The data message forwarding of source MAC and target MAC (Media Access Control) address will be replaced to the virtual switch unit;When the mesh of data message The corresponding VM of IP address be other hosts on VM, then source MAC will be replaced by the outgoing interface in the route table items Other hosts are given with the data message forwarding of target MAC (Media Access Control) address.
8. according to the device described in any one of claim 5-7, which is characterized in that described device further includes:Master agent Unit;
The virtual friendship is established and be arranged to the master agent unit for obtaining the configuration information in the management server It changes planes unit and the virtual router unit.
CN201510303127.5A 2015-06-04 2015-06-04 A kind of data message forwarding method and device Active CN104869058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510303127.5A CN104869058B (en) 2015-06-04 2015-06-04 A kind of data message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510303127.5A CN104869058B (en) 2015-06-04 2015-06-04 A kind of data message forwarding method and device

Publications (2)

Publication Number Publication Date
CN104869058A CN104869058A (en) 2015-08-26
CN104869058B true CN104869058B (en) 2018-10-19

Family

ID=53914594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510303127.5A Active CN104869058B (en) 2015-06-04 2015-06-04 A kind of data message forwarding method and device

Country Status (1)

Country Link
CN (1) CN104869058B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282058A (en) * 2015-09-14 2016-01-27 中国联合网络通信集团有限公司 Path configuration method and device
CN105591955B (en) * 2015-10-30 2019-07-09 新华三技术有限公司 A kind of method and apparatus of message transmissions
CN105515978B (en) * 2016-01-08 2018-11-02 盛科网络(苏州)有限公司 Realize the method and device of distributed routing, physical host access
CN107276783B (en) * 2016-04-08 2022-05-20 中兴通讯股份有限公司 Method, device and system for realizing unified management and intercommunication of virtual machines
CN106130990B (en) * 2016-06-29 2019-06-18 中国联合网络通信集团有限公司 The control method and device of container access
CN106210162B (en) * 2016-06-29 2019-03-19 中国联合网络通信集团有限公司 Communication control method and device
CN106059915A (en) * 2016-07-20 2016-10-26 赛特斯信息科技股份有限公司 System and method for implementing limitation of north-south traffic of tenants based on SDN controller
CN107800743B (en) * 2016-09-06 2020-11-24 中国电信股份有限公司 Cloud desktop system, cloud management system and related equipment
CN107959613B (en) * 2016-10-18 2020-06-02 华为技术有限公司 Message forwarding method and device
CN106789667B (en) * 2016-11-21 2021-01-01 华为技术有限公司 Data forwarding method, related equipment and system
CN107404546B (en) * 2017-08-07 2022-10-14 刘昱 Communication method and device in SDN network
CN107645458B (en) * 2017-10-20 2020-04-24 锐捷网络股份有限公司 Three-layer message drainage method and controller
CN108322391B (en) * 2017-12-29 2020-08-25 中国银联股份有限公司 Data transmission method based on flow table
CN108989176A (en) * 2018-08-13 2018-12-11 郑州云海信息技术有限公司 A kind of virtual machine exchange visit methods, devices and systems
CN108965094A (en) * 2018-08-23 2018-12-07 郑州云海信息技术有限公司 A kind of virtual machine network connection method and device
CN110875896A (en) * 2018-08-29 2020-03-10 阿里巴巴集团控股有限公司 Message processing method and device and electronic equipment
CN112866019B (en) * 2021-01-11 2022-08-05 科大讯飞股份有限公司 Method for limiting bandwidth of elastic IP address, related equipment and readable storage medium
CN113992577B (en) * 2021-09-24 2024-05-03 广东浪潮智慧计算技术有限公司 Network intercommunication method, device, equipment and medium
CN115037762B (en) * 2022-05-26 2023-04-07 清华大学 Industrial network system based on control and transmission fusion switch
CN115225708B (en) * 2022-07-28 2023-08-08 天翼云科技有限公司 Message forwarding method computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946351A (en) * 2012-10-23 2013-02-27 杭州华三通信技术有限公司 Data transmission method and system
CN103746997A (en) * 2014-01-10 2014-04-23 浪潮电子信息产业股份有限公司 Network security solution for cloud computing center
CN103997513A (en) * 2014-04-21 2014-08-20 北京邮电大学 Programmable virtual network service system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838756B2 (en) * 2009-07-27 2014-09-16 Vmware, Inc. Management and implementation of enclosed local networks in a virtual lab
US8619771B2 (en) * 2009-09-30 2013-12-31 Vmware, Inc. Private allocated networks over shared communications infrastructure
US8717895B2 (en) * 2010-07-06 2014-05-06 Nicira, Inc. Network virtualization apparatus and method with a table mapping engine
CN102857416B (en) * 2012-09-18 2016-09-28 中兴通讯股份有限公司 A kind of realize the method for virtual network, controller and virtual network
CN103795623B (en) * 2012-10-26 2017-03-15 杭州华三通信技术有限公司 A kind of method and apparatus for realizing flow intercommunication between virtual unit
CN104378297B (en) * 2013-08-15 2018-01-16 新华三技术有限公司 A kind of message forwarding method and equipment
WO2015100656A1 (en) * 2013-12-31 2015-07-09 华为技术有限公司 Method and device for implementing virtual machine communication
CN104506408B (en) * 2014-12-31 2018-02-06 新华三技术有限公司 The method and device of data transfer based on SDN

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946351A (en) * 2012-10-23 2013-02-27 杭州华三通信技术有限公司 Data transmission method and system
CN103746997A (en) * 2014-01-10 2014-04-23 浪潮电子信息产业股份有限公司 Network security solution for cloud computing center
CN103997513A (en) * 2014-04-21 2014-08-20 北京邮电大学 Programmable virtual network service system

Also Published As

Publication number Publication date
CN104869058A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN104869058B (en) A kind of data message forwarding method and device
CN103081418B (en) Computer system and communication method in computer system
JP5190084B2 (en) Virtual machine migration method and system
EP2399369B1 (en) Distributed data center access switch
EP2526675B1 (en) Distributed virtual fibre channel over ethernet forwarder
CN104980361B (en) A kind of load-balancing method, apparatus and system
JP2020123965A (en) Method and apparatus for implementing and managing virtual switch
CN105577723B (en) Virtualize the method and apparatus that load balancing is realized in network
CN105262685A (en) Message processing method and message processing device
CN111638957B (en) Method for realizing cluster sharing type public cloud load balance
CN107077579B (en) Method, apparatus, and medium for providing stateful services on stateless cluster edges
US20150117216A1 (en) Method and system for load balancing at a data network
CN101355519B (en) Method and apparatus for implementing share of business stream load
CN104022960A (en) Method and device realizing PVLAN through OpenFlow protocol
US9647902B2 (en) Virtualized network for virtualized guests as an independent overlay over a physical network
CN104301417B (en) A kind of load-balancing method and device
TW201541262A (en) Method for virtual machine migration using software defined networking (SDN)
CN110290045A (en) A kind of soft or hard binding model construction method in cloud framework lower network target range
CN103067287B (en) Forwarding and realizing under control separation architecture the method for virtual programmable router
CN104468304B (en) A kind of method of pond elementary state synchronizing information, pond Register and pond element
CN103825815B (en) Method, equipment and the system of redundancy backup are carried out between network virtual edge device
CN105591963B (en) Message forwarding method and equipment in SDN
CN103200117A (en) Method and device of load balancing
US20160277251A1 (en) Communication system, virtual network management apparatus, communication node, communication method, and program
WO2014133025A1 (en) Communication system, host controller, network control method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant