WO2014101145A1 - Method and apparatus for transmitting network information - Google Patents

Method and apparatus for transmitting network information Download PDF

Info

Publication number
WO2014101145A1
WO2014101145A1 PCT/CN2012/087923 CN2012087923W WO2014101145A1 WO 2014101145 A1 WO2014101145 A1 WO 2014101145A1 CN 2012087923 W CN2012087923 W CN 2012087923W WO 2014101145 A1 WO2014101145 A1 WO 2014101145A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
address
physical device
information
virtual
Prior art date
Application number
PCT/CN2012/087923
Other languages
French (fr)
Chinese (zh)
Inventor
邵华
林少鹏
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280005724.4A priority Critical patent/CN103503413B/en
Priority to PCT/CN2012/087923 priority patent/WO2014101145A1/en
Publication of WO2014101145A1 publication Critical patent/WO2014101145A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Definitions

  • the present invention relates to the field of cloud computing technologies, and in particular, to a method and device for transmitting network information.
  • VXLAN virtual extensible local area network
  • PIM-DM dense mode protocol-independent multicast
  • PIM-DM Physical switches accommodate relatively few PIM-DMs, generally around 500-2000 groups.
  • the PIM in the physical switch is often caused.
  • -DM is not enough, making it difficult for physical switches to support larger virtual networks. If you want to increase PIM-DM to enable physical switches to support larger virtual networks, you will need to add a lot of cost to add additional computing devices and storage devices to physical switches, or use large-capacity physics with more PIM-DMs. Switches, but the price of such large-capacity physical switches is generally higher, which makes the cost of building large-scale virtual networks in the prior art higher, which limits the application of virtual network technologies.
  • Embodiments of the present invention provide a method and apparatus for transmitting network information, which can avoid With the PIM-DM of the physical switch, the MAC address learning of the virtual machine and the learning of the tunnel endpoint IP address are performed, thereby reducing the cost of constructing a large-scale virtual network and expanding the application range of the virtual network.
  • an embodiment of the present invention provides a method for transmitting network information, including: an information server acquiring address information of a virtual machine in a virtual network, where the address information includes: an IP address of the virtual machine and a medium access control MAC address Address, the physical knowledge VNI number of the virtual machine;
  • the information server obtains the address information of the virtual machine in the virtual network, and includes: the obtained IP address and MAC address of the virtual machine, The IP address of the physical device and
  • the second possible implementation includes:
  • the physical device where the virtual machine is located intercepts a DHCP message sent by the dynamic host configuration protocol DHCP server to the virtual machine, where the DHCP
  • the message includes an IP address and a MAC address of the virtual machine
  • the physical device where the virtual machine is located obtains the IP address and MAC address of the virtual machine from the DHCP message.
  • the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes the The IP address of the second virtual machine.
  • the receiving, by the physical device where the first virtual machine is located, the query request message generated according to the request of the first virtual machine, according to The query request message acquires address information of the second virtual machine, including:
  • the MAC address of the second virtual machine and the number of the second virtual machine according to the IP address of the second virtual machine in the query request message and the VNI number of the virtual network where the first virtual machine is located IP address and MAC address of the physical device where the virtual machine resides.
  • the physical device that is located by the first virtual machine feeds back the first virtual machine
  • the address information of the second virtual machine includes:
  • an embodiment of the present invention provides an apparatus for transmitting network information, including: an information acquiring module, configured to acquire address information of a virtual machine in a virtual network, where the address information includes: an IP address of the virtual machine The medium access control MAC address and the physical knowledge VNI number of the virtual machine;
  • the request receiving module is configured to receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain address information of the second virtual machine according to the query request message, where the query
  • the request message includes an IP address of the second virtual machine
  • an information feedback module is configured to feed back, by the physical device where the first virtual machine is located, address information of the second virtual machine to the first virtual machine.
  • the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes the The IP address of the second virtual machine.
  • the request receiving module is specifically configured to receive the physical device where the first virtual machine is located according to the first virtual machine
  • the query request message generated by the sent ARP request, the query request The request message includes an IP address of the second virtual machine and a VNI number of the virtual network where the first virtual machine is located; according to the IP address of the second virtual machine in the query request message and the first virtual
  • the VNI number of the virtual network where the machine is located acquires the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located.
  • the information feedback module is specifically configured to: use a MAC address of the second virtual machine, and the The IP address and the MAC address of the physical device where the second virtual machine is located are sent to the physical device where the first virtual machine is located, so that the physical device where the first virtual machine is located sends the MAC address of the second virtual machine to The first virtual machine.
  • an embodiment of the present invention provides an information server for transmitting network information, including: a processor, a communication interface, a memory, and a bus, where the processor, the communication interface, and the memory complete each other through the bus Inter-communication, wherein the processor is used to:
  • the address information of the virtual machine in the virtual network is obtained and stored in the memory, where the address information includes: an IP address of the virtual machine and a medium access control MAC address, and a physical medium of the virtual machine The IP address and MAC address of the device and the virtual network identifier VNI number of the virtual network where the virtual machine is located;
  • the request message includes an IP address of the second virtual machine, and the address information of the second virtual machine is fed back to the first virtual machine by the physical device where the first virtual machine is located.
  • the processor is configured to receive, by using the communication interface, an IP address of the virtual machine that is sent by a physical device where the virtual machine is located Address and MAC address, IP address and MAC address of the physical device, and a VNI number of the virtual network where the virtual machine is located, where the IP address of the virtual machine and the MAC address are obtained by intercepting a DHCP message sent by the dynamic host configuration protocol DHCP server to the virtual machine, where the DHCP message includes the The IP address and MAC address of the virtual machine.
  • the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes the The IP address of the second virtual machine.
  • the processor is configured to receive, by using the communication interface, a physical device where the first virtual machine is located The query request message generated by the ARP request sent by the first virtual machine, where the query request message includes an IP address of the second virtual machine and a VNI number of the virtual network where the first virtual machine is located; Obtaining, by the IP address of the second virtual machine in the request message, and the VNI number of the virtual network where the first virtual machine is located, acquiring a MAC address of the second virtual machine stored in the memory, and the IP address and MAC address of the physical device where the virtual machine resides.
  • the processor is specifically configured to: use, by using the communication interface, the second virtual machine
  • the MAC address and the IP address and the MAC address of the physical device where the second virtual machine is located are sent to the physical device where the first virtual machine is located, so that the physical device where the first virtual machine is located is the second virtual machine
  • the MAC address is sent to the first virtual machine.
  • the method and device for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the request according to the request sent by the virtual machine during the running process of the virtual machine.
  • Required address information thus operating in the virtual machine and PIM-DM technology, avoiding This eliminates the cost of increasing the PIM-DM capacity of a physical switch when supporting a larger virtual network, thereby reducing the cost of building a large-scale virtual network and expanding the application range of virtual network technology.
  • FIG. 1 is a flowchart of a method for transmitting network information according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for transmitting network information according to an embodiment of the present invention
  • 2c is a signaling interaction diagram of another specific example of a method for transmitting network information according to an embodiment of the present invention.
  • FIG. 2 is a signaling interaction diagram of still another specific example of a method for transmitting network information according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for transmitting network information according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an information server for transmitting network information according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for transmitting network information. As shown in FIG. 1, the method includes the following steps:
  • the information server obtains address information of the virtual machine in the virtual network.
  • the method in this embodiment may be performed by an information server, which is a device for recording address information of a virtual machine, such as a server, a mobile workstation, or a terminal device, having a computing and storage function. Wait.
  • the information server may be a dedicated hardware device, for example: On the physical level, the server 1 and the server 2 are respectively used to carry the operation of the virtual machine, and the server 3 as the information server is used in the server 1 and the server 2 When the virtual machine performs data interaction, the method described in this embodiment is performed.
  • the information server may also be composed of a part of computing/storage resources divided by a hardware device, for example: at a physical level, the server 1 And the server 2 is used to carry the operation of the virtual machine, and the server 1 also allocates a part of the operation/storage resources to bear the information server in the embodiment.
  • the server can implement the virtual machine by using a technical means such as time division multiplexing. The method described in this embodiment is run and executed.
  • the address information includes: an IP address and a MAC address of the virtual machine, an IP address and a MAC address of a physical device where the virtual machine is located, and a virtual network identifier of a virtual network where the virtual machine is located (Virtual Network Identifier, the cylinder is called VNI).
  • the data packet sent by the virtual machine includes an IP address and a MAC address for indicating the virtual machine. After the data sent by the virtual machine reaches the physical device where the virtual machine is located, The data sent by the virtual machine is re-encapsulated by the physical device, and the IP address and MAC address of the physical device where the virtual machine is located and the VNI number of the virtual network where the virtual machine is located are added.
  • the information server may obtain the IP address and MAC address of the virtual machine, the IP address of the physical device, and the MAC address when the virtual machine in the virtual network is started.
  • Some technical means acquire and store the IP address and MAC address of each virtual machine in the virtual network, the IP address and MAC address of the physical device such as the server where the virtual machine is located, and the address letter such as the VNI number of the virtual network where the virtual machine is located.
  • the information server can obtain the address information in various ways. For example, the virtual machine can automatically initiate the dynamic host configuration protocol (DHCP) process when the virtual machine starts, so that the physical server where the virtual machine is located can pass.
  • DHCP dynamic host configuration protocol
  • the DHCP message sent by the DHCP server to the virtual machine for allocating an IP address and a MAC address to the virtual machine may be intercepted, and an IP address and a MAC address of the virtual machine are obtained therefrom;
  • the physical server then sends information such as its own IP address and MAC address, and the VNI number of the virtual network where the virtual machine is located, to the information server along with the IP address and MAC address of the virtual machine.
  • the request message includes information for identifying the second virtual machine.
  • the request message sent by the first virtual machine is an Address Resolution Protocol (ARP) request
  • the information included in the ARP request for identifying the second virtual machine is the IP address of the second virtual machine.
  • ARP Address Resolution Protocol
  • the specific implementation manner in which the first virtual machine obtains the IP address of the second virtual machine may be any manner known to those skilled in the art, and details are not described herein again.
  • the MAC address of the second virtual machine that is the destination virtual machine needs to be obtained.
  • the physical device where the local VM resides needs to obtain the IP address and MAC address of the physical device where the destination VM resides.
  • the information server receives the request message sent by the first virtual machine, where the request message indicates that the first virtual machine needs to perform data interaction with the second virtual machine, and the information server may be according to the second part included in the request message.
  • the IP address of the virtual machine searches for the address information of the MAC address corresponding to the second virtual machine, the IP address and the MAC address of the physical device where the second virtual machine is located in the address information of the obtained virtual machine, and finds the second information.
  • the address information of the MAC address of the virtual machine and the IP address and MAC address of the physical device where the second virtual machine resides is sent to the first virtual
  • the machine is configured such that the first virtual machine uses the address information to perform data interaction with the second virtual machine.
  • the address information of the second virtual machine is fed back to the first virtual machine by using a physical device where the first virtual machine is located.
  • the method for transmitting network information can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the required information according to the request sent by the virtual machine during the running of the virtual machine. Address information, so that the physical switch and PIM-DM technology adopted by the existing technology are no longer needed during the operation of the virtual machine, thereby avoiding the cost of increasing the PIM-DM capacity of the physical switch when supporting a larger virtual network. , thereby reducing the cost of building a large-scale virtual network and expanding the application range of virtual network technology.
  • FIG. 2a another flow chart of a method for transmitting network information according to an embodiment of the present invention includes the following steps:
  • the information server obtains a MAC address and an IP address of the virtual machine, a MAC address and an IP address of a physical device where the virtual machine is located, and a VNI number of the virtual network where the virtual machine is located.
  • the MAC address and the IP address of the virtual machine are obtained by intercepting the DHCP message sent by the DHCP server to the virtual machine by the physical device where the virtual machine is located.
  • the DHCP message includes the IP address and MAC address of the virtual machine.
  • the physical device where the virtual machine is located has the MAC address and IP address of the virtual machine, the MAC address and the IP address of the physical device where the virtual machine is located, and the specific transmission process of the DHCP message can be used in the prior art.
  • the specific implementation process of DHCP technology is the same.
  • a virtual machine is carried by a specific physical device, and data sent/received by the virtual machine needs to be transmitted through the physical device.
  • the first virtual machine and the second virtual machine may be respectively carried by different physical devices 7, and after the virtual machines in the virtual network are started, the first virtual machine and the second virtual machine may initiate DHCP. Process and receive DHCP messages sent by the DHCP server.
  • a DHCP process is initiated, and the physical device 2 can intercept the DHCP message sent by the DHCP server to the second virtual machine, where The DHCP message includes an IP address and a MAC address assigned by the DHCP server to the second virtual machine, and the physical device 2 can obtain the IP address and the MAC address in the DHCP message, and together with the IP address and MAC address of the physical device 2, the second virtual machine
  • the VNI number of the virtual network where it is located is sent to the information server.
  • the physical device 1 can obtain the IP address and MAC address of the first virtual machine, and send the VNI number of the virtual network where the first virtual machine is located to the information server along with the IP address and MAC address of the physical device 1.
  • the physical device where the first virtual machine is located receives an ARP request sent by the first virtual machine, and extracts an IP address of the second virtual machine from the ARP request, according to the IP address of the second virtual machine.
  • the address and the VNI number of the virtual network where the first virtual machine is located generate the query request message and send the query request message to the information server.
  • the request message sent by the first virtual machine as the local virtual machine may be an ARP request, where the ARP request includes a virtual machine for identifying the destination (in this embodiment, the first virtual machine is used as the local virtual machine).
  • the information of the machine can be referred to as the second virtual machine (ie, the IP address of the second virtual machine).
  • the query request message is generated by the physical device according to the ARP request sent by the first virtual machine, and the query request message includes: an IP address of the second virtual machine.
  • the first virtual machine may send an ARP request to the second virtual machine, where the specified character segment in the ARP request includes the IP address of the second virtual machine, and the physical device 1 where the first virtual machine is located is
  • the information for identifying the second virtual machine that is, the IP address of the second virtual machine;
  • the VNI number generates a query request message, and then sends a query request message to the information server.
  • the second virtual machine that can interact with the first virtual machine can only be in the same virtual virtual machine as the first virtual machine.
  • the VNI number of the virtual network where the second virtual machine is located is the same as the VNI number of the virtual network where the first virtual machine is located.
  • the information server may use the IP address of the second virtual machine included in the query request message and the VNI number of the virtual network where the second virtual machine is located, from the address information of each of the virtual machines in 201.
  • the MAC address of the corresponding second virtual machine is queried, and the IP address and MAC address of the physical device where the second virtual machine is located.
  • the information server may send the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located to the physical device 1, and then physical The device 1 transmits the MAC address of the second virtual machine to the first virtual machine.
  • the first virtual machine can implement data interaction with the second virtual machine according to the IP address and the MAC address of the second virtual machine, for example: FIG. 2c
  • the first virtual machine can implement data interaction with the second virtual machine according to the IP address and the MAC address of the second virtual machine, for example: FIG. 2c
  • Figure 2d On the basis of, as shown in Figure 2d,
  • the first virtual machine sends a communication packet to the second virtual machine, where the communication packet includes an IP address and a MAC address of the second virtual machine.
  • the physical device 1 where the first virtual machine is located can intercept the communication packet, and add the VNI of the virtual network to which the first virtual machine belongs and the outer tunnel encapsulation in the communication packet.
  • the outer source IP address and MAC address of the outer tunnel encapsulation are the IP address and MAC address of the physical device 1
  • the outer destination IP address and MAC address are the IP address and MAC address of the physical device 2, where the physical device 2
  • the IP address and MAC address have been sent to the physical device 1 by the information server in 204;
  • the physical device 1 sends the communication packet to the physical device where the second virtual machine is located through the network. 2;
  • the physical device 2 where the second virtual machine is located decapsulates the communication packet sent by the physical device 1 where the first virtual machine is located, and then transmits the communication packet to the second virtual machine.
  • the method for transmitting network information can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the required information according to the request sent by the virtual machine during the running of the virtual machine.
  • Address information so that the physical switch and PIM-DM technology used in the prior art are no longer needed during the operation of the virtual machine, thereby avoiding the need to increase the PIM-DM capacity of the physical switch when supporting a larger virtual network.
  • the cost which reduces the cost of building a large-scale virtual network, and expands the application range of virtual network technology.
  • the embodiment of the present invention further provides an apparatus for transmitting network information, as shown in FIG. 3, including: an information acquiring module 31, configured to acquire address information of a virtual machine in a virtual network.
  • the address information includes: an IP address of the virtual machine and a medium access control MAC address, an IP address and a MAC address of a physical device where the virtual machine is located, and a virtual network identifier VNI number of the virtual network where the virtual machine is located.
  • the request receiving module 32 is configured to receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain address information of the second virtual machine according to the query request message.
  • the query request message includes an IP address of the second virtual machine.
  • the information feedback module 33 feeds back the address information of the second virtual machine to the first virtual machine by using the physical device where the first virtual machine is located.
  • the information acquiring module 31 is configured to receive an IP address and a MAC address of the virtual machine, an IP address of the physical device, and a physical device, where the virtual device is located.
  • the virtual machine After the virtual machine is started, it is sent to the virtual network by intercepting the dynamic host configuration protocol. Obtained by the DHCP message of the machine, the DHCP message includes an IP address and a MAC address of the virtual machine.
  • the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes an IP address of the second virtual machine.
  • the request receiving module 32 is configured to receive the query request message generated by the physical device where the first virtual machine is located according to the ARP request sent by the first virtual machine, where the query request message includes The IP address of the second virtual machine and the VNI number of the virtual network where the first virtual machine is located; according to the IP address of the second virtual machine in the query request message and the location of the first virtual machine The VNI number of the virtual network acquires the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located.
  • the information feedback module 33 is configured to send the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located to the first virtual machine. a physical device, such that the physical device where the first virtual machine is located sends the MAC address of the second virtual machine to the first virtual machine.
  • the device for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the required information according to the request sent by the virtual machine during the running of the virtual machine. Address information, so that the physical switch and PIM-DM technology used in the prior art are no longer needed during the operation of the virtual machine, thereby avoiding the need to increase the PIM-DM capacity of the physical switch when supporting a larger virtual network.
  • the cost which reduces the cost of building a large-scale virtual network, and expands the application range of virtual network technology.
  • the embodiment of the present invention further provides an information server for transmitting network information, as shown in FIG.
  • the processor 41 is configured to acquire, by using the communication interface 42, address information of a virtual machine in the virtual network and store the information in the memory 43, the address The information includes: an IP address of the virtual machine And the medium access control MAC address, the IP address of the physical device where the virtual machine is located, and the MAC 41
  • the processor 41 is further configured to receive, by using the communication interface 42, the physical device where the first virtual machine is located according to the first
  • the query request message generated by the request of the virtual machine obtains the address information of the second virtual machine according to the query request message, where the query request message includes an IP address of the second virtual machine.
  • the processor 41 is further configured to feed back, by the physical interface, the address information of the second virtual machine to the first virtual machine by using the communication interface 42.
  • the processor 41 is specifically configured to receive the virtual entity by using the communication interface 42
  • the DHCP message is obtained by intercepting a DHCP message sent by the dynamic host configuration protocol DHCP server to the virtual machine, and the DHCP message includes an IP address and a MAC address of the virtual machine.
  • the processor 41 is configured to receive, by using the communication interface 42 , the query request message generated by the physical device where the first virtual machine is located according to the ARP request sent by the first virtual machine.
  • the query request message includes an IP address of the second virtual machine and a VNI number of the virtual network where the first virtual machine is located; and an IP address and a location of the second virtual machine according to the query request message.
  • the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, and the ARP request includes an IP address of the second virtual machine.
  • the processor 41 is specifically configured to send, by using the communication interface 42, the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located. Go to the physical device where the first virtual machine is located, so that the first virtual The physical device where the virtual machine is located sends the MAC address of the second virtual machine to the first virtual machine.
  • the information server for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the request according to the request sent by the virtual machine during the running of the virtual machine.
  • the embodiment of the present invention provides a solution for supporting the operation of the virtual machine in addition to the physical switch and the PIM-DM technology, thereby avoiding supporting a larger virtual network.
  • the cost of building a large-scale virtual network is reduced, and the application range of the virtual network technology is expanded.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (Random Acs s Memo r y , RAM).

