+

WO2018107594A1 - Overlay network implementation method, terminal, device, and computer-readable storage medium - Google Patents

Overlay network implementation method, terminal, device, and computer-readable storage medium Download PDF

Info

Publication number
WO2018107594A1
WO2018107594A1 PCT/CN2017/076518 CN2017076518W WO2018107594A1 WO 2018107594 A1 WO2018107594 A1 WO 2018107594A1 CN 2017076518 W CN2017076518 W CN 2017076518W WO 2018107594 A1 WO2018107594 A1 WO 2018107594A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
network device
packet
host
information segment
Prior art date
Application number
PCT/CN2017/076518
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 平安科技(深圳)有限公司
Publication of WO2018107594A1 publication Critical patent/WO2018107594A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, a terminal, a device, and a computer readable storage medium for implementing an OVERLAY network.
  • VXLAN Virtual eXtensible
  • LAN scalable virtual local area network
  • GRE Generic Routing
  • the embodiments of the present invention provide an implementation method, a terminal, a device, and a computer readable storage medium of an OVERLAY network, which can solve the network limitation of the virtual local area network, and can also implement interworking between the VLAN and the OVERLAY network.
  • An implementation method of an OVERLAY network comprising:
  • a host is added, a first dynamic network information segment between the host and the network device is created;
  • the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  • the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier
  • the network device that sends the packet from the network device of the source host to the target host according to the first dynamic network information segment including:
  • the network device of the source host sends the message to the network device of the target host.
  • the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier.
  • the network device that sends the packet from the network device of the source host to the target host according to the second dynamic network information segment includes:
  • the method further includes:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  • the method further includes:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
  • a terminal comprising:
  • a first creating unit configured to create a first dynamic network information segment between the host and the network device if the host is added
  • a second creating unit configured to create a second dynamic network information segment between the network device and the network device
  • a sending unit configured to, according to the first dynamic network information segment and the second dynamic network information segment, control the sending of the packet from the network device of the source host to the network device of the target host according to the first dynamic network information segment.
  • the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier
  • the sending unit includes:
  • a first sending subunit configured to send the packet from a source host to a network device corresponding to the source host according to the first correspondence in the first dynamic network information segment
  • the second dynamic network information segment includes a second correspondence between the network device and the network device, a second network type, and a second network identifier.
  • the sending unit includes:
  • a third sending subunit configured to send the packet from the network device of the source host to the network device of the target host according to the second correspondence in the second dynamic network information segment;
  • a fourth sending subunit configured to send the packet from the network device of the target host to the target host according to the first dynamic network information segment.
  • the terminal further includes:
  • the encapsulating unit is configured to: when the packet is sent from the network device of the source host to the network device of the target host, encapsulate the packet into a packet format of the second network type.
  • the terminal further includes:
  • a decapsulation unit configured to decapsulate the packet into a packet format of the first network type, if the packet is sent from a network device of the source host to a network device of the target host.
  • An implementation device of an OVERLAY network comprising: a memory and a processor;
  • a memory for storing applications and data that implement an OVERLAY network
  • a host is added, a first dynamic network information segment between the host and the network device is created;
  • the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  • the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier
  • the network device that sends the packet from the network device of the source host to the target host according to the first dynamic network information segment including:
  • the network device of the source host sends the message to the network device of the target host.
  • the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier.
  • the network device that sends the packet from the network device of the source host to the target host according to the second dynamic network information segment includes:
  • processor further performs the following operations:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  • processor further performs the following operations:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
  • a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
  • a host is added, a first dynamic network information segment between the host and the network device is created;
  • the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  • the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier
  • the step of, if the packet is sent, the network device that is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment includes:
  • the network device of the source host sends the message to the network device of the target host.
  • the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier.
  • steps further include:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  • steps further include:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
  • the embodiment of the present invention realizes that the same virtual local area network identifier is allocated on different hosts by creating a first dynamic network information segment between the host and the network device and a second dynamic network information segment between the network devices.
  • the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving the conflict that different hosts use the same virtual local area network identifier, and simultaneously solve the problem.
  • the network limitation of the virtual local area network realizes the interworking of the VLAN and the OVERLAY network.
  • FIG. 1 is a schematic flowchart diagram of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention.
  • FIG. 2 is another schematic flowchart of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention.
  • FIG. 3 is another schematic flowchart of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic flowchart of a method for implementing an OVERLAY network according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic flowchart of a method for implementing an OVERLAY network according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 7 is another schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 8 is another schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 9 is another schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 10 is another schematic block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an apparatus for implementing an OVERLAY network according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention. The method includes steps S101 to S103.
  • each host is newly created, and the host and the network device are created.
  • the first dynamic information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier, where the first correspondence is a network
  • the first network type is a network type between the network device and the newly added host, and the network type may be a virtual local area network (Virtual Local area network (VLAN), the first network identifier is a virtual local area network identifier of the virtual local area network (Virtual Local Area Network ID, VLAN ID), the VLAN ID is used to uniquely identify the VLAN.
  • VLAN ID Virtual Local Area Network
  • the number of VLAN IDs is 4096.
  • the ID ranges from 0 to 4095.
  • the range of VLAN IDs that can be used ranges from 1 to 4094, and the number of VLAN IDs that can be used is 4094.
  • the second dynamic network information segment includes a second correspondence between network devices, a second network type, and a second network identifier, where the second correspondence is a network device and a one-to-one correspondence between network devices, the network device includes a target network device and a source network device, and the second network type is a network type between the network device and the network device, and the network type may be a virtual local area network, or may be Scalable virtual local area network (Virtual eXtensible LAN, VXLAN), the second network identifier may be a virtual local area network identifier indicating a virtual local area network, or may be an expandable virtual local area network identifier indicating an expandable virtual local area network (Virtual eXtensible LAN ID, VXLAN ID).
  • the second correspondence is a network device and a one-to-one correspondence between network devices
  • the network device includes a target network device and a source network device
  • the second network type is a network type between the network device and the network device
  • the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  • the packet may be any packet that needs to be forwarded in the network.
  • the first dynamic network information segment records the relationship between the host and the corresponding network device.
  • the virtual local area network identifier is used. Therefore, the same virtual local area network identifier is allocated on different hosts, and the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving different hosts. Conflicts that use the same virtual LAN ID.
  • the embodiment of the present invention realizes that the same virtual local area network identifier is allocated on different hosts by creating a first dynamic network information segment between the host and the network device and a second dynamic network information segment between the network devices.
  • the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving the conflict that different hosts use the same virtual local area network identifier, and simultaneously solve the problem.
  • step S103 if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment, and specifically includes steps S201 to S202.
  • S201 Send the packet from a source host to a network device corresponding to the source host according to the first correspondence in the first dynamic network information segment.
  • S202. The network device of the source host sends the packet to a network device of the target host.
  • step S103 if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the second dynamic network information segment, and specifically includes steps S301 to S302.
  • S301 Send the packet from the network device of the source host to the network device of the target host according to the second correspondence in the second dynamic network information segment.
  • S302. Send the packet from the network device of the target host to the target host according to the first dynamic network information segment.
  • FIG. 4 it is a schematic flowchart of another embodiment of an implementation method of an OVERLAY network according to the present invention, which includes steps S401 to S404 (steps S401 to S403 and steps S101 to S103 in the first embodiment of the present invention). The same, no longer repeat here).
  • the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  • the packet is sent from the network device of the source host to the network device of the target host, and the format of the packet is encapsulated into a VXLAN packet; the original packet format is a VLAN. Therefore, packets of the VLAN are encapsulated into VXLAN packets.
  • the packet format is encapsulated into a VXLAN packet, which facilitates the transmission of the packet.
  • FIG. 5 it is a flow of still another embodiment of an implementation method of an OVERLAY network according to the present invention.
  • the flowcharts include the steps S501 to S504 (the steps S501 to S504 are the same as the steps S101 to S103 in the first embodiment of the present invention, and are not described herein again).
  • S501 If a host is added, create a first dynamic network information segment between the host and the network device.
  • the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  • the packet of the network device that enters the target host is a VXLAN packet. Therefore, the packet of the VXLAN needs to be decapsulated into a VLAN. The message is sent to the target host by the network device of the target host.
  • the packet of the embodiment of the present invention when the packet of the embodiment of the present invention is sent from the network device of the source host to the network device of the target host, the packet of the VXLAN is decapsulated into a VLAN packet, so that the network device of the target host sends the packet. To the target host.
  • the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM) or Random Access Memory (RAM).
  • the embodiment of the present invention further provides a terminal, where the terminal 100 includes: a first creating unit 10, a second creating unit 20, and a sending unit 30.
  • the first creating unit 10 is configured to create a first dynamic network information segment between the host and the network device if the host is added. Specifically, in the embodiment of the present invention, each new host is created, and a first dynamic network information segment between the host and the network device is created; the first dynamic information segment includes a first between the host and the network device.
  • the network type can be a virtual local area network (Virtual Local area network (VLAN)
  • the first network identifier is a virtual local area network identifier of the virtual local area network (Virtual Local Area Network ID, VLAN ID)
  • VLAN ID is used to uniquely identify the VLAN.
  • the number of VLAN IDs is 4096.
  • the ID ranges from 0 to 4095.
  • the range of VLAN IDs that can be used ranges from 1 to 4094, and the number of VLAN IDs that can be used is 4094.
  • the second creating unit 20 is configured to create a second dynamic network information segment between the network device and the network device.
  • the second dynamic network information segment includes a network device
  • the network type is a network type between a network device and a network device, and the network type may be a virtual local area network or an expandable virtual local area network (Virtual eXtensible LAN, VXLAN), the second network identifier may be a virtual local area network identifier indicating a virtual local area network, or may be an expandable virtual local area network identifier indicating an expandable virtual local area network (Virtual eXtensible LAN ID, VXLAN ID).
  • the sending unit 30 is configured to: if the packet is sent, control, according to the first dynamic network information segment and the second dynamic network information segment, the packet is sent from the network device of the source host to the network device of the target host.
  • the packet may be any packet that needs to be forwarded in the network.
  • the first dynamic network information segment records the relationship between the host and the corresponding network device.
  • the virtual local area network identifier is used. Therefore, the same virtual local area network identifier is allocated on different hosts, and the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving different hosts. Conflicts that use the same virtual LAN ID.
  • the embodiment of the present invention realizes that the same virtual local area network identifier is allocated on different hosts by creating a first dynamic network information segment between the host and the network device and a second dynamic network information segment between the network devices.
  • the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving the conflict that different hosts use the same virtual local area network identifier, and simultaneously solve the problem.
  • the network limitation of the virtual local area network realizes the interworking of the VLAN and the OVERLAY network.
  • the sending unit 30 specifically includes:
  • the first sending subunit 301 is configured to send the packet from the source host to the network device corresponding to the source host according to the first correspondence in the first dynamic network information segment.
  • the second sending subunit 302 is configured to send, by the network device of the source host, the packet to a network device of the target host.
  • the sending unit 30 further includes:
  • a third sending subunit 303 configured to use, according to the second correspondence in the second dynamic network information segment
  • the message is sent from the network device of the source host to the network device of the target host.
  • a fourth sending subunit 304 configured to: send the packet from the target according to the first dynamic network information segment
  • the network device of the host is sent to the target host.
  • the terminal 100 further includes:
  • the encapsulating unit 40 is configured to: when the packet is sent from the network device of the source host to the network device of the target host, encapsulate the packet into a packet format of the second network type. Specifically, if the second network type is VXLAN, the packet is sent from the network device of the source host to the network device of the target host, and the format of the packet is encapsulated into a VXLAN packet; the original packet format is a VLAN. Therefore, packets of the VLAN are encapsulated into VXLAN packets.
  • the terminal 100 further includes:
  • the decapsulation unit 50 is configured to decapsulate the packet into a packet format of the first network type if the packet is sent from the network device of the source host to the network device of the target host. Specifically, when the packet is sent from the network device of the source host to the network device of the target host, the packet of the network device that enters the target host is a VXLAN packet. Therefore, the packet of the VXLAN needs to be decapsulated into a VLAN. The message is sent to the target host by the network device of the target host.
  • the above first creating unit 10, second creating unit 20, sending unit 30, etc. may be embedded in or independent of the data processing device in hardware, or may be stored in the memory of the data processing device in software. So that the processor calls to perform the operations corresponding to the above units.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • FIG. 11 is a schematic structural diagram of an apparatus for implementing an OVERLAY network according to the present invention. As shown in FIG. 11, it may include: an input device 99, an output device 88, a transceiver device 77, a memory 66, and a processor 55, wherein:
  • the input device 99 is configured to receive input data of an external access control device.
  • the input device 99 may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
  • the output device 88 is configured to output output data of the access control device to the outside.
  • the output device 88 described in the embodiments of the present invention may include a display, a speaker, a printer, and the like.
  • the transceiver device 77 is configured to send data to other devices or connect from other devices through a communication link.
  • the transceiver device 77 of the embodiment of the present invention may include a transceiver device such as a radio frequency antenna.
  • the memory 66 is configured to store applications and data that implement an OVERLAY network.
  • the memory 66 of an embodiment of the present invention may be a system memory such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of both.
  • the memory 66 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
  • the processor 55 is configured to run an application in the memory.
  • the processor 55 is a control center of the device, and connects various parts of the entire device by using various interfaces and lines, and executes various functions and processing data of the device by running an application stored in the memory 66, thereby Conduct overall monitoring.
  • the processor 55 described above performs the following operations:
  • the first dynamic network information segment between the host and the network device is created; the second dynamic network information segment between the network devices is created; and if the packet is sent, according to the first dynamic network information segment and the The second dynamic network information segment controls the message to be sent from the network device of the source host to the network device of the target host.
  • the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier; and if the packet is sent, according to the first dynamic network information segment
  • the network device that controls the sending of the packet from the network device of the source host to the target host includes:
  • the packet from a source host to a network device corresponding to the source host; the network device of the source host sends the packet to The network device of the target host.
  • the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier. If the packet is sent, the second dynamic network information segment is controlled according to the second dynamic network information segment.
  • the network device that sends the message from the network device of the source host to the target host includes:
  • processor 55 also performs the following operations:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  • processor 55 also performs the following operations:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
  • the implementation device of the OVERLAY network shown in FIG. 11 does not constitute a limitation on the specific configuration of the implementation device of the OVERLAY network.
  • the implementation device of the OVERLAY network may include a ratio More or fewer parts, or some parts, or different parts.
  • the implementation device of the OVERLAY network may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are the same as those in the embodiment shown in FIG. .
  • the present invention provides a computer readable storage medium having stored one or more programs, the one or more programs being executable by one or more processors to implement the following steps:
  • a host is added, a first dynamic network information segment between the host and the network device is created;
  • the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  • the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier; and if the packet is sent, according to the first dynamic network information segment
  • the step of controlling the sending of the packet from the network device of the source host to the network device of the target host includes:
  • the network device of the source host sends the message to the network device of the target host.
  • the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier. If the packet is sent, the second dynamic network information segment is controlled according to the second dynamic network information segment.
  • the step of sending the message from the network device of the source host to the network device of the target host includes:
  • steps further include:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  • steps further include:
  • the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
  • the foregoing storage medium of the present invention includes: a magnetic disk, an optical disk, and a read-only storage memory (Read-Only) Memory, ROM) or random access memory (RAM), etc., which can store various program codes.
  • ROM read-only storage memory
  • RAM random access memory
  • the units in all embodiments of the present invention may be implemented by a general-purpose integrated circuit such as a CPU (Central Processing) Unit, central processing unit, or implemented by an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing) Unit, central processing unit, or implemented by an ASIC (Application Specific Integrated Circuit).
  • the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed in the embodiments of the present invention are an overlay network implementation method, terminal, device, and computer-readable storage medium, said method comprising: if a new host machine is added, creating a first dynamic network information segment between the host machine and a network device; creating a second dynamic network information segment between network devices; if a packet is sent, then according to said first dynamic network information segment and second dynamic network information segment, controlling said packet to be sent from a network device of the source host machine to a network device of a destination host machine. The embodiments of the present invention enable the same virtual local-area network (VLAN) identifier to be allocated to different host machines; during the process of packet forwarding, it is also possible to use a correlation between the host machine and network devices on the first dynamic network information segment to distinguish packets sent by different host machines, thereby resolving the conflict of different host machines using the same virtual local-area network identifier; at the same time, the network limitations of a virtual local-area network are resolved and communication between a VLAN and an overlay network is achieved.

