[go: up one dir, main page]

CN104869058A - Method and device for transmitting data message - Google Patents

Method and device for transmitting data message Download PDF

Info

Publication number
CN104869058A
CN104869058A CN201510303127.5A CN201510303127A CN104869058A CN 104869058 A CN104869058 A CN 104869058A CN 201510303127 A CN201510303127 A CN 201510303127A CN 104869058 A CN104869058 A CN 104869058A
Authority
CN
China
Prior art keywords
data message
address
mac
main frame
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.)
Granted
Application number
CN201510303127.5A
Other languages
Chinese (zh)
Other versions
CN104869058B (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 invention provides a method and a device for transmitting a data message. The method comprises the steps as follows: transmitting a flow table request for transmitting the data message to a controller if a flow table for transmitting the data message is not existed while a virtual switch receives the data message so that the controller can be used for issuing the flow table according to a target MAC address of the data message; transmitting the data message according to the flow table when receiving the flow table issued by the controller; replacing the target MAC address of the data message as an MAC address corresponding to a target IP address if a virtual router receives the data message transmitted by the virtual switch and replacing a source MAC address as an MAC address of a gateway corresponding to a target IP address; transmitting with a routing table corresponding to the target IP address of the data message. The method and the device of the technical proposal of the invention can be used for transmitting two-layer and three-layer data message under the condition of saving equipment cost.

Description

A kind of data message forwarding method and device
Technical field
The present invention relates to communication technical field, particularly a kind of data message forwarding method and device.
Background technology
In today that internet economy is highly developed, network has become one of vital infrastructure of IT field.Special in cloud computing machine room, due to virtual machine (VM) and container (Container) enormous amount, the maintaining network that requires a high expenditure of energy is stablized.
Current network of computer room runs directly on conventional TCP/IP physical network framework mostly, and this physical structure is very poor in topological flexibility, and also not high in O&M efficiency.In order to improve the flexibility of network of computer room structure, network function virtual (NFV) becomes one tide.Network virtualization refers on the basis of machine room physical structure, by the function of computer x86 platform simulation L2, L3 equipment, realizes the control that network data forwards.
Summary of the invention
In view of this, the application provides a kind of data message forwarding method and device, when saving equipment cost, can realize the forwarding of two, three layer data messages.
For solving the problems of the technologies described above, the technical scheme of the application is achieved in that
A kind of data message forwarding method, be applied on the main frame in the system comprising main frame, management server and controller, described main frame comprises: virtual switch and virtual router, and the method comprises:
When described virtual switch receives data message, if there is not the stream table forwarding described data message, then send the stream table request forwarding described data message to controller, make described controller issue stream table according to the object MAC address of data message; During the stream table that reception controller issues, forward described data message according to described stream table;
If described virtual router receives the data message that virtual switch forwards, then the target MAC (Media Access Control) address of described data message is replaced with MAC Address corresponding to object Internet protocol IP address, source MAC replaces with the MAC Address of gateway corresponding to object IP address; And the route table items corresponding according to the object IP address of described data message forwards.
A kind of data message forwarding device, be applied on the main frame in the system comprising main frame, management server and controller, this device comprises: virtual switch unit and virtual router unit;
Described virtual switch unit, during for receiving data message, if there is not the stream table forwarding described data message, then send the stream table request forwarding described data message to controller, make described controller issue stream table according to the object MAC address of data message; When receiving the stream table that controller issues, forward described data message according to described stream table;
Described virtual router unit, if for the data message receiving virtual switch unit forwards, then the target MAC (Media Access Control) address of described data message is replaced with MAC Address corresponding to object Internet protocol IP address, source MAC replaces with the MAC Address of gateway corresponding to object IP address; And the route table items corresponding according to the object IP address of described data message forwards.
From technical scheme above, by virtual in main frame in the application, virtual router and virtual switch, allow VM and the direct swap data of virtual switch, realizes the forwarding of Layer 2 data message; Set virtual flow-line by virtual router, realize the forwarding of three layer data messages.By this technical scheme, when saving equipment cost, the forwarding of two, three layer data messages can be realized.
Accompanying drawing explanation
Fig. 1 is system group network schematic diagram in the embodiment of the present application;
Fig. 2 is message transmitting method schematic flow sheet in the embodiment of the present application;
Fig. 3 is same main frame inner same sub-network data transmission schematic diagram in the embodiment of the present application;
Fig. 4 is same main frame inner different sub-network transfer of data schematic diagram in the embodiment of the present application;
Fig. 5 is the transfer of data schematic diagram between the VM belonging to different sub-network in the embodiment of the present application on different main frame;
Fig. 6 is the transfer of data schematic diagram between the VM belonging to same subnet in the embodiment of the present application on different main frame;
Fig. 7 is the apparatus structure schematic diagram being applied to above-mentioned technology in the embodiment of the present application.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment below in conjunction with accompanying drawing, 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 in the system comprising main frame, management server and controller.
Be system group network schematic diagram in the embodiment of the present application see Fig. 1, Fig. 1.
Controller in Fig. 1 can be OpenFlow controller, is responsible for and the mutual OpenFlow control command of virtual switch, when virtual switch not matching the stream table of forwarding data packets, sends the stream table forwarding described data message to OpenFlow controller.
The subnet isolation information that OpenFlow controller cache obtains from management server and the self-defined forwarding strategy of keeper; Based on MAC Address, judge the forwarding strategy of packet in L2 aspect; The forwarding strategy of packet is judged according to keeper's custom instruction; Timing reports controller running status etc. to management server.
For two main frames (host) in Fig. 1, each main frame arranges master agent, is responsible for carrying out alternately with management server, and virtual switch and virtual flow-line are set up and arranged to the instruction according to management server on main frame.Main function comprises: set up main frame L2 data virtual switched environment, specifies the controller of virtual switch association; Set up main frame virtual flow-line strategy; The L2 level instruction that receiving management server Push comes, is applied to virtual switch.Such as empty stream table, impel virtual switch again to arrive controller and pull forwarding strategy; The L3 level instruction that receiving management server Push comes, arranges virtual router, leads to network data flow, such as, be that a certain VM/Container binds public network IP; Initiatively report mainframe network situation etc. to management server.
Main frame comprises: master agent, virtual switch, virtual router and VM.
Wherein, the relevant information that master agent is used for being obtained by management server sets up virtual switch, virtual router and VM.
Virtual router is distributed virtual router, and this virtual router also has gateway function, can know the MAC Address of the MAC Address of each VM and gateway corresponding to each VM.
VM, when specific implementation, can be KVM, Xen, can be also Container, and as docker, which kind of realizes determining according to practical application in concrete use.
Management server in Fig. 1 sends the server of management control command to master agent and controller.The major function be responsible for comprises: for keeper provides friendly access interface, receives and is responsible for issuing the management control command of keeper; For the virtual switch newly added selects suitable controller, provide load-balancing function; For main frame provides routing forwarding Provisioning Policy, the network data flow that it is VM/Container that this strategy is mainly used in L3 aspect provides outlet route; To the control strategy that OpenFlow controller propelling movement keeper additionally applies; In time by the exceptional state alarm of main frame and controller to operation maintenance personnel.
Below in conjunction with accompanying drawing, describe the process realizing message transmissions in the embodiment of the present application in detail.
Be message transmitting method schematic flow sheet in the embodiment of the present application see Fig. 2, Fig. 2.Concrete steps are:
Step 201, virtual switch, when receiving data message, if there is not the stream table forwarding described data message, then sends the stream table request forwarding described data message, makes described controller issue stream table according to the target MAC (Media Access Control) address of data message to controller; The stream table that reception controller issues also forwards described data message according to stream table.
When controller receives the stream table request of forwarding data packets that virtual switch sends, first determine that whether this data message is the transmission of the data message between same tenant;
When determining that this data message is the transmission of data message between same tenant, the legitimacy of this data message is determined according to the source MAC of data message and target MAC (Media Access Control) address, if legal, then determine that being transmitted to virtual machine is still transmitted to virtual router according to the target MAC (Media Access Control) address of described data message further; Otherwise, then the described data message determined that described virtual switch is abandoned and receive.
When determining that this data message is the transmission of the data message between different tenant, then the described data message determined that described virtual switch is abandoned and receive.
When target MAC (Media Access Control) address is the MAC Address of VM on this main frame, for the outgoing interface in the stream table that this virtual switch issues is the interface that virtual switch is connected with object VM;
When target MAC (Media Access Control) address is the MAC Address of VM on other main frame, for the outgoing interface in the stream table that this virtual switch issues is the interface that virtual switch is connected with other main frames;
When target MAC (Media Access Control) address is gateway MAC address, for the outgoing interface in the stream table that this virtual switch issues is the interface that virtual switch is connected with virtual router.
Therefore, when virtual switch receives the stream table that controller issues, the data message received is forwarded according to stream table;
When target MAC (Media Access Control) address is the MAC Address of VM on this main frame, give corresponding VM by the outgoing interface in described stream table by described data message forwarding;
When target MAC (Media Access Control) address is the MAC Address of VM on other main frame, give other main frame described by the outgoing interface in described stream table by described data message forwarding;
When the target MAC (Media Access Control) address of data message is gateway MAC address, this interface can be passed through by described data message forwarding to virtual router.
In actual applications, when virtual machine obtains the MAC Address of object VM, the real mac address of what the VM with subnet obtained is VM, what different sub-network obtained is the gateway MAC address that VM is corresponding, therefore, the MAC Address of VM for the purpose of the target MAC (Media Access Control) address of the data message sent, or the MAC Address of gateway corresponding to source MAC.
Step 202, virtual router is when receiving the data message that virtual switch forwards, and the target MAC (Media Access Control) address of described data message is replaced with MAC Address corresponding to object IP address, source MAC replaces with the MAC Address of gateway corresponding to object IP address; And the route table items corresponding according to the object IP address of described data message forwards.
Virtual router is replaced the source MAC of the data message that virtual switch sends and target MAC (Media Access Control) address, the MAC Address of VM for the purpose of the target MAC (Media Access Control) address after replacement, the MAC Address that namely object IP address is corresponding; Source MAC after replacement is the gateway MAC address of corresponding object VM, i.e. the MAC Address of the gateway that object IP address is corresponding.
Route table items corresponding according to the object IP address of described data message in this step forwards, and comprising:
When the VM that the object IP address of data message is corresponding is the VM on this main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to described virtual switch by the outgoing interface in described route table items;
When the VM that the object IP address of data message is corresponding is the VM on other main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to other main frame by the outgoing interface in described route table items.
Below in conjunction with accompanying drawing, be the data message between same tenant with data message, and to be legal data message be example, describe data-message transmission process in detail.
Be same main frame inner same sub-network data transmission schematic diagram in the embodiment of the present application see Fig. 3, Fig. 3.
The routing direction of the arrow presentation data message in Fig. 3, in figure 1.arrive 2.the transfer sequence of identification 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 the MAC Address MAC1 of VM1, and target MAC (Media Access Control) address is the MAC Address of VM2.
When virtual switch receives above-mentioned data message, if do not match corresponding stream table, then to the stream table of data message described in controller request forward.
Controller passes through the information of each VM obtained from management server, and know that the target MAC (Media Access Control) address of this data message is the MAC Address of the VM of the machine, then issue stream table to virtual switch, the outgoing interface of described stream table is interface 1 (corresponding VM2 interface).
When virtual switch receives described stream table, the outgoing interface in being shown by stream by described data message sends to VM2.
If virtual switch matches the stream table forwarding described data message, then directly forward described data message.
Be same main frame inner different sub-network transfer of data schematic diagram in the embodiment of the present application see Fig. 4, Fig. 4.
The routing direction of the arrow presentation data message in Fig. 4, in figure 1.arrive the transfer sequence of 4. identification 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 the MAC Address MAC1 of VM1, the gateway MAC address MAC10 that target MAC (Media Access Control) address VM1 is corresponding.
When virtual switch receives above-mentioned data message, if do not match corresponding stream table, then to the stream table of data message described in controller request forward.
Controller is by the information of each gateway of the configuration on each VM of obtaining from management server and virtual router, know that the target MAC (Media Access Control) address of this data message is the MAC Address MAC10 of the gateway that VM1 is corresponding, then issue stream table to virtual switch, the outgoing interface of described stream table is interface 1 (interface of corresponding virtual router).
When virtual switch receives described stream table, the outgoing interface in being shown by stream by described data message sends to virtual router.
When virtual router receives the data message of virtual switch transmission, according to information and the gateway information of each virtual machine on each main frame obtained from management server, be that described data message replaces source MAC and target MAC (Media Access Control) address.
The target MAC (Media Access Control) address of the data message after process is the MAC Address of VM2, the MAC Address 20 of the gateway of source MAC corresponding to virtual machine corresponding to VM2.
And according to the outgoing interface in route table items, the data message after process is sent to virtual switch by interface 2.
When virtual switch receives the data message of virtual router transmission, if do not match corresponding stream table, then send the stream table request forwarding described data message to controller.
Controller is that virtual switch issues stream table according to described data message target MAC (Media Access Control) address MAC2, and the outgoing interface of described stream table is interface 3.
Virtual switch receives described stream table, the data message that virtual router is sent shown by stream in interface 3 send to VM2.
The source MAC of the data message that VM2 receives is the MAC Address of the gateway that VM2 is corresponding, and target MAC (Media Access Control) address is the MAC Address of VM2, and source IP address is the IP address of VM1, and object IP address is the IP address of VM2.
See the transfer of data schematic diagram that Fig. 5, Fig. 5 are between the VM belonging to different sub-network in the embodiment of the present application on different main frame.
The routing direction of the arrow presentation data message in Fig. 5, in figure 1.arrive 7.the transfer sequence of identification data message.When VM2 sends datagram to VM3, the source IP address of data message is the IP address of VM2, and object IP address is the IP address of VM3; 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 do not match corresponding stream table, then send the stream table request forwarding described data message to controller.
Controller is by the information of each gateway of the configuration on each VM of obtaining from management server and virtual router, know that the target MAC (Media Access Control) address of this data message is the MAC Address MAC20 of the gateway that VM2 is corresponding, then issue stream table to virtual switch, the outgoing interface of described stream table is interface 1 (interface of corresponding virtual router).
When virtual switch 1 receives described stream table, the outgoing interface in being shown by stream by described data message sends to virtual router.
When virtual router 1 receives the data message of virtual switch transmission, according to information and the gateway information of each virtual machine on each main frame obtained from management server, be that described data message replaces source MAC and target MAC (Media Access Control) address.
The target MAC (Media Access Control) address of the data message after process is the MAC Address of VM3, the MAC Address 30 of the gateway of source MAC corresponding to virtual machine corresponding to VM3.
And according to the outgoing interface in route table items, the data message after process is sent by interface 2.When specific implementation, can be sent by the physical network card of main frame 1, and arrive another one main frame (main frame 2) by physical switches.
When the virtual switch 2 of main frame 2 receives above-mentioned data message, if do not match corresponding stream table, then send the stream table request forwarding described data message to controller.
When controller receives the stream table request that virtual switch 2 sends, the outgoing interface determining to forward described data message according to the target MAC (Media Access Control) address of data message is interface 3, then issuing outgoing interface is that the stream of interface 3 is shown to virtual switch 2.
When virtual switch 2 receives described stream table, by the data message forwarding that receives to VM3.
The source IP address of the data message that VM3 receives is the IP address of VM2, and object IP address is the IP address of VM3, and source MAC is the MAC Address MAC30 of the gateway that VM3 is corresponding, 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.
See the transfer of data schematic diagram that Fig. 6, Fig. 6 are between the VM belonging to same subnet in the embodiment of the present application on different main frame.
The routing direction of the arrow presentation data message in Fig. 6, the transfer sequence 1. arriving 6. identification data message in figure.When VM2 sends datagram to VM3, the source IP address of data message is the IP address of VM2, and object IP address is the IP address of VM3; 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 do not match corresponding stream table, then to the stream table of data message described in controller request forward.
Controller passes through the information of each VM obtained from management server, and determine that this data message is the data message of the same subnet on different main frame, then issue stream table to virtual switch, the outgoing interface of described stream table is interface 1.
When virtual switch 1 receives described stream table, the outgoing interface in being shown by stream by described data message sends to main frame 2.
When virtual switch 2 on main frame 2 receives described stream table, if do not match corresponding stream table, then send the stream table request forwarding described data message to controller.
When controller receives the stream table request that virtual switch 2 sends, the outgoing interface determining to forward described data message according to the target MAC (Media Access Control) address of data message is interface 2, then issuing outgoing interface is that the stream of interface 2 is shown to virtual switch 2.
When virtual switch 2 receives above-mentioned stream table, by the data message forwarding that receives to VM3.
The source IP address of the data message that VM3 receives is the IP address of VM2, and object IP address is the IP address of VM3, and source MAC 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, the machine if VM/Container or main frame are delayed, can not affect whole network.Can continue to obtain identical forwarding strategy from management server and OpenFlow controller when recovering or move, continuing normally to work.
The machine if OpenFlow controller is delayed, virtual switch is by all packets of process of directly letting pass according to default policy.In addition, when specific implementation, controller cluster can also be used to control, citing is all for a controller above; In controller cluster, a part of main frame is only in charge of by each controller, and therefore some controller machines of delaying can not produce considerable influence to whole network service.
Management server is due to load and not quite, the possibility of machine of Comparatively speaking delaying is less.But in order to reliability, a Standby server can be configured by KeepAlive.Due to management server not reservoir host's machine Agent and controller, therefore when a switchover occurs any impact is not had on Agent and controller.
Based on same inventive concept, the application also proposes a kind of data message forwarding device, is applied on the main frame in the system comprising main frame, management server and controller.It is the apparatus structure schematic diagram being applied to above-mentioned technology in the embodiment of the present application see Fig. 7, Fig. 7.This device comprises: virtual switch unit 701 and virtual router unit 702;
Virtual switch unit 701, during for receiving data message, if there is not the stream table forwarding described data message, then send the stream table request forwarding described data message to controller, make described controller issue stream table according to the object MAC address of data message; When receiving the stream table that controller issues, forward described data message according to described stream table;
Virtual router unit 702, if for receiving the data message that virtual switch unit 701 forwards, then the target MAC (Media Access Control) address of described data message is replaced with MAC Address corresponding to object Internet protocol IP address, source MAC replaces with the MAC Address of gateway corresponding to object IP address; And the route table items corresponding according to the object IP address of described data message forwards.
Preferably,
Virtual switch unit 701, during specifically for forwarding described data message according to described stream table, when target MAC (Media Access Control) address is the MAC Address of virtual machine VM on this main frame, gives corresponding VM by the outgoing interface in described stream table by described data message forwarding; When target MAC (Media Access Control) address is the MAC Address of VM on other main frame, give other main frame described by the outgoing interface in described stream table by described data message forwarding; When target MAC (Media Access Control) address is the MAC Address of gateway, flow the outgoing interface in showing by described data message forwarding to virtual router by described.
Preferably,
Virtual router unit 702, when forwarding specifically for the route table items corresponding according to the object IP address of described data message, when the VM that the object IP address of data message is corresponding is the VM on this main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to virtual switch unit 701 by the outgoing interface in described route table items; When the VM that the object IP address of data message is corresponding is the VM on other main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to other main frame by the outgoing interface in described route table items.
Preferably, this device also comprises: master agent unit 703;
Master agent unit 703, for obtaining the configuration information on described management server, sets up and arranges virtual switch unit 701 and virtual router unit 702.
The unit of above-described embodiment can be integrated in one, and also can be separated deployment; A unit can be merged into, also can split into multiple subelement further.
In sum, the application is by virtual in main frame, and virtual router and virtual switch, allow VM and the direct swap data of virtual switch, realizes the forwarding of Layer 2 data message; Set virtual flow-line by virtual router, realize the forwarding of three layer data messages.By this technical scheme, when saving equipment cost, the forwarding of two, three layer data messages can be realized.
Under the prerequisite of physical network topology not changing existing machine room, realize the flexible control to network configuration, save network of computer room variable cost.
Effectively make use of current ubiquitous x86 platform, achieve the control of network data flow in the mode of software.
Enhance the control ability to network data flow by network controller, can realize data distribution and filtration at many levels such as L2 and L3.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. a data message forwarding method, be applied on the main frame in the system comprising main frame, management server and controller, it is characterized in that, described main frame comprises: virtual switch and virtual router, and the method comprises:
When described virtual switch receives data message, if there is not the stream table forwarding described data message, then send the stream table request forwarding described data message to controller, make described controller issue stream table according to the object MAC address of data message; During the stream table that reception controller issues, forward described data message according to described stream table;
If described virtual router receives the data message that virtual switch forwards, then the target MAC (Media Access Control) address of described data message is replaced with MAC Address corresponding to object Internet protocol IP address, source MAC replaces with the MAC Address of gateway corresponding to object IP address; And the route table items corresponding according to the object IP address of described data message forwards.
2. method according to claim 1, is characterized in that, described according to the described data message of described stream table forwarding, comprising:
When target MAC (Media Access Control) address is the MAC Address of virtual machine VM on this main frame, give corresponding VM by the outgoing interface in described stream table by described data message forwarding;
When target MAC (Media Access Control) address is the MAC Address of VM on other main frame, give other main frame described by the outgoing interface in described stream table by described data message forwarding;
When target MAC (Media Access Control) address is the MAC Address of gateway, flow the outgoing interface in showing by described data message forwarding to virtual router by described.
3. method according to claim 1, is characterized in that, the described route table items corresponding according to the object IP address of described data message forwards, and comprising:
When the VM that the object IP address of data message is corresponding is the VM on this main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to described virtual switch by the outgoing interface in described route table items;
When the VM that the object IP address of data message is corresponding is the VM on other main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to other main frame by the outgoing interface in described route table items.
4. according to the method in claim 1-3 described in any one, it is characterized in that, described main frame also comprises: master agent;
Described master agent obtains the configuration information on described management server, sets up and arrange described virtual switch and virtual router.
5. a data message forwarding device, be applied on the main frame in the system comprising main frame, management server and controller, it is characterized in that, this device comprises: virtual switch unit and virtual router unit;
Described virtual switch unit, during for receiving data message, if there is not the stream table forwarding described data message, then send the stream table request forwarding described data message to controller, make described controller issue stream table according to the object MAC address of data message; When receiving the stream table that controller issues, forward described data message according to described stream table;
Described virtual router unit, if for the data message receiving described virtual switch unit forwards, then the target MAC (Media Access Control) address of described data message is replaced with MAC Address corresponding to object Internet protocol IP address, source MAC replaces with the MAC Address of gateway corresponding to object IP address; And the route table items corresponding according to the object IP address of described data message forwards.
6. device according to claim 5, is characterized in that,
Described virtual switch unit, during specifically for forwarding described data message according to described stream table, when target MAC (Media Access Control) address is the MAC Address of virtual machine VM on this main frame, gives corresponding VM by the outgoing interface in described stream table by described data message forwarding; When target MAC (Media Access Control) address is the MAC Address of VM on other main frame, give other main frame described by the outgoing interface in described stream table by described data message forwarding; When target MAC (Media Access Control) address is the MAC Address of gateway, flow the outgoing interface in showing by described data message forwarding to virtual router by described.
7. device according to claim 5, is characterized in that,
Described virtual router unit, when forwarding specifically for the route table items corresponding according to the object IP address of described data message, when the VM that the object IP address of data message is corresponding is the VM on this main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to described virtual switch unit by the outgoing interface in described route table items; When the VM that the object IP address of data message is corresponding is the VM on other main frame, then will replace the data message forwarding of source MAC and target MAC (Media Access Control) address to other main frame by the outgoing interface in described route table items.
8. according to the device in claim 5-7 described in any one, it is characterized in that, described device also comprises: master agent unit;
Described master agent unit, for obtaining the configuration information on described management server, sets up and arranges described virtual switch unit and described 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 true CN104869058A (en) 2015-08-26
CN104869058B 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)