Abstract

The present invention relates to the technical field of cloud computing. Disclosed are a method and an apparatus for transmitting network information, which can reduce the cost of constructing a large-scale virtual network. The method of the present invention comprises: an information server obtaining address information of a virtual machine in a virtual network, wherein the address information comprises: IP and MAC of the virtual machine, IP and MAC of a physical device where the virtual machine is located, and a VNI number of the virtual network; receiving a query request message generated, according to a request of a first virtual machine, by the physical device where the first virtual machine is located, and acquiring address information of a second virtual machine according to the query request message, wherein the query request message comprises IP of the second virtual machine; and feeding back the address information of the second virtual machine to the first virtual machine through the physical device where the first virtual machine is located.

Description

传输网络信息的方法及装置 技术领域  Method and device for transmitting network information
本发明涉及云计算技术领域,尤其涉及一种传输网络信息的方法及装 置。  The present invention relates to the field of cloud computing technologies, and in particular, to a method and device for transmitting network information.
背景技术 Background technique
随着电子信息技术的发展,许多物理网络都需要生成虚拟机来构建虚 拟网络, 以满足各种各样业务的需求。  With the development of electronic information technology, many physical networks need to generate virtual machines to build virtual networks to meet the needs of various businesses.
现有技术中, 常用的虚拟网络技术有虚拟扩展局域网 ( Virtual extensible Local Area Network, 筒称 VXLAN ) , 即在现有的物理三层网络 上构建跨越多个服务器的虚拟化二层网络。 在实际应用中, VXLAN需要 通过占用物理交换机的密集模式协议无关组播 (PIM Dense Mode, 筒称 PIM-DM ) 来进行虚拟机的介质访问控制 (Media Access Control , 筒称 MAC ) 地址学习和隧道端点网络之间互连的协议 ( Internet Protocol , 筒 称 IP ) 地址的学习。  In the prior art, a commonly used virtual network technology is a virtual extensible local area network (VXLAN), that is, a virtualized layer 2 network spanning multiple servers on an existing physical layer 3 network. In practical applications, VXLAN needs to use the dense mode protocol-independent multicast (PIM-DM) of the physical switch to perform media access control (Media Access Control, MAC address) address learning and tunneling of the virtual machine. The learning of the protocol (Internet Protocol, IP address) of the interconnection between the endpoint networks.
目前, 物理交换机所容纳的 PIM-DM都比较少, 普遍在 500-2000个 组左右。 而在物理交换机上运行的虚拟网络的规模越大, 需要占用的 PIM-DM越多, 并且在同一个物理交换机上可能同时运行多个虚拟网络, 从而在实际应用中常常造成物理交换机中的 PIM-DM 不够用, 使得物理 交换机难以支持更大规模虚拟网络。 而若要增加 PIM-DM 以使物理交换 机能够支持更大规模虚拟网络,则需要增加很多成本来给物理交换机增设 额外的运算设备和存储设备, 或是使用具有更多 PIM-DM 的大容量物理 交换机, 但是这类大容量物理交换机的价格普遍较高, 从而使得现有技术 中构建大规模虚拟网络的成本较高, 限制了虚拟网络技术的应用。  At present, physical switches accommodate relatively few PIM-DMs, generally around 500-2000 groups. The larger the size of the virtual network running on the physical switch, the more PIM-DMs need to be occupied, and the multiple virtual networks may be running on the same physical switch. In practice, the PIM in the physical switch is often caused. -DM is not enough, making it difficult for physical switches to support larger virtual networks. If you want to increase PIM-DM to enable physical switches to support larger virtual networks, you will need to add a lot of cost to add additional computing devices and storage devices to physical switches, or use large-capacity physics with more PIM-DMs. Switches, but the price of such large-capacity physical switches is generally higher, which makes the cost of building large-scale virtual networks in the prior art higher, which limits the application of virtual network technologies.
发明内容 Summary of the invention
本发明的实施例提供一种传输网络信息的方法及装置,能够在避免使 用物理交换机的 PIM-DM的情况下进行虚拟机的 MAC地址学习和隧道端 点 IP地址的学习, 从而降低构建大规模虚拟网络的成本, 扩大虚拟网络的 应用范围。 Embodiments of the present invention provide a method and apparatus for transmitting network information, which can avoid With the PIM-DM of the physical switch, the MAC address learning of the virtual machine and the learning of the tunnel endpoint IP address are performed, thereby reducing the cost of constructing a large-scale virtual network and expanding the application range of the virtual network.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
第一方面, 本发明的实施例提供一种传输网络信息的方法, 包括: 信息服务器获取虚拟网络中虚拟机的地址信息, 所述地址信息包括: 所述虚拟机的 IP地址和介质访问控制 MAC地址、 所述虚拟机所在的物理 识 VNI号;  In a first aspect, an embodiment of the present invention provides a method for transmitting network information, including: an information server acquiring address information of a virtual machine in a virtual network, where the address information includes: an IP address of the virtual machine and a medium access control MAC address Address, the physical knowledge VNI number of the virtual machine;
接收第一虚拟机所在的物理设备根据所述第一虚拟机的请求生成的 查询请求消息,根据所述查询请求消息获取第二虚拟机的地址信息,其中, 所述查询请求消息包括所述第二虚拟机的 I P地址;  Receiving, by the physical device where the first virtual machine is located, the query request message generated by the request of the first virtual machine, acquiring the address information of the second virtual machine according to the query request message, where the query request message includes the first The IP address of the second virtual machine;
通过所述第一虚拟机所在的物理设备向所述第一虚拟机反馈所述第 二虚拟机的地址信息。 结合第一方面, 在第一方面的第一种可能的实现方式中, 所述信息服 务器获取虚拟网络中虚拟机的地址信息, 包括: 并将获取的所述虚拟机的 IP地址和 MAC地址、 所述物理设备的 IP地址和  And returning address information of the second virtual machine to the first virtual machine by using a physical device where the first virtual machine is located. With reference to the first aspect, in a first possible implementation manner of the first aspect, the information server obtains the address information of the virtual machine in the virtual network, and includes: the obtained IP address and MAC address of the virtual machine, The IP address of the physical device and
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式 包括: In combination with the first possible implementation of the first aspect, the second possible implementation includes:
所述虚拟网络中的虚拟机启动后,所述虚拟机所在的物理设备截获动 态主机配置协议 DHCP服务器发送给所述虚拟机的 DHCP消息, 所述 DHCP 消息包括所述虚拟机的 IP地址和 MAC地址; After the virtual machine in the virtual network is started, the physical device where the virtual machine is located intercepts a DHCP message sent by the dynamic host configuration protocol DHCP server to the virtual machine, where the DHCP The message includes an IP address and a MAC address of the virtual machine;
所述虚拟机所在的物理设备从所述 DHCP消息中获取所述虚拟机的 IP 地址和 MAC地址。 结合第一方面, 在第一方面的第三种可能的实现方式中, 所述第一虚 拟机的请求为所述第一虚拟机发送的地址解析协议 ARP请求, 所述 ARP请 求中包括所述第二虚拟机的 IP地址。 结合第一方面的第三种可能的实现方式,在第四种可能的实现方式 中,所述接收第一虚拟机所在的物理设备根据所述第一虚拟机的请求生成 的查询请求消息, 根据所述查询请求消息获取第二虚拟机的地址信息, 包 括:  The physical device where the virtual machine is located obtains the IP address and MAC address of the virtual machine from the DHCP message. With reference to the first aspect, in a third possible implementation manner of the first aspect, the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes the The IP address of the second virtual machine. With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the receiving, by the physical device where the first virtual machine is located, the query request message generated according to the request of the first virtual machine, according to The query request message acquires address information of the second virtual machine, including:
所述第一虚拟机所在的物理设备接收所述第一虚拟机发送的 ARP请 求, 从所述 ARP请求中提取所述第二虚拟机的 IP地址, 根据所述第二虚拟 机的 I P地址和所述第一虚拟机所在的虚拟网络的 V N I号生成所述查询请 求消息并将所述查询请求消息发送给所述信息服务器;  Receiving, by the physical device, the first virtual machine, an ARP request sent by the first virtual machine, extracting an IP address of the second virtual machine from the ARP request, according to an IP address of the second virtual machine, Generating, by the VNI number of the virtual network where the first virtual machine is located, the query request message, and sending the query request message to the information server;
所述信息服务器根据所述查询请求消息中的所述第二虚拟机的 IP地 址和所述第一虚拟机所在的虚拟网络的 VNI号, 获取所述第二虚拟机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址。 结合第一方面, 以及第一方面的任意一种可能的实现方式,在第五种 可能的实现方式中,所述通过所述第一虚拟机所在的物理设备向所述第一 虚拟机反馈所述第二虚拟机的地址信息, 包括:  Obtaining, by the information server, the MAC address of the second virtual machine and the number of the second virtual machine according to the IP address of the second virtual machine in the query request message and the VNI number of the virtual network where the first virtual machine is located IP address and MAC address of the physical device where the virtual machine resides. With reference to the first aspect, and any one possible implementation manner of the first aspect, in a fifth possible implementation, the physical device that is located by the first virtual machine feeds back the first virtual machine The address information of the second virtual machine includes:
将所述第二虚拟机的 M A C地址以及所述第二虚拟机所在的物理设备 的 IP地址和 MAC地址发送至所述第一虚拟机所在的物理设备, 以便所述 第一虚拟机所在的物理设备将所述第二虚拟机的 MAC地址发送至所述第 一虚拟机。 第二方面, 本发明的实施例提供一种传输网络信息的装置, 包括: 信 息获取模块,用于获取虚拟网络中虚拟机的地址信息,所述地址信息包括: 所述虚拟机的 IP地址和介质访问控制 MAC地址、 所述虚拟机所在的物理 识 VNI号; Sending the MAC address of the second virtual machine and the IP address and the MAC address of the physical device where the second virtual machine is located to the physical device where the first virtual machine is located, so that the physicality of the first virtual machine is The device sends the MAC address of the second virtual machine to the first virtual machine. In a second aspect, an embodiment of the present invention provides an apparatus for transmitting network information, including: an information acquiring module, configured to acquire address information of a virtual machine in a virtual network, where the address information includes: an IP address of the virtual machine The medium access control MAC address and the physical knowledge VNI number of the virtual machine;
请求接收模块,用于接收第一虚拟机所在的物理设备根据所述第一虚 拟机的请求生成的查询请求消息,根据所述查询请求消息获取第二虚拟机 的地址信息, 其中, 所述查询请求消息包括所述第二虚拟机的 IP地址; 信息反馈模块,用于通过所述第一虚拟机所在的物理设备向所述第一 虚拟机反馈所述第二虚拟机的地址信息。 结合第二方面, 在第二方面的第一种可能的实现方式中, 所述信息获  The request receiving module is configured to receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain address information of the second virtual machine according to the query request message, where the query The request message includes an IP address of the second virtual machine, and an information feedback module is configured to feed back, by the physical device where the first virtual machine is located, address information of the second virtual machine to the first virtual machine. With reference to the second aspect, in the first possible implementation manner of the second aspect, the information is obtained
IP地址和 MAC地址、所述物理设备的 IP地址和 MAC地址以及所述虚拟 机所在的虚拟网络的 VNI号, 其中, 所述虚拟机的 IP地址和 MAC地址 截获动态主机配置协议 DHCP服务器发送给所述虚拟机的 DHCP消息获 取的, 所述 DHCP消息包括所述虚拟机的 IP地址和 MAC地址。 结合第二方面, 在第二方面的第二种可能的实现方式中, 所述第一虚 拟机的请求为所述第一虚拟机发送的地址解析协议 ARP请求, 所述 ARP 请求中包括所述第二虚拟机的 IP地址。 结合第二方面的第二种可能的实现方式,在第三种可能的实现方式 中, 所述请求接收模块, 具体用于接收所述第一虚拟机所在的物理设备根 据所述第一虚拟机发送的 ARP请求生成的所述查询请求消息,所述查询请 求消息包括所述第二虚拟机的 IP地址和所述第一虚拟机所在的虚拟网络 的 VNI号; 根据所述查询请求消息中的所述第二虚拟机的 IP地址和所述第 一虚拟机所在的虚拟网络的 VNI号,获取所述第二虚拟机的 MAC地址以及 所述第二虚拟机所在的物理设备的 IP地址和 MAC地址。 结合第二方面, 以及第二方面的任意一种可能的实现方式,在第四种 可能的实现方式中, 所述信息反馈模块, 具体用于将所述第二虚拟机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址发送 至所述第一虚拟机所在的物理设备,以便所述第一虚拟机所在的物理设备 将所述第二虚拟机的 MAC地址发送至所述第一虚拟机。 第三方面, 本发明的实施例提供一种传输网络信息的信息服务器, 包 括: 处理器、 通信接口、 存储器、 总线, 所述处理器、 所述通信接口和所 述存储器通过所述总线完成相互间的通信, 其中, 所述处理器用于: An IP address and a MAC address, an IP address and a MAC address of the physical device, and a VNI number of the virtual network where the virtual machine is located, where the virtual machine's IP address and MAC address are intercepted by the dynamic host configuration protocol DHCP server Obtained by the DHCP message of the virtual machine, the DHCP message includes an IP address and a MAC address of the virtual machine. With reference to the second aspect, in a second possible implementation manner of the second aspect, the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes the The IP address of the second virtual machine. With reference to the second possible implementation of the second aspect, in a third possible implementation, the request receiving module is specifically configured to receive the physical device where the first virtual machine is located according to the first virtual machine The query request message generated by the sent ARP request, the query request The request message includes an IP address of the second virtual machine and a VNI number of the virtual network where the first virtual machine is located; according to the IP address of the second virtual machine in the query request message and the first virtual The VNI number of the virtual network where the machine is located acquires the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located. With reference to the second aspect, and any one possible implementation manner of the second aspect, in a fourth possible implementation, the information feedback module is specifically configured to: use a MAC address of the second virtual machine, and the The IP address and the MAC address of the physical device where the second virtual machine is located are sent to the physical device where the first virtual machine is located, so that the physical device where the first virtual machine is located sends the MAC address of the second virtual machine to The first virtual machine. In a third aspect, an embodiment of the present invention provides an information server for transmitting network information, including: a processor, a communication interface, a memory, and a bus, where the processor, the communication interface, and the memory complete each other through the bus Inter-communication, wherein the processor is used to:
通过所述通信接口,获取虚拟网络中虚拟机的地址信息并储存在所述 存储器中, 所述地址信息包括: 所述虚拟机的 IP地址和介质访问控制 MAC 地址、 所述虚拟机所在的物理设备的 IP地址和 MAC地址以及所述虚拟机 所在的虚拟网络的虚拟网络标识 VNI号;  The address information of the virtual machine in the virtual network is obtained and stored in the memory, where the address information includes: an IP address of the virtual machine and a medium access control MAC address, and a physical medium of the virtual machine The IP address and MAC address of the device and the virtual network identifier VNI number of the virtual network where the virtual machine is located;
通过所述通信接口,接收第一虚拟机所在的物理设备根据所述第一虚 拟机的请求生成的查询请求消息,根据所述查询请求消息获取第二虚拟机 的地址信息, 其中, 所述查询请求消息包括所述第二虚拟机的 IP地址; 通过所述通信接口,通过所述第一虚拟机所在的物理设备向所述第一 虚拟机反馈所述第二虚拟机的地址信息。 结合第三方面,在第三方面的第一种可能的实现方式中,所述处理器, 具体用于通过所述通信接口,接收所述虚拟机所在的物理设备发送的所述 虚拟机的 IP地址和 MAC地址、 所述物理设备的 IP地址和 MAC地址以及所 述虚拟机所在的虚拟网络的 VNI号, 其中, 所述虚拟机的 IP地址和 MAC地 过截获动态主机配置协议 DHCP服务器发送给所述虚拟机的 DHCP消息获 取的, 所述 DHCP消息包括所述虚拟机的 IP地址和 MAC地址。 结合第三方面, 在第三方面的第二种可能的实现方式中, 所述第一虚 拟机的请求为所述第一虚拟机发送的地址解析协议 ARP请求, 所述 ARP 请求中包括所述第二虚拟机的 IP地址。 结合第三方面的第二种可能的实现方式,在第三种可能的实现方式 中, 所述处理器, 具体用于通过所述通信接口, 接收所述第一虚拟机所在 的物理设备根据所述第一虚拟机发送的 ARP请求生成的所述查询请求消 息,所述查询请求消息包括所述第二虚拟机的 IP地址和所述第一虚拟机所 在的虚拟网络的 VNI号; 根据所述查询请求消息中的所述第二虚拟机的 IP 地址和所述第一虚拟机所在的虚拟网络的 VNI号, 获取储存在所述存储器 中的所述第二虚拟机的 M A C地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址。 结合第三方面, 以及第三方面的任意一种可能的实现方式,在第四种 可能的实现方式中, 所述处理器, 具体用于通过所述通信接口, 将所述第 二虚拟机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址发送至所述第一虚拟机所在的物理设备, 以便所述第一虚拟机 所在的物理设备将所述第二虚拟机的 MAC地址发送至所述第一虚拟机。 Receiving, by the communication interface, a query request message generated by the physical device where the first virtual machine is generated according to the request of the first virtual machine, and acquiring address information of the second virtual machine according to the query request message, where the query The request message includes an IP address of the second virtual machine, and the address information of the second virtual machine is fed back to the first virtual machine by the physical device where the first virtual machine is located. With reference to the third aspect, in a first possible implementation manner of the third aspect, the processor is configured to receive, by using the communication interface, an IP address of the virtual machine that is sent by a physical device where the virtual machine is located Address and MAC address, IP address and MAC address of the physical device, and a VNI number of the virtual network where the virtual machine is located, where the IP address of the virtual machine and the MAC address are obtained by intercepting a DHCP message sent by the dynamic host configuration protocol DHCP server to the virtual machine, where the DHCP message includes the The IP address and MAC address of the virtual machine. With reference to the third aspect, in a second possible implementation manner of the third aspect, the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes the The IP address of the second virtual machine. With reference to the second possible implementation manner of the third aspect, in a third possible implementation, the processor is configured to receive, by using the communication interface, a physical device where the first virtual machine is located The query request message generated by the ARP request sent by the first virtual machine, where the query request message includes an IP address of the second virtual machine and a VNI number of the virtual network where the first virtual machine is located; Obtaining, by the IP address of the second virtual machine in the request message, and the VNI number of the virtual network where the first virtual machine is located, acquiring a MAC address of the second virtual machine stored in the memory, and the IP address and MAC address of the physical device where the virtual machine resides. With reference to the third aspect, and any one possible implementation manner of the third aspect, in a fourth possible implementation, the processor is specifically configured to: use, by using the communication interface, the second virtual machine The MAC address and the IP address and the MAC address of the physical device where the second virtual machine is located are sent to the physical device where the first virtual machine is located, so that the physical device where the first virtual machine is located is the second virtual machine The MAC address is sent to the first virtual machine.
本发明实施例提供的传输网络信息的方法及装置,能够通过在网络中 设置专门的服务器来记录网络中的虚拟机的地址信息,并在虚拟机运行过 程中根据虚拟机所发出的请求反馈所需的地址信息,从而在虚拟机的运行 换机及 PIM-DM 技术, 避 免了在支持更大规模虚拟网络时为了增加物理交换机的 PIM-DM 容量所 需的成本, 从而降低了构建大规模虚拟网络的成本, 扩大了虚拟网络技术 的应用范围。 The method and device for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the request according to the request sent by the virtual machine during the running process of the virtual machine. Required address information, thus operating in the virtual machine and PIM-DM technology, avoiding This eliminates the cost of increasing the PIM-DM capacity of a physical switch when supporting a larger virtual network, thereby reducing the cost of building a large-scale virtual network and expanding the application range of virtual network technology.
附图说明  DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所 需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention.
图 1为本发明实施例提供的一种传输网络信息的方法的流程图; 图 2 a为本发明实施例提供的另一种传输网络信息的方法的流程图; 图 2 b为本发明实施例提供的另一种传输网络信息的方法的一种具体 实例的信令交互图;  FIG. 1 is a flowchart of a method for transmitting network information according to an embodiment of the present invention; FIG. 2 is a flowchart of another method for transmitting network information according to an embodiment of the present invention; A signaling interaction diagram of another specific example of a method for transmitting network information provided;
图 2 c为本发明实施例提供的另一种传输网络信息的方法的另一种具 体实例的信令交互图;  2c is a signaling interaction diagram of another specific example of a method for transmitting network information according to an embodiment of the present invention;
图 2 d为本发明实施例提供的另一种传输网络信息的方法的再一种具 体实例的信令交互图;  FIG. 2 is a signaling interaction diagram of still another specific example of a method for transmitting network information according to an embodiment of the present invention;
图 3为本发明实施例提供的一种传输网络信息的装置的结构示意图; 图 4为本发明实施例提供的一种传输网络信息的信息服务器的结构示 意图。  FIG. 3 is a schematic structural diagram of an apparatus for transmitting network information according to an embodiment of the present invention; FIG. 4 is a schematic structural diagram of an information server for transmitting network information according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的 范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种传输网络信息的方法, 如图 1所示, 包括以下 步骤:  An embodiment of the present invention provides a method for transmitting network information. As shown in FIG. 1, the method includes the following steps:
101 , 信息服务器获取虚拟网络中的虚拟机的地址信息。 需要说明的是, 本实施例所述的方法可以由信息服务器执行, 信息服 务器为一种具备计算和存储功能的、 用于记录虚拟机的地址信息的设备, 例如: 服务器、 移动工作站、 终端设备等。 进一步的, 信息服务器可以是 一个专门的硬件设备, 例如: 在物理层面上, 服务器 1和服务器 2分别用于 承载虚拟机的运行,而作为信息服务器的服务器 3则用于在服务器 1和服务 器 2上的虚拟机进行数据交互时, 执行本实施例所述的方法; 可选的, 信 息服务器也可以由一个硬件设备所划分出的部分运算 /存储资源构成, 例 如: 在物理层面上, 服务器 1和服务器 2分别用于承载虚拟机的运行, 同时 服务器 1还分出了一部分的运算 /存储资源来承担本实施例中信息服务器 员可以通过时分复用等技术手段实现一个服务器同时承载虚拟机的运行 并执行本实施例所述的方法。 101. The information server obtains address information of the virtual machine in the virtual network. It should be noted that the method in this embodiment may be performed by an information server, which is a device for recording address information of a virtual machine, such as a server, a mobile workstation, or a terminal device, having a computing and storage function. Wait. Further, the information server may be a dedicated hardware device, for example: On the physical level, the server 1 and the server 2 are respectively used to carry the operation of the virtual machine, and the server 3 as the information server is used in the server 1 and the server 2 When the virtual machine performs data interaction, the method described in this embodiment is performed. Optionally, the information server may also be composed of a part of computing/storage resources divided by a hardware device, for example: at a physical level, the server 1 And the server 2 is used to carry the operation of the virtual machine, and the server 1 also allocates a part of the operation/storage resources to bear the information server in the embodiment. The server can implement the virtual machine by using a technical means such as time division multiplexing. The method described in this embodiment is run and executed.
进一步的, 所述地址信息包括: 所述虚拟机的 IP地址和 MAC地址、 所述虚拟机所在的物理设备的 IP地址和 MAC地址和所述虚拟机所在的虚 拟网络的虚拟网络标识 ( Virtual Network Identifier , 筒称 VNI ) 号。 在本 发明实施例的实际应用中,虚拟机发出的数据包包括了用于表示该虚拟机 的 IP地址和 MAC地址, 当该虚拟机发出的数据到达了该虚拟机所在的物 理设备后, 可以由物理设备对该虚拟机发出的数据进行重新封装, 并添加 该虚拟机所在的物理设备的 IP地址和 MAC地址以及该虚拟机所在的虚拟 网络的 VNI号。  Further, the address information includes: an IP address and a MAC address of the virtual machine, an IP address and a MAC address of a physical device where the virtual machine is located, and a virtual network identifier of a virtual network where the virtual machine is located (Virtual Network Identifier, the cylinder is called VNI). In the practical application of the embodiment of the present invention, the data packet sent by the virtual machine includes an IP address and a MAC address for indicating the virtual machine. After the data sent by the virtual machine reaches the physical device where the virtual machine is located, The data sent by the virtual machine is re-encapsulated by the physical device, and the IP address and MAC address of the physical device where the virtual machine is located and the VNI number of the virtual network where the virtual machine is located are added.
在本实施例中, 信息服务器可以在虚拟网络中的虚拟机启动时, 通过 获取的所述虚拟机的 IP地址和 MAC地址、 所述物理设备的 IP地址和 MAC 具体的,信息服务器可以通过现有的技术手段获取并储存虚拟网络中 的各个虚拟机的 IP地址和 MAC地址、 虚拟机所在的诸如服务器等物理设 备的 IP地址和 MAC地址, 以及虚拟机所在的虚拟网络的 VNI号等地址信 息。 其中, 信息服务器获取地址信息的具体方式可以有多种, 例如: 虚拟 机在启动时可以自动发起动态主机配置协议 ( Dynamic Host Configuration Protocol, 筒称 DHCP )进程, 以便于虚拟机所在的物理服务器通过执行该 进程, 可以截获由 DHCP服务器发送至所述虚拟机的用于给所述虚拟机分 配 IP地址和 MAC地址的 DHCP消息, 并从中获取所述虚拟机的 IP地址和 MAC地址; 然后, 所述物理服务器再将自身的 IP地址和 MAC地址, 以及 所述虚拟机所在的虚拟网络的 V N I号等信息, 同所述虚拟机的 I P地址和 MAC地址一起发送至信息服务器。 需要说明的是, 当虚拟网络运行时, 具体实现方式可以是本领域技术人员所熟知的任意方式, 在此不再赘述。 In this embodiment, the information server may obtain the IP address and MAC address of the virtual machine, the IP address of the physical device, and the MAC address when the virtual machine in the virtual network is started. Some technical means acquire and store the IP address and MAC address of each virtual machine in the virtual network, the IP address and MAC address of the physical device such as the server where the virtual machine is located, and the address letter such as the VNI number of the virtual network where the virtual machine is located. Interest. The information server can obtain the address information in various ways. For example, the virtual machine can automatically initiate the dynamic host configuration protocol (DHCP) process when the virtual machine starts, so that the physical server where the virtual machine is located can pass. Executing the process, the DHCP message sent by the DHCP server to the virtual machine for allocating an IP address and a MAC address to the virtual machine may be intercepted, and an IP address and a MAC address of the virtual machine are obtained therefrom; The physical server then sends information such as its own IP address and MAC address, and the VNI number of the virtual network where the virtual machine is located, to the information server along with the IP address and MAC address of the virtual machine. It should be noted that, when the virtual network is running, the specific implementation manner may be any manner well known to those skilled in the art, and details are not described herein again.
102 , 接收第一虚拟机所在的物理设备根据所述第一虚拟机的请求生 成的查询请求消息, 根据所述查询请求消息获取第二虚拟机的地址信息。  102. Receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain address information of the second virtual machine according to the query request message.
其中, 所述请求消息中包括用于识别第二虚拟机的信息。 例如: 当第 一虚拟机发出的请求消息为地址解析协议 ( Address Resolution Protocol, 筒称 ARP )请求时, ARP请求中包括的用于识别第二虚拟机的信息为第二 虚拟机的 IP地址。 需要说明的是, 第一虚拟机获取第二虚拟机的 IP地址的 具体实现方式可以是本领域技术人员所熟知的任意方式, 在此不再赘述。  The request message includes information for identifying the second virtual machine. For example, when the request message sent by the first virtual machine is an Address Resolution Protocol (ARP) request, the information included in the ARP request for identifying the second virtual machine is the IP address of the second virtual machine. It should be noted that the specific implementation manner in which the first virtual machine obtains the IP address of the second virtual machine may be any manner known to those skilled in the art, and details are not described herein again.
在实际应用中,作为本地虚拟机的第一虚拟机若要与目的虚拟机实现 数据交互, 则需要获取作为目的虚拟机的第二虚拟机的 MAC地址。 同时, 本地虚拟机所在的物理设备需要获取目的虚拟机所在的物理设备的 I P地 址和 MAC地址。  In a practical application, if the first virtual machine that is the local virtual machine needs to perform data interaction with the destination virtual machine, the MAC address of the second virtual machine that is the destination virtual machine needs to be obtained. At the same time, the physical device where the local VM resides needs to obtain the IP address and MAC address of the physical device where the destination VM resides.
在本实施例中, 信息服务器接收到第一虚拟机发出的请求消息, 该请 求消息表示第一虚拟机需要与第二虚拟机进行数据交互,信息服务器可以 根据所述请求消息中包含的第二虚拟机的 I P地址在已获取的虚拟机的地 址信息中查找该第二虚拟机对应的 MAC地址、 第二虚拟机所在物理设备 的 IP地址和 MAC地址等地址信息, 并将查找到的第二虚拟机的 MAC地址、 第二虚拟机所在物理设备的 IP地址和 MAC地址等地址信息发送至第一虚 拟机, 以便第一虚拟机使用所述地址信息与第二虚拟机进行数据交互。In this embodiment, the information server receives the request message sent by the first virtual machine, where the request message indicates that the first virtual machine needs to perform data interaction with the second virtual machine, and the information server may be according to the second part included in the request message. The IP address of the virtual machine searches for the address information of the MAC address corresponding to the second virtual machine, the IP address and the MAC address of the physical device where the second virtual machine is located in the address information of the obtained virtual machine, and finds the second information. The address information of the MAC address of the virtual machine and the IP address and MAC address of the physical device where the second virtual machine resides is sent to the first virtual The machine is configured such that the first virtual machine uses the address information to perform data interaction with the second virtual machine.
103 , 通过所述第一虚拟机所在的物理设备向所述第一虚拟机反馈所 述第二虚拟机的地址信息。 103. The address information of the second virtual machine is fed back to the first virtual machine by using a physical device where the first virtual machine is located.
本发明实施例提供的传输网络信息的方法,能够通过在网络中设置专 门的服务器来记录网络中的虚拟机的地址信息,并在虚拟机运行过程中根 据虚拟机所发出的请求反馈所需的地址信息,从而在虚拟机的运行过程中 不必再使用现有技术采用的物理交换机及 PIM-DM技术, 避免了在支持更 大规模虚拟网络时为了增加物理交换机的 PIM-DM容量所需的成本, 从而 降低了构建大规模虚拟网络的成本, 扩大了虚拟网络技术的应用范围。  The method for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the required information according to the request sent by the virtual machine during the running of the virtual machine. Address information, so that the physical switch and PIM-DM technology adopted by the existing technology are no longer needed during the operation of the virtual machine, thereby avoiding the cost of increasing the PIM-DM capacity of the physical switch when supporting a larger virtual network. , thereby reducing the cost of building a large-scale virtual network and expanding the application range of virtual network technology.
如图 2a所示,为本发明实施例提供的另一种传输网络信息的方法的流 程图, 包括以下步骤:  As shown in FIG. 2a, another flow chart of a method for transmitting network information according to an embodiment of the present invention includes the following steps:
201 , 虚拟网络中的虚拟机启动后, 信息服务器获取虚拟机的 MAC地 址和 IP地址、所述虚拟机所在的物理设备的 MAC地址和 IP地址以及所述虚 拟机所在的虚拟网络的 VNI号。  201. After the virtual machine in the virtual network is started, the information server obtains a MAC address and an IP address of the virtual machine, a MAC address and an IP address of a physical device where the virtual machine is located, and a VNI number of the virtual network where the virtual machine is located.
其中, 虚拟机的 MAC地址和 IP地址是由虚拟机所在的物理设备通过 截获 DHCP服务器发送至虚拟机的 DHCP消息获取的, 所述 DHCP消息包括 虚拟机的 IP地址和 MAC地址。 进而, 虚拟机所在的物理设备将所述虚拟 机的 MAC地址和 IP地址、 虚拟机所在的物理设备的 MAC地址和 IP地址以 例中, DHCP消息的具体传输过程可以与现有技术中常用的 DHCP技术的 具体实施过程相同。  The MAC address and the IP address of the virtual machine are obtained by intercepting the DHCP message sent by the DHCP server to the virtual machine by the physical device where the virtual machine is located. The DHCP message includes the IP address and MAC address of the virtual machine. Further, the physical device where the virtual machine is located has the MAC address and IP address of the virtual machine, the MAC address and the IP address of the physical device where the virtual machine is located, and the specific transmission process of the DHCP message can be used in the prior art. The specific implementation process of DHCP technology is the same.
例如: 在实际应用中, 虚拟机是由具体的物理设备承载的, 由虚拟机 发出 /接收的数据需要通过物理设备进行传输。 如图 2b所示, 第一虚拟机 和第二虚拟机可以分别由不同的物理设备 7 载,在所述虚拟网络中的虚拟 机启动后,第一虚拟机和第二虚拟机都可以发起 DHCP流程,并接收 DHCP 服务器发送的 DHCP消息。 比如: 第二虚拟机启动后发起 DHCP流程, 物 理设备 2可以截获 DHCP服务器发送给第二虚拟机的 DHCP消息, 在所述 DHCP消息中包括 DHCP服务器分配给第二虚拟机的 IP地址和 MAC地址, 物理设备 2可以获取 DHCP消息中的 IP地址和 MAC地址, 并连同物理设备 2 的 IP地址和 MAC地址, 第二虚拟机所在的虚拟网络的 VNI号发送至信息服 务器。 通过相同的方式, 物理设备 1可以获取第一虚拟机的 IP地址和 MAC 地址, 并连同物理设备 1的 IP地址和 MAC地址, 第一虚拟机所在的虚拟网 络的 VNI号发送至信息服务器。 从而实现虚拟机在启动时向信息服务器上 报地址信息的过程,以使信息服务器能够获取并保存虚拟网络中所有启动 的虚拟机的地址信息。 For example, in a practical application, a virtual machine is carried by a specific physical device, and data sent/received by the virtual machine needs to be transmitted through the physical device. As shown in FIG. 2b, the first virtual machine and the second virtual machine may be respectively carried by different physical devices 7, and after the virtual machines in the virtual network are started, the first virtual machine and the second virtual machine may initiate DHCP. Process and receive DHCP messages sent by the DHCP server. For example, after the second virtual machine starts, a DHCP process is initiated, and the physical device 2 can intercept the DHCP message sent by the DHCP server to the second virtual machine, where The DHCP message includes an IP address and a MAC address assigned by the DHCP server to the second virtual machine, and the physical device 2 can obtain the IP address and the MAC address in the DHCP message, and together with the IP address and MAC address of the physical device 2, the second virtual machine The VNI number of the virtual network where it is located is sent to the information server. In the same manner, the physical device 1 can obtain the IP address and MAC address of the first virtual machine, and send the VNI number of the virtual network where the first virtual machine is located to the information server along with the IP address and MAC address of the physical device 1. Thereby, the process of reporting the address information to the information server by the virtual machine at startup is implemented, so that the information server can acquire and save the address information of all the started virtual machines in the virtual network.
202 , 所述第一虚拟机所在的物理设备接收所述第一虚拟机发送的 ARP请求, 从所述 ARP请求中提取所述第二虚拟机的 IP地址, 根据所述第 二虚拟机的 I P地址和所述第一虚拟机所在的虚拟网络的 V NI号生成所述 查询请求消息并将所述查询请求消息发送给所述信息服务器。  202. The physical device where the first virtual machine is located receives an ARP request sent by the first virtual machine, and extracts an IP address of the second virtual machine from the ARP request, according to the IP address of the second virtual machine. The address and the VNI number of the virtual network where the first virtual machine is located generate the query request message and send the query request message to the information server.
在本实施例中,作为本地虚拟机的第一虚拟机发出的请求消息可以是 ARP请求, 该 ARP请求中包含用于识别目的虚拟机 (本实施例中为了和作 为本地虚拟机的第一虚拟机相区别,可以称之为第二虚拟机)的信息(即, 第二虚拟机的 I P地址)。 所述查询请求消息由物理设备根据所述第一虚拟 机发送的 ARP请求生成, 并且所述查询请求消息包括了: 第二虚拟机的 IP 地址。 例如:  In this embodiment, the request message sent by the first virtual machine as the local virtual machine may be an ARP request, where the ARP request includes a virtual machine for identifying the destination (in this embodiment, the first virtual machine is used as the local virtual machine). The information of the machine can be referred to as the second virtual machine (ie, the IP address of the second virtual machine). The query request message is generated by the physical device according to the ARP request sent by the first virtual machine, and the query request message includes: an IP address of the second virtual machine. E.g:
在实际应用中, 第一虚拟机若要与第二虚拟机实现数据交互, 则需要 获取第二虚拟机的 MAC地址。 如图 2c所示, 第一虚拟机可以发出指向第 二虚拟机的 ARP请求, 在该 ARP请求中的指定字符段包括了第二虚拟机的 IP地址, 第一虚拟机所在的物理设备 1在截获第一虚拟机发送的 ARP请求 后, 可以从 ARP请求中提取出用于识别第二虚拟机的信息(即, 第二虚拟 机的 IP地址;), 并根据第一虚拟机所在的虚拟网络的 VNI号生成查询请求 消息, 再将查询请求消息发送至信息服务器。 需要说明的是: 只有同一虚 拟网络中不同的虚拟机之间才能进行数据交互, 因此, 能和第一虚拟机进 行数据交互的第二虚拟机,只能是和第一虚拟机处于同一个虚拟网络中的 虚拟机。 因此, 第二虚拟机所在的虚拟网络的 VNI号和第一虚拟机所在的 虚拟网络的 VNI号相同。 In a practical application, if the first virtual machine implements data interaction with the second virtual machine, the MAC address of the second virtual machine needs to be obtained. As shown in FIG. 2c, the first virtual machine may send an ARP request to the second virtual machine, where the specified character segment in the ARP request includes the IP address of the second virtual machine, and the physical device 1 where the first virtual machine is located is After intercepting the ARP request sent by the first virtual machine, the information for identifying the second virtual machine (that is, the IP address of the second virtual machine;) may be extracted from the ARP request, and according to the virtual network where the first virtual machine is located The VNI number generates a query request message, and then sends a query request message to the information server. It should be noted that: only the different virtual machines in the same virtual network can perform data interaction. Therefore, the second virtual machine that can interact with the first virtual machine can only be in the same virtual virtual machine as the first virtual machine. In the network virtual machine. Therefore, the VNI number of the virtual network where the second virtual machine is located is the same as the VNI number of the virtual network where the first virtual machine is located.
203 , 根据所述查询请求消息中的所述第二虚拟机的 IP地址和所述第 一虚拟机所在的虚拟网络的 VNI号,获取所述第二虚拟机的 MAC地址以及 所述第二虚拟机所在的物理设备的 IP地址和 MAC地址。  203. Obtain, according to the IP address of the second virtual machine in the query request message and the VNI number of the virtual network where the first virtual machine is located, the MAC address of the second virtual machine and the second virtual IP address and MAC address of the physical device where the machine is located.
具体的,信息服务器可以根据查询请求消息中包含的第二虚拟机的 I P 地址和第二虚拟机所在的虚拟网络的 VNI号, 从在 201中由各个虚拟机启 动时所上 4艮的地址信息中查询到对应的第二虚拟机的 MAC地址, 和所述 第二虚拟机所在的物理设备的 IP地址和 MAC地址。  Specifically, the information server may use the IP address of the second virtual machine included in the query request message and the VNI number of the virtual network where the second virtual machine is located, from the address information of each of the virtual machines in 201. The MAC address of the corresponding second virtual machine is queried, and the IP address and MAC address of the physical device where the second virtual machine is located.
204 , 将所述第二虚拟机的 MAC地址以及所述第二虚拟机所在的物理 设备的 IP地址和 MAC地址发送至所述第一虚拟机所在的物理设备, 第一 虚拟机所在的物理设备将第二虚拟机的 MAC地址发送至第一虚拟机。  204. Send the MAC address of the second virtual machine and the IP address and the MAC address of the physical device where the second virtual machine is located to the physical device where the first virtual machine is located, and the physical device where the first virtual machine is located. Sending the MAC address of the second virtual machine to the first virtual machine.
在本实施例中, 如图 2c所示, 信息服务器可以将第二虚拟机的 MAC 地址, 和所述第二虚拟机所在的物理设备的 IP地址和 MAC地址发送至物 理设备 1 , 再由物理设备 1将第二虚拟机的 MAC地址传输至第一虚拟机。  In this embodiment, as shown in FIG. 2c, the information server may send the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located to the physical device 1, and then physical The device 1 transmits the MAC address of the second virtual machine to the first virtual machine.
进一步的, 在本实施例中, 信息服务器通过执行 201-204后, 第一虚 拟机可以根据第二虚拟机的 IP地址、 MAC地址, 实现与第二虚拟机的数 据交互, 例如: 在图 2c的基础上, 如图 2d所示,  Further, in this embodiment, after the information server executes 201-204, the first virtual machine can implement data interaction with the second virtual machine according to the IP address and the MAC address of the second virtual machine, for example: FIG. 2c On the basis of, as shown in Figure 2d,
第一虚拟机向第二虚拟机发送通信报文,通信报文中包括了第二虚拟 机的 IP地址、 MAC地址;  The first virtual machine sends a communication packet to the second virtual machine, where the communication packet includes an IP address and a MAC address of the second virtual machine.
第一虚拟机所在的物理设备 1可以截获通信报文,并在通信报文中添 加第一虚拟机所属虚拟网络的 VNI 以及外层隧道封装。 其中, 外层隧道 封装中的外层源 IP地址和 MAC地址为物理设备 1的 IP地址和 MAC地 址, 外层目的 IP地址和 MAC地址为物理设备 2的 IP地址和 MAC地址, 其中物理设备 2的 IP地址和 MAC地址已在 204 中由信息服务器发送至 物理设备 1 ;  The physical device 1 where the first virtual machine is located can intercept the communication packet, and add the VNI of the virtual network to which the first virtual machine belongs and the outer tunnel encapsulation in the communication packet. The outer source IP address and MAC address of the outer tunnel encapsulation are the IP address and MAC address of the physical device 1, and the outer destination IP address and MAC address are the IP address and MAC address of the physical device 2, where the physical device 2 The IP address and MAC address have been sent to the physical device 1 by the information server in 204;
物理设备 1 将通信报文通过网络发送到第二虚拟机所在的物理设备 2; The physical device 1 sends the communication packet to the physical device where the second virtual machine is located through the network. 2;
第二虚拟机所在的物理设备 2在将第一虚拟机所在的物理设备 1发送 的通信报文解封装后, 再传输至第二虚拟机。  The physical device 2 where the second virtual machine is located decapsulates the communication packet sent by the physical device 1 where the first virtual machine is located, and then transmits the communication packet to the second virtual machine.
本发明实施例提供的传输网络信息的方法,能够通过在网络中设置专 门的服务器来记录网络中的虚拟机的地址信息,并在虚拟机运行过程中根 据虚拟机所发出的请求反馈所需的地址信息,从而在虚拟机的运行过程中 不必再使用现有技术中所采用的物理交换机及 PIM-DM技术, 避免了在支 持更大规模虚拟网络时为了增加物理交换机的 PIM-DM容量所需的成本, 从而降低了构建大规模虚拟网络的成本, 扩大了虚拟网络技术的应用范 围。 本发明实施例还提供一种传输网络信息的装置, 如图 3所示, 包括: 信息获取模块 31 , 用于获取虚拟网络中虚拟机的地址信息。  The method for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the required information according to the request sent by the virtual machine during the running of the virtual machine. Address information, so that the physical switch and PIM-DM technology used in the prior art are no longer needed during the operation of the virtual machine, thereby avoiding the need to increase the PIM-DM capacity of the physical switch when supporting a larger virtual network. The cost, which reduces the cost of building a large-scale virtual network, and expands the application range of virtual network technology. The embodiment of the present invention further provides an apparatus for transmitting network information, as shown in FIG. 3, including: an information acquiring module 31, configured to acquire address information of a virtual machine in a virtual network.
其中, 地址信息包括: 所述虚拟机的 IP地址和介质访问控制 MAC地 址、 所述虚拟机所在的物理设备的 IP地址和 MAC地址以及所述虚拟机所 在的虚拟网络的虚拟网络标识 VNI号。  The address information includes: an IP address of the virtual machine and a medium access control MAC address, an IP address and a MAC address of a physical device where the virtual machine is located, and a virtual network identifier VNI number of the virtual network where the virtual machine is located.
请求接收模块 32,用于接收第一虚拟机所在的物理设备根据所述第一 虚拟机的请求生成的查询请求消息,根据所述查询请求消息获取第二虚拟 机的地址信息。  The request receiving module 32 is configured to receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain address information of the second virtual machine according to the query request message.
其中, 查询请求消息包括所述第二虚拟机的 IP地址。  The query request message includes an IP address of the second virtual machine.
信息反馈模块 33 ,通过所述第一虚拟机所在的物理设备向所述第一虚 拟机反馈所述第二虚拟机的地址信息。  The information feedback module 33 feeds back the address information of the second virtual machine to the first virtual machine by using the physical device where the first virtual machine is located.
可选的, 所述信息获取模块 31 , 具体用于接收所述虚拟机所在的物理 设备发送的所述虚拟机的 IP地址和 MAC地址、 所述物理设备的 IP地址和  Optionally, the information acquiring module 31 is configured to receive an IP address and a MAC address of the virtual machine, an IP address of the physical device, and a physical device, where the virtual device is located.
虚拟机启动后, 通过截获动态主机配置协议 DHCP服务器发送给所述虚拟 机的 DHCP消息获取的, 所述 DHCP消息包括所述虚拟机的 IP地址和 MAC 地址。 After the virtual machine is started, it is sent to the virtual network by intercepting the dynamic host configuration protocol. Obtained by the DHCP message of the machine, the DHCP message includes an IP address and a MAC address of the virtual machine.
可选的,所述第一虚拟机的请求为所述第一虚拟机发送的地址解析协 议 ARP请求, 所述 ARP请求中包括所述第二虚拟机的 IP地址。  Optionally, the request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, where the ARP request includes an IP address of the second virtual machine.
可选的, 所述请求接收模块 32 , 具体用于接收所述第一虚拟机所在的 物理设备根据所述第一虚拟机发送的 ARP请求生成的所述查询请求消息, 所述查询请求消息包括所述第二虚拟机的 IP地址和所述第一虚拟机所在 的虚拟网络的 VNI号; 根据所述查询请求消息中的所述第二虚拟机的 IP地 址和所述第一虚拟机所在的虚拟网络的 VNI号, 获取所述第二虚拟机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址。  Optionally, the request receiving module 32 is configured to receive the query request message generated by the physical device where the first virtual machine is located according to the ARP request sent by the first virtual machine, where the query request message includes The IP address of the second virtual machine and the VNI number of the virtual network where the first virtual machine is located; according to the IP address of the second virtual machine in the query request message and the location of the first virtual machine The VNI number of the virtual network acquires the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located.
进一步可选的, 所述信息反馈模块 33 , 具体用于将所述第二虚拟机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址发送 至所述第一虚拟机所在的物理设备,以便所述第一虚拟机所在的物理设备 将所述第二虚拟机的 MAC地址发送至所述第一虚拟机。  Further, the information feedback module 33 is configured to send the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located to the first virtual machine. a physical device, such that the physical device where the first virtual machine is located sends the MAC address of the second virtual machine to the first virtual machine.
本发明实施例提供的传输网络信息的装置,能够通过在网络中设置专 门的服务器来记录网络中的虚拟机的地址信息,并在虚拟机运行过程中根 据虚拟机所发出的请求反馈所需的地址信息,从而在虚拟机的运行过程中 不必再使用现有技术中所采用的物理交换机及 PIM-DM技术, 避免了在支 持更大规模虚拟网络时为了增加物理交换机的 PIM-DM容量所需的成本, 从而降低了构建大规模虚拟网络的成本, 扩大了虚拟网络技术的应用范 围。 本发明实施例又提供一种传输网络信息的信息服务器, 如图 4所示, 包括: 处理器 41、 通信接口 42、 存储器 43、 总线 44 , 所述处理器 41、 所述 通信接口 42和所述存储器 43通过所述总线 44完成相互间的通信, 其中: 所述处理器 41 , 用于通过通信接口 42 , 获取虚拟网络中虚拟机的地址 信息并储存在所述存储器 43中, 所述地址信息包括: 所述虚拟机的 IP地址 和介质访问控制 MAC地址、 所述虚拟机所在的物理设备的 IP地址和 MAC 所述处理器 41 , 还用于通过所述通信接口 42 , 接收第一虚拟机所在的 物理设备根据所述第一虚拟机的请求生成的查询请求消息,根据所述查询 请求消息获取第二虚拟机的地址信息, 其中, 所述查询请求消息包括所述 第二虚拟机的 IP地址。 The device for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the required information according to the request sent by the virtual machine during the running of the virtual machine. Address information, so that the physical switch and PIM-DM technology used in the prior art are no longer needed during the operation of the virtual machine, thereby avoiding the need to increase the PIM-DM capacity of the physical switch when supporting a larger virtual network. The cost, which reduces the cost of building a large-scale virtual network, and expands the application range of virtual network technology. The embodiment of the present invention further provides an information server for transmitting network information, as shown in FIG. 4, including: a processor 41, a communication interface 42, a memory 43, a bus 44, the processor 41, the communication interface 42 and the The memory 43 completes communication with each other through the bus 44, wherein: the processor 41 is configured to acquire, by using the communication interface 42, address information of a virtual machine in the virtual network and store the information in the memory 43, the address The information includes: an IP address of the virtual machine And the medium access control MAC address, the IP address of the physical device where the virtual machine is located, and the MAC 41, the processor 41 is further configured to receive, by using the communication interface 42, the physical device where the first virtual machine is located according to the first The query request message generated by the request of the virtual machine obtains the address information of the second virtual machine according to the query request message, where the query request message includes an IP address of the second virtual machine.
所述处理器 41 , 还用于通过所述通信接口 42 , 通过所述第一虚拟机所 在的物理设备向所述第一虚拟机反馈所述第二虚拟机的地址信息。  The processor 41 is further configured to feed back, by the physical interface, the address information of the second virtual machine to the first virtual machine by using the communication interface 42.
可选的, 所述处理器 41 , 具体用于通过所述通信接口 42 , 接收所述虚  Optionally, the processor 41 is specifically configured to receive the virtual entity by using the communication interface 42
所述虚拟网络中的虚拟机启动后, 通过截获动态主机配置协议 DHCP服务 器发送给所述虚拟机的 DHCP消息获取的, 所述 DHCP消息包括所述虚拟 机的 IP地址和 MAC地址。 After the virtual machine in the virtual network is started, the DHCP message is obtained by intercepting a DHCP message sent by the dynamic host configuration protocol DHCP server to the virtual machine, and the DHCP message includes an IP address and a MAC address of the virtual machine.
进一步可选的, 所述处理器 41 , 具体用于通过所述通信接口 42 , 接收 所述第一虚拟机所在的物理设备根据所述第一虚拟机发送的 ARP请求生 成的所述查询请求消息,所述查询请求消息包括所述第二虚拟机的 I P地址 和所述第一虚拟机所在的虚拟网络的 V N I号; 根据所述查询请求消息中的 所述第二虚拟机的 I P地址和所述第一虚拟机所在的虚拟网络的 V NI号, 获 取储存在所述存储器中的所述第二虚拟机的 MAC地址以及所述第二虚拟 机所在的物理设备的 IP地址和 MAC地址。  Further, the processor 41 is configured to receive, by using the communication interface 42 , the query request message generated by the physical device where the first virtual machine is located according to the ARP request sent by the first virtual machine. The query request message includes an IP address of the second virtual machine and a VNI number of the virtual network where the first virtual machine is located; and an IP address and a location of the second virtual machine according to the query request message. The VNI number of the virtual network where the first virtual machine is located, the MAC address of the second virtual machine stored in the memory, and the IP address and MAC address of the physical device where the second virtual machine is located.
其中,所述第一虚拟机的请求为所述第一虚拟机发送的地址解析协议 ARP请求, 所述 ARP请求中包括所述第二虚拟机的 IP地址。  The request of the first virtual machine is an address resolution protocol ARP request sent by the first virtual machine, and the ARP request includes an IP address of the second virtual machine.
再进一步可选的, 所述处理器 41 , 具体用于通过所述通信接口 42 , 将 所述第二虚拟机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地 址和 MAC地址发送至所述第一虚拟机所在的物理设备, 以便所述第一虚 拟机所在的物理设备将所述第二虚拟机的 MAC地址发送至所述第一虚拟 机。 Further, the processor 41 is specifically configured to send, by using the communication interface 42, the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located. Go to the physical device where the first virtual machine is located, so that the first virtual The physical device where the virtual machine is located sends the MAC address of the second virtual machine to the first virtual machine.
本发明实施例提供的传输网络信息的信息服务器,能够通过在网络中 设置专门的服务器来记录网络中的虚拟机的地址信息,并在虚拟机运行过 程中根据虚拟机所发出的请求反馈所需的地址信息,从而在虚拟机的运行 有技术相比, 由于本发明实施例提供了除了物理交换机及 PIM-DM技术以 外的支持虚拟机的运行的方案,避免了在支持更大规模虚拟网络时为了增 加物理交换机的 PIM-DM容量所需的成本, 从而降低了构建大规模虚拟网 络的成本, 扩大了虚拟网络技术的应用范围。  The information server for transmitting network information provided by the embodiment of the present invention can record the address information of the virtual machine in the network by setting a special server in the network, and feedback the request according to the request sent by the virtual machine during the running of the virtual machine. Compared with the technology of the virtual machine, the embodiment of the present invention provides a solution for supporting the operation of the virtual machine in addition to the physical switch and the PIM-DM technology, thereby avoiding supporting a larger virtual network. In order to increase the cost of the physical switch's PIM-DM capacity, the cost of building a large-scale virtual network is reduced, and the application range of the virtual network technology is expanded.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相 同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的 不同之处。 尤其, 对于设备实施例而言, 由于其基本相似于方法实施例, 所以描述得比较筒单, 相关之处参见方法实施例的部分说明即可。  The various embodiments in the specification are described in a progressive manner, and similar parts of the various embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, it is described in a relatively simple manner, and the relevant parts can be referred to the description of the method embodiment.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分 流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存 储于一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法 的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆 体 ( Read-On l y Memo r y , ROM )或随机存储记忆体 ( Random Ac ce s s Memo r y , RAM ) 等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (Random Acs s Memo r y , RAM).
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发 明的保护范围应该以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope of the present invention is All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 claims
1、 一种传输网络信息的方法, 其特征在于, 包括: 1. A method of transmitting network information, characterized by including:
信息服务器获取虚拟网络中虚拟机的地址信息, 所述地址信息包括: 所述虚拟机的 IP地址和介质访问控制 MAC地址、 所述虚拟机所在的物理设 备的 IP地址和] 杯 t只 The information server obtains the address information of the virtual machine in the virtual network. The address information includes: the IP address and media access control MAC address of the virtual machine, the IP address and the IP address of the physical device where the virtual machine is located.
VNI号; VNI number;
接收第一虚拟机所在的物理设备根据所述第一虚拟机的请求生成的查 询请求消息, 根据所述查询请求消息获取第二虚拟机的地址信息, 其中, 所述查询请求消息包括所述第二虚拟机的 I P地址; Receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain the address information of the second virtual machine according to the query request message, wherein the query request message includes the third virtual machine. 2. The IP address of the virtual machine;
通过所述第一虚拟机所在的物理设备向所述第一虚拟机反馈所述第二 虚拟机的地址信息 Feed back the address information of the second virtual machine to the first virtual machine through the physical device where the first virtual machine is located.
2、 根据权利要求 1所述的传输网络信息的方法, 其特征在于, 所述信 息服务器获取虚拟网络中虚拟机的地址信息, 2. The method of transmitting network information according to claim 1, characterized in that the information server obtains the address information of the virtual machine in the virtual network,
f口 MAC地址, 并 将获取的所述虚拟机的 IP地址和 MAC地址、 所述物理设备的 IP地址和 MAC f port MAC address, and obtain the IP address and MAC address of the virtual machine, and the IP address and MAC address of the physical device
3、 根据权利要求 2所述的传输网络信息的方法, 其特征在于, 所述虚 拟机所在的物理设备获取所述虚拟机的 IP地址和 MAC地址, 包括: 3. The method of transmitting network information according to claim 2, characterized in that the physical device where the virtual machine is located obtains the IP address and MAC address of the virtual machine, including:
所述虚拟网络中的虚拟机启动后, 所述虚拟机所在的物理设备截获动 态主机配置协议 DHCP服务器发送给所述虚拟机的 DHCP消息, 所述 DHCP 消息包括所述虚拟机的 IP地址和 MAC地址; After the virtual machine in the virtual network is started, the physical device where the virtual machine is located intercepts the movement. A DHCP message sent by the Dynamic Host Configuration Protocol DHCP server to the virtual machine, where the DHCP message includes the IP address and MAC address of the virtual machine;
所述虚拟机所在的物理设备从所述 DHCP消息中获取所述虚拟机的 IP 地址和 MAC地址。 The physical device where the virtual machine is located obtains the IP address and MAC address of the virtual machine from the DHCP message.
4、 根据权利要求 1所述的传输网络信息的方法, 其特征在于, 所述第 一虚拟机的请求为所述第一虚拟机发送的地址解析协议 ARP请求, 所述 ARP请求中包括所述第二虚拟机的 IP地址。 4. The method of transmitting network information according to claim 1, wherein the request of the first virtual machine is an Address Resolution Protocol ARP request sent by the first virtual machine, and the ARP request includes the The IP address of the second virtual machine.
5、 根据权利要求 4所述的传输网络信息的方法, 其特征在于, 所述接 收第一虚拟机所在的物理设备根据所述第一虚拟机的请求生成的查询请求 消息, 根据所述查询请求消息获取第二虚拟机的地址信息, 包括: 5. The method of transmitting network information according to claim 4, characterized in that: receiving a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, according to the query request The message obtains the address information of the second virtual machine, including:
所述第一虚拟机所在的物理设备接收所述第一虚拟机发送的 ARP请 求, 从所述 ARP请求中提取所述第二虚拟机的 IP地址, 根据所述第二虚拟 机的 I P地址和所述第一虚拟机所在的虚拟网络的 VN I号生成所述查询请求 消息并将所述查询请求消息发送给所述信息服务器; The physical device where the first virtual machine is located receives the ARP request sent by the first virtual machine, extracts the IP address of the second virtual machine from the ARP request, and extracts the IP address of the second virtual machine according to the IP address and The VN I number of the virtual network where the first virtual machine is located generates the query request message and sends the query request message to the information server;
所述信息服务器根据所述查询请求消息中的所述第二虚拟机的 IP地址 和所述第一虚拟机所在的虚拟网络的 VNI号, 获取所述第二虚拟机的 MAC 地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址。 The information server obtains the MAC address of the second virtual machine and the first virtual machine based on the IP address of the second virtual machine and the VNI number of the virtual network where the first virtual machine is located in the query request message. 2. The IP address and MAC address of the physical device where the virtual machine is located.
6、根据权利要求 1至 5任一项所述的传输网络信息的方法,其特征在于, 所述通过所述第一虚拟机所在的物理设备向所述第一虚拟机反馈所述第二 虚拟机的地址信息, 包括: 6. The method for transmitting network information according to any one of claims 1 to 5, characterized in that: the physical device where the first virtual machine is located feeds back the second information to the first virtual machine. Address information of the virtual machine, including:
将所述第二虚拟机的 M A C地址以及所述第二虚拟机所在的物理设备 的 I P地址和 M A C地址发送至所述第一虚拟机所在的物理设备, 以便所述第 一虚拟机所在的物理设备将所述第二虚拟机的 MAC地址发送至所述第一 虚拟机。 Send the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located to the physical device where the first virtual machine is located, so that the physical device where the first virtual machine is located The device sends the MAC address of the second virtual machine to the first virtual machine.
7、 一种传输网络信息的装置, 其特征在于, 包括: 7. A device for transmitting network information, characterized by including:
信息获取模块, 用于获取虚拟网络中虚拟机的地址信息, 所述地址信 息包括: 所述虚拟机的 IP地址和介质访问控制 MAC地址、 所述虚拟机所在 络标识 VNI号; The information acquisition module is used to obtain the address information of the virtual machine in the virtual network. The address information includes: the IP address and media access control MAC address of the virtual machine, and the network identification VNI number where the virtual machine is located;
请求接收模块, 用于接收第一虚拟机所在的物理设备根据所述第一虚 拟机的请求生成的查询请求消息, 根据所述查询请求消息获取第二虚拟机 的地址信息, 其中, 所述查询请求消息包括所述第二虚拟机的 IP地址; 信息反馈模块, 用于通过所述第一虚拟机所在的物理设备向所述第一 虚拟机反馈所述第二虚拟机的地址信息。 A request receiving module, configured to receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain the address information of the second virtual machine according to the query request message, wherein, the query The request message includes the IP address of the second virtual machine; an information feedback module, configured to feed back the address information of the second virtual machine to the first virtual machine through the physical device where the first virtual machine is located.
8、 根据权利要求 7所述的传输网络信息的装置, 其特征在于, 所述信 的 IP地址和 MAC地址、 所述物理设备的 IP地址和 MAC地址以及所述虚拟机 所在的虚拟网络的 VNI号, 其中, 所述虚拟机的 IP地址和 MAC地址是由所 态主机配置协议 DHCP服务器发送给所述虚拟机的 DHCP消息获取的, 所述 DHCP消息包括所述虚拟机的 IP地址和 MAC地址。 8. The device for transmitting network information according to claim 7, characterized in that: the IP address and MAC address of the letter, the IP address and MAC address of the physical device, and the VNI of the virtual network where the virtual machine is located No., where the IP address and MAC address of the virtual machine are determined by The virtual host configuration protocol DHCP server sends a DHCP message to the virtual machine. The DHCP message includes the IP address and MAC address of the virtual machine.
9、 根据权利要求 7所述的传输网络信息的装置, 其特征在于, 所述第 一虚拟机的请求为所述第一虚拟机发送的地址解析协议 ARP请求, 所述 ARP请求中包括所述第二虚拟机的 IP地址。 9. The device for transmitting network information according to claim 7, wherein the request of the first virtual machine is an Address Resolution Protocol ARP request sent by the first virtual machine, and the ARP request includes the The IP address of the second virtual machine.
10、 根据权利要求 9所述的传输网络信息的装置, 其特征在于, 所述请 求接收模块, 具体用于接收所述第一虚拟机所在的物理设备根据所述第一 虚拟机发送的 ARP请求生成的所述查询请求消息, 所述查询请求消息包括 所述第二虚拟机的 IP地址和所述第一虚拟机所在的虚拟网络的 VNI号;根据 所述查询请求消息中的所述第二虚拟机的 IP地址和所述第一虚拟机所在的 虚拟网络的 VNI号, 获取所述第二虚拟机的 MAC地址以及所述第二虚拟机 所在的物理设备的 IP地址和 MAC地址。 10. The device for transmitting network information according to claim 9, characterized in that the request receiving module is specifically configured to receive an ARP request sent by the physical device where the first virtual machine is located according to the first virtual machine. The generated query request message includes the IP address of the second virtual machine and the VNI number of the virtual network where the first virtual machine is located; according to the second parameter in the query request message, The IP address of the virtual machine and the VNI number of the virtual network where the first virtual machine is located, and the MAC address of the second virtual machine and the IP address and MAC address of the physical device where the second virtual machine is located are obtained.
11、 根据权利要求 7至 10任一项所述的传输网络信息的装置, 其特征在 于, 所述信息反馈模块, 具体用于将所述第二虚拟机的 MAC地址以及所述 第二虚拟机所在的物理设备的 IP地址和 MAC地址发送至所述第一虚拟机所 在的物理设备, 以便所述第一虚拟机所在的物理设备将所述第二虚拟机的 MAC地址发送至所述第一虚拟机。 11. The device for transmitting network information according to any one of claims 7 to 10, characterized in that the information feedback module is specifically configured to combine the MAC address of the second virtual machine and the second virtual machine The IP address and MAC address of the physical device where the first virtual machine is located are sent to the physical device where the first virtual machine is located, so that the physical device where the first virtual machine is located sends the MAC address of the second virtual machine to the first virtual machine. virtual machine.
12、 一种传输网络信息的信息服务器, 其特征在于, 包括: 处理器、 通信接口、 存储器、 总线, 所述处理器、 所述通信接口和所述存储器通过 所述总线完成相互间的通信, 其中, 所述处理器用于: 12. An information server for transmitting network information, characterized by including: a processor, Communication interface, memory, and bus. The processor, the communication interface, and the memory complete communication with each other through the bus, wherein the processor is used for:
通过所述通信接口, 获取虚拟网络中虚拟机的地址信息并储存在所述 存储器中, 所述地址信息包括: 所述虚拟机的 IP地址和介质访问控制 MAC 地址、 所述虚拟机所在的物理设备的 IP地址和 MAC地址以及所述虚拟机所 在的虚拟网络的虚拟网络标识 VNI号; Through the communication interface, the address information of the virtual machine in the virtual network is obtained and stored in the memory. The address information includes: the IP address and media access control MAC address of the virtual machine, the physical location where the virtual machine is located. The IP address and MAC address of the device and the virtual network identification VNI number of the virtual network where the virtual machine is located;
通过所述通信接口, 接收第一虚拟机所在的物理设备根据所述第一虚 拟机的请求生成的查询请求消息, 根据所述查询请求消息获取第二虚拟机 的地址信息, 其中, 所述查询请求消息包括所述第二虚拟机的 IP地址; 通过所述通信接口, 通过所述第一虚拟机所在的物理设备向所述第一 虚拟机反馈所述第二虚拟机的地址信息。 Through the communication interface, receive a query request message generated by the physical device where the first virtual machine is located according to the request of the first virtual machine, and obtain the address information of the second virtual machine according to the query request message, wherein, the query The request message includes the IP address of the second virtual machine; and through the communication interface, the address information of the second virtual machine is fed back to the first virtual machine through the physical device where the first virtual machine is located.
13、 根据权利要求 12所述的传输网络信息的信息服务器, 其特征在于, 所述处理器, 具体用于通过所述通信接口, 接收所述虚拟机所在的物理设 备发送的所述虚拟机的 IP地址和 MAC地址、 所述物理设备的 IP地址和 MAC 13. The information server for transmitting network information according to claim 12, characterized in that the processor is specifically configured to receive, through the communication interface, the information of the virtual machine sent by the physical device where the virtual machine is located. IP address and MAC address, IP address and MAC of the physical device
启动后, 通过截获动态主机配置协议 DHCP服务器发送给所述虚拟机的 DHCP消息获取的, 所述 DHCP消息包括所述虚拟机的 IP地址和 MAC地址。 After startup, it is obtained by intercepting the DHCP message sent by the Dynamic Host Configuration Protocol DHCP server to the virtual machine. The DHCP message includes the IP address and MAC address of the virtual machine.
14、 根据权利要求 12所述的传输网络信息的信息服务器, 其特征在于, 所述第一虚拟机的请求为所述第一虚拟机发送的地址解析协议 ARP请求, 所述 ARP请求中包括所述第二虚拟机的 IP地址。 14. The information server for transmitting network information according to claim 12, wherein the request of the first virtual machine is an Address Resolution Protocol ARP request sent by the first virtual machine, and the ARP request includes the The IP address of the second virtual machine.
15、根据权利要求 14所述的传输网络信息的信息服务器,其特征在于, 所述处理器, 具体用于通过所述通信接口, 接收所述第一虚拟机所在的物 理设备根据所述第一虚拟机发送的 ARP请求生成的所述查询请求消息, 所 述查询请求消息包括所述第二虚拟机的 IP地址和所述第一虚拟机所在的虚 拟网络的 VNI号;根据所述查询请求消息中的所述第二虚拟机的 IP地址和所 述第一虚拟机所在的虚拟网络的 V N I号, 获取储存在所述存储器中的所述 第二虚拟机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址。 15. The information server for transmitting network information according to claim 14, characterized in that: the processor is specifically configured to receive, through the communication interface, the physical device where the first virtual machine is located according to the first The query request message generated by the ARP request sent by the virtual machine, the query request message includes the IP address of the second virtual machine and the VNI number of the virtual network where the first virtual machine is located; according to the query request message The IP address of the second virtual machine and the VNI number of the virtual network where the first virtual machine is located in, obtain the MAC address of the second virtual machine and the second virtual machine stored in the memory The IP address and MAC address of the physical device where it is located.
16、 根据权利要求 12至 15任一项所述的传输网络信息的信息服务器, 其特征在于, 所述处理器, 具体用于通过所述通信接口, 将所述第二虚拟 机的 MAC地址以及所述第二虚拟机所在的物理设备的 IP地址和 MAC地址 发送至所述第一虚拟机所在的物理设备, 以便所述第一虚拟机所在的物理 设备将所述第二虚拟机的 MAC地址发送至所述第一虚拟机。 16. The information server for transmitting network information according to any one of claims 12 to 15, characterized in that the processor is specifically configured to use the communication interface to obtain the MAC address of the second virtual machine and the The IP address and MAC address of the physical device where the second virtual machine is located are sent to the physical device where the first virtual machine is located, so that the physical device where the first virtual machine is located sends the MAC address of the second virtual machine Sent to the first virtual machine.
PCT/CN2012/087923 2012-12-28 2012-12-28 Method and apparatus for transmitting network information WO2014101145A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280005724.4A CN103503413B (en) 2012-12-28 2012-12-28 Method and device for transmitting network information
PCT/CN2012/087923 WO2014101145A1 (en) 2012-12-28 2012-12-28 Method and apparatus for transmitting network information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087923 WO2014101145A1 (en) 2012-12-28 2012-12-28 Method and apparatus for transmitting network information