Description

一种OVERLAY网络的实现方法、终端、设备及计算机可读存储介质  Method, terminal, device and computer readable storage medium for OVERLAY network
技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种OVERLAY网络的实现方法、终端、设备及计算机可读存储介质。The present invention relates to the field of computer technologies, and in particular, to a method, a terminal, a device, and a computer readable storage medium for implementing an OVERLAY network.
背景技术Background technique
目前,通常使用VXLAN(Virtual eXtensible LAN,可扩展虚拟局域网)或者GRE(Generic Routing Encapsulation,通用路由封装)技术来实现OVERLAY网络,由于某些场景的需要,用户希望OVERLAY网络与VLAN网络共存,现有的解决方案是通过L2Gateway做转换以实现VLAN网络与OVERLAY网络互通,但是由于VLAN网络本身的限制,导致VLAN网络与OVERLAY网络互通后只能支持4096个租户网络,而在目前的多租户大规模云应用场景下是远远不够的,由此,如何解决虚拟局域网的网络限制以及实现VLAN和OVERLAY网络的互通成为扩展OVERLAY网络的关键。Currently, VXLAN (Virtual eXtensible) is usually used. LAN, scalable virtual local area network) or GRE (Generic Routing) Encapsulation, general routing encapsulation technology to achieve OVERLAY network, due to the needs of certain scenarios, users want OVERLAY network and VLAN network coexistence, the existing solution is to convert through L2Gateway to achieve VLAN network and OVERLAY network interoperability, but due to VLAN The network itself is limited, and the VLAN network can only support 4096 tenant networks after interworking with the OVERLAY network. In the current multi-tenant large-scale cloud application scenario, it is not enough. How to solve the network limitation of the virtual LAN and Interoperability between VLAN and OVERLAY networks has become the key to extending the OVERLAY network.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种OVERLAY网络的实现方法、终端、设备及计算机可读存储介质,可以解决虚拟局域网的网络限制,还可以实现VLAN和OVERLAY网络的互通。In view of this, the embodiments of the present invention provide an implementation method, a terminal, a device, and a computer readable storage medium of an OVERLAY network, which can solve the network limitation of the virtual local area network, and can also implement interworking between the VLAN and the OVERLAY network.
一种OVERLAY网络的实现方法,该方法包括:An implementation method of an OVERLAY network, the method comprising:
若新增主机,创建主机和网络设备之间的第一动态网络信息段;If a host is added, a first dynamic network information segment between the host and the network device is created;
创建网络设备之间的第二动态网络信息段;Creating a second dynamic network information segment between the network devices;
若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
进一步地,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;Further, the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier;
所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And the sending, according to the first dynamic network information segment, the network device that sends the packet from the network device of the source host to the target host according to the first dynamic network information segment, including:
根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host;
所述源主机的网络设备将所述报文发送至目标主机的网络设备。The network device of the source host sends the message to the network device of the target host.
进一步地,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识;Further, the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier.
所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And if the sending the packet, the network device that sends the packet from the network device of the source host to the target host according to the second dynamic network information segment includes:
根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;Sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host;
根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。Sending the message from the network device of the target host to the target host according to the first dynamic network information segment.
进一步地,所述方法还包括:Further, the method further includes:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
进一步地,所述方法还包括:Further, the method further includes:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
一种终端,该终端包括:A terminal, the terminal comprising:
第一创建单元,用于若新增主机,创建主机和网络设备之间的第一动态网络信息段;a first creating unit, configured to create a first dynamic network information segment between the host and the network device if the host is added;
第二创建单元,用于创建网络设备和网络设备之间的第二动态网络信息段;a second creating unit, configured to create a second dynamic network information segment between the network device and the network device;
发送单元,用于若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And a sending unit, configured to, according to the first dynamic network information segment and the second dynamic network information segment, control the sending of the packet from the network device of the source host to the network device of the target host according to the first dynamic network information segment.
进一步地,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;Further, the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier;
所述发送单元包括:The sending unit includes:
第一发送子单元,用于根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;a first sending subunit, configured to send the packet from a source host to a network device corresponding to the source host according to the first correspondence in the first dynamic network information segment;
第二发送子单元,用于所述源主机的网络设备将所述报文发送至目标主机的a second sending subunit, where the network device of the source host sends the packet to the target host
网络设备。Internet equipment.
进一步地,所述第二动态网络信息段包括网络设备与网络设备之间的第二对应关系、第二网络类型以及第二网络标识;Further, the second dynamic network information segment includes a second correspondence between the network device and the network device, a second network type, and a second network identifier.
所述发送单元包括:The sending unit includes:
第三发送子单元,用于根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;a third sending subunit, configured to send the packet from the network device of the source host to the network device of the target host according to the second correspondence in the second dynamic network information segment;
第四发送子单元,用于根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。And a fourth sending subunit, configured to send the packet from the network device of the target host to the target host according to the first dynamic network information segment.
进一步地,所述终端还包括:Further, the terminal further includes:
封装单元,用于若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。The encapsulating unit is configured to: when the packet is sent from the network device of the source host to the network device of the target host, encapsulate the packet into a packet format of the second network type.
进一步地,所述终端还包括:Further, the terminal further includes:
解封装单元,用于若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。And a decapsulation unit, configured to decapsulate the packet into a packet format of the first network type, if the packet is sent from a network device of the source host to a network device of the target host.
一种OVERLAY网络的实现设备,该设备包括:存储器以及处理器;An implementation device of an OVERLAY network, the device comprising: a memory and a processor;
存储器,用于存储实现OVERLAY网络的应用程序和数据; a memory for storing applications and data that implement an OVERLAY network;
处理器,用于运行所述存储器中存储的应用程序,以执行如下操作:a processor for running an application stored in the memory to perform the following operations:
若新增主机,创建主机和网络设备之间的第一动态网络信息段;If a host is added, a first dynamic network information segment between the host and the network device is created;
创建网络设备之间的第二动态网络信息段;Creating a second dynamic network information segment between the network devices;
若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
进一步地,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;Further, the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier;
所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And the sending, according to the first dynamic network information segment, the network device that sends the packet from the network device of the source host to the target host according to the first dynamic network information segment, including:
根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host;
所述源主机的网络设备将所述报文发送至目标主机的网络设备。The network device of the source host sends the message to the network device of the target host.
进一步地,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识; Further, the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier.
所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And if the sending the packet, the network device that sends the packet from the network device of the source host to the target host according to the second dynamic network information segment includes:
根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;Sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host;
根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。Sending the message from the network device of the target host to the target host according to the first dynamic network information segment.
进一步地,所述处理器还执行如下操作: Further, the processor further performs the following operations:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。 If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
进一步地,所述处理器还执行如下操作: Further, the processor further performs the following operations:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。 And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器用来执行,以实现以下步骤: A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
若新增主机,创建主机和网络设备之间的第一动态网络信息段;If a host is added, a first dynamic network information segment between the host and the network device is created;
创建网络设备之间的第二动态网络信息段;Creating a second dynamic network information segment between the network devices;
若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
进一步地,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识; Further, the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier;
所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备的步骤包括:The step of, if the packet is sent, the network device that is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment, includes:
根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host;
所述源主机的网络设备将所述报文发送至目标主机的网络设备。The network device of the source host sends the message to the network device of the target host.
进一步地,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识; Further, the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier.
所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备的步骤包括:And the step of: sending, according to the second dynamic network information segment, the network device that is sent from the network device of the source host to the network device of the target host according to the second dynamic network information segment:
根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;Sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host;
根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。Sending the message from the network device of the target host to the target host according to the first dynamic network information segment.
进一步地,所述步骤还包括: Further, the steps further include:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。 If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
进一步地,所述步骤还包括: Further, the steps further include:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
由上可见,本发明实施例通过创建主机和网络设备之间的第一动态网络信息段以及网络设备之间的第二动态网络信息段,实现在不同的主机上分配相同的虚拟局域网标识,在报文转发过程中,利用第一动态网络信息段上的主机与网络设备之间的对应关系也可以区分不同主机发送的报文,从而解决了不同主机使用同一虚拟局域网标识的冲突,同时解决了虚拟局域网的网络限制,实现VLAN和OVERLAY网络的互通。It can be seen that the embodiment of the present invention realizes that the same virtual local area network identifier is allocated on different hosts by creating a first dynamic network information segment between the host and the network device and a second dynamic network information segment between the network devices. In the packet forwarding process, the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving the conflict that different hosts use the same virtual local area network identifier, and simultaneously solve the problem. The network limitation of the virtual local area network realizes the interworking of the VLAN and the OVERLAY network.
附图说明DRAWINGS
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. For the ordinary technicians, other drawings can be obtained based on these drawings without any creative work.
图1是本发明实施例一提供的一种OVERLAY网络的实现方法的流程示意图。FIG. 1 is a schematic flowchart diagram of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention.
图2是本发明实施例一提供的一种OVERLAY网络的实现方法的另一流程示意图。FIG. 2 is another schematic flowchart of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention.
图3是本发明实施例一提供的一种OVERLAY网络的实现方法的另一流程示意图。FIG. 3 is another schematic flowchart of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention.
图4是本发明实施例二提供的一种OVERLAY网络的实现方法的流程示意图。4 is a schematic flowchart of a method for implementing an OVERLAY network according to Embodiment 2 of the present invention.
图5是本发明实施例三提供的一种OVERLAY网络的实现方法的流程示意图。FIG. 5 is a schematic flowchart of a method for implementing an OVERLAY network according to Embodiment 3 of the present invention.
图6是本发明实施例提供的一种终端的示意性框图。FIG. 6 is a schematic block diagram of a terminal according to an embodiment of the present invention.
图7是本发明实施例提供的一种终端的另一示意性框图。FIG. 7 is another schematic block diagram of a terminal according to an embodiment of the present invention.
图8是本发明实施例提供的一种终端的另一示意性框图。FIG. 8 is another schematic block diagram of a terminal according to an embodiment of the present invention.
图9是本发明实施例提供的一种终端的另一示意性框图。FIG. 9 is another schematic block diagram of a terminal according to an embodiment of the present invention.
图10是本发明实施例提供的一种终端的另一示意性框图。FIG. 10 is another schematic block diagram of a terminal according to an embodiment of the present invention.
图11是本发明实施例提供的一种OVERLAY网络的实现设备的结构组成示意图。FIG. 11 is a schematic structural diagram of an apparatus for implementing an OVERLAY network according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和 “包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It will be understood that the terms "comprise" and "the" when used in the specification and the appended claims "Comprising" indicates the existence of the described features, integers, steps, operations, elements and/or components, but does not exclude the presence of one or more other features, integers, steps, operations, elements, components and/or combinations thereof Add to.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It is also to be understood that the terminology of the present invention is to be construed as a The singular forms "", ",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
如图1所示,为本发明实施例一提供的一种OVERLAY网络的实现方法的流程示意图。该方法包括步骤S101~S103。FIG. 1 is a schematic flowchart diagram of an implementation method of an OVERLAY network according to Embodiment 1 of the present invention. The method includes steps S101 to S103.
S101,若新增主机,创建主机和网络设备之间的第一动态网络信息段。S101. If a host is added, create a first dynamic network information segment between the host and the network device.
具体的,在本发明实施例中,每新增一台主机,便创建该主机与网络设备之Specifically, in the embodiment of the present invention, each host is newly created, and the host and the network device are created.
间的第一动态网络信息段;所述第一动态信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识,其中,所述第一对应关系为网a first dynamic network information segment; the first dynamic information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier, where the first correspondence is a network
络设备与新增主机之间的一一对应关系,所述第一网络类型为网络设备与新增主机之间的网络类型,该网络类型可以是虚拟局域网(Virtual Local Area Network,VLAN),所述第一网络标识为该虚拟局域网的虚拟局域网标识(Virtual Local Area Network ID,VLAN ID),所述VLAN ID用来唯一标识VLAN,在一般情况下,VLAN ID的数量为4096个,VLAN ID的范围为0~4095,其中,可被使用的VLAN ID的范围为1~4094,而可被使用的VLAN ID的数量为4094个。A one-to-one correspondence between the network device and the newly added host, the first network type is a network type between the network device and the newly added host, and the network type may be a virtual local area network (Virtual Local area network (VLAN), the first network identifier is a virtual local area network identifier of the virtual local area network (Virtual Local Area Network ID, VLAN ID), the VLAN ID is used to uniquely identify the VLAN. In general, the number of VLAN IDs is 4096. The ID ranges from 0 to 4095. The range of VLAN IDs that can be used ranges from 1 to 4094, and the number of VLAN IDs that can be used is 4094.
S102,创建网络设备之间的第二动态网络信息段。S102. Create a second dynamic network information segment between the network devices.
具体的,在本发明实施例中,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识,其中所述第二对应关系为网络设备与网络设备之间的一一对应关系,网络设备包括目标网络设备以及源网络设备,所述第二网络类型为网络设备与网络设备之间的网络类型,该网络类型可以是虚拟局域网,也可以是可扩展虚拟局域网(Virtual eXtensible LAN,VXLAN),所述第二网络标识可以是表示虚拟局域网的虚拟局域网标识,也可以是表示可扩展虚拟局域网的可扩展虚拟局域网标识(Virtual eXtensible LAN ID,VXLAN ID)。Specifically, in the embodiment of the present invention, the second dynamic network information segment includes a second correspondence between network devices, a second network type, and a second network identifier, where the second correspondence is a network device and a one-to-one correspondence between network devices, the network device includes a target network device and a source network device, and the second network type is a network type between the network device and the network device, and the network type may be a virtual local area network, or may be Scalable virtual local area network (Virtual eXtensible LAN, VXLAN), the second network identifier may be a virtual local area network identifier indicating a virtual local area network, or may be an expandable virtual local area network identifier indicating an expandable virtual local area network (Virtual eXtensible LAN ID, VXLAN ID).
S103,若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。S103. If the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
具体的,在本发明实施例中,所述报文可以是网络中需要转发的任意报文,在报文转发过程中,由于第一动态网络信息段记录了主机与相应的网络设备之间的虚拟局域网标识,所以在不同的主机上分配相同的虚拟局域网标识,利用第一动态网络信息段上的主机与网络设备之间的对应关系也可以区分不同主机发送的报文,从而解决了不同主机使用同一虚拟局域网标识的冲突。Specifically, in the embodiment of the present invention, the packet may be any packet that needs to be forwarded in the network. In the packet forwarding process, the first dynamic network information segment records the relationship between the host and the corresponding network device. The virtual local area network identifier is used. Therefore, the same virtual local area network identifier is allocated on different hosts, and the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving different hosts. Conflicts that use the same virtual LAN ID.
由以上可见,本发明实施例通过创建主机和网络设备之间的第一动态网络信息段以及网络设备之间的第二动态网络信息段,实现在不同的主机上分配相同的虚拟局域网标识,在报文转发过程中,利用第一动态网络信息段上的主机与网络设备之间的对应关系也可以区分不同主机发送的报文,从而解决了不同主机使用同一虚拟局域网标识的冲突,同时解决了虚拟局域网的网络限制,实现It can be seen from the above that the embodiment of the present invention realizes that the same virtual local area network identifier is allocated on different hosts by creating a first dynamic network information segment between the host and the network device and a second dynamic network information segment between the network devices. In the packet forwarding process, the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving the conflict that different hosts use the same virtual local area network identifier, and simultaneously solve the problem. Virtual network network limitation, implementation
VLAN和OVERLAY网络的互通。Interworking between VLAN and OVERLAY network.
如图2所示,步骤S103中,若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备,具体包括步骤S201~S202。As shown in FIG. 2, in step S103, if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment, and specifically includes steps S201 to S202.
S201,根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备。S202,所述源主机的网络设备将所述报文发送至目标主机的网络设备。S201. Send the packet from a source host to a network device corresponding to the source host according to the first correspondence in the first dynamic network information segment. S202. The network device of the source host sends the packet to a network device of the target host.
如图3所示,步骤S103中,若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备,具体包括步骤S301~S302。As shown in FIG. 3, in step S103, if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the second dynamic network information segment, and specifically includes steps S301 to S302.
S301,根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备。S302,根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。S301. Send the packet from the network device of the source host to the network device of the target host according to the second correspondence in the second dynamic network information segment. S302. Send the packet from the network device of the target host to the target host according to the first dynamic network information segment.
如图4所示,为本发明一种OVERLAY网络的实现方法的另一个实施例的流程示意图,其包括步骤S401~S404(其中,步骤S401~S403与本发明实施例一中的步骤S101~S103相同,在此不再赘述)。As shown in FIG. 4, it is a schematic flowchart of another embodiment of an implementation method of an OVERLAY network according to the present invention, which includes steps S401 to S404 (steps S401 to S403 and steps S101 to S103 in the first embodiment of the present invention). The same, no longer repeat here).
S401,若新增主机,创建主机和网络设备之间的第一动态网络信息段。S401. If a host is added, create a first dynamic network information segment between the host and the network device.
S402,创建网络设备之间的第二动态网络信息段。S402. Create a second dynamic network information segment between the network devices.
S403,若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。S403. If the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
S404,若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。S404: If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
具体的,若所述第二网络类型为VXLAN,将报文从源主机的网络设备发送至目标主机的网络设备,将报文的格式封装为VXLAN的报文;由于原始的报文格式为VLAN的报文,因此需要对VLAN的报文进行封装为VXLAN的报文。Specifically, if the second network type is VXLAN, the packet is sent from the network device of the source host to the network device of the target host, and the format of the packet is encapsulated into a VXLAN packet; the original packet format is a VLAN. Therefore, packets of the VLAN are encapsulated into VXLAN packets.
由以上可见,本发明实施例在报文从源主机的网络设备发送至目标主机的网络设备时,将报文的格式封装为VXLAN的报文,方便报文的传输。It can be seen that, in the embodiment of the present invention, when the packet is sent from the network device of the source host to the network device of the target host, the packet format is encapsulated into a VXLAN packet, which facilitates the transmission of the packet.
如图5所示,为本发明一种OVERLAY网络的实现方法的又一个实施例的流As shown in FIG. 5, it is a flow of still another embodiment of an implementation method of an OVERLAY network according to the present invention.
程示意图,其包括步骤S501~S504(其中,步骤S501~S504与本发明实施例一中的步骤S101~S103相同,在此不再赘述)。The flowcharts include the steps S501 to S504 (the steps S501 to S504 are the same as the steps S101 to S103 in the first embodiment of the present invention, and are not described herein again).
S501,若新增主机,创建主机和网络设备之间的第一动态网络信息段。S501: If a host is added, create a first dynamic network information segment between the host and the network device.
S502,创建网络设备之间的第二动态网络信息段。S502. Create a second dynamic network information segment between the network devices.
S503,若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。S503. If the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
S504,若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。S504: If the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into the packet format of the first network type.
具体的,将报文从源主机的网络设备发送至目标主机的网络设备时,由于进入目标主机的网络设备的报文格式为VXLAN的报文,因此需要对VXLAN的报文进行解封闭为VLAN的报文,以方便目标主机的网络设备将报文发送至目标主机。Specifically, when the packet is sent from the network device of the source host to the network device of the target host, the packet of the network device that enters the target host is a VXLAN packet. Therefore, the packet of the VXLAN needs to be decapsulated into a VLAN. The message is sent to the target host by the network device of the target host.
由以上可见,本发明实施例报文从源主机的网络设备发送至目标主机的网络设备时,对VXLAN的报文进行解封闭为VLAN的报文,以方便目标主机的网络设备将报文发送至目标主机。It can be seen that, when the packet of the embodiment of the present invention is sent from the network device of the source host to the network device of the target host, the packet of the VXLAN is decapsulated into a VLAN packet, so that the network device of the target host sends the packet. To the target host.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM) or Random Access Memory (RAM).
如图6所示,对应上述一种OVERLAY网络的实现方法,本发明实施例还提出一种终端,该终端100包括:第一创建单元10,第二创建单元20,发送单元30。As shown in FIG. 6 , corresponding to the implementation method of the foregoing OVERLAY network, the embodiment of the present invention further provides a terminal, where the terminal 100 includes: a first creating unit 10, a second creating unit 20, and a sending unit 30.
其中第一创建单元10,用于若新增主机,创建主机和网络设备之间的第一动态网络信息段。具体的,在本发明实施例中,每新增一台主机,便创建该主机与网络设备之间的第一动态网络信息段;所述第一动态信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识,其中,所述第一对应关系为网络设备与新增主机之间的一一对应关系,所述第一网络类型为网络设备与新增主机之间的网络类型,该网络类型可以是虚拟局域网(Virtual Local Area Network,VLAN),所述第一网络标识为该虚拟局域网的虚拟局域网标识(Virtual Local Area Network ID,VLAN ID),所述VLAN ID用来唯一标识VLAN,在一般情况下,VLAN ID的数量为4096个,VLAN ID的范围为0~4095,其中,可被使用的VLAN ID的范围为1~4094,而可被使用的VLAN ID的数量为4094个。The first creating unit 10 is configured to create a first dynamic network information segment between the host and the network device if the host is added. Specifically, in the embodiment of the present invention, each new host is created, and a first dynamic network information segment between the host and the network device is created; the first dynamic information segment includes a first between the host and the network device. a first correspondence, a first network type, and a first network identifier, where the first correspondence is a one-to-one correspondence between the network device and the newly added host, where the first network type is a network device and a new host Between the types of networks, the network type can be a virtual local area network (Virtual Local area network (VLAN), the first network identifier is a virtual local area network identifier of the virtual local area network (Virtual Local Area Network ID, VLAN ID), the VLAN ID is used to uniquely identify the VLAN. In general, the number of VLAN IDs is 4096. The ID ranges from 0 to 4095. The range of VLAN IDs that can be used ranges from 1 to 4094, and the number of VLAN IDs that can be used is 4094.
第二创建单元20,用于创建网络设备和网络设备之间的第二动态网络信息段。具体的,在本发明实施例中,所述第二动态网络信息段包括网络设备之间的第The second creating unit 20 is configured to create a second dynamic network information segment between the network device and the network device. Specifically, in the embodiment of the present invention, the second dynamic network information segment includes a network device
二对应关系、第二网络类型以及第二网络标识,其中所述第二对应关系为网络设备与网络设备之间的一一对应关系,网络设备包括目标网络设备以及源网络设备,所述第二网络类型为网络设备与网络设备之间的网络类型,该网络类型可以是虚拟局域网,也可以是可扩展虚拟局域网(Virtual eXtensible LAN,VXLAN),所述第二网络标识可以是表示虚拟局域网的虚拟局域网标识,也可以是表示可扩展虚拟局域网的可扩展虚拟局域网标识(Virtual eXtensible LAN ID,VXLAN ID)。a second correspondence, a second network type, and a second network identifier, where the second correspondence is a one-to-one correspondence between the network device and the network device, where the network device includes the target network device and the source network device, and the second The network type is a network type between a network device and a network device, and the network type may be a virtual local area network or an expandable virtual local area network (Virtual eXtensible LAN, VXLAN), the second network identifier may be a virtual local area network identifier indicating a virtual local area network, or may be an expandable virtual local area network identifier indicating an expandable virtual local area network (Virtual eXtensible LAN ID, VXLAN ID).
发送单元30,用于若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。具体的,在本发明实施例中,所述报文可以是网络中需要转发的任意报文,在报文转发过程中,由于第一动态网络信息段记录了主机与相应的网络设备之间的虚拟局域网标识,所以在不同的主机上分配相同的虚拟局域网标识,利用第一动态网络信息段上的主机与网络设备之间的对应关系也可以区分不同主机发送的报文,从而解决了不同主机使用同一虚拟局域网标识的冲突。The sending unit 30 is configured to: if the packet is sent, control, according to the first dynamic network information segment and the second dynamic network information segment, the packet is sent from the network device of the source host to the network device of the target host. Specifically, in the embodiment of the present invention, the packet may be any packet that needs to be forwarded in the network. In the packet forwarding process, the first dynamic network information segment records the relationship between the host and the corresponding network device. The virtual local area network identifier is used. Therefore, the same virtual local area network identifier is allocated on different hosts, and the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving different hosts. Conflicts that use the same virtual LAN ID.
由以上可见,本发明实施例通过创建主机和网络设备之间的第一动态网络信息段以及网络设备之间的第二动态网络信息段,实现在不同的主机上分配相同的虚拟局域网标识,在报文转发过程中,利用第一动态网络信息段上的主机与网络设备之间的对应关系也可以区分不同主机发送的报文,从而解决了不同主机使用同一虚拟局域网标识的冲突,同时解决了虚拟局域网的网络限制,实现VLAN和OVERLAY网络的互通。It can be seen from the above that the embodiment of the present invention realizes that the same virtual local area network identifier is allocated on different hosts by creating a first dynamic network information segment between the host and the network device and a second dynamic network information segment between the network devices. In the packet forwarding process, the correspondence between the host and the network device in the first dynamic network information segment can also be used to distinguish packets sent by different hosts, thereby solving the conflict that different hosts use the same virtual local area network identifier, and simultaneously solve the problem. The network limitation of the virtual local area network realizes the interworking of the VLAN and the OVERLAY network.
如图7所示,所述发送单元30,具体包括:As shown in FIG. 7, the sending unit 30 specifically includes:
第一发送子单元301,用于根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备。The first sending subunit 301 is configured to send the packet from the source host to the network device corresponding to the source host according to the first correspondence in the first dynamic network information segment.
第二发送子单元302,用于所述源主机的网络设备将所述报文发送至目标主机的网络设备。The second sending subunit 302 is configured to send, by the network device of the source host, the packet to a network device of the target host.
如图8所示,所述发送单元30,还具体包括:As shown in FIG. 8, the sending unit 30 further includes:
第三发送子单元303,用于根据所述第二动态网络信息段中的第二对应关系a third sending subunit 303, configured to use, according to the second correspondence in the second dynamic network information segment
将所述报文从源主机的网络设备发送至目标主机的网络设备。The message is sent from the network device of the source host to the network device of the target host.
第四发送子单元304,用于根据所述第一动态网络信息段将所述报文从目标a fourth sending subunit 304, configured to: send the packet from the target according to the first dynamic network information segment
主机的网络设备发送至所述目标主机。The network device of the host is sent to the target host.
如图9所示,所述终端100还包括:As shown in FIG. 9, the terminal 100 further includes:
封装单元40,用于若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。具体的,若所述第二网络类型为VXLAN,将报文从源主机的网络设备发送至目标主机的网络设备,将报文的格式封装为VXLAN的报文;由于原始的报文格式为VLAN的报文,因此需要对VLAN的报文进行封装为VXLAN的报文。The encapsulating unit 40 is configured to: when the packet is sent from the network device of the source host to the network device of the target host, encapsulate the packet into a packet format of the second network type. Specifically, if the second network type is VXLAN, the packet is sent from the network device of the source host to the network device of the target host, and the format of the packet is encapsulated into a VXLAN packet; the original packet format is a VLAN. Therefore, packets of the VLAN are encapsulated into VXLAN packets.
如图10所示,所述终端100还包括:As shown in FIG. 10, the terminal 100 further includes:
解封装单元50,用于若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。具体的,将报文从源主机的网络设备发送至目标主机的网络设备时,由于进入目标主机的网络设备的报文格式为VXLAN的报文,因此需要对VXLAN的报文进行解封闭为VLAN的报文,以方便目标主机的网络设备将报文发送至目标主机。The decapsulation unit 50 is configured to decapsulate the packet into a packet format of the first network type if the packet is sent from the network device of the source host to the network device of the target host. Specifically, when the packet is sent from the network device of the source host to the network device of the target host, the packet of the network device that enters the target host is a VXLAN packet. Therefore, the packet of the VXLAN needs to be decapsulated into a VLAN. The message is sent to the target host by the network device of the target host.
在硬件实现上,以上第一创建单元10,第二创建单元20,发送单元30等可以以硬件形式内嵌于或独立于数据处理装置中,也可以以软件形式存储于数据处理装置的存储器中,以便于处理器调用执行以上各个单元对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。In hardware implementation, the above first creating unit 10, second creating unit 20, sending unit 30, etc. may be embedded in or independent of the data processing device in hardware, or may be stored in the memory of the data processing device in software. So that the processor calls to perform the operations corresponding to the above units. The processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
图11为本发明一种OVERLAY网络的实现设备的结构组成示意图。如图11所示,其可包括:输入装置99、输出装置88、收发装置77、存储器66以及处理器55,其中:FIG. 11 is a schematic structural diagram of an apparatus for implementing an OVERLAY network according to the present invention. As shown in FIG. 11, it may include: an input device 99, an output device 88, a transceiver device 77, a memory 66, and a processor 55, wherein:
所述输入装置99,用于接收外部访问控制设备的输入数据。具体实现中,本发明实施例所述的输入装置99可包括键盘、鼠标、光电输入装置、声音输入装置、触摸式输入装置、扫描仪等。The input device 99 is configured to receive input data of an external access control device. In a specific implementation, the input device 99 according to the embodiment of the present invention may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
所述输出装置88,用于对外输出访问控制设备的输出数据。具体实现中,The output device 88 is configured to output output data of the access control device to the outside. In the specific implementation,
本发明实施例所述的输出装置88可包括显示器、扬声器、打印机等。The output device 88 described in the embodiments of the present invention may include a display, a speaker, a printer, and the like.
所述收发装置77,用于通过通信链路向其他设备发送数据或者从其他设备接The transceiver device 77 is configured to send data to other devices or connect from other devices through a communication link.
收数据。具体实现中,本发明实施例的收发装置77可包括射频天线等收发器件。 Receive data. In a specific implementation, the transceiver device 77 of the embodiment of the present invention may include a transceiver device such as a radio frequency antenna.
所述存储器66,用于存储实现OVERLAY网络的应用程序和数据。具体实现中,本发明实施例的存储器66可以是系统存储器,比如,挥发性的(诸如RAM),非易失性的(诸如ROM,闪存等),或者两者的结合。具体实现中,本发明实施例的存储器66还可以是系统之外的外部存储器,比如,磁盘、光盘、磁带等。The memory 66 is configured to store applications and data that implement an OVERLAY network. In a specific implementation, the memory 66 of an embodiment of the present invention may be a system memory such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of both. In a specific implementation, the memory 66 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
所述处理器55,用于运行所述存储器中的应用程序。具体实现中,处理器55是设备的控制中心,利用各种接口和线路连接整个设备的各个部分,通过运行存储在存储器66内的应用程序,执行设备的各种功能和处理数据,从而对设备进行整体监控。上述处理器55执行如下操作:The processor 55 is configured to run an application in the memory. In a specific implementation, the processor 55 is a control center of the device, and connects various parts of the entire device by using various interfaces and lines, and executes various functions and processing data of the device by running an application stored in the memory 66, thereby Conduct overall monitoring. The processor 55 described above performs the following operations:
若新增主机,创建主机和网络设备之间的第一动态网络信息段;创建网络设备之间的第二动态网络信息段;若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。If the host is added, the first dynamic network information segment between the host and the network device is created; the second dynamic network information segment between the network devices is created; and if the packet is sent, according to the first dynamic network information segment and the The second dynamic network information segment controls the message to be sent from the network device of the source host to the network device of the target host.
进一步地,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:Further, the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier; and if the packet is sent, according to the first dynamic network information segment The network device that controls the sending of the packet from the network device of the source host to the target host includes:
根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;所述源主机的网络设备将所述报文发送至目标主机的网络设备。Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host; the network device of the source host sends the packet to The network device of the target host.
进一步地,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识;所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:Further, the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier. If the packet is sent, the second dynamic network information segment is controlled according to the second dynamic network information segment. The network device that sends the message from the network device of the source host to the target host includes:
根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。And sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host; and the packet is sent from the target according to the first dynamic network information segment. The network device of the host is sent to the target host.
进一步地,所述处理器55还执行如下操作:Further, the processor 55 also performs the following operations:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
进一步地,所述处理器55还执行如下操作:Further, the processor 55 also performs the following operations:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
本领域技术人员可以理解,图11中示出的OVERLAY网络的实现设备实施例并不构成对OVERLAY网络的实现设备具体构成的限定,在其他实施例中,OVERLAY网络的实现设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,OVERLAY网络的实现设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图11所示实施例一致,在此不再赘述。It can be understood by those skilled in the art that the implementation device of the OVERLAY network shown in FIG. 11 does not constitute a limitation on the specific configuration of the implementation device of the OVERLAY network. In other embodiments, the implementation device of the OVERLAY network may include a ratio More or fewer parts, or some parts, or different parts. For example, in some embodiments, the implementation device of the OVERLAY network may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are the same as those in the embodiment shown in FIG. .
本发明提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,以实现以下步骤:The present invention provides a computer readable storage medium having stored one or more programs, the one or more programs being executable by one or more processors to implement the following steps:
若新增主机,创建主机和网络设备之间的第一动态网络信息段;If a host is added, a first dynamic network information segment between the host and the network device is created;
创建网络设备之间的第二动态网络信息段;Creating a second dynamic network information segment between the network devices;
若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
进一步地,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备的步骤包括:Further, the first dynamic network information segment includes a first correspondence between the host and the network device, a first network type, and a first network identifier; and if the packet is sent, according to the first dynamic network information segment The step of controlling the sending of the packet from the network device of the source host to the network device of the target host includes:
根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host;
所述源主机的网络设备将所述报文发送至目标主机的网络设备。The network device of the source host sends the message to the network device of the target host.
进一步地,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识;所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备的步骤包括:Further, the second dynamic network information segment includes a second correspondence between the network devices, a second network type, and a second network identifier. If the packet is sent, the second dynamic network information segment is controlled according to the second dynamic network information segment. The step of sending the message from the network device of the source host to the network device of the target host includes:
根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;Sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host;
根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。Sending the message from the network device of the target host to the target host according to the first dynamic network information segment.
进一步地,所述步骤还包括:Further, the steps further include:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
进一步地,所述步骤还包括:Further, the steps further include:
若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
本发明前述的存储介质包括:磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等各种可以存储程序代码的介质。The foregoing storage medium of the present invention includes: a magnetic disk, an optical disk, and a read-only storage memory (Read-Only) Memory, ROM) or random access memory (RAM), etc., which can store various program codes.
本发明所有实施例中的单元可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC (Application Specific Integrated Circuit,专用集成电路)来实现。The units in all embodiments of the present invention may be implemented by a general-purpose integrated circuit such as a CPU (Central Processing) Unit, central processing unit, or implemented by an ASIC (Application Specific Integrated Circuit).
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。The units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (20)

  1. 一种OVERLAY网络的实现方法,其特征在于,所述方法包括: An implementation method of an OVERLAY network, characterized in that the method comprises:
    若新增主机,创建主机和网络设备之间的第一动态网络信息段;If a host is added, a first dynamic network information segment between the host and the network device is created;
    创建网络设备之间的第二动态网络信息段;Creating a second dynamic network information segment between the network devices;
    若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。 And if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  2. 如权利要求1所述的方法,其特征在于,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;The method of claim 1, wherein the first dynamic network information segment comprises a first correspondence between a host and a network device, a first network type, and a first network identifier;
    所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And the sending, according to the first dynamic network information segment, the network device that sends the packet from the network device of the source host to the target host according to the first dynamic network information segment, including:
    根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host;
    所述源主机的网络设备将所述报文发送至目标主机的网络设备。The network device of the source host sends the message to the network device of the target host.
  3. 如权利要求1所述的方法,其特征在于,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识;The method of claim 1, wherein the second dynamic network information segment comprises a second correspondence between the network devices, a second network type, and a second network identifier;
    所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And if the sending the packet, the network device that sends the packet from the network device of the source host to the target host according to the second dynamic network information segment includes:
    根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;Sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host;
    根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。Sending the message from the network device of the target host to the target host according to the first dynamic network information segment.
  4. 如权利要求1-3所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-3, wherein the method further comprises:
    若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  5. 如权利要求1-3所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-3, wherein the method further comprises:
    若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
  6. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    第一创建单元,用于若新增主机,创建主机和网络设备之间的第一动态网络The first creating unit is configured to create a first dynamic network between the host and the network device if the host is added
    信息段;Information segment
    第二创建单元,用于创建网络设备和网络设备之间的第二动态网络信息段;a second creating unit, configured to create a second dynamic network information segment between the network device and the network device;
    发送单元,用于若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And a sending unit, configured to, according to the first dynamic network information segment and the second dynamic network information segment, control the sending of the packet from the network device of the source host to the network device of the target host according to the first dynamic network information segment.
  7. 如权利要求6所述的终端,其特征在于,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;The terminal according to claim 6, wherein the first dynamic network information segment comprises a first correspondence between a host and a network device, a first network type, and a first network identifier;
    所述发送单元包括:The sending unit includes:
    第一发送子单元,用于根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;a first sending subunit, configured to send the packet from a source host to a network device corresponding to the source host according to the first correspondence in the first dynamic network information segment;
    第二发送子单元,用于所述源主机的网络设备将所述报文发送至目标主机的网络设备。And a second sending subunit, wherein the network device used by the source host sends the packet to a network device of the target host.
  8. 如权利要求6所述的终端,其特征在于,第二动态网络信息段包括网络设备与网络设备之间的第二对应关系、第二网络类型以及第二网络标识;The terminal according to claim 6, wherein the second dynamic network information segment comprises a second correspondence between the network device and the network device, a second network type, and a second network identifier;
    所述发送单元包括:The sending unit includes:
    第三发送子单元,用于根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;a third sending subunit, configured to send the packet from the network device of the source host to the network device of the target host according to the second correspondence in the second dynamic network information segment;
    第四发送子单元,用于根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。And a fourth sending subunit, configured to send the packet from the network device of the target host to the target host according to the first dynamic network information segment.
  9. 如权利要求6-8所述的终端,其特征在于,所述终端还包括;The terminal according to any one of claims 6-8, wherein the terminal further comprises:
    封装单元,用于若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。The encapsulating unit is configured to: when the packet is sent from the network device of the source host to the network device of the target host, encapsulate the packet into a packet format of the second network type.
  10. 如权利要求6-8所述的终端,其特征在于,所述终端还包括:The terminal according to any one of claims 6-8, wherein the terminal further comprises:
    解封装单元,用于若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。And a decapsulation unit, configured to decapsulate the packet into a packet format of the first network type, if the packet is sent from a network device of the source host to a network device of the target host.
  11. 一种OVERLAY网络的实现设备,其特征在于,该设备包括:存储器以及处理器;An implementation device of an OVERLAY network, characterized in that the device comprises: a memory and a processor;
    存储器,用于存储实现OVERLAY网络的应用程序和数据;a memory for storing applications and data that implement an OVERLAY network;
    处理器,用于运行所述存储器中存储的应用程序,以执行如下操作:a processor for running an application stored in the memory to perform the following operations:
    若新增主机,创建主机和网络设备之间的第一动态网络信息段;If a host is added, a first dynamic network information segment between the host and the network device is created;
    创建网络设备之间的第二动态网络信息段;Creating a second dynamic network information segment between the network devices;
    若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  12. 如权利要求11所述的设备,其特征在于,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;The device according to claim 11, wherein the first dynamic network information segment comprises a first correspondence between a host and a network device, a first network type, and a first network identifier;
    所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And the sending, according to the first dynamic network information segment, the network device that sends the packet from the network device of the source host to the target host according to the first dynamic network information segment, including:
    根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host;
    所述源主机的网络设备将所述报文发送至目标主机的网络设备。The network device of the source host sends the message to the network device of the target host.
  13. 如权利要求11所述的设备,其特征在于,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识;The device according to claim 11, wherein the second dynamic network information segment comprises a second correspondence between the network devices, a second network type, and a second network identifier;
    所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备包括:And if the sending the packet, the network device that sends the packet from the network device of the source host to the target host according to the second dynamic network information segment includes:
    根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;Sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host;
    根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。Sending the message from the network device of the target host to the target host according to the first dynamic network information segment.
  14. 如权利要求11-13任意一项所述的设备,其特征在于,所述处理器还执行如下操作:The device of any of claims 11-13, wherein the processor further performs the following operations:
    若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。 If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  15. 如权利要求11-13任意一项所述的设备,其特征在于,所述处理器还执行如下操作:The device of any of claims 11-13, wherein the processor further performs the following operations:
    若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。 And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
  16. 一种计算机可读存储介质,其特征在于,计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,以实现以下步骤:A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
    若新增主机,创建主机和网络设备之间的第一动态网络信息段;If a host is added, a first dynamic network information segment between the host and the network device is created;
    创建网络设备之间的第二动态网络信息段;Creating a second dynamic network information segment between the network devices;
    若发送报文,根据所述第一动态网络信息段和所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备。And if the packet is sent, the packet is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment and the second dynamic network information segment.
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述第一动态网络信息段包括主机和网络设备之间的第一对应关系、第一网络类型以及第一网络标识;The computer readable storage medium according to claim 16, wherein the first dynamic network information segment comprises a first correspondence between a host and a network device, a first network type, and a first network identifier;
    所述若发送报文,根据所述第一动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备的步骤包括:The step of, if the packet is sent, the network device that is sent from the network device of the source host to the network device of the target host according to the first dynamic network information segment, includes:
    根据所述第一动态网络信息段中的第一对应关系将所述报文从源主机发送至与所述源主机相对应的网络设备;Sending, according to the first correspondence in the first dynamic network information segment, the packet from a source host to a network device corresponding to the source host;
    所述源主机的网络设备将所述报文发送至目标主机的网络设备。The network device of the source host sends the message to the network device of the target host.
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,所述第二动态网络信息段包括网络设备之间的第二对应关系、第二网络类型以及第二网络标识;The computer readable storage medium according to claim 16, wherein the second dynamic network information segment comprises a second correspondence between the network devices, a second network type, and a second network identifier;
    所述若发送报文,根据所述第二动态网络信息段控制所述报文从源主机的网络设备发送至目标主机的网络设备的步骤包括:And the step of: sending, according to the second dynamic network information segment, the network device that is sent from the network device of the source host to the network device of the target host according to the second dynamic network information segment:
    根据所述第二动态网络信息段中的第二对应关系将所述报文从源主机的网络设备发送至目标主机的网络设备;Sending, according to the second correspondence in the second dynamic network information segment, the packet from the network device of the source host to the network device of the target host;
    根据所述第一动态网络信息段将所述报文从目标主机的网络设备发送至所述目标主机。Sending the message from the network device of the target host to the target host according to the first dynamic network information segment.
  19. 如权利要求16-18任意一项所述的计算机可读存储介质,其特征在于,所述步骤还包括:The computer readable storage medium of any of claims 16-18, wherein the step further comprises:
    若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文封装为所述第二网络类型的报文格式。 If the packet is sent from the network device of the source host to the network device of the target host, the packet is encapsulated into a packet format of the second network type.
  20. 如权利要求16-18任意一项所述的计算机可读存储介质,其特征在于,所述步骤还包括:The computer readable storage medium of any of claims 16-18, wherein the step further comprises:
    若将所述报文从源主机的网络设备发送至目标主机的网络设备,将所述报文解封装为所述第一网络类型的报文格式。 And if the packet is sent from the network device of the source host to the network device of the target host, the packet is decapsulated into a packet format of the first network type.
