WO2015081534A1 - Data packet transmission system, transmission method and device thereof - Google Patents

Data packet transmission system, transmission method and device thereof Download PDF

Info

Publication number
WO2015081534A1
WO2015081534A1 PCT/CN2013/088652 CN2013088652W WO2015081534A1 WO 2015081534 A1 WO2015081534 A1 WO 2015081534A1 CN 2013088652 W CN2013088652 W CN 2013088652W WO 2015081534 A1 WO2015081534 A1 WO 2015081534A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
interface
physical port
information
elastic interface
Prior art date
Application number
PCT/CN2013/088652
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 PCT/CN2013/088652 priority Critical patent/WO2015081534A1/en
Priority to CN201380002395.2A priority patent/CN105264837B/en
Publication of WO2015081534A1 publication Critical patent/WO2015081534A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of communications, and in particular, to a data message transmission system, a transmission method, and a device. Background technique
  • Virtualization technology refers to the creation of multiple virtual machines (VMs) on a physical host.
  • the physical hosts can also be called hosts.
  • Each virtual machine is assigned a resource such as a hard disk, a memory, a central processing unit (CPU), and a technology for installing an operating system (OS) for each virtual machine.
  • OS operating system
  • Different virtual machines can be installed with different operating systems.
  • virtual machines can have separate resources and operating systems, different virtual machines can be independent of each other.
  • the created virtual machine is available to the user.
  • the user who rents the virtual machine can be called a tenant, and one tenant can rent one or more virtual machines.
  • CT communication technology
  • IT information industry
  • RNC Radio Network Controller
  • MME Mobility Management Entity
  • SGW Serving Gateway
  • the main function of the virtual machine in the traditional IT industry is to access the Internet. Therefore, its networking requirements are relatively low.
  • the virtual machine accesses the virtual network provided by the virtual facility layer in the virtual infrastructure, it accesses the Internet. There are two ways to network the machine:
  • each virtual machine is assigned an Internet.
  • the IP addresses are 30.0.0.2 ⁇ 30.0.0.5 respectively.
  • the physical routers of the external network provided by the virtual facility layer are assigned IP addresses of the same network segment, where 30.0.0.1 is allocated.
  • the virtual machine accesses the interconnection. The process of the net is:
  • the virtual machine accesses the virtual switch (vSwitch) through the virtual network card (vNIC); then, configures the default route for the virtual machine, and uses the physical router as the gateway, and the virtual machine accesses the IP address of the public network allocated for itself. a physical router with the IP address of the same network segment;
  • each virtual machine is assigned an Internet.
  • the IP addresses are 30.0.0.2 ⁇ 30.0.0.5, and each virtual machine is assigned a LAN IP address of 10.0.0.2 ⁇ 10.0.0.5, and the external network provided for the virtual facility layer (External Network)
  • the physical router assigns the Internet IP address of the same network segment, that is, 30.0.0.1, and assigns the internal network IP address of the same network segment to the internal network router (Router) or network address translator (NAT). That is 10.0.0.1.
  • the process of virtual machine access to the Internet is:
  • the virtual machine accesses the virtual switch (vSwitch) through the virtual network card (vNIC); then, configures the default route for the virtual machine, and connects the router in the internal network as a virtual machine to the gateway of the internal network, and the virtual machine passes the local area network.
  • the IP address accesses the router in the internal network; the physical router in the external network acts as a gateway for the virtual machine to access the Internet, and the virtual machine accesses the physical router in the external network through the IP address of the Internet;
  • the virtual machine uses the router in the internal network as the gateway, accesses the internal network through the IP address of the local area network, and uses the physical router in the external network as the gateway to access the Internet through the IP address of the Internet.
  • the internal network involved in the first mode and the second mode refers to a network that enables devices in the virtual architecture to communicate internally in the virtual architecture, such as a network that connects virtual machines, virtual network cards, virtual switches, etc.; It refers to a network that connects virtual machines to the Internet.
  • the communication network element When the communication network element is applied to the virtualization technology, the same networking mode as that of FIG. 1 or FIG. 2 can be used, but the virtual machine ultimately accesses not the Internet but an external physical device such as a base station.
  • the virtual switch in the external network forwards the data packet according to the destination MAC address included in the data packet.
  • the physical router and the router in the internal network are routed and forwarded according to the IP address.
  • the final data packet is sent to the virtual machine corresponding to the destination MAC address or IP address. That is, the virtual machine can only receive such data packets.
  • the destination MAC address or IP address is the data packet of the MAC address or IP address of the VM.
  • the data packets received by the VM are limited. For example, the data packets related to the link layer cannot be received. Therefore, the functionality of the virtual machine cannot be used efficiently. Summary of the invention
  • the embodiments of the present invention provide a data packet transmission system, a transmission method, and a device, which are used to solve the problem that the virtual machine receives limited data packets in the prior art, and the virtual machine function cannot be effectively used.
  • the first aspect provides a data packet transmission system, where the system includes: a general processing device and an interface device, where the at least one virtual machine is created in the universal processing device, and the interface device has at least one physical port The physical port is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine;
  • the interface device is configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, to transmit the first datagram, when the first physical port is configured to receive the first data packet sent by the external physical device.
  • the first virtual elastic interface of the text and determining, according to the correspondence between the first virtual elastic interface and the virtual machine, information of the first virtual machine that receives the first data, and the determined
  • the information of a virtual machine is carried in the first packet header information, and the first packet header information is encapsulated in the first data packet, and then sent to the universal processing by using the determined first virtual elastic interface.
  • the general processing device is configured to: when receiving the first data packet, determine, according to the encapsulated first packet header information, the first virtual machine that receives the first data packet, and remove the The first data packet of the first packet header information is sent to the first virtual machine.
  • the general processing device is further configured to determine a second virtual elastic interface corresponding to the second virtual machine that sends the second data packet, and according to the physical port and the Determining the relationship between the second virtual elastic interface, determining the information of the second physical port occupied by the second virtual elastic interface, and carrying the determined information of the second physical port in the second packet header And the information is sent to the interface device by using the determined second virtual elastic interface after the second data packet is encapsulated in the second data packet;
  • the interface device is further configured to: when the second data packet is received, remove the second packet header information according to the information of the second physical port carried in the encapsulated second packet header information The second data packet is sent to the external physical device through the second physical port.
  • the interface device is specifically configured to: if the first physical port is monopolized by a virtual elastic interface, Determining that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, and if the first physical port is multiplexed by more than one virtual elastic interface, according to the received first data packet
  • the virtual elastic interface corresponding to the slice resource information is a first virtual elastic interface for transmitting the first data packet.
  • the interface device is specifically used as a transmission station When the first virtual elastic interface of the first data packet has a corresponding relationship with the plurality of virtual machines, determining, by the load balancing condition, one virtual machine from the plurality of virtual machines is the first virtual machine.
  • the interface device is specifically configured to: determine the media link control of the first virtual machine that is determined
  • the MAC address is used as the destination MAC address, and the information of the physical port occupied by the first virtual elastic interface, which is the source MAC address and the first MAC address, is carried in the first packet header information;
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
  • the general processing device is specifically configured to: when the second virtual elastic interface monopolizes the second physical port, The port number of the physical port is carried in the second packet header as the information of the physical port, or
  • the port number of the second physical port and the slice resource information corresponding to the second virtual elastic interface are carried as the information of the physical port in the second packet.
  • the header information In the header information.
  • the general processing device is specifically configured to be used by the interface device
  • the MAC address is carried in the second packet header information as the destination MAC address and the MAC address of the second virtual machine as the source MAC address.
  • the system further includes:
  • the management device is configured to create a virtual elastic interface according to the creation information in the application when the application for creating the virtual elastic interface is received, and the information about the physical port occupied by the virtual elastic interface and the corresponding relationship with the virtual machine are created.
  • the information is sent to the interface device and the general-purpose processing device.
  • the creation information includes: bandwidth occupied by the virtual elastic interface to be created, information of the corresponding virtual machine, and information of the occupied physical port.
  • the second aspect provides a data packet transmission system, where the system includes: an interface device and a general-purpose processing device, where the at least one virtual machine is created in the general-purpose processing device, and the interface device has at least one physical port The physical port is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine;
  • the general processing device is configured to determine a virtual elastic interface corresponding to the virtual machine that sends the second data packet, and determine, according to the occupation relationship between the physical port and the virtual elastic interface, the virtual machine that sends the second data packet.
  • the information of the physical port occupied by the corresponding virtual elastic interface, and the information of the determined physical port is carried in the second packet header information, and the second packet header information is encapsulated in the second data packet. Sending to the interface device by using the determined virtual elastic interface;
  • the interface device is further configured to: when receiving the second data packet, remove the second data of the second packet header information according to the physical port information carried in the encapsulated second packet header information The text is sent to the external physical device through the corresponding physical port.
  • the third aspect provides an interface device, where the interface device has at least one physical port, where: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and the general processing device At least one virtual machine created has a corresponding relationship;
  • the interface device includes a first receiving module, a virtual elastic interface determining module connected to the first receiving module, a virtual machine determining module and a first sending module respectively connected to the virtual elastic interface determining module, and the The virtual machine determines the encapsulation module to which the module is connected, where:
  • the first receiving module is configured to receive, by using the first physical port, a first data packet sent by an external physical device;
  • the virtual elastic interface determining module is configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet;
  • the virtual machine determining module is configured to determine information about a first virtual machine corresponding to the first virtual elastic interface according to the corresponding relationship between the first virtual elastic interface and the virtual machine;
  • the encapsulating module is configured to encapsulate the first packet header information in the first data packet, where the first packet header information carries information about the first virtual machine determined by the virtual machine determining module;
  • the first sending module is configured to send, by using the first virtual elastic interface determined by the virtual elastic interface determining module, the first data packet that encapsulates the first packet header information by the encapsulating module.
  • the interface device further includes a second a receiving module, a decapsulation module connected to the second receiving module, a physical port determining module and a second sending module respectively connected to the decapsulating module, wherein:
  • the second receiving module is configured to receive the second data packet by using the second virtual elastic interface, where the second data packet is encapsulated with the second packet header information, where the second packet header information carries the first Two physical port information;
  • Decapsulating module configured to decapsulate the second packet header information in the second data packet received by the second receiving module, to obtain the second packet header information, and remove the second packet header information The second data packet of the message header information;
  • the physical port nitration module is configured to determine, according to information about the second physical port carried in the second packet header information obtained by decapsulation of the decapsulation module, to transmit the second data packet Physical port
  • the virtual elastic interface determining module is specifically configured to: if the first physical port is a virtual elastic interface If the first physical port is multiplexed by more than one virtual elastic interface, the first physical port is determined to be the first virtual elastic interface.
  • the virtual elastic interface corresponding to the slice resource information is a first virtual elastic interface for transmitting the first data packet.
  • the virtual machine determining module is specifically used to be When the first virtual elastic interface that transmits the first data packet has a corresponding relationship with multiple virtual machines, one virtual machine is determined from the plurality of virtual machines as the first virtual machine according to a load balancing condition.
  • the encapsulating module is specifically configured to use the determined MAC address of the first virtual machine as a destination MAC address, use its own MAC address as a source MAC address, and transmit a first virtual data packet.
  • the information of the physical port occupied by the elastic interface is carried in the first packet header information.
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port;
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
  • the fourth aspect provides an interface device, where the interface device has at least one physical port, where: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and the general processing device At least one virtual machine created has a corresponding relationship;
  • the interface device includes a transceiver and a processor, wherein:
  • the transceiver is configured to receive, by using a first physical port, a first data packet sent by an external physical device, and, according to the first virtual elastic interface determined by the processor, encapsulating the first packet header information by the processor Sending a data packet through the first virtual elastic interface;
  • a processor configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet, and according to the first virtual elastic interface and the virtual Corresponding relationship between the first virtual machine and the information of the first virtual machine corresponding to the first virtual elastic interface, and encapsulating the first packet header information in the first data packet, where the first packet header information carries The information of the first virtual machine.
  • the transceiver is further configured to receive a second data packet by using a second virtual elastic interface, where the second data packet is encapsulated with a second packet header Information, the second packet header information carries the information of the second physical port, and the second data packet that removes the second packet header information by the processor is determined by the processor The second physical port is sent to an external physical device;
  • the processor is configured to decapsulate the second packet header information in the second data packet The second packet header information and the second data packet with the second packet header information removed, determining to transmit the second datagram according to the information of the second physical port carried in the second packet header information The second physical port of the text.
  • the processor is configured to determine, if the first physical port is exclusive to a virtual elastic interface,
  • the virtual elastic interface is a first virtual elastic interface that transmits the first data packet. If the first physical port is multiplexed by more than one virtual elastic interface, the first physical port is carried according to the received first data packet.
  • the sliced resource information determines that the virtual elastic interface corresponding to the slice resource information is the first virtual elastic interface that transmits the first data.
  • the processor is specifically used as a transmission station When the first virtual elastic interface of the first data packet has a corresponding relationship with the plurality of virtual machines, determining, by the load balancing condition, one virtual machine from the plurality of virtual machines is the first virtual machine.
  • the processor is specifically configured to use the determined MAC address of the first virtual machine as the destination MAC address, the MAC address of the first virtual machine as the source MAC address, and the first virtual elastic interface that transmits the first data packet.
  • the information of the occupied physical port is carried in the first packet header information;
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port;
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
  • a general processing device where at least one virtual machine is created, where: each virtual machine corresponds to one elastic virtual interface, and at least one virtual elastic interface occupies one physical medium in the interface device port;
  • the general processing device includes: a first receiving module, a virtual elastic interface determining module connected to the first receiving module, a physical port determining module and a first sending module respectively connected to the virtual elastic interface determining module, and The physical port determines a module to which the module is connected, where:
  • the first receiving module is configured to receive a second data packet sent by the second virtual machine, where the virtual elastic interface determining module is configured to determine a second virtual elastic interface corresponding to the second virtual machine;
  • the physical port determining module is configured to determine information about a second physical port occupied by the second virtual elastic interface according to an occupation relationship between the physical port and the second virtual elastic interface; Encapsulating the second data packet with the second data packet received by the first receiving module, where the second packet header information carries the second physical port determined by the physical port determining module Information
  • the first sending module is configured to send, by using the virtual elastic interface, the second virtual elastic interface that is determined by the module, and send, by the encapsulating module, the second data packet that encapsulates the second packet header information. .
  • the general processing device further includes: a second receiving module, a decapsulation module connected to the second receiving module, and respectively connected to the decapsulation module a virtual machine determining module and a second sending module, wherein:
  • the second receiving module is configured to receive the first data packet by using the first virtual elastic interface, where the first data packet encapsulates the first packet header information, where the first packet header information carries the first Information of a virtual machine;
  • Decapsulating module configured to decapsulate the first packet header information in the first data packet received by the second receiving module, to obtain the first packet header information, and remove the first packet header information The first data packet of the packet header information;
  • the virtual machine determining module is configured to determine, according to information about the first virtual machine that is carried in the first packet header information that is decapsulated by the decapsulation module, that the first virtual data packet is received. machine; Transmitting, by the second sending module, the first data packet that is to be decapsulated by the decapsulation module and removing the first packet header information to the first virtual machine that is determined by the virtual machine determining module .
  • the physical port determining module is specifically configured to exclusively occupy the second physical port in the second virtual elastic interface.
  • the port number of the second physical port is used as the information of the physical port, or when the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the second virtual elasticity
  • the slice resource corresponding to the interface is used as the information of the physical port.
  • the encapsulating module is specifically configured to The MAC address of the interface device is used as the destination MAC address, and the MAC address of the second virtual machine is used as the source MAC address in the second packet header information, and the second data packet is encapsulated.
  • a general processing device where at least one virtual machine is created, where: each virtual machine corresponds to one elastic virtual interface, and at least one virtual elastic interface occupies one physical medium in the interface device Port
  • the general purpose processing device includes: a transceiver and a processor, wherein:
  • the transceiver is configured to receive a second data packet sent by the second virtual machine, and encapsulate the second data packet of the second packet header by the processor according to the second virtual elastic interface determined by the processor. Transmitting through the second virtual elastic interface;
  • the processor is configured to determine a second virtual elastic interface corresponding to the second virtual machine, and determine the second virtual elastic interface according to an occupation relationship between the physical port and the second virtual elastic interface.
  • the information of the second physical port is occupied, and the second packet header is encapsulated with the second packet header.
  • the second packet header carries the information of the second physical port.
  • the processor is specifically configured to: when the second virtual elastic interface occupies the second physical port, the port number of the second physical port is used as a physical port. Information, or, When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource corresponding to the second virtual elastic interface are used as information of the physical port.
  • the processor is specifically configured to use a MAC address of the interface device as a destination MAC address and The MAC address of the second virtual machine is carried in the second packet header as the source MAC address, and the second data packet is encapsulated.
  • the transceiver is further configured to pass the first The virtual elastic interface receives the first data packet, where the first data packet encapsulates the first packet header information, the first packet header information carries information of the first virtual machine, and, according to the processor Determining, by the first virtual machine, the first data packet that removes the first packet header information from the processor and sends the first data packet to the first virtual machine;
  • the processor is further configured to decapsulate the first packet header information in the first data packet to obtain the first packet header information and the first data packet with the first packet header information removed. And determining, according to the information of the first virtual machine carried in the first packet header information, the first virtual machine that receives the first data packet.
  • a seventh aspect provides a method for transmitting a data packet, where the method includes:
  • the interface device When the interface device receives the first data packet sent by the external physical device, the interface device determines, according to the occupation relationship between the first physical port and the virtual elastic interface, that the first data packet is transmitted. a virtual elastic interface, and determining, according to the correspondence between the first virtual elastic interface and the virtual machine, information of the first virtual machine that receives the first data packet;
  • the interface device carries the determined information of the first virtual machine in the first packet header information, and after the first packet header information is encapsulated in the first data packet, the determined a virtual elastic interface is sent to the general processing device;
  • the general processing device determines, according to the encapsulated first packet header information, the first virtual machine that receives the first data packet, and removes the first packet. Sending, by the first data packet, the first data packet to the first virtual machine; At least one virtual machine is created in the general-purpose processing device, the interface device has at least one physical port, and one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and at least one The virtual machine has a corresponding relationship.
  • the method further includes: determining, by the general processing device, a second virtual elastic interface corresponding to the second virtual machine that sends the second data packet, and according to the physical port Determining, by the occupancy relationship between the second virtual elastic interface, information about the second physical port occupied by the second virtual elastic interface;
  • the general processing device carries the determined information of the second physical port in the second packet header information, and after the second packet header is encapsulated in the second data packet, the determined Sending, by the second virtual elastic interface, the interface device;
  • the interface device When receiving the second data packet, the interface device removes the second data packet of the second packet header information according to the information of the second physical port carried in the encapsulated second packet header information.
  • the text is sent to the external physical device through the corresponding second physical port.
  • the interface device determines, by using the following manner, a first virtual elastic interface that transmits the first data packet:
  • the interface device determines that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, if the first physical port is more than The virtual elastic interface is multiplexed, and the interface device determines, according to the received slice resource information in the first data packet, that the virtual elastic interface corresponding to the slice resource information is used to transmit the first data packet.
  • the first virtual elastic interface determines that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, if the first physical port is more than The virtual elastic interface is multiplexed, and the interface device determines, according to the received slice resource information in the first data packet, that the virtual elastic interface corresponding to the slice resource information is used to transmit the first data packet.
  • the first virtual elastic interface determines that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, if the first physical port is more than The virtual elastic interface is multiplexed, and the interface device determines, according to the received slice resource information in the first data packet, that the virtual elastic interface corresponding to the slice resource information is used to
  • the interface device determines one virtual machine from the plurality of virtual machines as the first virtual machine according to a load balancing condition.
  • the method further includes:
  • the interface device also determines the MAC address of the first virtual machine as the destination MAC address, the MAC address of the first virtual machine as the source MAC address, and the physics occupied by the first virtual elastic interface that transmits the first data packet.
  • the information of the port is carried in the first packet header information.
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or When the first physical port is multiplexed by the virtual elastic interface, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port and the slice resource information corresponding to the first virtual elastic interface. .
  • the information processing, by the general processing device, the information of the second physical port is carried in the second packet header information, including:
  • the general processing device When the second virtual elastic interface is the second physical port, the general processing device carries the port number of the second physical port as the information of the physical port in the second packet header information, or When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource information corresponding to the second virtual elastic interface are carried as the physical port information in the second packet header information. in.
  • the method further includes:
  • the general-purpose processing device also carries the MAC address of the interface device as the destination MAC address and the MAC address of the second virtual machine as the source MAC address in the second packet header information.
  • the method further includes:
  • the management device When the management device receives an application to create a virtual elastic interface, it creates information according to the application.
  • the virtual elastic interface is created, and the created information includes: bandwidth occupied by the virtual elastic interface to be created, information of the corresponding virtual machine, and information of the occupied physical port;
  • the management device sends the information about the physical port occupied by the virtual elastic interface and the corresponding relationship with the virtual machine to the interface device and the general processing device.
  • the eighth aspect provides a method for transmitting a data packet, where the method includes:
  • the general processing device determines the virtual elastic interface corresponding to the virtual machine that sends the second data, and determines the physical port information occupied by the virtual elastic interface corresponding to the virtual machine according to the occupation relationship between the physical port and the virtual elastic interface;
  • the general-purpose processing device carries the information of the determined physical port in the second packet header information, and encapsulates the second packet header information in the second data packet, and sends the information through the determined virtual elastic interface. Giving the interface device;
  • the interface device When receiving the second data packet, the interface device passes the second data packet with the second packet header information removed according to the physical port information carried in the encapsulated second packet header information.
  • the physical port is sent to the external physical device;
  • At least one virtual machine is created in the general-purpose processing device, the interface device has at least one physical port, and one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and at least one The virtual machine has a corresponding relationship.
  • the virtual machine can receive and process all data packets flowing through a physical port, or all data packets including a specific VLAN identifier flowing through a physical port, and expand the processing of the virtual machine.
  • the scope of the data message enables the virtual machine's functions to be maximized, effectively optimizing the virtualization effect and realizing functions that were previously impossible.
  • FIG. 1 is a schematic diagram of networking of two virtual machines in the background art of FIG. 2;
  • FIG. 3 is a schematic structural diagram of a data packet transmission system according to Embodiment 1 of the present invention
  • FIG. 5 is a schematic diagram of a method for transmitting a data packet from an external physical device to a virtual machine according to Embodiment 1 of the present invention
  • FIG. 6 is a schematic structural diagram of the first packet header information encapsulated outside the MAC packet according to the first embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a method for transmitting a data packet virtual machine to an external physical device according to Embodiment 1 of the present invention.
  • FIG. 8 and FIG. 9 are schematic structural diagrams of a structure device according to Embodiment 2 of the present invention.
  • FIG. 10 is a schematic structural diagram of a general processing device according to Embodiment 3 of the present invention. detailed description
  • the embodiment of the present invention provides a new data packet transmission scheme, which includes data packets in two directions. Transmission process:
  • the interface device When the interface device receives the first data packet sent by the external physical device through the local physical port, the interface does not immediately transmit the first data packet to the virtual machine, but first determines to transmit the first data packet.
  • a virtual elastic interface which is hereinafter referred to as an EIF interface, and then, after determining a virtual machine corresponding to the EIF interface according to the correspondence between the EIF interface and the virtual machine, encapsulating the first data packet
  • the first data packet After the header, the first data packet is sent to the universal through the determined EIF interface.
  • the processing device the first packet header carries the information of the determined virtual machine; after the first packet header is decapsulated by the general processing device, the first data packet is sent to the corresponding virtual machine.
  • the general processing device determines the EIF interface corresponding to the virtual machine that sends the second data packet according to the corresponding relationship between the virtual machine and the EIF interface, because the EIF interface occupies the interface device.
  • the physical port includes the exclusive or multiplexed physical port. Therefore, after determining the EIF interface, the information of the physical port occupied by the EIF interface may be further determined; the general processing device carries the information of the physical port in the second packet.
  • the header is encapsulated in the second data packet, and is sent to the interface device by using the determined EIF interface. After the second packet header is decapsulated by the interface device, the second data packet is passed.
  • the corresponding physical port is sent to the external physical device.
  • the external physical device involved in the solution of the embodiment of the present invention refers to an external physical device, such as a base station, which is independent of each device in the virtual infrastructure layer.
  • the general purpose processing device and interface device are devices in an infrastructure layer in a virtual infrastructure layer, where:
  • the general-purpose processing device may be a host device, or may be a functional component in the host device. At least one virtual machine may be created in the general-purpose processing device, and the general-purpose processing device can perform data packet on the created virtual machine. Transceiver management.
  • the interface device has at least one physical port, which may be a dedicated interface device independent of the general-purpose processing device, or an interface device in the host device, that is, the general-purpose processing device and the interface device may be
  • the independent hardware devices may also be integrated hardware devices, but each has the capability of implementing corresponding functions.
  • the general-purpose processing device may be a board for service processing in the virtual machine system, and the interface device may be used for Interface board for switching. It should be noted that the above is only an example and is not limited thereto.
  • the EIF interface is a virtual interface, which can be regarded as a transmission channel for transmitting data packets between the general processing device and the interface device, and has a physical port on the interface device and a virtual machine on the general processing device.
  • the EIF interface needs to occupy a certain physical port resource.
  • the physical port resource can include the physical port traffic or bandwidth.
  • An EIF interface occupies a certain physical port, or multiple EIF interfaces multiplex a physical port.
  • the traffic passing the EIF interface can correspond to the total traffic of the physical port that is exclusive to the EIF interface.
  • the traffic flows through the EIF interface. All the data packets of the physical port are transmitted through the EIF interface of the EIF interface.
  • the data packets flowing through the EIF interface pass through the physical device exclusive to the EIF interface. port.
  • each EIF interface can occupy a part of the sliced resources on the physical port.
  • the virtual local area network (VLAN) interface is used as an example. Set multiple VLAN interfaces, for example, set up four VLAN interfaces.
  • the slicing resource information is VLAN1 ⁇ VLAN4.
  • One EIF interface can correspond to one slice resource information. For example, if eifl corresponds to VLAN1, the traffic passing through an EIF interface can be used.
  • the traffic of the physical port is the traffic of the data packet of the VLA identifier corresponding to the EIF interface. In other words, the data packet that meets the following conditions will flow through the physical port.
  • An EIF interface The data port is transmitted from the external physical device to the virtual machine, and flows through the physical port multiplexed by the EIF interface, and the VLAN identifier included is the same as the VLAN identifier corresponding to the EIF interface, and the data packet is When the virtual machine is transferred to the external physical device, the virtual machine that sends the data is corresponding to the EIF interface. The proposed machine.
  • the EIF interface has a corresponding relationship with the virtual machine, that is, an EIF interface can be mapped to at least one virtual network card (VNIC), and the virtual machine associated with the vNIC processes the data packet sent and received by the EIF interface. That is, an EIF interface has a correspondence with at least one virtual machine, but a virtual machine only corresponds to one EIF interface.
  • VNIC virtual network card
  • an EIF interface has a correspondence with at least one virtual machine, but a virtual machine only corresponds to one EIF interface.
  • the data packet flowing through the EIF interface is transmitted to a virtual machine corresponding to the EIF interface according to the method of load balancing, etc. Not limited to load balancing Style.
  • load balancing Style When a data packet is transmitted from the virtual machine to the external physical device, the data packet sent by the virtual machine will flow through the EIF interface corresponding to the virtual machine.
  • a virtual machine can receive and process all data packets flowing through a physical port, or all data packets containing a specific VLAN identifier flowing through a physical port, and expand The scope of the data message processed by the virtual machine enables the virtual machine's functions to be maximized, effectively optimizing the virtualization effect and realizing functions that were previously impossible. For example, after the virtual machine receives the data packet related to the link layer, the virtual machine can implement link aggregation negotiation with the external network device after receiving the Link Aggregation Control Protocol (LACP) packet.
  • LACP Link Aggregation Control Protocol
  • the data packet processed by the virtual machine is all data packets flowing through a physical port or contains a specific VLAN.
  • the data packet is identified. Therefore, if the virtual machine and the physical port are regarded as directly transmitted two-hop transmission, the physical port is equivalent to the virtual port of the virtual machine. In this case, in the non-virtualized environment.
  • the transport protocol and transport mechanism can be applied in a virtualized environment, which is an effective optimization for virtualization technology.
  • the IP address of the Internet is not required to be allocated according to the manners 1 and 2 in the background art, the IP address of the Internet is saved, and the implementation difficulty of the solution is also reduced.
  • first and second data packets are used to distinguish data packets transmitted from the external physical device to the virtual machine and transmitted from the virtual machine to the external device.
  • the data packet of the physical device does not have any restrictions on the content of the data packet.
  • the "first" and “second” restrictions for the header are used to distinguish interface devices.
  • the header of the packet encapsulated in the data packet sent to the virtual machine and the header of the general processing device encapsulated in the data packet sent to the external physical device do not limit the content of the packet header.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the transmission system of the first embodiment of the present invention is applied to the infrastructure layer in the cloud computing architecture layer.
  • the following describes the solution of the first embodiment of the present invention by taking the interface device as an independent dedicated interface device as an example.
  • FIG. 3 it is a schematic structural diagram of a data packet transmission system according to Embodiment 1 of the present invention. It is assumed that: There are two general processing devices in the system, namely, a general processing device 1 and a general processing device 2, and each general processing device There are two virtual machines created, VM1 ⁇ VM4, an operating system installed in the general processing device, and a separate operating system installed in each virtual machine.
  • VM1 and VM2 are virtual machines leased by tenant 1
  • VM3 and VM4 are virtual machines leased by tenant 2; the virtual machine exchanges data packets with the general processing device through the vNIC, and the general processing device passes through the first network card and the switching network.
  • the communication between the switches can be the backplane connection, the network cable or the optical fiber.
  • the switch communicates with the interface device through the second network card.
  • the communication mode can be the backplane connection, the network cable or the optical fiber.
  • the interface device passes the local device.
  • the physical port communicates with an external physical device.
  • the external physical device is a base station, and two base stations are shown in FIG. 3, which are respectively base stations set up by different tenants, and each base station can communicate with the interface device.
  • the EIF interface needs to be created before the data transmission is performed by the transmission system.
  • the EIF interface needs to be created by a management device in the infrastructure layer.
  • the management device can be a general processing device capable of creating an EIF interface.
  • the logic module may also be a logic module that is independently set. The first embodiment of the present invention does not limit this.
  • Step 1 The management device receives an application to create an EIF interface.
  • the application for creating an EIF interface may be manually input by an administrator or may be implemented by a cloud computing architecture layer. Initiated by other devices in .
  • the application carries the creation information, and the creation information includes but is not limited to the following information:
  • EIF interface to be created is the exclusive physical port or the information of the physical port and the physical port occupied by the virtual elastic interface to be created.
  • the information about the physical port occupied by the EIF interface to be created is the port number of the occupied physical port. If the EIF interface to be created is a multiplexed physical port, the The information of the physical port occupied by the created EIF interface is the port number of the occupied physical port and the slice resource information corresponding to the EIF interface to be created.
  • the slice resource information may be a VLAN identifier, and the slice resource indicated by the slice resource information. Can be a VLAN interface.
  • Step 2 The management device performs an admission determination.
  • the admission determination refers to determining whether the actual status of the current system satisfies the requirement for creating information, and further determines whether the applied EIF interface can be created.
  • the EIF interface is created and the corresponding interface information is generated for the created EIF interface.
  • the interface information includes: The bandwidth and the physical port information occupied by the created EIF interface. If the physical port is an exclusive physical port, the physical port information is the port number of the physical port. If the physical port is reused, the physical port information is the port number of the physical port. Corresponding relationship between the created EIF interface and the virtual machine, and the EIF interface may correspond to one virtual machine or multiple virtual machines.
  • the creation process of an EIF interface is completed.
  • the management device is creating an EIF interface.
  • the information about the physical port occupied by the created EIF interface can be sent to the interface device and the general-purpose processing device, and the corresponding relationship between the created EIF interface and the virtual machine can be sent to the interface device and the general-purpose processing device.
  • the interface device and the general-purpose processing device know the information about the currently created EIF interface, and can transmit the data packet through the EIF interface.
  • the interface device has one physical port.
  • the physical port is multiplexed by four EIF interfaces, namely EIF1 ⁇ EIF4.
  • the four EIF interfaces are respectively Corresponding to VLAN1 ⁇ VLAN4, and the four EIF interfaces correspond to VM1 ⁇ VM4.
  • Step 101 The interface device is configured to receive, by using a physical port, a first data packet sent by an external physical device, and determine, according to an occupation relationship between the physical port and the virtual elastic interface, an EIF interface that transmits the first data packet. .
  • the first data carries:
  • the first data transmission type such as the transmission of Ethernet type (Ethernet type);
  • destination MAC address that is, the MAC address of the virtual machine determined by the external physical device
  • a source MAC address that is, a MAC address of an external physical device that transmits the first data
  • the interface device determines the physical port that receives the first data packet, and determines whether the physical port is monopolized by an EIF interface. If yes, the interface determines exclusive use.
  • the EIF interface of the physical port is an EIF interface that transmits the first data packet, that is, the EIF interface determined in step 101; if not, the interface device according to the slice resource carried in the first data packet.
  • the information such as the VLAN identifier, determines that the EIF interface corresponding to the slice resource information is an EIF interface that transmits the first data packet, that is, the EIF interface determined in step 101.
  • Step 102 The interface device is configured to determine, according to a correspondence between the EIF interface and the virtual machine, information about the virtual machine that receives the first data packet.
  • the information of the virtual machine determined in this step may be the MAC address of the virtual machine, the virtual port number, or the like, or other information that can uniquely represent the virtual machine.
  • the interface device determines, according to the correspondence between the EIF interface and the virtual machine sent by the management device, the virtual machine corresponding to the EIF interface that transmits the first data, as the step 102. a virtual machine for receiving the first data.
  • the virtual machine is a virtual machine that receives the first data packet.
  • the EIF interface determined in step 101 is eifl
  • the corresponding virtual machine is VM1.
  • the interface device may select one virtual machine from the plurality of virtual machines corresponding to the EIF interface to receive the first data packet according to a predetermined condition, such as a load balancing condition.
  • a predetermined condition such as a load balancing condition.
  • Virtual machine For example, you can select the virtual machine with the least load, or you can choose the appropriate virtual machine based on the principle of sharing the load on the average or the proportion of the case.
  • Step 103 The interface device is configured to encapsulate the first packet header information in the first data packet, where the first packet header information includes the first data packet that is determined by the interface device to receive the first data packet. Virtual machine information.
  • the purpose of the interface device to encapsulate the first packet header information in the first data packet is: when the interface device transmits the first data packet to the communication processing device, the first packet header information carries the first packet header information For information related to the data packet transmission process, the information of the virtual machine determined in step 102 can be carried as the destination address in the header information.
  • the first packet header is provided, except that the first packet header carries the information of the virtual machine that receives the first data packet, and the general processing device learns the purpose of receiving the virtual machine of the first data packet. Other information may be carried in the general processing device to obtain information about the transmission process of the first data message between the interface device and the general processing device.
  • the information carried in the first packet header includes but is not limited to:
  • the source MAC address that is, the MAC address of the interface device itself; 2) The information of the physical port occupied by the EIF interface of the first data packet, where the physical port information occupied by the EIF interface is the port number of the physical port when the EIF interface is exclusive to the physical port, in the EIF When the interface multiplexes a physical port, the information about the physical port occupied by the EIF interface is the port number of the physical port and the slice resource information corresponding to the EIF interface.
  • the structure of the data packet after the first packet header information is encapsulated outside the MAC packet, where: paylaod layer and inner
  • the content of the layer MAC header is the content of the original MAC packet received by the interface device from the external physical device, and the outer MAC header is the encapsulated first packet header information.
  • the general processing device that receives the first data packet can distinguish the inner layer MAC header and the outer layer MAC header by the structure of the inner layer MAC header and the outer layer MAC header, that is, distinguish the original content of the first data packet from the interface device.
  • the encapsulated content enables the general-purpose processing device to implement the transmission of the first data message according to the content in the outer MAC header, and avoids the general processing device modifying the content in the inner MAC header.
  • the destination MAC address in the inner MAC header may be referred to as an inner layer destination MAC address (Inner DM AC ), and the source MAC address in the inner layer MAC header may be referred to as an inner layer source MAC address.
  • the inner VLAN (NAT) which is determined by the internal physical device when the first data packet is transmitted from the external physical device to the interface device, is called the inner VLAN tag.
  • the inner VLAN tag can be used to be used on the physical port.
  • the interface device determines the EIF interface for transmitting the first data packet according to the correspondence between the inner VLAN tag and the EIF interface and the VLAN identifier carried in the first data packet.
  • Step 104 The interface device is configured to send the first data packet that encapsulates the first packet header information to the general processing device by using the determined EIF interface. At this time, the interface device is sent to the general processing device. The process of the first data message.
  • Step 105 The general processing device is configured to: when the first data packet is received, unpack the first packet header information, and determine a virtual machine that receives the first data packet.
  • Step 106 The general processing device is configured to send the first data packet with the first packet header information removed to the determined virtual machine, where the virtual machine receives the first data packet, It is processed according to the traditional Ethernet port 4 processing method, and will not be described here.
  • the general processing device may send the first data packet to the virtual port of the corresponding virtual machine, and further Transfer to the virtual machine.
  • steps 101 to 106 describe the process of transmitting the first data packet from the external physical device to the virtual machine.
  • the following describes the process of transmitting the second data packet from the virtual machine to the external physical device.
  • the present invention is implemented.
  • the solution is sent from the external physical device to the virtual machine and the virtual machine sends the data packet to the external physical device to describe the solution.
  • the solution from step 101 to step 106 and the solution from step 201 to step 206 can be implemented independently. .
  • the transmission process of the second data packet includes the following steps:
  • Step 201 The general processing device is configured to determine an EIF interface corresponding to the virtual machine that sends the second data packet.
  • the virtual machine can send the second data packet through the virtual network card according to the traditional Ethernet port 4, and the general processing device identifies the virtual machine that sends the second data packet. And determining, according to the correspondence between the EIF interface and the virtual machine, an EIF interface corresponding to the virtual machine that sends the second data packet.
  • Step 202 The general processing device is configured to determine, according to an occupation relationship between the physical port and the EIF interface, information about a physical port occupied by the EIF interface corresponding to the virtual machine that sends the second data.
  • the information of the physical port is the port number of the physical port that is exclusive to the physical port. If the EIF interface corresponding to the virtual machine that sends the second data packet multiplexes the physical port, the information of the determined physical port is the EIF interface. Port number and slice resource information of the physical port corresponding to the occupied port resource.
  • Step 203 The general processing device is configured to encapsulate the second packet header information in the second data packet, where the second packet header information includes the information of the determined physical port.
  • the purpose of the second processing packet to encapsulate the second packet header information in the second data packet is: when the communication processing device transmits the second data packet to the interface device, by using the second packet header information Information related to the second data message transmission process.
  • the second packet header may carry the following information, except that the second packet header carries the information of the physical port for transmitting the second data packet:
  • a destination MAC address that is, a MAC address of an interface device that receives the second data packet
  • the source MAC address that is, the MAC address of the virtual machine that sends the second data packet.
  • the structure of the second data packet that encapsulates the second packet header information is similar to that of FIG. 6, and details are not described herein again.
  • Step 204 The general processing device is configured to send the second data packet that encapsulates the second packet header information to the interface device by using the determined EIF interface, and the universal processing device interface is completed. The process of sending a second data packet by the device.
  • Step 205 The interface device is configured to: when the second data packet is received, decapsulate the second packet header information, and determine information about a physical port that transmits the second data packet.
  • Step 206 The interface device is configured to send the second data packet with the second packet header information to the external physical device through the corresponding physical port.
  • the above steps 201 to 206 can achieve the same effect as the steps 101 to 106.
  • the steps 101 to 106 are combined with the steps 201 to 206, the data message can be transmitted in both directions. .
  • the seamless migration of the virtual machine can also be implemented, and the specific description is as follows:
  • the virtual machine information Take the virtual machine information as the MAC address of the virtual machine as an example.
  • the function of the VM1 may be inherited by the newly created VM5 in the general processing device 2, as long as the MAC address of the VM1 is allocated to the VM5, and the original VM1 is used in the interface device.
  • the correspondence between the MAC address and the general-purpose processing device 1 may be updated to the correspondence between the MAC address and the general-purpose processing device 2.
  • the information of the virtual machine determined by the interface device according to the scheme of step 102 is the MAC address of the VM1.
  • the MAC address of the VM1 is actually the MAC address of the VM5, but the interface device does not care.
  • the actual use state of the virtual machine only needs to carry the determined MAC address in the first packet header, and send the encapsulated first data packet to the general processing device 2, and then the general processing device 2 according to the first
  • the MAC address in the packet header sends the data packet to VM5, which implements seamless migration from VM1 to VM5.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the second embodiment of the present invention describes an interface device. As shown in FIG. 8, at least one of the interface devices is provided. a physical port, where: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine created in a general processing device.
  • the interface device includes a first receiving module 11, a virtual elastic interface determining module 12 connected to the first receiving module 11, a virtual machine determining module 13 respectively connected to the virtual elastic interface determining module 12, and a first sending
  • the module 15 and the encapsulation module 14 connected to the virtual machine determining module 13 cooperate with each other to realize the process of transmitting the data message sent by the external physical device to the general processing device of the virtual machine, and the function of each module Described as follows:
  • the first receiving module 11 is configured to receive, by using the first physical port, a first data packet sent by an external physical device;
  • the virtual elastic interface determining module 12 is configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet;
  • the virtual machine determining module 13 is configured to determine, according to the correspondence between the first virtual elastic interface and the virtual machine determined by the virtual elastic interface determining module 12, the first virtual elastic interface pair. Information about the first virtual machine that should be;
  • the encapsulating module 14 is configured to encapsulate the first packet header information in the first data packet, where the first packet header information carries information about the first virtual machine determined by the virtual machine determining module;
  • the first sending module 15 is configured to send, by using the first virtual elastic interface determined by the virtual elastic interface determining module 12, the first data packet that encapsulates the first packet header information by the encapsulating module 14 .
  • the virtual elastic interface determining module 12 is specifically configured to: if the first physical port is exclusively occupied by a virtual elastic interface, determine that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, If the first physical port is multiplexed by more than one virtual elastic interface, the virtual elastic interface corresponding to the slice resource information is determined as a transmission station according to the received slice resource information carried in the first data packet. The first virtual elastic interface of the first data packet.
  • the virtual machine determining module 13 is specifically configured to: when the first virtual elastic interface that transmits the first data packet has a corresponding relationship with multiple virtual machines, according to load balancing conditions, from the multiple virtual machines Determining a virtual machine as the first virtual machine.
  • the encapsulating module 14 specifically determines the MAC address of the first virtual machine as the destination MAC address, the MAC address of the first virtual machine as the source MAC address, and the first virtual elastic interface that transmits the first data packet.
  • the information of the occupied physical port is carried in the first packet header information;
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port;
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
  • the interface device further includes a second receiving module 16, a decapsulation module 17 connected to the second receiving module 16, a physical port determining module 18 and a second sending module 19 respectively connected to the decapsulating module 17, and implementing The process of transmitting data packets sent by a virtual machine to an external physical device.
  • the functions of each module are described as follows:
  • the second receiving module 16 is configured to receive the second data packet by using the second virtual elastic interface, where the second data packet is encapsulated with the second packet header information, where the second packet header information carries the first Two physical port information;
  • the decapsulation module 17 is configured to decapsulate the second packet header information in the second data packet received by the second receiving module 16 to obtain the second packet header information, and remove the first Second data packet of the second header information;
  • the physical port determining module 18 is configured to determine, according to the information about the second physical port carried in the second packet header information that is decapsulated by the decapsulation module 17, to transmit the second data packet.
  • the second sending module 19 is configured to decapsulate the second data packet of the second packet header obtained by the decapsulation module 17 by using the second physical medium determined by the physical port determining module 18 The port is sent to an external physical device.
  • the second embodiment of the present invention further describes an interface device of another structure.
  • the interface device includes: a transceiver 21 and a processor 22, where: The transceiver 21 is configured to receive the first data packet sent by the external physical device by using the first physical port, and encapsulate the first packet header information by the processor 22 according to the first virtual elastic interface determined by the processor 22 Sending a data packet through the first virtual elastic interface;
  • the processor 22 is configured to determine, according to the occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet, and according to the first virtual elastic interface and the virtual Corresponding relationship between the first virtual machine and the information of the first virtual machine corresponding to the first virtual elastic interface, and encapsulating the first packet header information in the first data packet, where the first packet header information is carried The information of the first virtual machine.
  • the processor 22 is configured to: if the first physical port is exclusively occupied by a virtual elastic interface, determine that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, if the first The physical port is multiplexed by more than one virtual elastic interface, and the virtual elastic interface corresponding to the slice resource information is determined to transmit the first datagram according to the received slice resource information carried in the first data packet.
  • the first virtual elastic interface of the text Preferably, the processor 22 is specifically configured to: when the first virtual elastic interface that transmits the first data packet has a corresponding relationship with multiple virtual machines, determine one of the multiple virtual machines according to a load balancing condition. The virtual machine is the first virtual machine.
  • the processor 22 is specifically configured to use the determined MAC address of the first virtual machine as a destination MAC address, use its own MAC address as a source MAC address, and transmit a first virtual data packet.
  • the information of the physical port occupied by the elastic interface is carried in the first packet header information.
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port;
  • the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
  • the transceiver 21 is further configured to receive the second data by using the second virtual elastic interface, where the second data packet is encapsulated with the second packet header information, where the second packet header information carries the first The information of the second physical port, and the second data packet that the processor 22 removes the second packet header information is sent to the external physical device by using the second physical port determined by the processor 22;
  • the processor 22 is configured to decapsulate the second packet header information in the second data packet to obtain the second packet header information and the second data packet with the second packet header information removed. And determining, according to the information of the second physical port carried in the second packet header, the second physical port that transmits the second data packet.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the third embodiment of the present invention describes a general processing device.
  • the universal processing device is created.
  • the general processing device includes: a first receiving module 31, a virtual elastic interface determining module 32 connected to the first receiving module 31, and a device respectively connected to the virtual elastic interface determining module 32.
  • the port determining module 33 and the first sending module 35, and the encapsulating module 34 connected to the physical port determining module 33, the modules cooperate with each other to implement the process of transmitting the virtual machine to the interface device, and the modules
  • the function description is as follows:
  • the first receiving module 31 is configured to receive a second data packet sent by the second virtual machine, where the virtual elastic interface determining module 32 is configured to determine a second virtual elastic interface corresponding to the second virtual machine.
  • the physical port determining module 33 is configured to determine, according to an occupation relationship between the physical port and the second virtual elastic interface, information about the second physical port occupied by the second virtual elastic interface; Encapsulating the second data packet with the second data packet received by the first receiving module 31, where the second packet header information carries the second physics determined by the physical port determining module 33. Port information;
  • the first sending module 35 is configured to encapsulate, by the virtual elastic interface determining module, the second virtual elastic interface, and the encapsulating module 34 encapsulates the second data packet of the second packet header information. Send it.
  • the physical port determining module 33 is specifically configured to: when the second virtual elastic interface monopolizes the second physical port, use the port number of the second physical port as the physical port information, or When the virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource corresponding to the second virtual elastic interface are used as information of the physical port.
  • the encapsulating module 34 is configured to carry the MAC address of the interface device as the destination MAC address and the MAC address of the second virtual machine as the source MAC address in the second packet header information. Encapsulating the second data packet.
  • the general processing device further includes: a second receiving module 36, a decapsulation module 37 connected to the second receiving module 36, a virtual machine determining module 38 and a second sending module 39 respectively connected to the decapsulating module 37
  • the process of transmitting data packets sent by the interface device to the virtual machine is implemented.
  • the functions of each module are described as follows:
  • the second receiving module 36 is configured to receive the first data packet by using the first virtual elastic interface, where the first data packet encapsulates the first packet header information, where the first packet header information carries the first One Virtual machine information;
  • the decapsulation module 37 is configured to decapsulate the first packet header information in the first data packet received by the second receiving module 36 to obtain the first packet header information, and remove the first a first data message of the message header information;
  • the virtual machine determining module 38 is configured to determine, according to the information about the first virtual machine that is carried in the first packet header information that is decapsulated by the decapsulation module 37, that the first data packet is received. virtual machine;
  • the second sending module 39 is configured to send the first data packet that is decapsulated by the decapsulation module 37 to the first packet header information to the virtual machine determining module 38.
  • a virtual machine A virtual machine.
  • the third embodiment of the present invention further describes a general-purpose processing device of another structure, where the general-purpose processing device includes: a transceiver and a processor, where:
  • the transceiver is configured to receive a second data packet sent by the second virtual machine, and pass the second data packet that encapsulates the second packet header by the processor according to the second virtual elastic interface determined by the processor. Transmitting the second virtual elastic interface;
  • the information of the second physical port is used to encapsulate the second packet header information, and the second packet header information carries the information of the determined second physical port.
  • the processor is specifically configured to: when the second virtual elastic interface monopolizes the second physical port, use the port number of the second physical port as the physical port information, or
  • the port number of the second physical port and the slice resource corresponding to the second virtual elastic interface are used as information of the physical port.
  • the processor is specifically configured to: carry the MAC address of the interface device as the destination MAC address and the MAC address of the second virtual machine as the source MAC address in the second packet header information, where The second data packet is encapsulated.
  • the transceiver is further configured to receive, by using the first virtual elastic interface, a first data packet, where the first The data packet encapsulates the first packet header information, the first packet header information carries the information of the first virtual machine, and the processor is removed according to the first virtual machine determined by the processor. Sending, by the first data packet, the first data packet of the packet header information to the first virtual machine;
  • the processor is further configured to decapsulate the first packet header information in the first data packet to obtain the first packet header information and the first data packet with the first packet header information removed. And determining, according to the information of the first virtual machine carried in the first packet header information, the first virtual machine that receives the first data packet.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the application can be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation in the flowchart The steps of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.
  • the computer device includes one or more processors
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media including both permanent and non-persistent, removable and non-removable media, can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • flash memory or other memory technology
  • compact disk read only memory CD-ROM
  • DVD digital versatile disk
  • Magnetic tape cartridges magnetic tape storage or other magnetic storage devices or any other non-transportable media that can be used to store information that can be accessed by computing devices.
  • computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.