Publications (1)

Publication Number Publication Date
WO2014101145A1 true WO2014101145A1 (en) 2014-07-03

Family

ID=49866756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087923 WO2014101145A1 (en) 2012-12-28 2012-12-28 Method and apparatus for transmitting network information

Country Status (2)

Country Link
CN (1) CN103503413B (en)
WO (1) WO2014101145A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104747B (en) * 2014-07-28 2017-08-08 新华三技术有限公司 Message transmitting method and device
CN104243318B (en) 2014-09-29 2018-10-09 新华三技术有限公司 MAC address learning method and device in VXLAN networks
CN104935516B (en) * 2015-06-17 2018-05-11 武汉邮电科学研究院 Communication system and method based on software defined network
CN106888198B (en) * 2015-12-16 2019-08-20 华为技术有限公司 A kind of configuration method of Packet Filtering rule, apparatus and system
CN106230727B (en) * 2016-07-20 2019-09-17 新华三技术有限公司 Message forwarding method and device
CN109040160A (en) * 2017-06-12 2018-12-18 中兴通讯股份有限公司 Sign acquiring method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459618A (en) * 2009-01-06 2009-06-17 北京航空航天大学 Data packet forwarding method and device for virtual machine network
CN101605084A (en) * 2009-06-29 2009-12-16 北京航空航天大学 Virtual network message processing method and system based on virtual machine
US20100180014A1 (en) * 2009-01-14 2010-07-15 International Business Machines Corporation Providing network identity for virtual machines
CN102136931A (en) * 2010-09-20 2011-07-27 华为技术有限公司 Method for configuring virtual port network strategies, network management center and related equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594358B (en) * 2009-06-29 2012-09-05 北京航空航天大学 Method, device, system and host for three-layer switching
US8532108B2 (en) * 2009-09-30 2013-09-10 Alcatel Lucent Layer 2 seamless site extension of enterprises in cloud computing
CN102457583B (en) * 2010-10-19 2014-09-10 中兴通讯股份有限公司 Realization method of mobility of virtual machine and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459618A (en) * 2009-01-06 2009-06-17 北京航空航天大学 Data packet forwarding method and device for virtual machine network
US20100180014A1 (en) * 2009-01-14 2010-07-15 International Business Machines Corporation Providing network identity for virtual machines
CN101605084A (en) * 2009-06-29 2009-12-16 北京航空航天大学 Virtual network message processing method and system based on virtual machine
CN102136931A (en) * 2010-09-20 2011-07-27 华为技术有限公司 Method for configuring virtual port network strategies, network management center and related equipment