PCT/CN2017/076518 2016-12-16 2017-03-14 Overlay network implementation method, terminal, device, and computer-readable storage medium WO2018107594A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611169459.XA CN106789529B (en) 2016-12-16 2016-12-16 Method and terminal for implementing OVERLAY network
CN201611169459.X 2016-12-16

Publications (1)

Publication Number Publication Date
WO2018107594A1 true WO2018107594A1 (en) 2018-06-21

Family

ID=58892276

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076518 WO2018107594A1 (en) 2016-12-16 2017-03-14 Overlay network implementation method, terminal, device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN106789529B (en)
WO (1) WO2018107594A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN105591916A (en) * 2014-10-22 2016-05-18 华为技术有限公司 Message transmission method and apparatus
US20160337234A1 (en) * 2013-07-02 2016-11-17 Arista Networks, Inc. Method and system for overlay routing with vxlan
CN106161259A (en) * 2015-03-27 2016-11-23 杭州华三通信技术有限公司 The multicast data packet forwarding method and apparatus of virtual extended LAN VXLAN

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095546B (en) * 2013-01-28 2015-10-07 华为技术有限公司 A kind of method, device and data center network processing message
CN104243265B (en) * 2014-09-05 2018-01-05 华为技术有限公司 A kind of gateway control method, apparatus and system based on virtual machine (vm) migration
CN105915427B (en) * 2016-03-31 2019-12-17 华为技术有限公司 Message sending and receiving method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160337234A1 (en) * 2013-07-02 2016-11-17 Arista Networks, Inc. Method and system for overlay routing with vxlan
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN105591916A (en) * 2014-10-22 2016-05-18 华为技术有限公司 Message transmission method and apparatus
CN106161259A (en) * 2015-03-27 2016-11-23 杭州华三通信技术有限公司 The multicast data packet forwarding method and apparatus of virtual extended LAN VXLAN