Abstract

A data packet transmission system, transmission method and device enables a virtual machine to receive and process all data packets flowing through a physical port, or all data packets including a specific VLAN identification and flowing through a physical port, thus expanding the scope of the data packets processed by the virtual machine, maximizing the use of the functions of the virtual machine, effectively optimizing the virtualization effect, and realizing the functions that cannot be realized before.

Description

一种数据报文的传输系统、 传输方法和设备  Data message transmission system, transmission method and device
技术领域 Technical field
本发明涉及通信领域, 尤其涉及一种数据报文的传输系统、 传输方法和 设备。 背景技术  The present invention relates to the field of communications, and in particular, to a data message transmission system, a transmission method, and a device. Background technique
虚拟化技术是指在一个物理主机上创建出多个虚拟机(VM ), 所述物理 主机也可称之为宿主机(Host )。 为每个虚拟机分配硬盘、 内存、 中央处理器 ( CPU )等资源, 以及为每个虚拟机安装操作系统( Operating System, OS ) 的技术, 不同的虚拟机可以安装不同的操作系统。  Virtualization technology refers to the creation of multiple virtual machines (VMs) on a physical host. The physical hosts can also be called hosts. Each virtual machine is assigned a resource such as a hard disk, a memory, a central processing unit (CPU), and a technology for installing an operating system (OS) for each virtual machine. Different virtual machines can be installed with different operating systems.
由于虚拟机可以有独立的资源以及操作系统, 因此, 不同的虚拟机之间 可以是相互独立的。 创建的虚拟机可供使用者使用, 租用虚拟机的使用者可 称之为租户, 一个租户可租用一个或多个虚拟机。  Since virtual machines can have separate resources and operating systems, different virtual machines can be independent of each other. The created virtual machine is available to the user. The user who rents the virtual machine can be called a tenant, and one tenant can rent one or more virtual machines.
随着通信业 (CT )技术和信息业 (IT )技术的融合, 传统的通信网元也 逐渐开始应用到 IT的虚拟化技术中,例如,将无线网络控制器( Radio Network Controller, RNC )、 移动性管理实体( Mobility Management Entity, MME )和 服务网关 ( Serving Gateway, SGW )等通信网元的功能在虚拟机中实现。  With the convergence of communication technology (CT) technology and information industry (IT) technology, traditional communication network elements are gradually applied to IT virtualization technology, for example, the Radio Network Controller (RNC), The functions of a communication network element such as a Mobility Management Entity (MME) and a Serving Gateway (SGW) are implemented in a virtual machine.
传统的 IT业中的虚拟机的主要功能是接入互联网, 因此, 其组网需求比 较低, 虚拟机接入虚拟架构中的虚拟设施层提供的虚拟网络后, 再接入互联 网, 具体的虚拟机的组网方式可以有以下两种:  The main function of the virtual machine in the traditional IT industry is to access the Internet. Therefore, its networking requirements are relatively low. After the virtual machine accesses the virtual network provided by the virtual facility layer in the virtual infrastructure, it accesses the Internet. There are two ways to network the machine:
方式一:  method one:
如图 1所示, 假设有 2个宿主机, 分别为 Hostl和 Host2, 每个宿主机中 创建了 2个虚拟机, 分别为 VM1、 VM2、 VM3和 VM4, 为每个虚拟机分配 一个因特网的 IP地址, 分别为 30.0.0.2~30.0.0.5 , 同时, 为虚拟设施层提供的 外部网络( External Network ) 的物理路由器 ( Physical Router )分配同网段的 IP地址, 这里分配的是 30.0.0.1。 在图 1所示的组网架构下, 虚拟机访问互联 网的过程为: As shown in Figure 1, assume that there are two hosts, Hostl and Host2, and two virtual machines are created in each host, namely VM1, VM2, VM3, and VM4, and each virtual machine is assigned an Internet. The IP addresses are 30.0.0.2~30.0.0.5 respectively. At the same time, the physical routers of the external network provided by the virtual facility layer are assigned IP addresses of the same network segment, where 30.0.0.1 is allocated. In the networking architecture shown in Figure 1, the virtual machine accesses the interconnection. The process of the net is:
首先, 虚拟机通过虚拟网卡 (vNIC )接入到虚拟交换机(vSwitch ); 然后, 为虚拟机配置缺省路由, 并将物理路由器作为网关, 虚拟机通过 为自身分配的公网的 IP地址访问到同网段 IP地址的物理路由器;  First, the virtual machine accesses the virtual switch (vSwitch) through the virtual network card (vNIC); then, configures the default route for the virtual machine, and uses the physical router as the gateway, and the virtual machine accesses the IP address of the public network allocated for itself. a physical router with the IP address of the same network segment;
最后, 虚拟机以物理路由器为网关, 通过公网的 IP地址访问互联网。 方式二:  Finally, the virtual machine uses the physical router as the gateway to access the Internet through the IP address of the public network. Method 2:
如图 2所示, 仍假设有 2个宿主机, 分别为 Hostl和 Host2, 每个宿主机 中创建了 2个虚拟机, 分别为 VM1、 VM2、 VM3和 VM4, 为每个虚拟机分 配一个因特网的 IP地址, 分别为 30.0.0.2~30.0.0.5 , 并且为每个虚拟机分配一 个局域网的 IP地址, 分别为 10.0.0.2~10.0.0.5 , 同时, 为虚拟设施层提供的外 部网络( External Network ) 的物理路由器分配同网段的因特网 IP 地址, 即 30.0.0.1 , 为内部网络( Internal Network )的路由器( Router )或网络地址转换 器(NAT )分配同网段的局 ¾^网 IP地址, 即 10.0.0.1。 在图 1所示的组网架构 下, 虚拟机访问互联网的过程为:  As shown in Figure 2, it is still assumed that there are two hosts, Hostl and Host2, and two virtual machines are created in each host, namely VM1, VM2, VM3, and VM4, and each virtual machine is assigned an Internet. The IP addresses are 30.0.0.2~30.0.0.5, and each virtual machine is assigned a LAN IP address of 10.0.0.2~10.0.0.5, and the external network provided for the virtual facility layer (External Network) The physical router assigns the Internet IP address of the same network segment, that is, 30.0.0.1, and assigns the internal network IP address of the same network segment to the internal network router (Router) or network address translator (NAT). That is 10.0.0.1. In the networking architecture shown in Figure 1, the process of virtual machine access to the Internet is:
首先, 虚拟机通过虚拟网卡 (vNIC )接入到虚拟交换机(vSwitch ); 然后, 为虚拟机配置缺省路由, 并将内部网络中的路由器作为虚拟机接 入内部网络的网关, 虚拟机通过局域网的 IP地址访问内部网络中的路由器; 外部网络中的物理路由器作为虚拟机访问互联网的网关, 虚拟机通过因特网 的 IP地址访问外部网络中的物理路由器;  First, the virtual machine accesses the virtual switch (vSwitch) through the virtual network card (vNIC); then, configures the default route for the virtual machine, and connects the router in the internal network as a virtual machine to the gateway of the internal network, and the virtual machine passes the local area network. The IP address accesses the router in the internal network; the physical router in the external network acts as a gateway for the virtual machine to access the Internet, and the virtual machine accesses the physical router in the external network through the IP address of the Internet;
最后, 虚拟机以内部网络中的路由器为网关, 通过局域网的 IP地址访问 内部网絡, 以外部网絡中的物理路由器为网关, 通过因特网的 IP地址访问英 特网。  Finally, the virtual machine uses the router in the internal network as the gateway, accesses the internal network through the IP address of the local area network, and uses the physical router in the external network as the gateway to access the Internet through the IP address of the Internet.
上述方式一和方式二中所涉及的内部网络是指能够让虚拟架构中的设备 在虚拟架构中内部连通的网络, 如使虚拟机、 虚拟网卡、 虚拟交换机等连通 的网络; 所涉及的外部网络是指使虚拟机与因特网连通的网络。  The internal network involved in the first mode and the second mode refers to a network that enables devices in the virtual architecture to communicate internally in the virtual architecture, such as a network that connects virtual machines, virtual network cards, virtual switches, etc.; It refers to a network that connects virtual machines to the Internet.
在将通信网元应用在虚拟化技术时, 也可釆用与图 1或图 2相同的组网 方式, 只不过虚拟机最终访问的不是英特网, 而是外部物理设备, 如基站等。 但是, 在目前虚拟机的组网架构下, 在外部物理设备向虚拟机发送数据报文 时,外部网络中的虚拟交换机是根据数据报文中所包含的目的 MAC地址对数 据报文进行转发, 物理路由器、 内部网络中的路由器是根据 IP地址进行路由 转发, 最终数据报文将发送至目的 MAC地址或者 IP地址对应的虚拟机, 也 就是说, 虚拟机只能接收到这样类型的数据报文: 所包含的目的 MAC地址或 IP地址是该虚拟机的 MAC地址或 IP地址的数据报文, 由于虚拟机接收到的 数据报文有限, 如无法接收诸如与链路层相关的数据报文, 因此, 虚拟机的 功能不能高效使用。 发明内容 When the communication network element is applied to the virtualization technology, the same networking mode as that of FIG. 1 or FIG. 2 can be used, but the virtual machine ultimately accesses not the Internet but an external physical device such as a base station. However, in the current virtual machine networking architecture, when the external physical device sends a data packet to the virtual machine, the virtual switch in the external network forwards the data packet according to the destination MAC address included in the data packet. The physical router and the router in the internal network are routed and forwarded according to the IP address. The final data packet is sent to the virtual machine corresponding to the destination MAC address or IP address. That is, the virtual machine can only receive such data packets. The destination MAC address or IP address is the data packet of the MAC address or IP address of the VM. The data packets received by the VM are limited. For example, the data packets related to the link layer cannot be received. Therefore, the functionality of the virtual machine cannot be used efficiently. Summary of the invention
本发明实施例提供了一种数据报文的传输系统、 传输方法和设备, 用以 解决现有技术中存在的虚拟机接收的数据报文有限, 导致虚拟机功能不能高 效使用的问题。  The embodiments of the present invention provide a data packet transmission system, a transmission method, and a device, which are used to solve the problem that the virtual machine receives limited data packets in the prior art, and the virtual machine function cannot be effectively used.
第一方面, 提供了一种数据报文的传输系统, 所述系统包括: 通用处理 设备和接口设备, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设 备中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接 口占用, 且每个所述虚拟弹性接口与至少一个虚拟机具有对应关系;  The first aspect provides a data packet transmission system, where the system includes: a general processing device and an interface device, where the at least one virtual machine is created in the universal processing device, and the interface device has at least one physical port The physical port is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine;
所述接口设备, 用于通过第一物理端口接收外部物理设备发送的第一数 据报文时, 根据所述第一物理端口与虚拟弹性接口之间的占用关系, 确定传 输所述第一数据报文的第一虚拟弹性接口, 并根据所述第一虚拟弹性接口与 虚拟机的对应关系, 确定接收所述第一数据 4艮文的第一虚拟机的信息, 以及, 将确定的所述第一虚拟机的信息携带在第一报文头信息中, 对所述第一数据 报文封装所述第一报文头信息后, 通过确定的所述第一虚拟弹性接口发送给 所述通用处理设备;  The interface device is configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, to transmit the first datagram, when the first physical port is configured to receive the first data packet sent by the external physical device The first virtual elastic interface of the text, and determining, according to the correspondence between the first virtual elastic interface and the virtual machine, information of the first virtual machine that receives the first data, and the determined The information of a virtual machine is carried in the first packet header information, and the first packet header information is encapsulated in the first data packet, and then sent to the universal processing by using the determined first virtual elastic interface. Equipment
所述通用处理设备, 用于在接收到所述第一数据报文时, 根据封装的第 一报文头信息确定接收所述第一数据报文的所述第一虚拟机, 并将去掉所述 第一报文头信息的第一数据报文发送给所述第一虚拟机。 结合第一方面, 在第一种可能的实现方式中, 所述通用处理设备, 还用 于确定发送第二数据报文的第二虚拟机对应的第二虚拟弹性接口, 并根据物 理端口与所述第二虚拟弹性接口之间的占用关系, 确定所述第二虚拟弹性接 口所占用的第二物理端口的信息, 以及, 将确定的所述第二物理端口的信息 携带在第二报文头信息中, 对所述第二数据报文封装所述第二报文头信息后, 通过确定的所述第二虚拟弹性接口发送给所述接口设备; The general processing device is configured to: when receiving the first data packet, determine, according to the encapsulated first packet header information, the first virtual machine that receives the first data packet, and remove the The first data packet of the first packet header information is sent to the first virtual machine. With reference to the first aspect, in a first possible implementation, the general processing device is further configured to determine a second virtual elastic interface corresponding to the second virtual machine that sends the second data packet, and according to the physical port and the Determining the relationship between the second virtual elastic interface, determining the information of the second physical port occupied by the second virtual elastic interface, and carrying the determined information of the second physical port in the second packet header And the information is sent to the interface device by using the determined second virtual elastic interface after the second data packet is encapsulated in the second data packet;
所述接口设备, 还用于在接收到所述第二数据报文时, 根据封装的第二 报文头信息中携带的第二物理端口的信息, 将去掉所述第二报文头信息的第 二数据报文通过所述第二物理端口发送给外部物理设备。  The interface device is further configured to: when the second data packet is received, remove the second packet header information according to the information of the second physical port carried in the encapsulated second packet header information The second data packet is sent to the external physical device through the second physical port.
结合第一方面或第一方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述接口设备, 具体用于若所述第一物理端口被一个虚拟弹性接 口独占, 则确定该虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接 口, 若所述第一物理端口被多于一个虚拟弹性接口复用, 则根据接收到的所 述第一数据报文中携带的切片资源信息, 确定与该切片资源信息对应的虚拟 弹性接口为传输所述第一数据报文的第一虚拟弹性接口。  With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation, the interface device is specifically configured to: if the first physical port is monopolized by a virtual elastic interface, Determining that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, and if the first physical port is multiplexed by more than one virtual elastic interface, according to the received first data packet The virtual elastic interface corresponding to the slice resource information is a first virtual elastic interface for transmitting the first data packet.
结合第一方面、 第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 所述接口设备, 具体用于当 传输所述第一数据报文的第一虚拟弹性接口与多个虚拟机具有对应关系时, 根据负载均衡条件从所述多个虚拟机中确定一个虚拟机为所述第一虚拟机。  With reference to the first aspect, the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the interface device is specifically used as a transmission station When the first virtual elastic interface of the first data packet has a corresponding relationship with the plurality of virtual machines, determining, by the load balancing condition, one virtual machine from the plurality of virtual machines is the first virtual machine.
结合第一方面、 第一方面的第一种可能的实现方式、 第一方面的第二种 可能的实现方式或第一方面的第三种可能的实现方式, 在第四种可能的实现 方式中, 所述接口设备, 具体用于将确定的所述第一虚拟机的媒体链路控制 With reference to the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible implementation manner The interface device is specifically configured to: determine the media link control of the first virtual machine that is determined
MAC地址作为目的 MAC地址、将自身的 MAC地址作为源 MAC地址和传输 所述第一数据报文的第一虚拟弹性接口所占用的物理端口的信息携带在所述 第一报文头信息中; The MAC address is used as the destination MAC address, and the information of the physical port occupied by the first virtual elastic interface, which is the source MAC address and the first MAC address, is carried in the first packet header information;
其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一虚拟弹 性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者, 在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。 The information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
结合第一方面的第一种可能的实现方式, 在第五种可能的实现方式中, 所述通用处理设备, 具体用于在所述第二虚拟弹性接口独占第二物理端口时, 将该第二物理端口的端口号作为物理端口的信息携带在所述第二报文头信息 中, 或者,  With reference to the first possible implementation manner of the first aspect, in a fifth possible implementation, the general processing device is specifically configured to: when the second virtual elastic interface monopolizes the second physical port, The port number of the physical port is carried in the second packet header as the information of the physical port, or
在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的端 口号和该第二虚拟弹性接口对应的切片资源信息作为物理端口的信息携带在 所述第二报文头信息中。  When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource information corresponding to the second virtual elastic interface are carried as the information of the physical port in the second packet. In the header information.
结合第一方面的第一种可能的实现方式或第一方面的第五种可能的实现 方式, 在第六种可能的实现方式中, 所述通用处理设备, 具体用于将所述接 口设备的 MAC地址作为目的 MAC地址和将所述第二虚拟机的 MAC地址作 为源 MAC地址携带在所述第二报文头信息中。  With reference to the first possible implementation of the first aspect or the fifth possible implementation of the first aspect, in a sixth possible implementation, the general processing device is specifically configured to be used by the interface device The MAC address is carried in the second packet header information as the destination MAC address and the MAC address of the second virtual machine as the source MAC address.
结合第一方面、 第一方面的第一种可能的实现方式、 第一方面的第二种 可能的实现方式、 第一方面的第三种可能的实现方式、 第一方面的第四种可 能的实现方式、 第一方面的第五种可能的实现方式或第一方面的第六种可能 的实现方式, 在第七种可能的实现方式中, 所述系统还包括:  With reference to the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, the third possible implementation of the first aspect, the fourth possible aspect of the first aspect The implementation manner, the fifth possible implementation manner of the first aspect, or the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner, the system further includes:
管理设备, 用于在接收到创建虚拟弹性接口的申请时, 根据申请中的创 建信息创建虚拟弹性接口, 并将创建的所述虚拟弹性接口所占用的物理端口 的信息和与虚拟机的对应关系发送给所述接口设备和所述通用处理设备; 所述创建信息包括: 待创建的虚拟弹性接口需占用的带宽、 对应的虚拟 机的信息、 所占用的物理端口的信息。  The management device is configured to create a virtual elastic interface according to the creation information in the application when the application for creating the virtual elastic interface is received, and the information about the physical port occupied by the virtual elastic interface and the corresponding relationship with the virtual machine are created. The information is sent to the interface device and the general-purpose processing device. The creation information includes: bandwidth occupied by the virtual elastic interface to be created, information of the corresponding virtual machine, and information of the occupied physical port.
第二方面, 提供了一种数据报文的传输系统, 所述系统包括: 接口设备 和通用处理设备, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设 备中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接 口占用, 且每个所述虚拟弹性接口与至少一个虚拟机具有对应关系; 所述通用处理设备, 用于确定发送第二数据报文的虚拟机对应的虚拟弹 性接口, 并根据物理端口与虚拟弹性接口之间的占用关系, 确定发送所述第 二数据报文的虚拟机对应的虚拟弹性接口所占用的物理端口的信息, 以及, 将确定的物理端口的信息携带在第二报文头信息中, 对所述第二数据报文封 装所述第二报文头信息后, 通过确定的所述虚拟弹性接口发送给所述接口设 备; The second aspect provides a data packet transmission system, where the system includes: an interface device and a general-purpose processing device, where the at least one virtual machine is created in the general-purpose processing device, and the interface device has at least one physical port The physical port is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine; The general processing device is configured to determine a virtual elastic interface corresponding to the virtual machine that sends the second data packet, and determine, according to the occupation relationship between the physical port and the virtual elastic interface, the virtual machine that sends the second data packet. The information of the physical port occupied by the corresponding virtual elastic interface, and the information of the determined physical port is carried in the second packet header information, and the second packet header information is encapsulated in the second data packet. Sending to the interface device by using the determined virtual elastic interface;
所述接口设备, 还用于在接收到所述第二数据报文时, 根据封装的第二 报文头信息中携带的物理端口信息, 将去掉所述第二报文头信息的第二数据 艮文通过对应的物理端口发送给外部物理设备。  The interface device is further configured to: when receiving the second data packet, remove the second data of the second packet header information according to the physical port information carried in the encapsulated second packet header information The text is sent to the external physical device through the corresponding physical port.
第三方面, 提供了一种接口设备, 所述接口设备中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接口占用, 且每个所述虚拟弹 性接口与通用处理设备中创建的至少一个虚拟机具有对应关系;  The third aspect provides an interface device, where the interface device has at least one physical port, where: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and the general processing device At least one virtual machine created has a corresponding relationship;
所述接口设备包括第一接收模块、 与所述第一接收模块连接的虚拟弹性 接口确定模块、 分别与所述虚拟弹性接口确定模块连接的虚拟机确定模块和 第一发送模块, 以及与所述虚拟机确定模块连接的封装模块, 其中:  The interface device includes a first receiving module, a virtual elastic interface determining module connected to the first receiving module, a virtual machine determining module and a first sending module respectively connected to the virtual elastic interface determining module, and the The virtual machine determines the encapsulation module to which the module is connected, where:
所述第一接收模块, 用于通过第一物理端口接收外部物理设备发送的第 一数据报文;  The first receiving module is configured to receive, by using the first physical port, a first data packet sent by an external physical device;
所述虚拟弹性接口确定模块, 用于根据所述第一物理端口与虚拟弹性接 口之间的占用关系, 确定传输所述第一数据报文的第一虚拟弹性接口;  The virtual elastic interface determining module is configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet;
所述虚拟机确定模块, 用于根据所述第一虚拟弹性接口与虚拟机的对应 关系, 确定所述第一虚拟弹性接口对应的笫一虚拟机的信息;  The virtual machine determining module is configured to determine information about a first virtual machine corresponding to the first virtual elastic interface according to the corresponding relationship between the first virtual elastic interface and the virtual machine;
所述封装模块, 用于对所述第一数据报文封装第一报文头信息, 所述第 一报文头信息中携带所述虚拟机确定模块确定的所述第一虚拟机的信息; 所述第一发送模块, 用于将所述封装模块封装了所述第一报文头信息的 第一数据报文通过所述虚拟弹性接口确定模块确定的第一虚拟弹性接口进行 发送。  The encapsulating module is configured to encapsulate the first packet header information in the first data packet, where the first packet header information carries information about the first virtual machine determined by the virtual machine determining module; The first sending module is configured to send, by using the first virtual elastic interface determined by the virtual elastic interface determining module, the first data packet that encapsulates the first packet header information by the encapsulating module.
结合第三方面, 在第一种可能的实现方式中, 所述接口设备还包括第二 接收模块、 与所述第二接收模块连接的解封装模块、 分别与所述解封装模块 连接的物理端口确定模块和第二发送模块, 其中: With reference to the third aspect, in a first possible implementation, the interface device further includes a second a receiving module, a decapsulation module connected to the second receiving module, a physical port determining module and a second sending module respectively connected to the decapsulating module, wherein:
所述第二接收模块, 用于通过第二虚拟弹性接口接收第二数据报文, 所 述第二数据报文封装有第二报文头信息, 所述第二报文头信息中携带有第二 物理端口的信息;  The second receiving module is configured to receive the second data packet by using the second virtual elastic interface, where the second data packet is encapsulated with the second packet header information, where the second packet header information carries the first Two physical port information;
所述解封装模块, 用于将所述第二接收模块接收到的所述第二数据报文 中的第二报文头信息解封装得到所述第二报文头信息和去掉所述第二报文头 信息的第二数据报文;  Decapsulating module, configured to decapsulate the second packet header information in the second data packet received by the second receiving module, to obtain the second packet header information, and remove the second packet header information The second data packet of the message header information;
所述物理端口硝定模块, 用于根据所述解封装模块解封装得到的所述第 二报文头信息中携带的第二物理端口的信息, 确定传输所述第二数据报文的 第二物理端口;  The physical port nitration module is configured to determine, according to information about the second physical port carried in the second packet header information obtained by decapsulation of the decapsulation module, to transmit the second data packet Physical port
所述第二发送模块, 用于将所述解封装模块解封装得到的去掉所述第二 报文头信息的第二数据报文通过所述物理端口确定模块确定的所述第二物理 端口发送给外部物理设备。  Transmitting, by the second sending module, the second data packet that is used to decapsulate the decapsulation module to remove the second packet header information by using the second physical port determined by the physical port determining module Give external physical devices.
结合第三方面或第三方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述虚拟弹性接口确定模块, 具体用于若所述第一物理端口被一 个虚拟弹性接口独占, 则确定该虚拟弹性接口为传输所述第一数据报文的第 一虚拟弹性接口, 若所述第一物理端口被多于一个虚拟弹性接口复用, 则根 据接收到的所述第一数据报文中携带的切片资源信息, 确定与该切片资源信 息对应的虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口。  With the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the virtual elastic interface determining module is specifically configured to: if the first physical port is a virtual elastic interface If the first physical port is multiplexed by more than one virtual elastic interface, the first physical port is determined to be the first virtual elastic interface. The virtual elastic interface corresponding to the slice resource information is a first virtual elastic interface for transmitting the first data packet.
结合第三方面、 第三方面的第一种可能的实现方式或第三方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 所述虚拟机确定模块, 具体 用于当传输所述第一数据报文的第一虚拟弹性接口与多个虚拟机具有对应关 系时, 根据负载均衡条件从所述多个虚拟机中确定一个虚拟机为所述第一虚 拟机。  With reference to the third aspect, the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner, the virtual machine determining module is specifically used to be When the first virtual elastic interface that transmits the first data packet has a corresponding relationship with multiple virtual machines, one virtual machine is determined from the plurality of virtual machines as the first virtual machine according to a load balancing condition.
结合第三方面、 第三方面的第一种可能的实现方式、 第三方面的第二种 可能的实现方式或第三方面的第三种可能的实现方式, 在第四种可能的实现 方式中, 所述封装模块, 具体用于将确定的所述第一虚拟机的 MAC地址作为 目的 MAC地址、 将自身的 MAC地址作为源 MAC地址和传输所述第一数据 报文的第一虚拟弹性接口所占用的物理端口的信息携带在所述第一报文头信 息中; In conjunction with the third aspect, the first possible implementation of the third aspect, the second possible implementation of the third aspect, or the third possible implementation of the third aspect, in a fourth possible implementation In the mode, the encapsulating module is specifically configured to use the determined MAC address of the first virtual machine as a destination MAC address, use its own MAC address as a source MAC address, and transmit a first virtual data packet. The information of the physical port occupied by the elastic interface is carried in the first packet header information.
其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一虚拟弹 性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者,  The information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or
在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。  When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
第四方面, 提供了一种接口设备, 所述接口设备中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接口占用, 且每个所述虚拟弹 性接口与通用处理设备中创建的至少一个虚拟机具有对应关系;  The fourth aspect provides an interface device, where the interface device has at least one physical port, where: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and the general processing device At least one virtual machine created has a corresponding relationship;
所述接口设备包括收发器和处理器, 其中:  The interface device includes a transceiver and a processor, wherein:
所述收发器, 用于通过第一物理端口接收外部物理设备发送的第一数据 报文, 以及, 根据处理器确定的第一虚拟弹性接口, 将处理器封装了第一报 文头信息的第一数据报文通过所述第一虚拟弹性接口进行发送;  The transceiver is configured to receive, by using a first physical port, a first data packet sent by an external physical device, and, according to the first virtual elastic interface determined by the processor, encapsulating the first packet header information by the processor Sending a data packet through the first virtual elastic interface;
处理器, 用于根据所述第一物理端口与虚拟弹性接口之间的占用关系, 确定传输所述第一数据报文的第一虚拟弹性接口, 以及, 根据所述第一虚拟 弹性接口与虚拟机的对应关系, 确定所述第一虚拟弹性接口对应的第一虚拟 机的信息, 并对所述第一数据报文封装第一报文头信息, 所述第一报文头信 息中携带所述第一虚拟机的信息。  a processor, configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet, and according to the first virtual elastic interface and the virtual Corresponding relationship between the first virtual machine and the information of the first virtual machine corresponding to the first virtual elastic interface, and encapsulating the first packet header information in the first data packet, where the first packet header information carries The information of the first virtual machine.
结合第四方面, 在第一种可能的实现方式中, 所述收发器, 还用于通过 第二虚拟弹性接口接收第二数据报文, 所述第二数据报文封装有第二报文头 信息, 所述第二报文头信息中携带有第二物理端口的信息, 以及将所述处理 器去掉所述第二报文头信息的第二数据报文通过所述处理器确定的所述第二 物理端口发送给外部物理设备;  With reference to the fourth aspect, in a first possible implementation, the transceiver is further configured to receive a second data packet by using a second virtual elastic interface, where the second data packet is encapsulated with a second packet header Information, the second packet header information carries the information of the second physical port, and the second data packet that removes the second packet header information by the processor is determined by the processor The second physical port is sent to an external physical device;
所述处理器, 用于将所述第二数据报文中的第二报文头信息解封装得到 所述第二报文头信息和去掉所述第二报文头信息的第二数据报文, 根据第二 报文头信息中携带的第二物理端口的信息, 确定传输所述第二数据报文的第 二物理端口。 The processor is configured to decapsulate the second packet header information in the second data packet The second packet header information and the second data packet with the second packet header information removed, determining to transmit the second datagram according to the information of the second physical port carried in the second packet header information The second physical port of the text.
结合第四方面或第四方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 处理器, 具体用于若所述第一物理端口被一个虚拟弹性接口独占, 则确定该虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口, 若所 述第一物理端口被多于一个虚拟弹性接口复用, 则根据接收到的所述第一数 据报文中携带的切片资源信息, 确定与该切片资源信息对应的虚拟弹性接口 为传输所述第一数据 ·^艮文的第一虚拟弹性接口。  With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation, the processor is configured to determine, if the first physical port is exclusive to a virtual elastic interface, The virtual elastic interface is a first virtual elastic interface that transmits the first data packet. If the first physical port is multiplexed by more than one virtual elastic interface, the first physical port is carried according to the received first data packet. The sliced resource information determines that the virtual elastic interface corresponding to the slice resource information is the first virtual elastic interface that transmits the first data.
结合第四方面、 第四方面的第一种可能的实现方式或第四方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 所述处理器, 具体用于当传 输所述第一数据报文的第一虚拟弹性接口与多个虚拟机具有对应关系时, 根 据负载均衡条件从所述多个虚拟机中确定一个虚拟机为所述第一虚拟机。  With reference to the fourth aspect, the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, in a third possible implementation manner, the processor is specifically used as a transmission station When the first virtual elastic interface of the first data packet has a corresponding relationship with the plurality of virtual machines, determining, by the load balancing condition, one virtual machine from the plurality of virtual machines is the first virtual machine.
结合第四方面、 第四方面的第一种可能的实现方式、 第四方面的第二种 可能的实现方式或第四方面的第三种可能的实现方式, 在第四种可能的实现 方式中, 所述处理器, 具体用于将确定的所述第一虚拟机的 MAC地址作为目 的 MAC地址、 将自身的 MAC地址作为源 MAC地址和传输所述第一数据报 文的第一虚拟弹性接口所占用的物理端口的信息携带在所述第一报文头信息 中;  With reference to the fourth aspect, the first possible implementation manner of the fourth aspect, the second possible implementation manner of the fourth aspect, or the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner The processor is specifically configured to use the determined MAC address of the first virtual machine as the destination MAC address, the MAC address of the first virtual machine as the source MAC address, and the first virtual elastic interface that transmits the first data packet. The information of the occupied physical port is carried in the first packet header information;
其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一虚拟弹 性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者,  The information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or
在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。  When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
第五方面, 提供了一种通用处理设备, 所述通用处理设备中创建有至少 一个虚拟机, 其中: 每个虚拟机对应一个弹性虚拟接口, 且至少一个虚拟弹 性接口占用接口设备中的一个物理端口; 所述通用处理设备包括: 第一接收模块、 与所述第一接收模块连接的虚 拟弹性接口确定模块、 分别与所述虚拟弹性接口确定模块连接的物理端口确 定模块和第一发送模块, 以及与所述物理端口确定模块连接的封装模块, 其 中: In a fifth aspect, a general processing device is provided, where at least one virtual machine is created, where: each virtual machine corresponds to one elastic virtual interface, and at least one virtual elastic interface occupies one physical medium in the interface device port; The general processing device includes: a first receiving module, a virtual elastic interface determining module connected to the first receiving module, a physical port determining module and a first sending module respectively connected to the virtual elastic interface determining module, and The physical port determines a module to which the module is connected, where:
所述第一接收模块, 用于接收第二虚拟机发出的第二数据报文; 所述虚拟弹性接口确定模块, 用于确定所述第二虚拟机对应的第二虚拟 弹性接口;  The first receiving module is configured to receive a second data packet sent by the second virtual machine, where the virtual elastic interface determining module is configured to determine a second virtual elastic interface corresponding to the second virtual machine;
所述物理端口确定模块, 用于根据物理端口与所述第二虚拟弹性接口之 间的占用关系, 确定所述第二虚拟弹性接口所占用的第二物理端口的信息; 所述封装模块, 用于对所述第一接收模块接收到的所述第二数据报文封 装第二报文头信息, 所述第二报文头信息中携带有所述物理端口确定模块确 定的第二物理端口的信息;  The physical port determining module is configured to determine information about a second physical port occupied by the second virtual elastic interface according to an occupation relationship between the physical port and the second virtual elastic interface; Encapsulating the second data packet with the second data packet received by the first receiving module, where the second packet header information carries the second physical port determined by the physical port determining module Information
所述第一发送模块, 用于通过所述虚拟弹性接口确定模块确定的所述第 二虚拟弹性接口, 将所述封装模块封装了所述第二报文头信息的第二数据报 文进行发送。  The first sending module is configured to send, by using the virtual elastic interface, the second virtual elastic interface that is determined by the module, and send, by the encapsulating module, the second data packet that encapsulates the second packet header information. .
结合第五方面, 在第一种可能的实现方式中, 所述通用处理设备还包括: 第二接收模块、 与所述第二接收模块连接的解封装模块、 分别与所述解封装 模块连接的虚拟机确定模块和第二发送模块, 其中:  With reference to the fifth aspect, in a first possible implementation, the general processing device further includes: a second receiving module, a decapsulation module connected to the second receiving module, and respectively connected to the decapsulation module a virtual machine determining module and a second sending module, wherein:
所述第二接收模块, 用于通过第一虚拟弹性接口接收第一数据报文, 所 述第一数据报文封装了第一报文头信息, 所述第一报文头信息中携带有第一 虚拟机的信息;  The second receiving module is configured to receive the first data packet by using the first virtual elastic interface, where the first data packet encapsulates the first packet header information, where the first packet header information carries the first Information of a virtual machine;
所述解封装模块, 用于将所述第二接收模块接收到的所述第一数据报文 中的第一报文头信息解封装得到所述第一报文头信息和去掉所述第一报文头 信息的第一数据报文;  Decapsulating module, configured to decapsulate the first packet header information in the first data packet received by the second receiving module, to obtain the first packet header information, and remove the first packet header information The first data packet of the packet header information;
所述虚拟机确定模块, 用于根据所述解封装模块解封装得到的所述第一 报文头信息中携带的第一虚拟机的信息, 确定接收所述第一数据报文的第一 虚拟机; 所述第二发送模块, 用于将所述解封装模块解封装得到的去掉所述第一 报文头信息的第一数据报文发送给所述虚拟机确定模块确定的所述第一虚拟 机。 The virtual machine determining module is configured to determine, according to information about the first virtual machine that is carried in the first packet header information that is decapsulated by the decapsulation module, that the first virtual data packet is received. machine; Transmitting, by the second sending module, the first data packet that is to be decapsulated by the decapsulation module and removing the first packet header information to the first virtual machine that is determined by the virtual machine determining module .
结合第五方面或第五方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述物理端口确定模块, 具体用于在所述第二虚拟弹性接口独占 第二物理端口时, 将该第二物理端口的端口号作为物理端口的信息, 或者, 在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的端 口号和该第二虚拟弹性接口对应的切片资源作为物理端口的信息。  With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a second possible implementation, the physical port determining module is specifically configured to exclusively occupy the second physical port in the second virtual elastic interface. The port number of the second physical port is used as the information of the physical port, or when the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the second virtual elasticity The slice resource corresponding to the interface is used as the information of the physical port.
结合第五方面、 第五方面的第一种可能的实现方式或第五方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 所述封装模块, 具体用于将 所述接口设备的 MAC地址作为目的 MAC地址和将所述第二虚拟机的 MAC 地址作为源 MAC地址携带在所述第二报文头信息中,对所述第二数据报文进 行封装。  With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, or the second possible implementation manner of the fifth aspect, in a third possible implementation, the encapsulating module is specifically configured to The MAC address of the interface device is used as the destination MAC address, and the MAC address of the second virtual machine is used as the source MAC address in the second packet header information, and the second data packet is encapsulated.
第六方面, 提供了一种通用处理设备, 所述通用处理设备中创建有至少 一个虚拟机, 其中: 每个虚拟机对应一个弹性虚拟接口, 且至少一个虚拟弹 性接口占用接口设备中的一个物理端口;  According to a sixth aspect, a general processing device is provided, where at least one virtual machine is created, where: each virtual machine corresponds to one elastic virtual interface, and at least one virtual elastic interface occupies one physical medium in the interface device Port
所述通用处理设备包括: 收发器和处理器, 其中:  The general purpose processing device includes: a transceiver and a processor, wherein:
所述收发器, 用于接收第二虚拟机发出的第二数据报文, 以及根据所述 处理器确定的第二虚拟弹性接口, 将处理器封装了第二报文头的第二数据报 文通过所述第二虚拟弹性接口进行发送;  The transceiver is configured to receive a second data packet sent by the second virtual machine, and encapsulate the second data packet of the second packet header by the processor according to the second virtual elastic interface determined by the processor. Transmitting through the second virtual elastic interface;
所述处理器, 用于确定所述第二虚拟机对应的第二虚拟弹性接口, 以及, 根据物理端口与所述第二虚拟弹性接口之间的占用关系, 确定所述第二虚拟 弹性接口所占用的第二物理端口的信息, 并对所述第二数据报文封装第二报 文头信息, 所述第二报文头信息中携带有确定的第二物理端口的信息。  The processor is configured to determine a second virtual elastic interface corresponding to the second virtual machine, and determine the second virtual elastic interface according to an occupation relationship between the physical port and the second virtual elastic interface. The information of the second physical port is occupied, and the second packet header is encapsulated with the second packet header. The second packet header carries the information of the second physical port.
结合第六方面, 在第一种可能的实现方式中, 所述处理器, 具体用于在 所述第二虚拟弹性接口独占第二物理端口时, 将该第二物理端口的端口号作 为物理端口的信息, 或者, 在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的端 口号和该第二虚拟弹性接口对应的切片资源作为物理端口的信息。 With reference to the sixth aspect, in a first possible implementation, the processor is specifically configured to: when the second virtual elastic interface occupies the second physical port, the port number of the second physical port is used as a physical port. Information, or, When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource corresponding to the second virtual elastic interface are used as information of the physical port.
结合第六方面或第六方面的第一种可能的实现方式, 在第二种可能的实 现方式中,所述处理器,具体用于将所述接口设备的 MAC地址作为目的 MAC 地址和将所述第二虚拟机的 MAC地址作为源 MAC地址携带在所述第二报文 头信息中, 对所述第二数据报文进行封装。  With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, in a second possible implementation, the processor is specifically configured to use a MAC address of the interface device as a destination MAC address and The MAC address of the second virtual machine is carried in the second packet header as the source MAC address, and the second data packet is encapsulated.
结合第六方面、 第六方面的第一种可能的实现方式或第六方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 所述收发器, 还用于通过第 一虚拟弹性接口接收第一数据报文, 所述第一数据报文封装了第一报文头信 息, 所述第一报文头信息中携带第一虚拟机的信息, 以及, 根据所述处理器 确定的第一虚拟机, 将处理器去掉所述第一报文头信息的第一数据报文发送 给所述第一虚拟机;  With reference to the sixth aspect, the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, in a third possible implementation manner, the transceiver is further configured to pass the first The virtual elastic interface receives the first data packet, where the first data packet encapsulates the first packet header information, the first packet header information carries information of the first virtual machine, and, according to the processor Determining, by the first virtual machine, the first data packet that removes the first packet header information from the processor and sends the first data packet to the first virtual machine;
所述处理器, 还用于将所述第一数据报文中的第一报文头信息解封装得 到所述第一报文头信息和去掉所述第一报文头信息的第一数据报文, 根据第 一报文头信息中携带的第一虚拟机的信息, 确定接收所述第一数据报文的第 一虚拟机。  The processor is further configured to decapsulate the first packet header information in the first data packet to obtain the first packet header information and the first data packet with the first packet header information removed. And determining, according to the information of the first virtual machine carried in the first packet header information, the first virtual machine that receives the first data packet.
第七方面, 提供了一种数据报文的传输方法, 所述方法包括:  A seventh aspect provides a method for transmitting a data packet, where the method includes:
接口设备通过第一物理端口接收到外部物理设备发送的第一数据报文 时, 根据所述第一物理端口与虚拟弹性接口之间的占用关系, 确定传输所述 第一数据报文的第一虚拟弹性接口, 并根据所述第一虚拟弹性接口与虚拟机 的对应关系, 确定接收所述第一数据报文的第一虚拟机的信息;  When the interface device receives the first data packet sent by the external physical device, the interface device determines, according to the occupation relationship between the first physical port and the virtual elastic interface, that the first data packet is transmitted. a virtual elastic interface, and determining, according to the correspondence between the first virtual elastic interface and the virtual machine, information of the first virtual machine that receives the first data packet;
所述接口设备将确定的所述第一虚拟机的信息携带在第一报文头信息 中, 对所述第一数据报文封装所述第一报文头信息后, 通过确定的所述第一 虚拟弹性接口发送给所述通用处理设备;  The interface device carries the determined information of the first virtual machine in the first packet header information, and after the first packet header information is encapsulated in the first data packet, the determined a virtual elastic interface is sent to the general processing device;
通用处理设备在接收到所述第一数据报文时, 根据封装的第一报文头信 息确定接收所述第一数据报文的所述第一虚拟机, 并将去掉所述第一报文头 信息的第一数据报文发送给所述第一虚拟机; 其中, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设备中有 至少一个物理端口, 一个所述物理端口被至少一个虚拟弹性接口占用, 且每 个所述虚拟弹性接口与至少一个虚拟机具有对应关系。 When receiving the first data packet, the general processing device determines, according to the encapsulated first packet header information, the first virtual machine that receives the first data packet, and removes the first packet. Sending, by the first data packet, the first data packet to the first virtual machine; At least one virtual machine is created in the general-purpose processing device, the interface device has at least one physical port, and one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and at least one The virtual machine has a corresponding relationship.
结合第七方面, 在第一种可能的实现方式中, 所述方法还包括: 所述通用处理设备确定发送第二数据报文的第二虚拟机对应的第二虚拟 弹性接口, 并根据物理端口与所述第二虚拟弹性接口之间的占用关系, 确定 所述第二虚拟弹性接口所占用的第二物理端口的信息;  With reference to the seventh aspect, in a first possible implementation, the method further includes: determining, by the general processing device, a second virtual elastic interface corresponding to the second virtual machine that sends the second data packet, and according to the physical port Determining, by the occupancy relationship between the second virtual elastic interface, information about the second physical port occupied by the second virtual elastic interface;
所述通用处理设备将确定的所述第二物理端口的信息携带在第二报文头 信息中, 对所述第二数据报文封装所述第二报文头信息后, 通过确定的所述 第二虚拟弹性接口发送给所述接口设备;  The general processing device carries the determined information of the second physical port in the second packet header information, and after the second packet header is encapsulated in the second data packet, the determined Sending, by the second virtual elastic interface, the interface device;
所述接口设备在接收到所述第二数据报文时, 根据封装的第二报文头信 息中携带的第二物理端口的信息, 将去掉所述第二报文头信息的第二数据报 文通过对应的所述第二物理端口发送给外部物理设备。  When receiving the second data packet, the interface device removes the second data packet of the second packet header information according to the information of the second physical port carried in the encapsulated second packet header information. The text is sent to the external physical device through the corresponding second physical port.
结合第七方面或第七方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 所述接口设备通过以下方式确定传输所述第一数据报文的第一虚 拟弹性接口:  With reference to the seventh aspect, or the first possible implementation manner of the seventh aspect, in a second possible implementation manner, the interface device determines, by using the following manner, a first virtual elastic interface that transmits the first data packet:
若所述第一物理端口被一个虚拟弹性接口独占, 则所述接口设备确定该 虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口, 若所述第一物 理端口被多于一个虚拟弹性接口复用, 则所述接口设备根据接收到的所述第 一数据报文中携带的切片资源信息, 确定与该切片资源信息对应的虚拟弹性 接口为传输所述第一数据报文的第一虚拟弹性接口。  If the first physical port is exclusively occupied by a virtual elastic interface, the interface device determines that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, if the first physical port is more than The virtual elastic interface is multiplexed, and the interface device determines, according to the received slice resource information in the first data packet, that the virtual elastic interface corresponding to the slice resource information is used to transmit the first data packet. The first virtual elastic interface.
结合第七方面、 第七方面的第一种可能的实现方式或第七方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 当传输所述第一数据报文的 第一虚拟弹性接口与多个虚拟机具有对应关系时, 所述接口设备根据负载均 衡条件从所述多个虚拟机中确定一个虚拟机为所述第一虚拟机。  With reference to the seventh aspect, the first possible implementation manner of the seventh aspect, or the second possible implementation manner of the seventh aspect, in a third possible implementation manner, when the first data packet is transmitted When a virtual elastic interface has a corresponding relationship with multiple virtual machines, the interface device determines one virtual machine from the plurality of virtual machines as the first virtual machine according to a load balancing condition.
结合第七方面、 第七方面的第一种可能的实现方式、 第七方面的第二种 可能的实现方式或第七方面的第三种可能的实现方式, 在第四种可能的实现 方式中, 所述方法还包括: In conjunction with the seventh aspect, the first possible implementation of the seventh aspect, the second possible implementation of the seventh aspect, or the third possible implementation of the seventh aspect, in a fourth possible implementation In the method, the method further includes:
所述接口设备还将确定的所述第一虚拟机的 MAC地址作为目的 MAC地 址、 将自身的 MAC地址作为源 MAC地址和传输所述第一数据报文的第一虚 拟弹性接口所占用的物理端口的信息携带在所述第一报文头信息中;  The interface device also determines the MAC address of the first virtual machine as the destination MAC address, the MAC address of the first virtual machine as the source MAC address, and the physics occupied by the first virtual elastic interface that transmits the first data packet. The information of the port is carried in the first packet header information.
其中, 其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一 虚拟弹性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者, 在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。  The information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or When the first physical port is multiplexed by the virtual elastic interface, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port and the slice resource information corresponding to the first virtual elastic interface. .
结合第七方面的第一种可能的实现方式, 在第五种可能的实现方式中, 所述通用处理设备将确定的第二物理端口的信息携带在第二报文头信息中, 具体包括:  With reference to the first possible implementation manner of the seventh aspect, in a fifth possible implementation manner, the information processing, by the general processing device, the information of the second physical port is carried in the second packet header information, including:
所述通用处理设备在所述第二虚拟弹性接口独占第二物理端口时, 将该 第二物理端口的端口号作为物理端口的信息携带在所述第二报文头信息中, 或者, 在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的 端口号和该第二虚拟弹性接口对应的切片资源信息作为物理端口的信息携带 在所述第二报文头信息中。  When the second virtual elastic interface is the second physical port, the general processing device carries the port number of the second physical port as the information of the physical port in the second packet header information, or When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource information corresponding to the second virtual elastic interface are carried as the physical port information in the second packet header information. in.
结合第七方面的第一种可能的实现方式或第七方面的第五种可能的实现 方式, 在第六种可能的实现方式中, 所述方法还包括:  With reference to the first possible implementation manner of the seventh aspect, or the fifth possible implementation manner of the seventh aspect, in a sixth possible implementation manner, the method further includes:
所述通用处理设备还将所述接口设备的 MAC地址作为目的 MAC地址和 将所述第二虚拟机的 MAC地址作为源 MAC地址携带在所述第二报文头信息 中。  The general-purpose processing device also carries the MAC address of the interface device as the destination MAC address and the MAC address of the second virtual machine as the source MAC address in the second packet header information.
结合第七方面、 第七方面的第一种可能的实现方式、 第七方面的第二种 可能的实现方式、 第七方面的第三种可能的实现方式、 第七方面的第四种可 能的实现方式、 第七方面的第五种可能的实现方式或第七方面的第六种可能 的实现方式, 在第七种可能的实现方式中, 所述方法还包括:  With reference to the seventh aspect, the first possible implementation manner of the seventh aspect, the second possible implementation manner of the seventh aspect, the third possible implementation manner of the seventh aspect, and the fourth possible The implementation manner, the fifth possible implementation manner of the seventh aspect, or the sixth possible implementation manner of the seventh aspect, in a seventh possible implementation manner, the method further includes:
管理设备在接收到创建虚拟弹性接口的申请时, 根据申请中的创建信息 创建虚拟弹性接口, 所述创建信息包括: 待创建的虚拟弹性接口需占用的带 宽、 对应的虚拟机的信息、 所占用的物理端口的信息; When the management device receives an application to create a virtual elastic interface, it creates information according to the application. The virtual elastic interface is created, and the created information includes: bandwidth occupied by the virtual elastic interface to be created, information of the corresponding virtual machine, and information of the occupied physical port;
所述管理设备将创建的所述虚拟弹性接口所占用的物理端口的信息和与 虚拟机的对应关系发送给所述接口设备和所述通用处理设备。  And the management device sends the information about the physical port occupied by the virtual elastic interface and the corresponding relationship with the virtual machine to the interface device and the general processing device.
第八方面, 提供一种数据报文的传输方法, 所述方法包括:  The eighth aspect provides a method for transmitting a data packet, where the method includes:
通用处理设备确定发送第二数据 文的虚拟机对应的虚拟弹性接口, 并 根据物理端口与虚拟弹性接口之间的占用关系, 确定虚拟机对应的虚拟弹性 接口所占用的物理端口的信息;  The general processing device determines the virtual elastic interface corresponding to the virtual machine that sends the second data, and determines the physical port information occupied by the virtual elastic interface corresponding to the virtual machine according to the occupation relationship between the physical port and the virtual elastic interface;
所述通用处理设备将确定的物理端口的信息携带在第二报文头信息中, 对所述第二数据报文封装所述第二报文头信息后, 通过确定的所述虚拟弹性 接口发送给所述接口设备;  The general-purpose processing device carries the information of the determined physical port in the second packet header information, and encapsulates the second packet header information in the second data packet, and sends the information through the determined virtual elastic interface. Giving the interface device;
所述接口设备在接收到所述第二数据报文时, 根据封装的第二报文头信 息中携带的物理端口信息, 将去掉所述第二报文头信息的第二数据报文通过 对应的物理端口发送给外部物理设备;  When receiving the second data packet, the interface device passes the second data packet with the second packet header information removed according to the physical port information carried in the encapsulated second packet header information. The physical port is sent to the external physical device;
其中, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设备中有 至少一个物理端口, 一个所述物理端口被至少一个虚拟弹性接口占用, 且每 个所述虚拟弹性接口与至少一个虚拟机具有对应关系。  At least one virtual machine is created in the general-purpose processing device, the interface device has at least one physical port, and one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces and at least one The virtual machine has a corresponding relationship.
本申请有益效果如下:  The beneficial effects of the application are as follows:
通过本发明实施例的方案, 虚拟机能够接收并处理流经某一物理端口的 所有数据报文,或流经某一物理端口的包含特定 VLAN标识的所有数据报文, 扩大了虚拟机处理的数据报文的范围, 使得虚拟机的功能将被最大化地使用, 有效地优化了虚拟化效果, 实现了以前无法实现的功能。 附图说明  With the solution of the embodiment of the present invention, the virtual machine can receive and process all data packets flowing through a physical port, or all data packets including a specific VLAN identifier flowing through a physical port, and expand the processing of the virtual machine. The scope of the data message enables the virtual machine's functions to be maximized, effectively optimizing the virtualization effect and realizing functions that were previously impossible. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作简要介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域的普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following drawings will be briefly described in the description of the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present invention, Those of ordinary skill in the art, without paying for creative labor Further drawings can also be obtained from these drawings.
图 1为和图 2背景技术中两种虚拟机的组网示意图;  1 is a schematic diagram of networking of two virtual machines in the background art of FIG. 2;
图 3和图 4为本发明实施例一中数据报文的传输系统结构示意图; 图 5 为本发明实施例一中数据报文从外部物理设备传输给虚拟机的方法 步骤示意图;  FIG. 3 is a schematic structural diagram of a data packet transmission system according to Embodiment 1 of the present invention; FIG. 5 is a schematic diagram of a method for transmitting a data packet from an external physical device to a virtual machine according to Embodiment 1 of the present invention;
图 6为本发明实施例一中在 MAC报文外封装第一报文头信息后的结构示 意图;  FIG. 6 is a schematic structural diagram of the first packet header information encapsulated outside the MAC packet according to the first embodiment of the present invention;
图 7 为本发明实施例一中数据报文虚拟机传输给外部物理设备的方法步 骤示意图;  7 is a schematic diagram of a method for transmitting a data packet virtual machine to an external physical device according to Embodiment 1 of the present invention;
图 8和图 9为本发明实施例二中结构设备结构示意图;  8 and FIG. 9 are schematic structural diagrams of a structure device according to Embodiment 2 of the present invention;
图 10为本发明实施例三中的通用处理设备结构示意图。 具体实施方式  FIG. 10 is a schematic structural diagram of a general processing device according to Embodiment 3 of the present invention. detailed description
为了使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本 发明作进一步地详细描述, 显然, 所描述的实施例仅仅是本发明一部份实施 例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在 没有做出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的 范围。  The present invention will be further described in detail with reference to the accompanying drawings, in which FIG. . 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.
为了优化虚拟化效果, 使复杂网络中虚拟机所模拟的功能能够被最大化 地使用, 本发明实施例提出了一种新的数据报文的传输方案, 该方案包括两 个方向的数据报文传输过程:  In order to optimize the virtualization effect, the function simulated by the virtual machine in the complex network can be maximized. The embodiment of the present invention provides a new data packet transmission scheme, which includes data packets in two directions. Transmission process:
数据报文从外部物理设备传输给虚拟机的过程:  The process of transferring data packets from an external physical device to a virtual machine:
接口设备通过本地的物理端口接收到外部物理设备传入的第一数据报文 时, 并不立即将第一数据报文传输给虚拟机, 而是先确定用于传输所述第一 数据报文的虚拟弹性接口, 后续简称 EIF接口, 然后在根据 EIF接口与虚拟 机之间的对应关系, 确定与所述 EIF接口对应的虚拟机后, 在所述第一数据 报文外封装笫一报文头后, 将第一数据报文通过确定的 EIF接口发送给通用 处理设备, 所述第一报文头中携带确定出的虚拟机的信息; 最后由通用处理 设备解封装第一报文头后, 将第一数据报文发送给相应的虚拟机。 When the interface device receives the first data packet sent by the external physical device through the local physical port, the interface does not immediately transmit the first data packet to the virtual machine, but first determines to transmit the first data packet. a virtual elastic interface, which is hereinafter referred to as an EIF interface, and then, after determining a virtual machine corresponding to the EIF interface according to the correspondence between the EIF interface and the virtual machine, encapsulating the first data packet After the header, the first data packet is sent to the universal through the determined EIF interface. The processing device, the first packet header carries the information of the determined virtual machine; after the first packet header is decapsulated by the general processing device, the first data packet is sent to the corresponding virtual machine.
数据报文从虚拟机传输给外部物理设备的过程:  The process of transferring data packets from a virtual machine to an external physical device:
通用处理设备接收到虚拟机发出的第二数据报文时, 根据虚拟机与 EIF 接口的对应关系, 确定发送所述第二数据艮文的虚拟机对应的 EIF接口, 由 于 EIF接口占用接口设备上的物理端口, 包括独占或复用物理端口, 因此, 在确定 EIF接口后, 可进一步确定该 EIF接口所占用的物理端口的信息; 通 用处理设备将所述物理端口的信息携带在第二报文头中并将第二报文头封装 在所述第二数据报文外, 通过确定的 EIF接口发送给接口设备, 最后由接口 设备解封装第二报文头后, 将第二数据报文通过相应的物理端口发送给外部 物理设备。  When receiving the second data packet sent by the virtual machine, the general processing device determines the EIF interface corresponding to the virtual machine that sends the second data packet according to the corresponding relationship between the virtual machine and the EIF interface, because the EIF interface occupies the interface device. The physical port includes the exclusive or multiplexed physical port. Therefore, after determining the EIF interface, the information of the physical port occupied by the EIF interface may be further determined; the general processing device carries the information of the physical port in the second packet. The header is encapsulated in the second data packet, and is sent to the interface device by using the determined EIF interface. After the second packet header is decapsulated by the interface device, the second data packet is passed. The corresponding physical port is sent to the external physical device.
需要说明的是, 本发明实施例的方案所涉及的外部物理设备是指独立于 虚拟架构层中各设备的外部物理设备, 如基站。  It should be noted that the external physical device involved in the solution of the embodiment of the present invention refers to an external physical device, such as a base station, which is independent of each device in the virtual infrastructure layer.
所述通用处理设备和接口设备是虚拟架构层中的基础设施层中的设备, 其中:  The general purpose processing device and interface device are devices in an infrastructure layer in a virtual infrastructure layer, where:
所述通用处理设备可以是宿主机, 也可以是宿主机中的功能部件, 所述 通用处理设备中可创建至少一个虚拟机, 且所述通用处理设备能够对创建的 虚拟机进行数据报文的收发管理。  The general-purpose processing device may be a host device, or may be a functional component in the host device. At least one virtual machine may be created in the general-purpose processing device, and the general-purpose processing device can perform data packet on the created virtual machine. Transceiver management.
所述接口设备中有至少一个物理端口, 其可以是独立于所述通用处理设 备的专用接口设备, 也可以是宿主机中的接口设备, 也就是说, 所述通用处 理设备和接口设备可以是各自独立的硬件设备, 也可以是集成在一起的硬件 设备, 但各自具有实现相应功能的能力, 例如, 通用处理设备可以是虚拟机 系统中用于业务处理的单板, 接口设备可以是用于交换的接口单板。 需要说 明的是, 上述只是举例, 并不限于此。  The interface device has at least one physical port, which may be a dedicated interface device independent of the general-purpose processing device, or an interface device in the host device, that is, the general-purpose processing device and the interface device may be The independent hardware devices may also be integrated hardware devices, but each has the capability of implementing corresponding functions. For example, the general-purpose processing device may be a board for service processing in the virtual machine system, and the interface device may be used for Interface board for switching. It should be noted that the above is only an example and is not limited thereto.
所述 EIF接口是一种虚拟接口, 可视为通用处理设备和接口设备之间传 输数据报文的传输通道, 其与接口设备上的物理端口以及与通用处理设备上 的虚拟机之间分別具有以下关联关系: 1 )、 所述 EIF接口与物理端口之间的关联关系如下: The EIF interface is a virtual interface, which can be regarded as a transmission channel for transmitting data packets between the general processing device and the interface device, and has a physical port on the interface device and a virtual machine on the general processing device. The following associations: 1) The relationship between the EIF interface and the physical port is as follows:
所述 EIF接口需要占用一定的物理端口资源 , 这里的物理端口资源可以 包括物理端口的流量或者带宽等, 一个 EIF接口独占某一物理端口, 或是多 个 EIF接口复用一物理端口。  The EIF interface needs to occupy a certain physical port resource. The physical port resource can include the physical port traffic or bandwidth. An EIF interface occupies a certain physical port, or multiple EIF interfaces multiplex a physical port.
若一个 EIF接口独占一个物理端口, 则该 EIF接口通过的流量可以对应 其所独占的物理端口的全部流量, 换句话说, 就是在数据报文从外部物理设 备传输给虚拟机时, 流经该物理端口的所有数据报文都会流经独占该物理端 口的 EIF接口, 在数据报文从虚拟机传输给外部物理设备时, 流经该 EIF接 口的数据报文都会流经该 EIF接口独占的物理端口。  If an EIF interface occupies a physical port, the traffic passing the EIF interface can correspond to the total traffic of the physical port that is exclusive to the EIF interface. In other words, when the data packet is transmitted from the external physical device to the virtual machine, the traffic flows through the EIF interface. All the data packets of the physical port are transmitted through the EIF interface of the EIF interface. When the data packets are transmitted from the virtual machine to the external physical device, the data packets flowing through the EIF interface pass through the physical device exclusive to the EIF interface. port.
若多个 EIF接口复用一个物理端口, 则每个 EIF接口可占用该物理端口 上的一部分切片资源, 以切片资源为虚拟局域网 ( Virtual Local Area Network , VLAN )接口为例,一个物理端口上可设置多个 VLAN接口,如设置 4个 VLAN 接口, 切片资源信息分别为 VLAN1~VLAN4 , —个 EIF接口可对应一个切片 资源信息, 如 eifl对应 VLAN1 , 则一个 EIF接口通过的流量可以对应其所占 用的物理端口流经的所有流量中, 包含的 VLAN 标识为该 EIF接口对应的 VLA 标识的数据报文的流量, 换句话说, 满足以下条件的数据报文将流经 物理端口上复用的某一 EIF接口: 数据 · ^文从外部物理设备传输给虚拟机时, 流经该 EIF接口所复用的物理端口, 且包含的 VLAN标识与该 EIF接口对应 的 VLAN标识相同, 在数据报文从虚拟机传输给外部物理设备时, 发出该数 据艮文的虚拟机是与该 EIF接口对应的虚拟机。  If multiple EIF interfaces are multiplexed with one physical port, each EIF interface can occupy a part of the sliced resources on the physical port. The virtual local area network (VLAN) interface is used as an example. Set multiple VLAN interfaces, for example, set up four VLAN interfaces. The slicing resource information is VLAN1~VLAN4. One EIF interface can correspond to one slice resource information. For example, if eifl corresponds to VLAN1, the traffic passing through an EIF interface can be used. The traffic of the physical port is the traffic of the data packet of the VLA identifier corresponding to the EIF interface. In other words, the data packet that meets the following conditions will flow through the physical port. An EIF interface: The data port is transmitted from the external physical device to the virtual machine, and flows through the physical port multiplexed by the EIF interface, and the VLAN identifier included is the same as the VLAN identifier corresponding to the EIF interface, and the data packet is When the virtual machine is transferred to the external physical device, the virtual machine that sends the data is corresponding to the EIF interface. The proposed machine.
2 )、 所述 EIF接口与虚拟机之间的关联关系如下:  2) The relationship between the EIF interface and the virtual machine is as follows:
所述 EIF接口与虚拟机具有对应关系, 即: 一个 EIF接口可以映射到至 少一个虚拟网卡 ( vNIC ) 上, 由与所述 vNIC关联的虚拟机处理该 EIF接口 收发的数据报文, 换句话说, 就是一个 EIF接口与至少一个虚拟机具有对应 关系, 但一个虚拟机只与一个 EIF接口对应。 在数据 4艮文从外部物理设备传 输给虚拟机时, 可根据负载均衡等方式, 使得流经该 EIF接口的数据报文将 会传输给该 EIF接口对应的一个虚拟机, 本发明实施例并不限于负载均衡方 式。 在数据报文从虚拟机传输给外部物理设备时, 虚拟机发送的数据报文将 会流经该虚拟机对应的 EIF接口。 The EIF interface has a corresponding relationship with the virtual machine, that is, an EIF interface can be mapped to at least one virtual network card (VNIC), and the virtual machine associated with the vNIC processes the data packet sent and received by the EIF interface. That is, an EIF interface has a correspondence with at least one virtual machine, but a virtual machine only corresponds to one EIF interface. When the data is transmitted from the external physical device to the virtual machine, the data packet flowing through the EIF interface is transmitted to a virtual machine corresponding to the EIF interface according to the method of load balancing, etc. Not limited to load balancing Style. When a data packet is transmitted from the virtual machine to the external physical device, the data packet sent by the virtual machine will flow through the EIF interface corresponding to the virtual machine.
通过以上对本发明实施例方案的整体描述可知: 在本发明实施例的数据 报文传输过程中, 不论哪个外部物理设备向虚拟机发送数据报文, 由于外部 物理设备向接口设备传输数据报文时所流经的物理端口是预先配置的, 即外 部物理设备与传输数据报文的物理端口之间的关系是确定的, 另外, 由于物 理端口与 EIF接口之间的占用关系以及 EIF接口与虚拟机之间的对应关系也 已确定, 因此, 某一虚拟机能够接收并处理流经某一物理端口的所有数据报 文, 或流经某一物理端口的包含特定 VLAN标识的所有数据报文, 扩大了虚 拟机处理的数据报文的范围, 使得虚拟机的功能将被最大化地使用, 有效地 优化了虚拟化效杲, 实现了以前无法实现的功能。 例如, 虚拟机接收到与链 路层相关的数据报文后,如接收到链路汇聚控制协议( Link Aggregation Control Protocol, LACP )报文后, 虚拟机就可与外部网络设备实现链路聚合协商的 功能。  Through the above description of the solution to the embodiment of the present invention, in the data packet transmission process of the embodiment of the present invention, no matter which external physical device sends a data packet to the virtual machine, when the external physical device transmits the data packet to the interface device, The physical port that is passed through is pre-configured, that is, the relationship between the external physical device and the physical port that transmits the data packet is determined. In addition, the occupation relationship between the physical port and the EIF interface and the EIF interface and the virtual machine are determined. The corresponding relationship has also been determined. Therefore, a virtual machine can receive and process all data packets flowing through a physical port, or all data packets containing a specific VLAN identifier flowing through a physical port, and expand The scope of the data message processed by the virtual machine enables the virtual machine's functions to be maximized, effectively optimizing the virtualization effect and realizing functions that were previously impossible. For example, after the virtual machine receives the data packet related to the link layer, the virtual machine can implement link aggregation negotiation with the external network device after receiving the Link Aggregation Control Protocol (LACP) packet. The function.
另外, 虽然在实际的网络架构中, 虚拟机与物理端口之间有多跳的转发 路径, 但由于虚拟机处理的数据报文即为流经某一物理端口的全部数据报文 或包含特定 VLAN标识的数据报文, 因此, 如果将虚拟机与物理端口之间视 为直传的相邻两跳传输的话, 所述物理端口等价于虚拟机的虚拟端口, 此时, 非虚拟化环境下的传输协议以及传输机制就可应用在虚拟化环境中, 对虚拟 化技术是有效的优化。  In addition, although there is a multi-hop forwarding path between the virtual machine and the physical port in the actual network architecture, the data packet processed by the virtual machine is all data packets flowing through a physical port or contains a specific VLAN. The data packet is identified. Therefore, if the virtual machine and the physical port are regarded as directly transmitted two-hop transmission, the physical port is equivalent to the virtual port of the virtual machine. In this case, in the non-virtualized environment. The transport protocol and transport mechanism can be applied in a virtualized environment, which is an effective optimization for virtualization technology.
进一步地, 在本发明实施例的方案中, 由于无需按照背景技术中所涉及 的方式一和方式二来分配因特网的 IP地址, 节约了因特网的 IP地址, 也降低 了方案的实现难度。  Further, in the solution of the embodiment of the present invention, since the IP address of the Internet is not required to be allocated according to the manners 1 and 2 in the background art, the IP address of the Internet is saved, and the implementation difficulty of the solution is also reduced.
需要说明的是, 本发明各实施例中针对数据报文的 "第一"、 "第二" 的 限定是用于区分从外部物理设备传输给虚拟机的数据报文和从虚拟机传输给 外部物理设备的数据报文, 并不对数据报文的内容有任何限定。  It should be noted that, in the embodiments of the present invention, the definitions of "first" and "second" for data packets are used to distinguish data packets transmitted from the external physical device to the virtual machine and transmitted from the virtual machine to the external device. The data packet of the physical device does not have any restrictions on the content of the data packet.
类似的, 针对报文头的 "第一"、 "第二" 的限定是用于区分接口设备在 发送给虚拟机的数据报文外封装的报文头和通用处理设备在发送给外部物理 设备的数据报文外封装的报文头, 并不对报文头的内容有任何限定。 Similarly, the "first" and "second" restrictions for the header are used to distinguish interface devices. The header of the packet encapsulated in the data packet sent to the virtual machine and the header of the general processing device encapsulated in the data packet sent to the external physical device do not limit the content of the packet header.
下面结合说明书附图对本发明的具体实施过程进行详细描述, 当然, 本 发明实施例并不局限于以下实施例的方案。  The specific implementation process of the present invention will be described in detail below with reference to the accompanying drawings. Of course, the embodiments of the present invention are not limited to the solutions of the following embodiments.
实施例一:  Embodiment 1:
本发明实施例一所涉及的传输系统应用在云计算架构层中的基础设施层 中, 以下以接口设备为独立的专用接口设备为例对本发明实施例一的方案进 行描述。  The transmission system of the first embodiment of the present invention is applied to the infrastructure layer in the cloud computing architecture layer. The following describes the solution of the first embodiment of the present invention by taking the interface device as an independent dedicated interface device as an example.
如图 3 所示, 为本发明实施例一中数据报文的传输系统结构示意图, 假 设: 系统中有两个通用处理设备, 分别为通用处理设备 1和通用处理设备 2, 每个通用处理设备中创建有 2个虚拟机, 分别为 VM1~VM4, 通用处理设备 内安装有操作系统, 每个虚拟机中也安装有独立的操作系统。 其中: VM1和 VM2是租户 1租用的虚拟机, VM3和 VM4是租户 2租用的虚拟机; 虚拟机 通过 vNIC与通用处理设备进行数据报文的交互 ,通用处理设备通过第一网卡 与交换网中的交换机之间进行通信, 通信方式可以为背板连接、 网线或光纤 方式, 交换机通过第二网卡与接口设备之间进行通信, 通信方式可以为背板 连接、 网线或光纤方式, 接口设备通过本地的物理端口与外部物理设备进行 通信。 在本实施例一的方案中, 所述外部物理设备为基站, 图 3 中标示出了 两个基站, 分别为不同租户架设的基站, 且每个基站都能够与接口设备进行 通信。  As shown in FIG. 3, it is a schematic structural diagram of a data packet transmission system according to Embodiment 1 of the present invention. It is assumed that: There are two general processing devices in the system, namely, a general processing device 1 and a general processing device 2, and each general processing device There are two virtual machines created, VM1~VM4, an operating system installed in the general processing device, and a separate operating system installed in each virtual machine. VM1 and VM2 are virtual machines leased by tenant 1, VM3 and VM4 are virtual machines leased by tenant 2; the virtual machine exchanges data packets with the general processing device through the vNIC, and the general processing device passes through the first network card and the switching network. The communication between the switches can be the backplane connection, the network cable or the optical fiber. The switch communicates with the interface device through the second network card. The communication mode can be the backplane connection, the network cable or the optical fiber. The interface device passes the local device. The physical port communicates with an external physical device. In the solution of the first embodiment, the external physical device is a base station, and two base stations are shown in FIG. 3, which are respectively base stations set up by different tenants, and each base station can communicate with the interface device.
所述传输系统在进行数据报文的传输之前, 需创建 EIF接口, 所述 EIF 接口需由基础设施层中的管理设备来创建, 所述管理设备可以是通用处理设 备中具有创建 EIF接口能力的逻辑模块, 也可以是独立设置的逻辑模块, 本 发明实施例一并不对此做限定。  The EIF interface needs to be created before the data transmission is performed by the transmission system. The EIF interface needs to be created by a management device in the infrastructure layer. The management device can be a general processing device capable of creating an EIF interface. The logic module may also be a logic module that is independently set. The first embodiment of the present invention does not limit this.
所述管理设备创建 EIF接口的具体过程如下:  The specific process of the management device to create an EIF interface is as follows:
第一步: 管理设备接收创建 EIF接口的申请。  Step 1: The management device receives an application to create an EIF interface.
所述创建 EIF接口的申请可由管理员手动输入, 也可以由云计算架构层 中的其他设备发起。 The application for creating an EIF interface may be manually input by an administrator or may be implemented by a cloud computing architecture layer. Initiated by other devices in .
所述申请中携带有创建信息, 所述创建信息包括但不限于以下信息: The application carries the creation information, and the creation information includes but is not limited to the following information:
1 )、 待创建的 EIF接口需占用的带宽; 1) The bandwidth occupied by the EIF interface to be created;
2 )、 待创建的 EIF接口对应的虚拟机的信息;  2), the information of the virtual machine corresponding to the EIF interface to be created;
3 )、 待创建的 EIF接口所占用的物理端口的信息;  3) Information about the physical port occupied by the EIF interface to be created;
4 )、 待创建的 EIF接口是独占物理端口还是与其他 EIF接口一起复用物 理端口的信息以及待创建的虚拟弹性接口所占用的物理端口的信息。  4) Whether the EIF interface to be created is the exclusive physical port or the information of the physical port and the physical port occupied by the virtual elastic interface to be created.
如果待创建的 EIF接口是独占物理端口, 所述待创建的 EIF接口所占用 的物理端口的信息是所占用的物理端口的端口号 , 如果待创建的 EIF接口是 复用物理端口 , 所述待创建的 EIF接口所占用的物理端口的信息是所占用的 物理端口的端口号和待创建的 EIF接口对应的切片资源信息, 所述切片资源 信息可以为 VLAN标识,切片资源信息所表示的切片资源可以为 VLAN接口。  If the EIF interface to be created is an exclusive physical port, the information about the physical port occupied by the EIF interface to be created is the port number of the occupied physical port. If the EIF interface to be created is a multiplexed physical port, the The information of the physical port occupied by the created EIF interface is the port number of the occupied physical port and the slice resource information corresponding to the EIF interface to be created. The slice resource information may be a VLAN identifier, and the slice resource indicated by the slice resource information. Can be a VLAN interface.
第二步: 管理设备进行准入判定, 所述准入判定是指判断当前系统的实 际状况是否满足创建信息的要求, 进而确定是否能够创建申请的 EIF接口。  Step 2: The management device performs an admission determination. The admission determination refers to determining whether the actual status of the current system satisfies the requirement for creating information, and further determines whether the applied EIF interface can be created.
例如: 是否有足够的空闲带宽分配给待创建的 EIF接口, 待创建的 EIF 接口所占用的物理端口是否存在, 如果是复用物理端口, 复用的物理端口资 源是否冲突,如果待创建的 EIF接口申请的物理端口的切片资源已被其他 EIF 接口占用的话, 表示复用的物理端口资源发生冲突。  For example, if there is enough free bandwidth allocated to the EIF interface to be created, whether the physical port occupied by the EIF interface to be created exists, and if the physical port is multiplexed, whether the multiplexed physical port resources conflict, if the EIF to be created If the slice resource of the physical port applied by the interface is occupied by other EIF interfaces, it indicates that the multiplexed physical port resources conflict.
当管理设备通过准入判定, 确定当前系统的实际状况能够满足创建信息 的要求, 则创建 EIF接口, 并为创建的 EIF接口生成相应的接口信息, 所述 接口信息包括: 为创建的 EIF接口分配的带宽、 创建的 EIF接口占用的物理 端口的信息(如果是独占物理端口, 则物理端口的信息为物理端口的端口号, 如果是复用物理端口 , 则物理端口的信息是物理端口的端口号和该 EIF接口 对应的切片资源信息)、 创建的 EIF接口与虚拟机之间的对应关系, 其中, 所 述 EIF接口可以对应一个虚拟机, 也可以对应多个虚拟机。  When the management device determines the current status of the current system to meet the requirements for creating information, the EIF interface is created and the corresponding interface information is generated for the created EIF interface. The interface information includes: The bandwidth and the physical port information occupied by the created EIF interface. If the physical port is an exclusive physical port, the physical port information is the port number of the physical port. If the physical port is reused, the physical port information is the port number of the physical port. Corresponding relationship between the created EIF interface and the virtual machine, and the EIF interface may correspond to one virtual machine or multiple virtual machines.
在执行完成以上两个步骤后 , 完成了一个 EIF接口的创建过程 , 当需要 创建多个 EIF接口时, 可多次执行以上两个步骤。 管理设备在创建 EIF接口 后, 可将创建的 EIF接口所占用的物理端口的信息发送给接口设备和通用处 理设备, 同时, 还可以将创建的 EIF接口与虚拟机之间的对应关系发送给接 口设备和通用处理设备, 此时, 接口设备和通用处理设备就获知了当前创建 的 EIF接口的相关信息, 并可通过该 EIF接口进行数据报文的传输。 After the above two steps are completed, the creation process of an EIF interface is completed. When multiple EIF interfaces need to be created, the above two steps can be performed multiple times. The management device is creating an EIF interface. Then, the information about the physical port occupied by the created EIF interface can be sent to the interface device and the general-purpose processing device, and the corresponding relationship between the created EIF interface and the virtual machine can be sent to the interface device and the general-purpose processing device. At this time, the interface device and the general-purpose processing device know the information about the currently created EIF interface, and can transmit the data packet through the EIF interface.
在创建了 EIF接口后的系统结构可参见图 4所示, 支设: 接口设备中有 一个物理端口, 该物理端口被 4个 EIF接口复用, 分别为 EIF1~EIF4, 这 4 个 EIF接口分别对应 VLAN1~VLAN4 , 以及, 这 4 个 EIF接口分别对应 VM1~VM4。  The system structure after the EIF interface is created can be seen in Figure 4. The interface device has one physical port. The physical port is multiplexed by four EIF interfaces, namely EIF1~EIF4. The four EIF interfaces are respectively Corresponding to VLAN1~VLAN4, and the four EIF interfaces correspond to VM1~VM4.
在图 4所示的系统结构下, 数据报文从外部物理设备传输给虚拟机的过 程如图 5所示, 包括以下步骤:  In the system structure shown in Figure 4, the process of transferring data packets from the external physical device to the virtual machine is as shown in Figure 5, including the following steps:
步骤 101: 所述接口设备, 用于通过物理端口接收外部物理设备发送的第 一数据报文, 根据物理端口与虚拟弹性接口之间的占用关系, 确定传输所述 第一数据报文的 EIF接口。  Step 101: The interface device is configured to receive, by using a physical port, a first data packet sent by an external physical device, and determine, according to an occupation relationship between the physical port and the virtual elastic interface, an EIF interface that transmits the first data packet. .
所述第一数据 4艮文中携带有:  The first data carries:
1 )、 第一数据 4艮文的传输类型, 如以太网类型 ( Ethernet type ) 的传输; 1), the first data transmission type, such as the transmission of Ethernet type (Ethernet type);
2 )、 目的 MAC地址, 即外部物理设备确定的虚拟机的 MAC地址;2), destination MAC address, that is, the MAC address of the virtual machine determined by the external physical device;
3 )、 源 MAC地址, 即发送所述第一数据 · ^文的外部物理设备的 MAC地 址; 3), a source MAC address, that is, a MAC address of an external physical device that transmits the first data;
4 )、 外部物理设备向虚拟机发送第一数据报文时确定的 VLAN ID。  4) The VLAN ID determined when the external physical device sends the first data packet to the virtual machine.
所述接口设备在接收到所述第一数据报文时, 确定接收所述第一数据报 文的物理端口, 并确定该物理端口是否被某一 EIF接口独占, 若是, 则所述 接口确定独占所述物理端口的 EIF接口为传输所述第一数据报文的 EIF接口, 即本步骤 101确定的 EIF接口; 若否, 则所述接口设备根据所述第一数据报 文中携带的切片资源信息,如 VLAN标识,确定与该切片资源信息对应的 EIF 接口为传输所述第一数据报文的 EIF接口, 即本步骤 101确定的 EIF接口。  When receiving the first data packet, the interface device determines the physical port that receives the first data packet, and determines whether the physical port is monopolized by an EIF interface. If yes, the interface determines exclusive use. The EIF interface of the physical port is an EIF interface that transmits the first data packet, that is, the EIF interface determined in step 101; if not, the interface device according to the slice resource carried in the first data packet The information, such as the VLAN identifier, determines that the EIF interface corresponding to the slice resource information is an EIF interface that transmits the first data packet, that is, the EIF interface determined in step 101.
参见图 4, 假设所述接口设备确定所述第一数据报文中携带的 VIAN ID 为 VLAN 1 , 则可确定用于传输所述第一数据报文的 EIF接口为 eif 1。 步骤 102: 所述接口设备, 用于根据 EIF接口与虚拟机之间的对应关系, 确定接收所述第一数据报文的虚拟机的信息。 Referring to FIG. 4, if the interface device determines that the VIAN ID carried in the first data packet is VLAN 1, the EIF interface used to transmit the first data packet is eif 1. Step 102: The interface device is configured to determine, according to a correspondence between the EIF interface and the virtual machine, information about the virtual machine that receives the first data packet.
本步骤中确定的虚拟机的信息可以是虚拟机的 MAC 地址、 虚拟端口号 等, 也可以是其他能够唯一表示虚拟机的信息。  The information of the virtual machine determined in this step may be the MAC address of the virtual machine, the virtual port number, or the like, or other information that can uniquely represent the virtual machine.
本步骤的具体实现方式为: 所述接口设备根据管理设备发送的 EIF接口 与虚拟机之间的对应关系, 确定传输所述第一数据 4艮文的 EIF接口对应的虚 拟机, 作为本步骤 102中用于接收所述第一数据 · ^文的虚拟机。  The specific implementation of the step is: the interface device determines, according to the correspondence between the EIF interface and the virtual machine sent by the management device, the virtual machine corresponding to the EIF interface that transmits the first data, as the step 102. a virtual machine for receiving the first data.
如果步骤 101 中确定的 EIF接口对应一个虚拟机, 则该虚拟机即为接收 所述第一数据报文的虚拟机。 例如, 在图 4 所示的系统结构下, 若步骤 101 确定的 EIF接口为 eifl , 则对应的虚拟机为 VM1。如果步骤 101中确定的 EIF 接口对应多个虚拟机, 则接口设备可按照预定条件, 如负载均衡条件, 从 EIF 接口对应的多个虚拟机中选择一个虚拟机作为接收所述第一数据报文的虚拟 机。 例如, 可选择负载最小的虚拟机, 也可以根据平均分担或案比例分担负 载的原则, 选择合适的虚拟机。  If the EIF interface determined in step 101 corresponds to a virtual machine, the virtual machine is a virtual machine that receives the first data packet. For example, in the system structure shown in Figure 4, if the EIF interface determined in step 101 is eifl, the corresponding virtual machine is VM1. If the EIF interface determined in step 101 corresponds to multiple virtual machines, the interface device may select one virtual machine from the plurality of virtual machines corresponding to the EIF interface to receive the first data packet according to a predetermined condition, such as a load balancing condition. Virtual machine. For example, you can select the virtual machine with the least load, or you can choose the appropriate virtual machine based on the principle of sharing the load on the average or the proportion of the case.
步骤 103: 所述接口设备, 用于在所述第一数据报文外封装第一报文头信 息, 所述第一报文头信息中包含接口设备确定的接收所述第一数据报文的虚 拟机的信息。  Step 103: The interface device is configured to encapsulate the first packet header information in the first data packet, where the first packet header information includes the first data packet that is determined by the interface device to receive the first data packet. Virtual machine information.
接口设备在第一数据报文外封装所述第一报文头信息的目的是: 在接口 设备向通信处理设备传输第一数据报文时, 通过所述第一报文头信息携带所 述第一数据报文传输过程相关的信息, 在步骤 102 中确定的虚拟机的信息可 作为目的地址携带在笫一报文头信息中。 除了在第一报文头中携带接收所述 第一数据报文的虚拟机的信息, 使通用处理设备获知接收所述第一数据报文 的虚拟机的目的外, 所述第一报文头中还可以携带其他信息, 使通用处理设 备获知第一数据报文在接口设备和通用处理设备之间的传输过程的相关信 息。  The purpose of the interface device to encapsulate the first packet header information in the first data packet is: when the interface device transmits the first data packet to the communication processing device, the first packet header information carries the first packet header information For information related to the data packet transmission process, the information of the virtual machine determined in step 102 can be carried as the destination address in the header information. The first packet header is provided, except that the first packet header carries the information of the virtual machine that receives the first data packet, and the general processing device learns the purpose of receiving the virtual machine of the first data packet. Other information may be carried in the general processing device to obtain information about the transmission process of the first data message between the interface device and the general processing device.
第一报文头中携带的信息包括但不限于:  The information carried in the first packet header includes but is not limited to:
1 )、 源 MAC地址, 即接口设备自身的 MAC地址; 2 )、 传输所述第一数据报文的 EIF接口所占用的物理端口的信息, 其中, 在 EIF接口独占物理端口时, EIF接口所占用的物理端口的信息为物理端口的 端口号, 在 EIF接口复用物理端口时, EIF接口所占用的物理端口的信息为物 理端口的端口号和该 EIF接口对应的切片资源信息。 1), the source MAC address, that is, the MAC address of the interface device itself; 2) The information of the physical port occupied by the EIF interface of the first data packet, where the physical port information occupied by the EIF interface is the port number of the physical port when the EIF interface is exclusive to the physical port, in the EIF When the interface multiplexes a physical port, the information about the physical port occupied by the EIF interface is the port number of the physical port and the slice resource information corresponding to the EIF interface.
以传输的所述第一数据报文是 MAC报文为例, 如图 6所示, 为在 MAC 报文外封装第一报文头信息后数据报文的结构示意图, 其中: paylaod层和内 层 MAC头中的内容为接口设备从外部物理设备处接收到的原始 MAC报文的 内容, 外层 MAC头为封装的第一报文头信息。  Taking the first data packet transmitted as a MAC packet as an example, as shown in FIG. 6, the structure of the data packet after the first packet header information is encapsulated outside the MAC packet, where: paylaod layer and inner The content of the layer MAC header is the content of the original MAC packet received by the interface device from the external physical device, and the outer MAC header is the encapsulated first packet header information.
通过内层 MAC头和外层 MAC头的结构, 可以使接收第一数据报文的通 用处理设备区分内层 MAC头和外层 MAC头, 即区分第一数据报文原始的内 容和接口设备额外封装的内容,使通用处理设备能够根据外层 MAC头中的内 容实现对第一数据报文的传输,又避免通用处理设备对内层 MAC头中的内容 进行修改。  The general processing device that receives the first data packet can distinguish the inner layer MAC header and the outer layer MAC header by the structure of the inner layer MAC header and the outer layer MAC header, that is, distinguish the original content of the first data packet from the interface device. The encapsulated content enables the general-purpose processing device to implement the transmission of the first data message according to the content in the outer MAC header, and avoids the general processing device modifying the content in the inner MAC header.
在本实施例的方案中, 可将内层 MAC头中的目的 MAC地址称之为内层 目的 MAC地址 ( Inner DM AC ), 将内层 MAC头中的源 MAC地址称之为内 层源 MAC地址( Inner SMAC ), 将第一数据报文从外部物理设备传输至接口 设备时确定的 VLAN标识称之为内层 VLAN标识( Inner VLAN tag ),所述 Inner VLAN tag可用于在物理端口被多个 EIF接口复用时, 接口设备根据第一数据 报文中携带的 Inner VLAN tag以及 EIF接口与 VLAN标识之间的对应关系, 确定传输所述第一数据报文的 EIF接口。  In the solution of this embodiment, the destination MAC address in the inner MAC header may be referred to as an inner layer destination MAC address (Inner DM AC ), and the source MAC address in the inner layer MAC header may be referred to as an inner layer source MAC address. The inner VLAN (NAT), which is determined by the internal physical device when the first data packet is transmitted from the external physical device to the interface device, is called the inner VLAN tag. The inner VLAN tag can be used to be used on the physical port. When the EIF interface is multiplexed, the interface device determines the EIF interface for transmitting the first data packet according to the correspondence between the inner VLAN tag and the EIF interface and the VLAN identifier carried in the first data packet.
( Outer DMAC ), 将外层 MAC头中的源 MAC地址称之为外层源 MAC地址 ( Outer SMAC ),将传输所述第一数据报文的 EIF接口所占用的物理端口的信 息用 I-TAG表示, 将第一数据报文从接口设备传输至通用处理设备时确定的 VLA 标识称之为外层 VLAN接口标识( Outer VLAN tag ),所述 Outer VLAN tag用于接口设备与通用处理设备之间的数据报文传输过程中, 其作用与基础 设施层中各设备之间数据报文的常规传输过程中的作用相同, 此处不再赘述。 步骤 104: 所述接口设备, 用于将封装了所述第一报文头信息的第一数据 报文通过确定的 EIF接口发送给通用处理设备, 此时, 完成了接口设备向通 用处理设备发送第一数据报文的过程。 (Outer DMAC), the source MAC address in the outer MAC header is called the outer source MAC address (Outer SMAC), and the information of the physical port occupied by the EIF interface that transmits the first data packet is used as I- The TAG indicates that the VLA identifier determined when the first data packet is transmitted from the interface device to the general-purpose processing device is called an outer VLAN tag (Outer VLAN tag), and the Outer VLAN tag is used for the interface device and the general processing device. In the process of data packet transmission, the role is the same as that in the normal transmission process of data packets between devices in the infrastructure layer, and will not be described here. Step 104: The interface device is configured to send the first data packet that encapsulates the first packet header information to the general processing device by using the determined EIF interface. At this time, the interface device is sent to the general processing device. The process of the first data message.
步骤 105: 所述通用处理设备, 用于在接收到所述第一数据报文时, 解封 装所述第一报文头信息, 确定接收所述第一数据报文的虚拟机。  Step 105: The general processing device is configured to: when the first data packet is received, unpack the first packet header information, and determine a virtual machine that receives the first data packet.
步骤 106: 所述通用处理设备, 用于将去掉所述第一报文头信息的第一数 据报文发送给确定的所述虚拟机, 虚拟机接收到所述第一数据报文后, 可按 照传统的以太网端口 4艮文接收处理方式对其进行处理, 此处不再赘述。  Step 106: The general processing device is configured to send the first data packet with the first packet header information removed to the determined virtual machine, where the virtual machine receives the first data packet, It is processed according to the traditional Ethernet port 4 processing method, and will not be described here.
若第一报文头信息中携带的虚拟机的信息是虚拟机的虚拟端口号, 则本 步骤中, 所述通用处理设备可以将第一数据报文发送至相应的虚拟机的虚拟 端口, 进而传输至虚拟机。  If the information of the virtual machine carried in the first packet header is the virtual port number of the virtual machine, in this step, the general processing device may send the first data packet to the virtual port of the corresponding virtual machine, and further Transfer to the virtual machine.
以上步骤 101至步骤 106描述了第一数据报文从外部物理设备传输至虚 拟机的过程, 下面描述第二数据报文从虚拟机传输至外部物理设备的过程, 需要说明的是, 本发明实施例是从外部物理设备向虚拟机发送数据报文以及 虚拟机向外部物理设备发送数据报文两个方向来描述方案的, 步骤 101 至步 骤 106的方案与步骤 201至步骤 206的方案可以独立实现。  The above steps 101 to 106 describe the process of transmitting the first data packet from the external physical device to the virtual machine. The following describes the process of transmitting the second data packet from the virtual machine to the external physical device. It should be noted that the present invention is implemented. For example, the solution is sent from the external physical device to the virtual machine and the virtual machine sends the data packet to the external physical device to describe the solution. The solution from step 101 to step 106 and the solution from step 201 to step 206 can be implemented independently. .
如图 7所示, 第二数据报文的传输过程包括以下步骤:  As shown in FIG. 7, the transmission process of the second data packet includes the following steps:
步骤 201 : 所述通用处理设备, 用于确定发送第二数据报文的虚拟机对应 的 EIF接口。  Step 201: The general processing device is configured to determine an EIF interface corresponding to the virtual machine that sends the second data packet.
在本步骤 201 中, 虚拟机可按照传统的以太网端口 4艮文发送处理方式将 第二数据报文通过虚拟网卡发出, 通用处理设备识别出发送所述第二数据报 文的虚拟机后 , 根据 EIF接口与虚拟机之间的对应关系, 确定发送所述第二 数据艮文的虚拟机对应的 EIF接口。  In this step 201, the virtual machine can send the second data packet through the virtual network card according to the traditional Ethernet port 4, and the general processing device identifies the virtual machine that sends the second data packet. And determining, according to the correspondence between the EIF interface and the virtual machine, an EIF interface corresponding to the virtual machine that sends the second data packet.
步骤 202: 所述通用处理设备, 用于根据物理端口与 EIF接口之间的占用 关系, 确定发送所述第二数据 ^文的虚拟机对应的 EIF接口所占用的物理端 口的信息。  Step 202: The general processing device is configured to determine, according to an occupation relationship between the physical port and the EIF interface, information about a physical port occupied by the EIF interface corresponding to the virtual machine that sends the second data.
若发送所述第二数据报文的虚拟机对应的 EIF接口独占物理端口, 则确 定的物理端口的信息为其所独占的物理端口的端口号; 若发送所述第二数据 报文的虚拟机对应的 EIF接口复用物理端口, 则确定的物理端口的信息为该 EIF接口所占用的端口资源对应的物理端口的端口号和切片资源信息。 If the EIF interface corresponding to the virtual machine that sends the second data packet is the exclusive physical port, The information of the physical port is the port number of the physical port that is exclusive to the physical port. If the EIF interface corresponding to the virtual machine that sends the second data packet multiplexes the physical port, the information of the determined physical port is the EIF interface. Port number and slice resource information of the physical port corresponding to the occupied port resource.
步骤 203: 所述通用处理设备, 用于在所述第二数据报文外封装第二报文 头信息, 所述第二报文头信息中包含确定的物理端口的信息。  Step 203: The general processing device is configured to encapsulate the second packet header information in the second data packet, where the second packet header information includes the information of the determined physical port.
所述通用处理设备在所述第二数据报文外封装第二报文头信息的目的 是: 在通信处理设备向接口设备传输第二数据报文时, 通过所述第二报文头 信息携带所述第二数据报文传输过程相关的信息。 除了在第二报文头中携带 用于传输所述第二数据报文的物理端口的信息外, 所述第二报文头中还可以 携带以下信息:  The purpose of the second processing packet to encapsulate the second packet header information in the second data packet is: when the communication processing device transmits the second data packet to the interface device, by using the second packet header information Information related to the second data message transmission process. The second packet header may carry the following information, except that the second packet header carries the information of the physical port for transmitting the second data packet:
1 )、 目的 MAC地址,即接收所述第二数据报文的接口设备的 MAC地址; 1), a destination MAC address, that is, a MAC address of an interface device that receives the second data packet;
2 )、 源 MAC地址, 即发送所述第二数据报文的虚拟机的 MAC地址。 具体地, 封装所述第二报文头信息的第二数据报文的结构与图 6相似, 此处不再赘述。 2) The source MAC address, that is, the MAC address of the virtual machine that sends the second data packet. Specifically, the structure of the second data packet that encapsulates the second packet header information is similar to that of FIG. 6, and details are not described herein again.
步骤 204: 所述通用处理设备, 用于将封装了所述第二报文头信息的第二 数据报文通过确定的所述 EIF接口发送给接口设备, 此时, 完成了通用处理 设备向接口设备发送第二数据报文的过程。  Step 204: The general processing device is configured to send the second data packet that encapsulates the second packet header information to the interface device by using the determined EIF interface, and the universal processing device interface is completed. The process of sending a second data packet by the device.
步骤 205: 所述接口设备, 用于在接收到所述第二数据报文时, 解封装所 述第二报文头信息, 确定传输所述第二数据报文的物理端口的信息。  Step 205: The interface device is configured to: when the second data packet is received, decapsulate the second packet header information, and determine information about a physical port that transmits the second data packet.
步骤 206: 所述接口设备, 用于将去掉所述第二报文头信息的第二数据报 文通过对应的物理端口发送给外部物理设备。  Step 206: The interface device is configured to send the second data packet with the second packet header information to the external physical device through the corresponding physical port.
以上步骤 201至步驟 206的方案能够得到与步骤 101至步骤 106相同的 效果, 此外, 如果将步骤 101至步骤 106与步骤 201至步骤 206向结合, 还 可实现数据报文在双方向的传输过程。  The above steps 201 to 206 can achieve the same effect as the steps 101 to 106. In addition, if the steps 101 to 106 are combined with the steps 201 to 206, the data message can be transmitted in both directions. .
优选地, 在本发明实施例一的系统架构下, 还可以实现虚拟机的无缝迁 移, 具体说明如下:  Preferably, in the system architecture of the first embodiment of the present invention, the seamless migration of the virtual machine can also be implemented, and the specific description is as follows:
以虚拟机的信息为虚拟机的 MAC地址为例,当已创建的虚拟机发生变化 时, 如通用处理设备 1中的 VM1不可用时, 可将 VM1的功能由通用处理设 备 2中新创建的 VM5继承, 只要将 VM1的 MAC地址分配给 VM5使用, 且 在接口设备中将原来 VM1的 MAC地址与通用处理设备 1的对应关系更新为 该 MAC地址与通用处理设备 2的对应关系即可。当外部物理设备发送数据报 文时, 接口设备按照步骤 102的方案确定的虚拟机的信息为 VM1的 MAC地 址, 此时, VM1的 MAC地址实际已是 VM5的 MAC地址, 但接口设备并不 用关心虚拟机的实际使用状态,只需将确定出的 MAC地址携带在第一报文头 中, 并将封装后的第一数据报文发送给通用处理设备 2, 再由通用处理设备 2 根据第一报文头中的 MAC地址, 将数据报文发送给 VM5 , 实现了 VM1到 VM5的无缝迁移。 Take the virtual machine information as the MAC address of the virtual machine as an example. When the created virtual machine changes. When VM1 in the general processing device 1 is unavailable, the function of the VM1 may be inherited by the newly created VM5 in the general processing device 2, as long as the MAC address of the VM1 is allocated to the VM5, and the original VM1 is used in the interface device. The correspondence between the MAC address and the general-purpose processing device 1 may be updated to the correspondence between the MAC address and the general-purpose processing device 2. When the external physical device sends a data packet, the information of the virtual machine determined by the interface device according to the scheme of step 102 is the MAC address of the VM1. At this time, the MAC address of the VM1 is actually the MAC address of the VM5, but the interface device does not care. The actual use state of the virtual machine only needs to carry the determined MAC address in the first packet header, and send the encapsulated first data packet to the general processing device 2, and then the general processing device 2 according to the first The MAC address in the packet header sends the data packet to VM5, which implements seamless migration from VM1 to VM5.
实施例二:  Embodiment 2:
基于本发明实施例一所描述的系统以及系统内各设备之间的数据报文传 输过程, 本发明实施例二描述了一种接口设备, 如图 8所示, 所述接口设备 中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接口 占用, 且每个所述虚拟弹性接口与通用处理设备中创建的至少一个虚拟机具 有对应关系。  Based on the system described in the first embodiment of the present invention and the data packet transmission process between the devices in the system, the second embodiment of the present invention describes an interface device. As shown in FIG. 8, at least one of the interface devices is provided. a physical port, where: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine created in a general processing device.
所述接口设备包括包括第一接收模块 11、与所述第一接收模块 11连接的 虚拟弹性接口确定模块 12、分别与所述虚拟弹性接口确定模块 12连接的虚拟 机确定模块 13和第一发送模块 15 , 以及与所述虚拟机确定模块 13连接的封 装模块 14, 这些模块之间相互配合, 实现外部物理设备发送的数据报文传输 给创建了虚拟机通用处理设备的过程, 各模块的功能描述如下:  The interface device includes a first receiving module 11, a virtual elastic interface determining module 12 connected to the first receiving module 11, a virtual machine determining module 13 respectively connected to the virtual elastic interface determining module 12, and a first sending The module 15 and the encapsulation module 14 connected to the virtual machine determining module 13 cooperate with each other to realize the process of transmitting the data message sent by the external physical device to the general processing device of the virtual machine, and the function of each module Described as follows:
所述第一接收模块 11用于用于通过第一物理端口接收外部物理设备发送 的第一数据报文;  The first receiving module 11 is configured to receive, by using the first physical port, a first data packet sent by an external physical device;
所述虚拟弹性接口确定模块 12用于根据所述第一物理端口与虚拟弹性接 口之间的占用关系, 确定传输所述第一数据报文的第一虚拟弹性接口;  The virtual elastic interface determining module 12 is configured to determine, according to an occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet;
所述虚拟机确定模块 13用于根据所述虚拟弹性接口确定模块 12确定的 所述第一虚拟弹性接口与虚拟机的对应关系, 确定所述第一虚拟弹性接口对 应的第一虚拟机的信息; The virtual machine determining module 13 is configured to determine, according to the correspondence between the first virtual elastic interface and the virtual machine determined by the virtual elastic interface determining module 12, the first virtual elastic interface pair. Information about the first virtual machine that should be;
所述封装模块 14用于对所述第一数据报文封装第一报文头信息 , 所述第 一报文头信息中携带所述虚拟机确定模块确定的所述第一虚拟机的信息; 所述第一发送模块 15 ,用于将所述封装模块 14封装了所述第一报文头信 息的第一数据报文通过所述虚拟弹性接口确定模块 12确定的第一虚拟弹性接 口进行发送。  The encapsulating module 14 is configured to encapsulate the first packet header information in the first data packet, where the first packet header information carries information about the first virtual machine determined by the virtual machine determining module; The first sending module 15 is configured to send, by using the first virtual elastic interface determined by the virtual elastic interface determining module 12, the first data packet that encapsulates the first packet header information by the encapsulating module 14 .
优选地, 所述虚拟弹性接口确定模块 12具体用于若所述第一物理端口被 一个虚拟弹性接口独占, 则确定该虚拟弹性接口为传输所述第一数据报文的 第一虚拟弹性接口, 若所述第一物理端口被多于一个虚拟弹性接口复用, 则 根据接收到的所述第一数据报文中携带的切片资源信息, 确定与该切片资源 信息对应的虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口。  Preferably, the virtual elastic interface determining module 12 is specifically configured to: if the first physical port is exclusively occupied by a virtual elastic interface, determine that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, If the first physical port is multiplexed by more than one virtual elastic interface, the virtual elastic interface corresponding to the slice resource information is determined as a transmission station according to the received slice resource information carried in the first data packet. The first virtual elastic interface of the first data packet.
优选地, 所述虚拟机确定模块 13具体用于当传输所述第一数据报文的第 一虚拟弹性接口与多个虚拟机具有对应关系时, 根据负载均衡条件从所述多 个虚拟机中确定一个虚拟机为所述第一虚拟机。  Preferably, the virtual machine determining module 13 is specifically configured to: when the first virtual elastic interface that transmits the first data packet has a corresponding relationship with multiple virtual machines, according to load balancing conditions, from the multiple virtual machines Determining a virtual machine as the first virtual machine.
优选地, 所述封装模块 14具体将确定的所述第一虚拟机的 MAC地址作 为目的 MAC地址、 将自身的 MAC地址作为源 MAC地址和传输所述第一数 据报文的第一虚拟弹性接口所占用的物理端口的信息携带在所述第一报文头 信息中;  Preferably, the encapsulating module 14 specifically determines the MAC address of the first virtual machine as the destination MAC address, the MAC address of the first virtual machine as the source MAC address, and the first virtual elastic interface that transmits the first data packet. The information of the occupied physical port is carried in the first packet header information;
其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一虚拟弹 性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者,  The information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or
在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。  When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
所述接口设备还包括第二接收模块 16、与所述第二接收模块 16连接的解 封装模块 17、 分别与所述解封装模块 17连接的物理端口确定模块 18和第二 发送模块 19, 实现将虚拟机发出的数据报文传输给外部物理设备的过程, 各 模块的功能描述如下, 其中: 所述第二接收模块 16用于通过第二虚拟弹性接口接收第二数据报文, 所 述第二数据报文封装有第二报文头信息, 所述第二报文头信息中携带有第二 物理端口的信息; The interface device further includes a second receiving module 16, a decapsulation module 17 connected to the second receiving module 16, a physical port determining module 18 and a second sending module 19 respectively connected to the decapsulating module 17, and implementing The process of transmitting data packets sent by a virtual machine to an external physical device. The functions of each module are described as follows: The second receiving module 16 is configured to receive the second data packet by using the second virtual elastic interface, where the second data packet is encapsulated with the second packet header information, where the second packet header information carries the first Two physical port information;
所述解封装模块 17用于将所述第二接收模块 16接收到的所述第二数据 报文中的第二报文头信息解封装得到所述第二报文头信息和去掉所述第二报 文头信息的第二数据报文;  The decapsulation module 17 is configured to decapsulate the second packet header information in the second data packet received by the second receiving module 16 to obtain the second packet header information, and remove the first Second data packet of the second header information;
所述物理端口确定模块 18用于根据所述解封装模块 17解封装得到的所 述第二报文头信息中携带的第二物理端口的信息, 确定传输所述第二数据报 文的第二物理端口;  The physical port determining module 18 is configured to determine, according to the information about the second physical port carried in the second packet header information that is decapsulated by the decapsulation module 17, to transmit the second data packet. Physical port
所述第二发送模块 19用于将所述解封装模块 17解封装得到的去掉所述 第二报文头信息的第二数据报文通过所述物理端口确定模块 18确定的所述第 二物理端口发送给外部物理设备。  The second sending module 19 is configured to decapsulate the second data packet of the second packet header obtained by the decapsulation module 17 by using the second physical medium determined by the physical port determining module 18 The port is sent to an external physical device.
除了图 8所示的接口设备外, 本发明实施例二还描述了另一种结构的接 口设备, 如图 9所示, 所述接口设备包括: 收发器 21和处理器 22, 其中: 所述收发器 21用于通过第一物理端口接收外部物理设备发送的第一数据 报文, 以及, 根据处理器 22确定的第一虚拟弹性接口, 将处理器 22封装了 第一报文头信息的第一数据报文通过所述第一虚拟弹性接口进行发送;  In addition to the interface device shown in FIG. 8, the second embodiment of the present invention further describes an interface device of another structure. As shown in FIG. 9, the interface device includes: a transceiver 21 and a processor 22, where: The transceiver 21 is configured to receive the first data packet sent by the external physical device by using the first physical port, and encapsulate the first packet header information by the processor 22 according to the first virtual elastic interface determined by the processor 22 Sending a data packet through the first virtual elastic interface;
处理器 22用于根据所述第一物理端口与虚拟弹性接口之间的占用关系, 确定传输所述第一数据报文的第一虚拟弹性接口, 以及, 根据所述第一虚拟 弹性接口与虚拟机的对应关系, 确定所述第一虚拟弹性接口对应的第一虚拟 机的信息, 并对所述笫一数据报文封装第一报文头信息, 所述第一报文头信 息中携带所述第一虚拟机的信息。  The processor 22 is configured to determine, according to the occupation relationship between the first physical port and the virtual elastic interface, a first virtual elastic interface that transmits the first data packet, and according to the first virtual elastic interface and the virtual Corresponding relationship between the first virtual machine and the information of the first virtual machine corresponding to the first virtual elastic interface, and encapsulating the first packet header information in the first data packet, where the first packet header information is carried The information of the first virtual machine.
优选地, 处理器 22具体用于若所述第一物理端口被一个虚拟弹性接口独 占, 则确定该虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口, 若所述第一物理端口被多于一个虚拟弹性接口复用, 则根据接收到的所述第 一数据报文中携带的切片资源信息, 确定与该切片资源信息对应的虚拟弹性 接口为传输所述第一数据报文的第一虚拟弹性接口。 优选地, 所述处理器 22具体用于当传输所述第一数据报文的第一虚拟弹 性接口与多个虚拟机具有对应关系时, 根据负载均衡条件从所述多个虚拟机 中确定一个虚拟机为所述第一虚拟机。 Preferably, the processor 22 is configured to: if the first physical port is exclusively occupied by a virtual elastic interface, determine that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet, if the first The physical port is multiplexed by more than one virtual elastic interface, and the virtual elastic interface corresponding to the slice resource information is determined to transmit the first datagram according to the received slice resource information carried in the first data packet. The first virtual elastic interface of the text. Preferably, the processor 22 is specifically configured to: when the first virtual elastic interface that transmits the first data packet has a corresponding relationship with multiple virtual machines, determine one of the multiple virtual machines according to a load balancing condition. The virtual machine is the first virtual machine.
优选地, 所述处理器 22具体用于将确定的所述第一虚拟机的 MAC地址 作为目的 MAC地址、 将自身的 MAC地址作为源 MAC地址和传输所述第一 数据报文的第一虚拟弹性接口所占用的物理端口的信息携带在所述第一报文 头信息中;  Preferably, the processor 22 is specifically configured to use the determined MAC address of the first virtual machine as a destination MAC address, use its own MAC address as a source MAC address, and transmit a first virtual data packet. The information of the physical port occupied by the elastic interface is carried in the first packet header information.
其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一虚拟弹 性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者,  The information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port when the first virtual elastic interface is the first physical port; or
在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。  When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is a port number of the physical port and corresponds to the first virtual elastic interface. Slice resource information.
所述收发器 21还用于通过第二虚拟弹性接口接收第二数据> ^文, 所述第 二数据报文封装有第二报文头信息, 所述第二报文头信息中携带有第二物理 端口的信息, 以及将所述处理器 22去掉所述第二报文头信息的第二数据报文 通过所述处理器 22确定的所述第二物理端口发送给外部物理设备;  The transceiver 21 is further configured to receive the second data by using the second virtual elastic interface, where the second data packet is encapsulated with the second packet header information, where the second packet header information carries the first The information of the second physical port, and the second data packet that the processor 22 removes the second packet header information is sent to the external physical device by using the second physical port determined by the processor 22;
所述处理器 22用于将所述第二数据报文中的第二报文头信息解封装得到 所述第二报文头信息和去掉所述第二报文头信息的第二数据报文, 根据第二 报文头信息中携带的第二物理端口的信息, 确定传输所述第二数据报文的第 二物理端口。  The processor 22 is configured to decapsulate the second packet header information in the second data packet to obtain the second packet header information and the second data packet with the second packet header information removed. And determining, according to the information of the second physical port carried in the second packet header, the second physical port that transmits the second data packet.
实施例三:  Embodiment 3:
基于本发明实施例一所描述的系统以及系统内各设备之间的数据报文传 输过程, 本发明实施例三描述了一种通用处理设备, 如图 10所示, 所述通用 处理设备中创建有至少一个虚拟机, 其中: 每个虚拟机对应一个弹性虚拟接 口, 且至少一个虚拟弹性接口占用接口设备中的一个物理端口。  Based on the system described in the first embodiment of the present invention and the data packet transmission process between the devices in the system, the third embodiment of the present invention describes a general processing device. As shown in FIG. 10, the universal processing device is created. There is at least one virtual machine, where: each virtual machine corresponds to one elastic virtual interface, and at least one virtual elastic interface occupies one physical port in the interface device.
所述通用处理设备包括: 第一接收模块 31、 与所述第一接收模块 31连接 的虚拟弹性接口确定模块 32、分别与所述虚拟弹性接口确定模块 32连接的物 理端口确定模块 33和第一发送模块 35 , 以及与所述物理端口确定模块 33连 接的封装模块 34, 这些模块之间相互配合, 实现将虚拟机发出的传输给接口 设备的过程, 各模块的功能描述如下: The general processing device includes: a first receiving module 31, a virtual elastic interface determining module 32 connected to the first receiving module 31, and a device respectively connected to the virtual elastic interface determining module 32. The port determining module 33 and the first sending module 35, and the encapsulating module 34 connected to the physical port determining module 33, the modules cooperate with each other to implement the process of transmitting the virtual machine to the interface device, and the modules The function description is as follows:
所述第一接收模块 31用于接收第二虚拟机发出的第二数据报文; 所述虚拟弹性接口确定模块 32用于确定所述第二虚拟机对应的第二虚拟 弹性接口;  The first receiving module 31 is configured to receive a second data packet sent by the second virtual machine, where the virtual elastic interface determining module 32 is configured to determine a second virtual elastic interface corresponding to the second virtual machine.
所述物理端口确定模块 33用于根据物理端口与所述第二虚拟弹性接口之 间的占用关系, 确定所述第二虚拟弹性接口所占用的第二物理端口的信息; 所述封装模块 34用于对所述第一接收模块 31接收到的所述第二数据报 文封装第二报文头信息, 所述第二报文头信息中携带有所述物理端口确定模 块 33确定的第二物理端口的信息;  The physical port determining module 33 is configured to determine, according to an occupation relationship between the physical port and the second virtual elastic interface, information about the second physical port occupied by the second virtual elastic interface; Encapsulating the second data packet with the second data packet received by the first receiving module 31, where the second packet header information carries the second physics determined by the physical port determining module 33. Port information;
所述第一发送模块 35用于通过所述虚拟弹性接口确定模块 32确定的所 述第二虚拟弹性接口, 将所述封装模块 34封装了所述第二报文头信息的第二 数据报文进行发送。  The first sending module 35 is configured to encapsulate, by the virtual elastic interface determining module, the second virtual elastic interface, and the encapsulating module 34 encapsulates the second data packet of the second packet header information. Send it.
优选地, 所述物理端口确定模块 33具体用于在所述第二虚拟弹性接口独 占第二物理端口时, 将该第二物理端口的端口号作为物理端口的信息, 或者, 在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的端 口号和该第二虚拟弹性接口对应的切片资源作为物理端口的信息。  Preferably, the physical port determining module 33 is specifically configured to: when the second virtual elastic interface monopolizes the second physical port, use the port number of the second physical port as the physical port information, or When the virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource corresponding to the second virtual elastic interface are used as information of the physical port.
优选地, 所述封装模块 34具体用于将所述接口设备的 MAC地址作为目 的 MAC地址和将所述第二虚拟机的 MAC地址作为源 MAC地址携带在所述 第二报文头信息中, 对所述第二数据报文进行封装。  Preferably, the encapsulating module 34 is configured to carry the MAC address of the interface device as the destination MAC address and the MAC address of the second virtual machine as the source MAC address in the second packet header information. Encapsulating the second data packet.
所述通用处理设备还包括: 第二接收模块 36、 与所述第二接收模块 36连 接的解封装模块 37、 分别与所述解封装模块 37连接的虚拟机确定模块 38和 第二发送模块 39, 实现将接口设备发来的数据报文传输给虚拟机的过程, 各 模块的功能描述如下:  The general processing device further includes: a second receiving module 36, a decapsulation module 37 connected to the second receiving module 36, a virtual machine determining module 38 and a second sending module 39 respectively connected to the decapsulating module 37 The process of transmitting data packets sent by the interface device to the virtual machine is implemented. The functions of each module are described as follows:
所述第二接收模块 36用于通过第一虚拟弹性接口接收第一数据报文, 所 述第一数据报文封装了第一报文头信息, 所述第一报文头信息中携带有第一 虚拟机的信息; The second receiving module 36 is configured to receive the first data packet by using the first virtual elastic interface, where the first data packet encapsulates the first packet header information, where the first packet header information carries the first One Virtual machine information;
所述解封装模块 37用于将所述第二接收模块 36接收到的所述第一数据 报文中的第一报文头信息解封装得到所述第一报文头信息和去掉所述第一报 文头信息的第一数据报文;  The decapsulation module 37 is configured to decapsulate the first packet header information in the first data packet received by the second receiving module 36 to obtain the first packet header information, and remove the first a first data message of the message header information;
所述虚拟机确定模块 38用于根据所述解封装模块 37解封装得到的所述 第一报文头信息中携带的第一虚拟机的信息, 确定接收所述第一数据报文的 第一虚拟机;  The virtual machine determining module 38 is configured to determine, according to the information about the first virtual machine that is carried in the first packet header information that is decapsulated by the decapsulation module 37, that the first data packet is received. virtual machine;
所述第二发送模块 39,用于将所述解封装模块 37解封装得到的去掉所述 第一报文头信息的第一数据报文发送给所述虚拟机确定模块 38确定的所述第 一虚拟机。  The second sending module 39 is configured to send the first data packet that is decapsulated by the decapsulation module 37 to the first packet header information to the virtual machine determining module 38. A virtual machine.
除了图 10所示的通用处理设备外, 本发明实施例三还描述了另一种结构 的通用处理设备, 所述通用处理设备包括: 收发器和处理器, 其中:  In addition to the general-purpose processing device shown in FIG. 10, the third embodiment of the present invention further describes a general-purpose processing device of another structure, where the general-purpose processing device includes: a transceiver and a processor, where:
所述收发器用于接收第二虚拟机发出的第二数据报文, 以及根据所述处 理器确定的第二虚拟弹性接口, 将处理器封装了第二报文头的第二数据报文 通过所述第二虚拟弹性接口进行发送;  The transceiver is configured to receive a second data packet sent by the second virtual machine, and pass the second data packet that encapsulates the second packet header by the processor according to the second virtual elastic interface determined by the processor. Transmitting the second virtual elastic interface;
所述处理器用于确定所述第二虚拟机对应的第二虚拟弹性接口, 以及, 根据物理端口与所述第二虚拟弹性接口之间的占用关系, 确定所述第二虚拟 弹性接口所占用的第二物理端口的信息, 并对所述第二数据报文封装第二报 文头信息, 所述第二报文头信息中携带有确定的第二物理端口的信息。  Determining, by the processor, a second virtual elastic interface corresponding to the second virtual machine, and determining, according to an occupation relationship between the physical port and the second virtual elastic interface, The information of the second physical port is used to encapsulate the second packet header information, and the second packet header information carries the information of the determined second physical port.
优选地, 所述处理器具体用于在所述第二虚拟弹性接口独占第二物理端 口时, 将该笫二物理端口的端口号作为物理端口的信息, 或者,  Preferably, the processor is specifically configured to: when the second virtual elastic interface monopolizes the second physical port, use the port number of the second physical port as the physical port information, or
在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的端 口号和该第二虚拟弹性接口对应的切片资源作为物理端口的信息。  When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource corresponding to the second virtual elastic interface are used as information of the physical port.
优选地, 所述处理器具体用于将所述接口设备的 MAC 地址作为目的 MAC地址和将所述第二虚拟机的 MAC地址作为源 MAC地址携带在所述第 二报文头信息中, 对所述第二数据报文进行封装。  Preferably, the processor is specifically configured to: carry the MAC address of the interface device as the destination MAC address and the MAC address of the second virtual machine as the source MAC address in the second packet header information, where The second data packet is encapsulated.
所述收发器还用于通过第一虚拟弹性接口接收第一数据报文, 所述第一 数据报文封装了第一报文头信息, 所述第一报文头信息中携带第一虚拟机的 信息, 以及, 根据所述处理器确定的第一虚拟机, 将处理器去掉所述第一报 文头信息的第一数据报文发送给所述第一虚拟机; The transceiver is further configured to receive, by using the first virtual elastic interface, a first data packet, where the first The data packet encapsulates the first packet header information, the first packet header information carries the information of the first virtual machine, and the processor is removed according to the first virtual machine determined by the processor. Sending, by the first data packet, the first data packet of the packet header information to the first virtual machine;
所述处理器还用于将所述第一数据报文中的第一报文头信息解封装得到 所述第一报文头信息和去掉所述第一报文头信息的第一数据报文, 根据第一 报文头信息中携带的第一虚拟机的信息, 确定接收所述第一数据报文的第一 虚拟机。  The processor is further configured to decapsulate the first packet header information in the first data packet to obtain the first packet header information and the first data packet with the first packet header information removed. And determining, according to the information of the first virtual machine carried in the first packet header information, the first virtual machine that receives the first data packet.
本领域内的技术人员应明白, 本申请的实施例可提供为方法、 系统、 或 计算机程序产品。 因此, 本申请可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本申请可采用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器、 CD-ROM、 光学存储器等) 上实施的计算机程序产品的形式。  Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the application can be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、 设备(系统)、 和计算机程序产 品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图 和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中的流程 和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通 过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。  The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个流程或 多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的 处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的步 骤。 These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation in the flowchart The steps of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.
在一个典型的配置中, 所述计算机设备包括一个或多个处理器 In a typical configuration, the computer device includes one or more processors
(CPU)、 输入 /输出接口、 网络接口和内存。 内存可能包括计算机可读介质 中的非永久性存储器, 随机存取存储器 (RAM) 和 /或非易失性内存等形式, 如只读存储器 (ROM)或闪存 (flash RAM)。 内存是计算机可读介质的示例。 计算机可读介质包括永久性和非永久性、 可移动和非可移动媒体可以由任 何方法或技术来实现信息存储。 信息可以是计算机可读指令、 数据结构、 程序的模块或其他数据。 计算机的存储介质的例子包括, 但不限于相变内 存 (PRAM)、 静态随机存取存储器 (SRAM)、 动态随机存取存储器 (DRAM), 其他类型的随机存取存储器 (RAM)、 只读存储器 (ROM)、 电可 擦除可编程只读存储器 (EEPROM)、 快闪记忆体或其他内存技术、 只读光 盘只读存储器 (CD-ROM)、数字多功能光盘 (DVD)或其他光学存储、磁盒式 磁带, 磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质, 可用 于存储可以被计算设备访问的信息。 按照本文中的界定, 计算机可读介质 不包括非持续性的电脑可读媒体 (transitory media) , 如调制的数据信号和载 波。 (CPU), input/output interface, network interface, and memory. The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium. Computer readable media, including both permanent and non-persistent, removable and non-removable media, can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media that can be used to store information that can be accessed by computing devices. As defined herein, computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
尽管已描述了本申请的优选实施例, 但本领域内的技术人员一旦得知了 基本创造性概念, 则可对这些实施例做出另外的变更和修改。 所以, 所附权 利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。  While the preferred embodiment of the present application has been described, those skilled in the art can make further changes and modifications to these embodiments once the basic inventive concept is known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all modifications and
显然, 本领域的技术人员可以对本申请进行各种改动和变型而不脱离本 申请的精神和范围。 这样, 倘若本申请的这些修改和变型属于本申请权利要 求及其等同技术的范围之内, 则本申请也意图包含这些改动和变型在内。  It will be apparent that those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the application. Accordingly, it is intended that the present invention cover the modifications and variations of the invention, and the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种数据报文的传输系统, 其特征在于, 所述系统包括: 通用处理设 备和接口设备, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设备 中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接口 占用, 且每个所述虚拟弹性接口与至少一个虚拟机具有对应关系; 1. A data message transmission system, characterized in that the system includes: a general processing device and an interface device, at least one virtual machine is created in the general processing device, and at least one physical port is provided in the interface device , wherein: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine;
所述接口设备, 用于通过第一物理端口接收外部物理设备发送的第一数 据报文时, 根据所述第一物理端口与虚拟弹性接口之间的占用关系, 确定传 输所述第一数据报文的第一虚拟弹性接口, 并根据所述第一虚拟弹性接口与 虚拟机的对应关系, 确定接收所述第一数据 4艮文的第一虚拟机的信息, 以及, 将确定的所述第一虚拟机的信息携带在第一报文头信息中, 对所述第一数据 报文封装所述第一报文头信息后, 通过确定的所述第一虚拟弹性接口发送给 所述通用处理设备; The interface device is configured to, when receiving the first data packet sent by the external physical device through the first physical port, determine to transmit the first data packet based on the occupancy relationship between the first physical port and the virtual elastic interface. the first virtual elastic interface of the file, and according to the corresponding relationship between the first virtual elastic interface and the virtual machine, determine the information of the first virtual machine that receives the first data file, and determine the determined first virtual machine. The information of a virtual machine is carried in the first packet header information. After the first packet header information is encapsulated in the first data packet, it is sent to the general processing through the determined first virtual elastic interface. equipment;
所述通用处理设备, 用于在接收到所述第一数据报文时, 根据封装的第 一报文头信息确定接收所述第一数据报文的所述第一虚拟机, 并将去掉所述 第一报文头信息的第一数据报文发送给所述第一虚拟机。 The general processing device is configured to, when receiving the first data packet, determine the first virtual machine that receives the first data packet according to the encapsulated first packet header information, and remove all The first data packet containing the first packet header information is sent to the first virtual machine.
2、 如权利要求 1所述的系统, 其特征在于, 2. The system of claim 1, characterized in that,
所述通用处理设备, 还用于确定发送第二数据报文的第二虚拟机对应的 第二虚拟弹性接口, 并根据物理端口与所述第二虚拟弹性接口之间的占用关 系, 确定所述第二虚拟弹性接口所占用的第二物理端口的信息, 以及, 将确 定的所述第二物理端口的信息携带在第二报文头信息中, 对所述第二数据报 文封装所述第二报文头信息后, 通过确定的所述第二虚拟弹性接口发送给所 述接口设备; The general processing device is also configured to determine the second virtual elastic interface corresponding to the second virtual machine that sends the second data message, and determine the second virtual elastic interface according to the occupancy relationship between the physical port and the second virtual elastic interface. the information of the second physical port occupied by the second virtual elastic interface; and, carry the determined information of the second physical port in the second packet header information, and encapsulate the second data packet in the second physical port. After receiving the header information, send it to the interface device through the determined second virtual elastic interface;
所述接口设备, 还用于在接收到所述第二数据报文时, 根据封装的第二 报文头信息中携带的第二物理端口的信息, 将去掉所述第二报文头信息的第 二数据报文通过所述第二物理端口发送给外部物理设备。 The interface device is further configured to, when receiving the second data packet, remove the second packet header information based on the information of the second physical port carried in the encapsulated second packet header information. The second data packet is sent to the external physical device through the second physical port.
3、 如权利要求 1或 2所述的系统, 其特征在于, 所述接口设备, 具体用于若所述第一物理端口被一个虚拟弹性接口独占, 则确定该虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口, 若所 述第一物理端口被多于一个虚拟弹性接口复用, 则根据接收到的所述第一数 据报文中携带的切片资源信息, 确定与该切片资源信息对应的虚拟弹性接口 为传输所述第一数据报文的第一虚拟弹性接口。 3. The system according to claim 1 or 2, characterized in that, The interface device is specifically configured to determine that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet if the first physical port is exclusively occupied by a virtual elastic interface. If the port is multiplexed by more than one virtual elastic interface, then according to the slice resource information carried in the received first data message, it is determined that the virtual elastic interface corresponding to the slice resource information is used to transmit the first data message. The first virtual elastic interface.
4、 如权利要求 1~3任一所述的系统, 其特征在于, 4. The system according to any one of claims 1 to 3, characterized in that,
所述接口设备, 具体用于当传输所述第一数据报文的第一虚拟弹性接口 与多个虚拟机具有对应关系时, 根据负载均衡条件从所述多个虚拟机中确定 一个虚拟机为所述第一虚拟机。 The interface device is specifically configured to determine one virtual machine from the multiple virtual machines according to load balancing conditions when the first virtual elastic interface transmitting the first data message has a corresponding relationship with multiple virtual machines. The first virtual machine.
5、 如权利要求 1~4任一所述的系统, 其特征在于, 5. The system according to any one of claims 1 to 4, characterized in that,
所述接口设备, 具体用于将确定的所述第一虚拟机的媒体链路控制 MAC 地址作为目的 MAC地址、 将自身的 MAC地址作为源 MAC地址和传输所述 第一数据报文的第一虚拟弹性接口所占用的物理端口的信息携带在所述第一 报文头信息中; The interface device is specifically configured to use the determined media link control MAC address of the first virtual machine as the destination MAC address, use its own MAC address as the source MAC address, and transmit the first data packet. Information about the physical port occupied by the virtual elastic interface is carried in the first packet header information;
其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一虚拟弹 性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者, Wherein, when the first virtual elastic interface exclusively occupies the first physical port, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port; or,
在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。 When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port corresponding to the first virtual elastic interface. slice resource information.
6、 如权利要求 2所述的系统, 其特征在于, 6. The system of claim 2, characterized in that,
所述通用处理设备, 具体用于在所述第二虚拟弹性接口独占第二物理端 口时, 将该第二物理端口的端口号作为物理端口的信息携带在所述第二报文 头信息中, 或者, The general processing device is specifically configured to carry the port number of the second physical port as the physical port information in the second packet header information when the second virtual elastic interface exclusively occupies the second physical port, or,
在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的端 口号和该第二虚拟弹性接口对应的切片资源信息作为物理端口的信息携带在 所述第二报文头信息中。 When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource information corresponding to the second virtual elastic interface are carried in the second message as the physical port information. in the header information.
7、 如权利要求 2或 6所述的系统, 其特征在于, 所述通用处理设备, 具体用于将所述接口设备的 MAC 地址作为目的 MAC地址和将所述第二虚拟机的 MAC地址作为源 MAC地址携带在所述第 二报文头信息中。 7. The system according to claim 2 or 6, characterized in that, The general processing device is specifically configured to carry the MAC address of the interface device as the destination MAC address and the MAC address of the second virtual machine as the source MAC address in the second packet header information.
8、 如权利要求 1~7任一所述的系统, 其特征在于, 所述系统还包括: 管理设备, 用于在接收到创建虚拟弹性接口的申请时, 根据申请中的创 建信息创建虚拟弹性接口, 并将创建的所述虚拟弹性接口所占用的物理端口 的信息和与虚拟机的对应关系发送给所述接口设备和所述通用处理设备; 所述创建信息包括: 待创建的虚拟弹性接口需占用的带宽、 对应的虚拟 机的信息、 所占用的物理端口的信息。 8. The system according to any one of claims 1 to 7, characterized in that the system further includes: a management device configured to create virtual elasticity according to the creation information in the application when receiving an application for creating a virtual elastic interface. interface, and sends the information of the physical port occupied by the created virtual elastic interface and the corresponding relationship with the virtual machine to the interface device and the general processing device; the creation information includes: the virtual elastic interface to be created The bandwidth to be occupied, the information of the corresponding virtual machine, and the information of the physical ports occupied.
9、 一种数据报文的传输系统, 其特征在于, 所述系统包括: 接口设备和 通用处理设备, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设备 中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接口 占用, 且每个所述虚拟弹性接口与至少一个虚拟机具有对应关系; 9. A data message transmission system, characterized in that the system includes: an interface device and a general processing device, at least one virtual machine is created in the general processing device, and at least one physical port is provided in the interface device , wherein: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces has a corresponding relationship with at least one virtual machine;
所述通用处理设备, 用于确定发送第二数据报文的虚拟机对应的虚拟弹 性接口, 并根据物理端口与虚拟弹性接口之间的占用关系, 确定发送所述第 二数据报文的虚拟机对应的虚拟弹性接口所占用的物理端口的信息, 以及, 将确定的物理端口的信息携带在第二报文头信息中, 对所述第二数据报文封 装所述第二报文头信息后, 通过确定的所述虚拟弹性接口发送给所述接口设 备; The general processing device is used to determine the virtual elastic interface corresponding to the virtual machine that sends the second data message, and determine the virtual machine that sends the second data message based on the occupancy relationship between the physical port and the virtual elastic interface. Information about the physical port occupied by the corresponding virtual elastic interface, and carrying the determined physical port information in the second packet header information, and encapsulating the second packet header information in the second data packet. , sent to the interface device through the determined virtual elastic interface;
所述接口设备, 还用于在接收到所述第二数据报文时, 根据封装的第二 报文头信息中携带的物理端口信息, 将去掉所述第二报文头信息的第二数据 艮文通过对应的物理端口发送给外部物理设备。 The interface device is further configured to, when receiving the second data message, remove the second data from the second message header information according to the physical port information carried in the encapsulated second message header information. The Gen text is sent to the external physical device through the corresponding physical port.
10、 一种接口设备, 其特征在于, 所述接口设备中有至少一个物理端口, 其中: 一个所述物理端口被至少一个虚拟弹性接口占用, 且每个所述虚拟弹 性接口与通用处理设备中创建的至少一个虚拟机具有对应关系; 10. An interface device, characterized in that the interface device has at least one physical port, wherein: one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces is connected to a general processing device. At least one virtual machine created has a corresponding relationship;
所述接口设备包括第一接收模块、 与所述第一接收模块连接的虚拟弹性 接口确定模块、 分别与所述虚拟弹性接口确定模块连接的虚拟机确定模块和 第一发送模块, 以及与所述虚拟机确定模块连接的封装模块, 其中: 所述第一接收模块, 用于通过第一物理端口接收外部物理设备发送的第 一数据报文; The interface device includes a first receiving module, a virtual elastic interface determining module connected to the first receiving module, a virtual machine determining module respectively connected to the virtual elastic interface determining module, and a first sending module, and an encapsulation module connected to the virtual machine determination module, wherein: the first receiving module is configured to receive the first data message sent by the external physical device through the first physical port;
所述虚拟弹性接口确定模块, 用于根据所述第一物理端口与虚拟弹性接 口之间的占用关系, 确定传输所述第一数据报文的第一虚拟弹性接口; The virtual elastic interface determination module is configured to determine the first virtual elastic interface for transmitting the first data message according to the occupancy relationship between the first physical port and the virtual elastic interface;
所述虚拟机确定模块, 用于根据所述第一虚拟弹性接口与虚拟机的对应 关系, 确定所述第一虚拟弹性接口对应的第一虚拟机的信息; The virtual machine determination module is configured to determine the information of the first virtual machine corresponding to the first virtual elastic interface according to the corresponding relationship between the first virtual elastic interface and the virtual machine;
所述封装模块, 用于对所述第一数据报文封装第一报文头信息, 所述第 一报文头信息中携带所述虚拟机确定模块确定的所述第一虚拟机的信息; 所述第一发送模块, 用于将所述封装模块封装了所述第一报文头信息的 第一数据报文通过所述虚拟弹性接口确定模块确定的第一虚拟弹性接口进行 发送。 The encapsulation module is configured to encapsulate first header information in the first data packet, where the first header information carries the information of the first virtual machine determined by the virtual machine determination module; The first sending module is configured to send the first data message in which the first message header information is encapsulated by the encapsulation module through the first virtual elastic interface determined by the virtual elastic interface determination module.
11、 如权利要求 10所述的接口设备, 其特征在于, 所述接口设备还包括 第二接收模块、 与所述第二接收模块连接的解封装模块、 分别与所述解封装 模块连接的物理端口确定模块和第二发送模块, 其中: 11. The interface device according to claim 10, wherein the interface device further includes a second receiving module, a decapsulation module connected to the second receiving module, and a physical module connected to the decapsulation module respectively. port determination module and second sending module, where:
所述第二接收模块, 用于通过第二虚拟弹性接口接收第二数据报文, 所 述第二数据报文封装有第二报文头信息, 所述第二报文头信息中携带有第二 物理端口的信息; The second receiving module is configured to receive a second data message through a second virtual elastic interface. The second data message is encapsulated with second message header information, and the second message header information carries a third message. 2. Physical port information;
所述解封装模块, 用于将所述第二接收模块接收到的所述第二数据报文 中的第二报文头信息解封装得到所述第二报文头信息和去掉所述第二报文头 信息的第二数据报文; The decapsulation module is configured to decapsulate the second header information in the second data message received by the second receiving module to obtain the second header information and remove the second header information. The second data message of the message header information;
所述物理端口确定模块, 用于根据所述解封装模块解封装得到的所述第 二报文头信息中携带的第二物理端口的信息, 确定传输所述第二数据报文的 第二物理端口; The physical port determination module is configured to determine the second physical port for transmitting the second data message based on the information of the second physical port carried in the second message header information decapsulated by the decapsulation module. port;
所述第二发送模块, 用于将所述解封装模块解封装得到的去掉所述第二 报文头信息的第二数据报文通过所述物理端口确定模块确定的所述第二物理 端口发送给外部物理设备。 The second sending module is configured to send the second data message obtained by decapsulating the decapsulation module without the second message header information through the second physical port determined by the physical port determination module. to external physical devices.
12、 如权利要求 10或 11所述的接口设备, 其特征在于, 所述虚拟弹性接口确定模块, 具体用于若所述第一物理端口被一个虚拟 弹性接口独占, 则确定该虚拟弹性接口为传输所述第一数据报文的第一虚拟 弹性接口, 若所述第一物理端口被多于一个虚拟弹性接口复用, 则根据接收 到的所述第一数据报文中携带的切片资源信息, 确定与该切片资源信息对应 的虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口。 12. The interface device according to claim 10 or 11, wherein the virtual elastic interface determination module is specifically configured to determine if the first physical port is exclusively occupied by a virtual elastic interface. The first virtual elastic interface transmits the first data packet. If the first physical port is multiplexed by more than one virtual elastic interface, the slice resource information carried in the received first data packet is , determining that the virtual elastic interface corresponding to the slice resource information is the first virtual elastic interface for transmitting the first data packet.
13、 如权利要求 10~12任一所述的接口设备, 其特征在于, 13. The interface device according to any one of claims 10 to 12, characterized in that,
所述虚拟机确定模块, 具体用于当传输所述第一数据报文的第一虚拟弹 性接口与多个虚拟机具有对应关系时, 根据负载均衡条件从所述多个虚拟机 中确定一个虚拟机为所述第一虚拟机。 The virtual machine determination module is specifically configured to determine a virtual machine from the plurality of virtual machines according to load balancing conditions when the first virtual elastic interface transmitting the first data message has a corresponding relationship with multiple virtual machines. The machine is the first virtual machine.
14、 如权利要求 10~13任一所述的接口设备, 其特征在于, 14. The interface device according to any one of claims 10 to 13, characterized in that,
所述封装模块,具体用于将确定的所述第一虚拟机的 MAC地址作为目的 MAC地址、 将自身的 MAC地址作为源 MAC地址和传输所述第一数据报文 的第一虚拟弹性接口所占用的物理端口的信息携带在所述第一报文头信息 中; The encapsulation module is specifically configured to use the determined MAC address of the first virtual machine as the destination MAC address, use its own MAC address as the source MAC address, and use the first virtual elastic interface to transmit the first data packet. Information about the occupied physical port is carried in the first packet header information;
其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一虚拟弹 性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者, Wherein, when the first virtual elastic interface exclusively occupies the first physical port, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port; or,
在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。 When the first virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port corresponding to the first virtual elastic interface. slice resource information.
15、 一种通用处理设备, 其特征在于, 所述通用处理设备中创建有至少 一个虚拟机, 其中: 每个虚拟机对应一个弹性虚拟接口, 且至少一个虚拟弹 性接口占用接口设备中的一个物理端口; 15. A general processing device, characterized in that at least one virtual machine is created in the general processing device, wherein: each virtual machine corresponds to an elastic virtual interface, and at least one virtual elastic interface occupies a physical space in the interface device. port;
所述通用处理设备包括: 第一接收模块、 与所述第一接收模块连接的虚 拟弹性接口确定模块、 分别与所述虚拟弹性接口确定模块连接的物理端口确 定模块和第一发送模块, 以及与所述物理端口确定模块连接的封装模块, 其 中: 所述第一接收模块, 用于接收第二虚拟机发出的第二数据报文; 所述虚拟弹性接口确定模块, 用于确定所述第二虚拟机对应的第二虚拟 弹性接口; The general processing device includes: a first receiving module, a virtual elastic interface determining module connected to the first receiving module, a physical port determining module and a first sending module respectively connected to the virtual elastic interface determining module, and The physical port determines the encapsulated module to which the module is connected, where: The first receiving module is used to receive the second data message sent by the second virtual machine; the virtual elastic interface determination module is used to determine the second virtual elastic interface corresponding to the second virtual machine;
所述物理端口确定模块, 用于根据物理端口与所述第二虚拟弹性接口之 间的占用关系, 确定所述第二虚拟弹性接口所占用的第二物理端口的信息; 所述封装模块, 用于对所述第一接收模块接收到的所述第二数据报文封 装第二报文头信息, 所述第二报文头信息中携带有所述物理端口确定模块确 定的第二物理端口的信息; The physical port determination module is configured to determine the information of the second physical port occupied by the second virtual elastic interface according to the occupancy relationship between the physical port and the second virtual elastic interface; the encapsulation module is used For encapsulating the second packet header information for the second data packet received by the first receiving module, the second packet header information carries the second physical port determined by the physical port determination module. information;
所述第一发送模块, 用于通过所述虚拟弹性接口确定模块确定的所述第 二虚拟弹性接口, 将所述封装模块封装了所述第二报文头信息的第二数据报 文进行发送。 The first sending module is configured to send the second data message in which the second message header information is encapsulated by the encapsulation module through the second virtual elastic interface determined by the virtual elastic interface determination module. .
16、 如权利要求 15所述的通用处理设备, 其特征在于, 所述通用处理设 备还包括: 第二接收模块、 与所述第二接收模块连接的解封装模块、 分别与 所述解封装模块连接的虚拟机确定模块和第二发送模块, 其中: 16. The general processing device according to claim 15, characterized in that, the general processing device further includes: a second receiving module, a decapsulation module connected to the second receiving module, and a decapsulation module connected to the decapsulation module respectively. The connected virtual machine determines the module and the second sending module, where:
所述第二接收模块, 用于通过第一虚拟弹性接口接收第一数据报文, 所 述第一数据报文封装了第一报文头信息, 所述第一报文头信息中携带有第一 虚拟机的信息; The second receiving module is configured to receive a first data message through a first virtual elastic interface. The first data message encapsulates first message header information, and the first message header information carries a third message. Information about a virtual machine;
所述解封装模块, 用于将所述第二接收模块接收到的所述第一数据报文 中的第一报文头信息解封装得到所述第一报文头信息和去掉所述第一报文头 信息的第一数据报文; The decapsulation module is configured to decapsulate the first header information in the first data message received by the second receiving module to obtain the first header information and remove the first header information. The first data packet of the packet header information;
所述虚拟机确定模块, 用于根据所述解封装模块解封装得到的所述第一 报文头信息中携带的第一虚拟机的信息, 确定接收所述第一数据报文的第一 虚拟机; The virtual machine determination module is configured to determine the first virtual machine that receives the first data message based on the information of the first virtual machine carried in the first message header information decapsulated by the decapsulation module. machine;
所述第二发送模块, 用于将所述解封装模块解封装得到的去掉所述第一 报文头信息的第一数据报文发送给所述虚拟机确定模块确定的所述第一虚拟 机。 The second sending module is configured to send the first data message decapsulated by the decapsulation module with the first message header information removed to the first virtual machine determined by the virtual machine determination module. .
17、 如权利要求 15或 16所述的通用处理设备, 其特征在于, 所述物理端口确定模块, 具体用于在所述第二虚拟弹性接口独占第二物 理端口时, 将该第二物理端口的端口号作为物理端口的信息, 或者, 17. The general processing equipment according to claim 15 or 16, characterized in that, The physical port determination module is specifically configured to use the port number of the second physical port as the information of the physical port when the second virtual elastic interface exclusively occupies the second physical port, or,
在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的端 口号和该第二虚拟弹性接口对应的切片资源作为物理端口的信息。 When the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port and the slice resource corresponding to the second virtual elastic interface are used as the information of the physical port.
18、 如权利要求 16~17任一所述的通用处理设备, 其特征在于, 所述封装模块, 具体用于将所述接口设备的 MAC地址作为目的 MAC地 址和将所述第二虚拟机的 MAC地址作为源 MAC地址携带在所述第二 文头 信息中, 对所述第二数据报文进行封装。 18. The general processing device according to any one of claims 16 to 17, characterized in that the encapsulation module is specifically used to use the MAC address of the interface device as the destination MAC address and the second virtual machine's MAC address. The MAC address is carried in the second header information as the source MAC address to encapsulate the second data packet.
19、 一种数据报文的传输方法, 其特征在于, 所述方法包括: 19. A data message transmission method, characterized in that the method includes:
接口设备通过第一物理端口接收到外部物理设备发送的第一数据报文 时, 根据所述第一物理端口与虚拟弹性接口之间的占用关系, 确定传输所述 第一数据报文的第一虚拟弹性接口, 并根据所述第一虚拟弹性接口与虚拟机 的对应关系, 确定接收所述第一数据报文的第一虚拟机的信息; When the interface device receives the first data packet sent by the external physical device through the first physical port, it determines the first data packet to transmit the first data packet based on the occupancy relationship between the first physical port and the virtual elastic interface. a virtual elastic interface, and determine the information of the first virtual machine that receives the first data message according to the corresponding relationship between the first virtual elastic interface and the virtual machine;
所述接口设备将确定的所述第一虚拟机的信息携带在笫一报文头信息 中, 对所述第一数据报文封装所述第一报文头信息后, 通过确定的所述第一 虚拟弹性接口发送给所述通用处理设备; The interface device carries the determined information of the first virtual machine in the first packet header information, and after encapsulating the first packet header information in the first data packet, uses the determined third packet header information. A virtual elastic interface is sent to the general processing device;
通用处理设备在接收到所述第一数据报文时, 根据封装的第一报文头信 息确定接收所述第一数据报文的所述第一虚拟机, 并将去掉所述第一报文头 信息的第一数据报文发送给所述第一虚拟机; When receiving the first data packet, the general processing device determines the first virtual machine that received the first data packet based on the encapsulated first packet header information, and removes the first packet. The first data packet of header information is sent to the first virtual machine;
其中, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设备中有 至少一个物理端口, 一个所述物理端口被至少一个虚拟弹性接口占用, 且每 个所述虚拟弹性接口与至少一个虚拟机具有对应关系。 Wherein, at least one virtual machine is created in the general processing device, there is at least one physical port in the interface device, one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces is connected to at least one Virtual machines have corresponding relationships.
20、 如权利要求 19所述的方法, 其特征在于, 所述方法还包括: 所述通用处理设备确定发送第二数据报文的第二虚拟机对应的第二虚拟 弹性接口, 并根据物理端口与所述第二虚拟弹性接口之间的占用关系, 确定 所述第二虚拟弹性接口所占用的第二物理端口的信息; 20. The method of claim 19, wherein the method further includes: the general processing device determines the second virtual elastic interface corresponding to the second virtual machine that sends the second data message, and determines the second virtual elastic interface according to the physical port The occupancy relationship with the second virtual elastic interface is to determine the information of the second physical port occupied by the second virtual elastic interface;
所述通用处理设备将确定的所述第二物理端口的信息携带在第二报文头 信息中, 对所述第二数据报文封装所述第二报文头信息后, 通过确定的所述 第二虚拟弹性接口发送给所述接口设备; The general processing device carries the determined information of the second physical port in the second message header. In the information, after encapsulating the second header information in the second data packet, it is sent to the interface device through the determined second virtual elastic interface;
所述接口设备在接收到所述第二数据报文时, 根据封装的第二报文头信 息中携带的第二物理端口的信息, 将去掉所述第二报文头信息的第二数据报 文通过对应的所述第二物理端口发送给外部物理设备。 When receiving the second data packet, the interface device will remove the second data packet from the second packet header information based on the information of the second physical port carried in the encapsulated second packet header information. The message is sent to the external physical device through the corresponding second physical port.
21、 如权利要求 19或 20所述的方法, 其特征在于, 所述接口设备通过 以下方式确定传输所述第一数据报文的第一虚拟弹性接口: 21. The method according to claim 19 or 20, characterized in that the interface device determines the first virtual elastic interface for transmitting the first data message in the following manner:
若所述第一物理端口被一个虚拟弹性接口独占, 则所述接口设备确定该 虚拟弹性接口为传输所述第一数据报文的第一虚拟弹性接口 , 若所述第一物 理端口被多于一个虚拟弹性接口复用, 则所述接口设备根据接收到的所述第 一数据报文中携带的切片资源信息, 确定与该切片资源信息对应的虚拟弹性 接口为传输所述第一数据报文的第一虚拟弹性接口。 If the first physical port is exclusively occupied by one virtual elastic interface, the interface device determines that the virtual elastic interface is the first virtual elastic interface that transmits the first data packet. If the first physical port is occupied by more than one virtual elastic interface, If one virtual elastic interface is multiplexed, the interface device determines, according to the slice resource information carried in the received first data message, that the virtual elastic interface corresponding to the slice resource information is used to transmit the first data message. The first virtual elastic interface.
22、 如权利要求 19~21 任一所述的方法, 其特征在于, 当传输所述第一 数据报文的第一虚拟弹性接口与多个虚拟机具有对应关系时 , 所述接口设备 根据负载均衡条件从所述多个虚拟机中确定一个虚拟机为所述第一虚拟机。 22. The method according to any one of claims 19 to 21, characterized in that, when the first virtual elastic interface transmitting the first data message has a corresponding relationship with multiple virtual machines, the interface device adjusts the interface according to the load. The balancing condition determines one virtual machine from the plurality of virtual machines as the first virtual machine.
23、 如权利要求 19~22任一所述的方法, 其特征在于, 所述方法还包括: 所述接口设备还将确定的所述第一虚拟机的 MAC地址作为目的 MAC地 址、 将自身的 MAC地址作为源 MAC地址和传输所述第一数据报文的第一虚 拟弹性接口所占用的物理端口的信息携带在所述第一报文头信息中; 23. The method according to any one of claims 19 to 22, wherein the method further includes: the interface device also uses the determined MAC address of the first virtual machine as the destination MAC address, and uses its own MAC address as the destination MAC address. The MAC address is carried in the first packet header information as the source MAC address and the information of the physical port occupied by the first virtual elastic interface for transmitting the first data packet;
其中, 其中, 在所述第一虚拟弹性接口独占第一物理端口时, 所述第一 虚拟弹性接口所占用的所述第一物理端口的信息为物理端口的端口号; 或者, 在所述第一虚拟弹性接口复用所述第一物理端口时, 所述第一虚拟弹性 接口所占用的所述第一物理端口的信息为物理端口的端口号和该第一虚拟弹 性接口对应的切片资源信息。 Wherein, when the first virtual elastic interface exclusively occupies the first physical port, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port; or, in the third When a virtual elastic interface multiplexes the first physical port, the information of the first physical port occupied by the first virtual elastic interface is the port number of the physical port and the slice resource information corresponding to the first virtual elastic interface. .
24、 如权利要求 20任一所述的方法, 其特征在于, 所述通用处理设备将 确定的第二物理端口的信息携带在第二报文头信息中, 具体包括: 24. The method according to any one of claims 20, characterized in that the general processing device carries the determined information of the second physical port in the second packet header information, specifically including:
所述通用处理设备在所述第二虚拟弹性接口独占第二物理端口时, 将该 第二物理端口的端口号作为物理端口的信息携带在所述第二报文头信息中, 或者, 在所述第二虚拟弹性接口复用第二物理端口时, 将该第二物理端口的 端口号和该第二虚拟弹性接口对应的切片资源信息作为物理端口的信息携带 在所述第二报文头信息中。 When the second virtual elastic interface exclusively occupies the second physical port, the general processing device The port number of the second physical port is carried in the second packet header information as the physical port information, or when the second virtual elastic interface multiplexes the second physical port, the port number of the second physical port is The slice resource information corresponding to the number and the second virtual elastic interface is carried in the second packet header information as the physical port information.
25、 如权利要求 20或 24所述的方法, 其特征在于, 所述方法还包括: 所述通用处理设备还将所述接口设备的 MAC地址作为目的 MAC地址和 将所述第二虚拟机的 MAC地址作为源 MAC地址携带在所述第二报文头信息 中。 25. The method according to claim 20 or 24, wherein the method further includes: the general processing device also uses the MAC address of the interface device as the destination MAC address and the second virtual machine's MAC address. The MAC address is carried in the second message header information as the source MAC address.
26、 如权利要求 19~25任一所述的方法, 其特征在于, 所述方法还包括: 管理设备在接收到创建虚拟弹性接口的申请时, 根据申请中的创建信息 创建虚拟弹性接口, 所述创建信息包括: 待创建的虚拟弹性接口需占用的带 宽、 对应的虚拟机的信息、 所占用的物理端口的信息; 26. The method according to any one of claims 19 to 25, wherein the method further includes: when the management device receives an application to create a virtual elastic interface, create a virtual elastic interface according to the creation information in the application, so The above creation information includes: the bandwidth required by the virtual elastic interface to be created, the information of the corresponding virtual machine, and the information of the physical ports occupied;
所述管理设备将创建的所述虚拟弹性接口所占用的物理端口的信息和与 虚拟机的对应关系发送给所述接口设备和所述通用处理设备。 The management device sends the information of the physical port occupied by the created virtual elastic interface and the corresponding relationship with the virtual machine to the interface device and the general processing device.
27、 一种数据报文的传输方法, 其特征在于, 所述方法还包括: 通用处理设备确定发送第二数据 4艮文的虚拟机对应的虚拟弹性接口, 并 根据物理端口与虚拟弹性接口之间的占用关系, 确定虚拟机对应的虚拟弹性 接口所占用的物理端口的信息; 27. A data message transmission method, characterized in that the method further includes: the general processing device determines the virtual elastic interface corresponding to the virtual machine that sends the second data message, and determines the virtual elastic interface according to the relationship between the physical port and the virtual elastic interface. The occupancy relationship between the virtual machines determines the information on the physical ports occupied by the virtual elastic interfaces corresponding to the virtual machines;
所述通用处理设备将确定的物理端口的信息携带在第二报文头信息中, 对所述第二数据报文封装所述第二报文头信息后, 通过确定的所述虚拟弹性 接口发送给所述接口设备; The general processing device carries the information of the determined physical port in the second packet header information, encapsulates the second packet header information in the second data packet, and sends it through the determined virtual elastic interface. to said interface device;
所述接口设备在接收到所述第二数据报文时, 根据封装的第二报文头信 息中携带的物理端口信息, 将去掉所述第二报文头信息的第二数据报文通过 对应的物理端口发送给外部物理设备; When the interface device receives the second data message, according to the physical port information carried in the encapsulated second message header information, the second data message with the second message header information removed is passed through the corresponding The physical port is sent to the external physical device;
其中, 所述通用处理设备中创建有至少一个虚拟机, 所述接口设备中有 至少一个物理端口, 一个所述物理端口被至少一个虚拟弹性接口占用, 且每 个所述虚拟弹性接口与至少一个虚拟机具有对应关系。 Wherein, at least one virtual machine is created in the general processing device, there is at least one physical port in the interface device, one of the physical ports is occupied by at least one virtual elastic interface, and each of the virtual elastic interfaces is connected to at least one Virtual machines have corresponding relationships.
PCT/CN2013/088652 2013-12-05 2013-12-05 Data packet transmission system, transmission method and device thereof WO2015081534A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/088652 WO2015081534A1 (en) 2013-12-05 2013-12-05 Data packet transmission system, transmission method and device thereof
CN201380002395.2A CN105264837B (en) 2013-12-05 2013-12-05 A kind of Transmission system of data message, transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088652 WO2015081534A1 (en) 2013-12-05 2013-12-05 Data packet transmission system, transmission method and device thereof