Also Published As

Publication number Publication date
CN103503413B (en) 2017-02-22
CN103503413A (en) 2014-01-08

Similar Documents

Publication Publication Date Title
CN107070691B (en) Cross-host communication method and system of Docker container
US9525648B2 (en) Method for acquiring physical address of virtual machine
WO2015081734A1 (en) Sending method for sending arp packet in vxlan, vtep, and vxlan controller
EP2562973B1 (en) Virtual machine migration method, switch, virtual machine system
CN103095546B (en) A kind of method, device and data center network processing message
WO2018040530A1 (en) Method and apparatus for determining virtual machine migration
EP3070887B1 (en) Communication method, device and system for virtual extensible local area network
WO2014101145A1 (en) Method and apparatus for transmitting network information
US10572291B2 (en) Virtual network management
EP2731010A1 (en) Method, device, and system for migrating configuration information during live migration of virtual machine
US20130107889A1 (en) Distributed Address Resolution Service for Virtualized Networks
EP3125504B1 (en) Resource allocation method, packet communication method and device
JP2019527988A (en) Packet transmission
CN102394831A (en) Flow uninterruptible method and device based on virtual machine VM (virtual memory) migration
CN109981493B (en) Method and device for configuring virtual machine network
WO2014169870A1 (en) Virtual network element automatic loading and virtual machine ip address acquisition method and system, and storage medium
CN102316043B (en) Port virtualization method, switch and communication system
EP3905598A1 (en) Message processing method and apparatus, control plane device, and computer storage medium
JP6928076B2 (en) Packet monitoring
WO2014089799A1 (en) Method and apparatus for determining virtual machine drifting
CN102316001A (en) Virtual network connection configuration realizing method and network equipment
CN104040964A (en) Method, device and data center network for cross-service zone communication
CN110063045B (en) Message processing method and device in cloud computing system
EP2584742A1 (en) Method and switch for sending packet
CN111404628B (en) Time synchronization method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12890844

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12890844

Country of ref document: EP

Kind code of ref document: A1