Also Published As

Publication number Publication date
CN106789529B (en) 2020-04-14
CN106789529A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2019019374A1 (en) Method, apparatus, and system for controlling household appliance with intelligent voice device
WO2015108373A1 (en) Apparatus and method for operating user plane protocol stack in connectionless communicaton system
WO2018000856A1 (en) Method implementing sdn overlay network message forwarding, terminal, apparatus, and computer readable storage medium
WO2019051890A1 (en) Terminal control method and device, and computer-readable storage medium
WO2017201899A1 (en) Method and apparatus for connecting to bluetooth device
WO2019056752A1 (en) Household appliance network configuration method, device and system, and computer readable storage medium
WO2019062194A1 (en) Home appliance and method and system for controling home applicance and computer readable storage medium
WO2019019378A1 (en) Service processing method and apparatus, adapter and computer-readable storage medium
WO2015108283A1 (en) Application error detection method for cloud streaming service, and apparatus and system therefor
WO2018058919A1 (en) Identification information generating method, apparatus, device, and computer readable storage medium
WO2014186986A1 (en) Stream forwarding method, device and system
WO2018082482A1 (en) Network sharing method, and method and system for accessing network
WO2015139639A1 (en) Method and apparatus for displaying application icons on terminal
WO2015046868A1 (en) Apparatus and method for establishing network controlled direct connection in communication system supporting device to device scheme
WO2018028135A1 (en) Downlink data information feedback method and relevant device
WO2015139232A1 (en) Application recommendation method, system and server
WO2019019340A1 (en) Application program page opening method and apparatus, terminal and readable storage medium
WO2015127859A1 (en) Sensitive text detecting method and apparatus
WO2019056462A1 (en) Name list distribution method, apparatus and device, and computer readable storage medium
WO2019051895A1 (en) Terminal control method and device, and storage medium
WO2012165794A2 (en) System and method for simultaneous data transmission service in heterogeneous network
WO2018166107A1 (en) Hybrid-based compatibility method, adapter, operating apparatus and system, and computer-readable storage medium
WO2014189323A1 (en) Apparatus and method for performing wireless docking operation in communication system supporting universal plug and play protocol
WO2018058903A1 (en) Static route configuration method, terminal and device, and computer-readable storage medium
WO2017063369A1 (en) Method of establishing wireless direct connection and device utilizing same

Legal Events

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

Ref document number: 17880105

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

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 2.10.19)

122 Ep: pct application non-entry in european phase

Ref document number: 17880105

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载