Publications (1)

Publication Number Publication Date
WO2015081534A1 true WO2015081534A1 (en) 2015-06-11

Family

ID=53272758

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088652 WO2015081534A1 (en) 2013-12-05 2013-12-05 Data packet transmission system, transmission method and device thereof

Country Status (2)

Country Link
CN (1) CN105264837B (en)
WO (1) WO2015081534A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375206A (en) * 2016-08-31 2017-02-01 杭州迪普科技有限公司 Message forwarding method and device
EP3843451A4 (en) * 2018-08-23 2021-11-17 ZTE Corporation Bandwidth adjustment method and apparatus, communication device, and computer readable storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10511546B2 (en) * 2017-09-29 2019-12-17 Juniper Networks, Inc. Connecting virtual nodes in a network device using abstract fabric interfaces
CN111865626B (en) * 2019-04-24 2023-05-23 厦门网宿有限公司 Data receiving and transmitting method and device based on aggregation port
CN112099942B (en) * 2020-08-04 2023-08-25 北京奇艺世纪科技有限公司 Port multiplexing method, system, terminal, server, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101809943A (en) * 2007-09-24 2010-08-18 英特尔公司 Method and system for virtual port communications
CN102457439A (en) * 2011-12-07 2012-05-16 中标软件有限公司 Virtual switching system and method of cloud computing system
CN102594660A (en) * 2012-01-19 2012-07-18 华为技术有限公司 Virtual interface exchange method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7443878B2 (en) * 2005-04-04 2008-10-28 Sun Microsystems, Inc. System for scaling by parallelizing network workload
US7779164B2 (en) * 2005-04-04 2010-08-17 Oracle America, Inc. Asymmetrical data processing partition
US7987306B2 (en) * 2005-04-04 2011-07-26 Oracle America, Inc. Hiding system latencies in a throughput networking system
US7415034B2 (en) * 2005-04-04 2008-08-19 Sun Microsystems, Inc. Virtualized partitionable shared network interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101809943A (en) * 2007-09-24 2010-08-18 英特尔公司 Method and system for virtual port communications
CN102457439A (en) * 2011-12-07 2012-05-16 中标软件有限公司 Virtual switching system and method of cloud computing system
CN102594660A (en) * 2012-01-19 2012-07-18 华为技术有限公司 Virtual interface exchange method, device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375206A (en) * 2016-08-31 2017-02-01 杭州迪普科技有限公司 Message forwarding method and device
EP3843451A4 (en) * 2018-08-23 2021-11-17 ZTE Corporation Bandwidth adjustment method and apparatus, communication device, and computer readable storage medium