Cited By (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
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access
CN105591955A (en) * 2015-10-30 2016-05-18 杭州华三通信技术有限公司 Message transmission 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
CN106130990A (en) * 2016-06-29 2016-11-16 中国联合网络通信集团有限公司 The control method of container access and device
CN106210162A (en) * 2016-06-29 2016-12-07 中国联合网络通信集团有限公司 Communication control method and device
CN106789667A (en) * 2016-11-21 2017-05-31 华为技术有限公司 A kind of data forwarding method, relevant device and system
WO2017173952A1 (en) * 2016-04-08 2017-10-12 中兴通讯股份有限公司 Method, device, and system for centralizing management of virtual machines and implementing communications between virtual machines
CN107404546A (en) * 2017-08-07 2017-11-28 刘昱 Communication means and device in a kind of SDN
CN107645458A (en) * 2017-10-20 2018-01-30 锐捷网络股份有限公司 Three-tier message drainage method and controller
CN107800743A (en) * 2016-09-06 2018-03-13 中国电信股份有限公司 Cloud desktop system, cloud management system and relevant device
CN107959613A (en) * 2016-10-18 2018-04-24 华为技术有限公司 Message forwarding method and device
CN108322391A (en) * 2017-12-29 2018-07-24 中国银联股份有限公司 Data transferring method based on flow table
CN108965094A (en) * 2018-08-23 2018-12-07 郑州云海信息技术有限公司 A kind of virtual machine network connection method and device
CN108989176A (en) * 2018-08-13 2018-12-11 郑州云海信息技术有限公司 A kind of virtual machine exchange visit methods, devices and systems
CN110875896A (en) * 2018-08-29 2020-03-10 阿里巴巴集团控股有限公司 Message processing method and device and electronic equipment
CN112866019A (en) * 2021-01-11 2021-05-28 科大讯飞股份有限公司 Method for limiting bandwidth of elastic IP address, related equipment and readable storage medium
CN113992577A (en) * 2021-09-24 2022-01-28 广东浪潮智慧计算技术有限公司 Network intercommunication method, device, equipment and medium
CN115037762A (en) * 2022-05-26 2022-09-09 清华大学 Industrial network system based on control and transmission fusion switch
CN115225708A (en) * 2022-07-28 2022-10-21 天翼云科技有限公司 Message forwarding method, computer equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022695A1 (en) * 2009-07-27 2011-01-27 Vmware, Inc. Management and Implementation of Enclosed Local Networks in a Virtual Lab
US20110075664A1 (en) * 2009-09-30 2011-03-31 Vmware, Inc. Private Allocated Networks Over Shared Communications Infrastructure
CN102857416A (en) * 2012-09-18 2013-01-02 中兴通讯股份有限公司 Method for implementing virtual network and virtual network
CN102946351A (en) * 2012-10-23 2013-02-27 杭州华三通信技术有限公司 Data transmission method and system
US20130058208A1 (en) * 2010-07-06 2013-03-07 Benjamin L. Pfaff Fault tolerant managed switching element architecture
CN103746997A (en) * 2014-01-10 2014-04-23 浪潮电子信息产业股份有限公司 Network security solution for cloud computing center
CN103795623A (en) * 2012-10-26 2014-05-14 杭州华三通信技术有限公司 Method and device for realizing traffic interflow between virtual devices
CN103997513A (en) * 2014-04-21 2014-08-20 北京邮电大学 Programmable virtual network service system
CN104115453A (en) * 2013-12-31 2014-10-22 华为技术有限公司 Method and device for achieving virtual machine communication
CN104378297A (en) * 2013-08-15 2015-02-25 杭州华三通信技术有限公司 Message forwarding method and device
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022695A1 (en) * 2009-07-27 2011-01-27 Vmware, Inc. Management and Implementation of Enclosed Local Networks in a Virtual Lab
US20110075664A1 (en) * 2009-09-30 2011-03-31 Vmware, Inc. Private Allocated Networks Over Shared Communications Infrastructure
US20130058208A1 (en) * 2010-07-06 2013-03-07 Benjamin L. Pfaff Fault tolerant managed switching element architecture
CN102857416A (en) * 2012-09-18 2013-01-02 中兴通讯股份有限公司 Method for implementing virtual network and virtual network
CN102946351A (en) * 2012-10-23 2013-02-27 杭州华三通信技术有限公司 Data transmission method and system
CN103795623A (en) * 2012-10-26 2014-05-14 杭州华三通信技术有限公司 Method and device for realizing traffic interflow between virtual devices
CN104378297A (en) * 2013-08-15 2015-02-25 杭州华三通信技术有限公司 Message forwarding method and device
CN104115453A (en) * 2013-12-31 2014-10-22 华为技术有限公司 Method and device for achieving virtual machine communication
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
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN

Cited By (36)

* 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
CN105591955A (en) * 2015-10-30 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN105591955B (en) * 2015-10-30 2019-07-09 新华三技术有限公司 A kind of method and apparatus of message transmissions
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access
CN105515978B (en) * 2016-01-08 2018-11-02 盛科网络(苏州)有限公司 Realize the method and device of distributed routing, physical host access
CN107276783A (en) * 2016-04-08 2017-10-20 中兴通讯股份有限公司 A kind of methods, devices and systems for realizing virtual machine unified management and intercommunication
CN107276783B (en) * 2016-04-08 2022-05-20 中兴通讯股份有限公司 Method, device and system for realizing unified management and intercommunication of virtual machines
WO2017173952A1 (en) * 2016-04-08 2017-10-12 中兴通讯股份有限公司 Method, device, and system for centralizing management of virtual machines and implementing communications between virtual machines
CN106210162A (en) * 2016-06-29 2016-12-07 中国联合网络通信集团有限公司 Communication control method and device
CN106210162B (en) * 2016-06-29 2019-03-19 中国联合网络通信集团有限公司 Communication control method and device
CN106130990A (en) * 2016-06-29 2016-11-16 中国联合网络通信集团有限公司 The control method of container access 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
CN107800743A (en) * 2016-09-06 2018-03-13 中国电信股份有限公司 Cloud desktop system, cloud management system and relevant device
CN107959613A (en) * 2016-10-18 2018-04-24 华为技术有限公司 Message forwarding method and device
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
CN106789667A (en) * 2016-11-21 2017-05-31 华为技术有限公司 A kind of data forwarding method, relevant device and system
CN107404546B (en) * 2017-08-07 2022-10-14 刘昱 Communication method and device in SDN network
CN107404546A (en) * 2017-08-07 2017-11-28 刘昱 Communication means and device in a kind of SDN
CN107645458A (en) * 2017-10-20 2018-01-30 锐捷网络股份有限公司 Three-tier message drainage method and controller
CN107645458B (en) * 2017-10-20 2020-04-24 锐捷网络股份有限公司 Three-layer message drainage method and controller
WO2019128699A1 (en) * 2017-12-29 2019-07-04 中国银联股份有限公司 Flow table-based data transfer method
CN108322391B (en) * 2017-12-29 2020-08-25 中国银联股份有限公司 Data transmission method based on flow table
CN108322391A (en) * 2017-12-29 2018-07-24 中国银联股份有限公司 Data transferring method based on flow table
TWI759571B (en) * 2017-12-29 2022-04-01 大陸商中國銀聯股份有限公司 Data transfer 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
CN112866019A (en) * 2021-01-11 2021-05-28 科大讯飞股份有限公司 Method for limiting bandwidth of elastic IP address, related equipment and readable storage medium
CN113992577A (en) * 2021-09-24 2022-01-28 广东浪潮智慧计算技术有限公司 Network intercommunication method, device, equipment and medium
CN113992577B (en) * 2021-09-24 2024-05-03 广东浪潮智慧计算技术有限公司 Network intercommunication method, device, equipment and medium
CN115037762A (en) * 2022-05-26 2022-09-09 清华大学 Industrial network system based on control and transmission fusion switch
CN115037762B (en) * 2022-05-26 2023-04-07 清华大学 Industrial network system based on control and transmission fusion switch
CN115225708A (en) * 2022-07-28 2022-10-21 天翼云科技有限公司 Message forwarding method, computer equipment and storage medium
CN115225708B (en) * 2022-07-28 2023-08-08 天翼云科技有限公司 Message forwarding method computer equipment and storage medium

Also Published As

Publication number Publication date
CN104869058B (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN104869058A (en) Method and device for transmitting data message
EP3355553B1 (en) Reliable load-balancer using segment routing and real-time application monitoring
CN105264493B (en) Dynamic virtual machine migration on information centre's network
EP2870737B1 (en) Packet forwarding optimization with virtual machine mobility
CN105577548B (en) Message processing method and device in a kind of software defined network
US10083026B1 (en) In-service software upgrade of software-defined networking controller
CN102457439B (en) Virtual switching system and method of cloud computing system
CN102209024B (en) The moving method of virtual machine and system
CN105812260B (en) A kind of method, apparatus and system that control mac address forwarding table is sent
CN105103128B (en) Processing is optimized to virtual machine mobility in data center environment
CN111638957B (en) Method for realizing cluster sharing type public cloud load balance
EP2687983A1 (en) Hierarchical system for managing a plurality of virtual machines, method and computer program
TWI531908B (en) A method of supporting virtual machine migration with Software Defined Network (SDN)
CN104780088A (en) Service message transmission method and equipment
US9647902B2 (en) Virtualized network for virtualized guests as an independent overlay over a physical network
CN105453523A (en) Handling of virtual machine mobility in large data center
CN104081733A (en) Interconnecting data centers for migration of virtual machines
EP2982097A1 (en) Method and apparatus for exchanging ip packets among network layer 2 peers
CN103081418A (en) Computer system and communication method in computer system
CN101517981A (en) Multi-chassis emulated switch
CN105284080A (en) Data center system and virtual network management method of data center
CN103067245A (en) Flow table spatial isolation device and method for network virtualization
CN112822085B (en) Network deployment method and system
CN103763310A (en) Firewall service system and method based on virtual network
CN103905303A (en) Method, device and system for processing data after VM transfer across subnet

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