Also Published As

Publication number Publication date
CN105264837A (en) 2016-01-20
CN105264837B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
US11546288B2 (en) Techniques for managing software defined networking controller in-band communications in a data center network
WO2021136311A1 (en) Method and device for communication between vpcs
US10171357B2 (en) Techniques for managing software defined networking controller in-band communications in a data center network
US10320664B2 (en) Cloud overlay for operations administration and management
Bakshi Considerations for software defined networking (SDN): Approaches and use cases
US10476699B2 (en) VLAN to VXLAN translation using VLAN-aware virtual machines
EP3281364B1 (en) Dynamic orchestration of overlay tunnels
EP2874359B1 (en) Extended ethernet fabric switches
CA2810660C (en) Computer system and communication method in computer system
CN106713103B (en) Method and system for virtual and physical network integration
CN105634770B (en) The method and apparatus for disposing virtual extended local area network
WO2016173271A1 (en) Message processing method, device and system
EP3197107B1 (en) Message transmission method and apparatus
US11941423B2 (en) Data processing method and related device
WO2018054177A1 (en) Inter-cloud communication method and related device, inter-cloud communication configuration method and related device
WO2018137369A1 (en) Hybrid cloud management method, device, and computing apparatus
WO2018032910A1 (en) Cross-network communication method and apparatus
WO2015149253A1 (en) Data center system and virtual network management method of data center
GB2497202A (en) Transmitting frames between, possibly different, local VLANs by encapsulating frames for global VLAN tunnel
JP5967633B2 (en) Flexible and scalable enhanced transmission selection method for network fabrics
CN104937885A (en) Global VLANs for fabric switches
CN104272668A (en) Layer-3 overlay gateways
WO2019033964A1 (en) Method for transmitting packet, forwarding device, controller, and system
WO2015081534A1 (en) Data packet transmission system, transmission method and device thereof
US20210184970A1 (en) Disambiguating traffic in networking environments with multiple virtual routing and forwarding (vrf) logical routers

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380002395.2

Country of ref document: CN

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

Ref document number: 13898640

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: 13898640

Country of ref document: EP

Kind code of ref document: A1