Network topology building method and device and storage medium

CN118869568BActive Publication Date: 2026-10-23CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411179201.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2026-10-23
Estimated Expiration
2044-08-26

Smart Images

  • Figure CN118869568B_ABST
    Figure CN118869568B_ABST
Patent Text Reader

Abstract

The present disclosure provides a network topology building method and device and storage medium, relates to the technical field of communication, and solves the technical problem that in the related art, a network topology line is relatively complex, and the physical line is easily deployed to cause optical fiber loss, and the cost of a network laboratory for building a network topology is high. The method comprises the following steps: receiving a network topology building request from a first terminal; the network topology building request comprises a network topology structure; the network topology structure is used to determine network equipment used for building a network topology; determining a plurality of VXLAN (Virtual Extensible Local Area Network) switches based on the network topology structure; sending first indication information to the plurality of VXLAN switches; the first indication information is used to build a VXLAN tunnel between the plurality of VXLAN switches; the VXLAN tunnel is used to connect the network equipment through the plurality of VXLAN switches to build the network topology. The present disclosure is used for a network topology building scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to a method, apparatus and storage medium for building a network topology. Background Technology

[0002] Currently, in network lab scenarios where network topology is built based on user requests, when user network topology requirements change, it is necessary to back up network device configurations, then remove the original fiber optic cables and network cables, and rewire according to the new network topology requirements.

[0003] However, due to the complexity of the network topology, redeploying physical lines can easily cause fiber optic loss, thereby increasing the cost of building network topologies in network labs. Summary of the Invention

[0004] This disclosure provides a network topology construction method, apparatus, and storage medium, which solves the technical problems in related technologies such as complex network topology lines, easy fiber optic loss due to redeployment of physical lines, and high cost of network topology construction in network laboratories.

[0005] To achieve the above objectives, the present disclosure adopts the following technical solution:

[0006] In a first aspect, a network topology construction method is provided, the method comprising: receiving a network topology construction request from a first terminal; the network topology construction request including: a network topology structure; the network topology structure being used to characterize multiple network devices in the network topology and the connection relationships between the multiple network devices; determining multiple network virtualization VXLAN switches based on the network topology structure; the multiple VXLAN switches being connected to the multiple network devices via physical lines; the multiple VXLAN switches being used to realize the connection relationships between the multiple network devices; sending first indication information to the multiple VXLAN switches; the first indication information being used to instruct the construction of a VXLAN tunnel between the multiple VXLAN switches; the VXLAN tunnel being used to connect network devices through the multiple VXLAN switches to construct the network topology.

[0007] In conjunction with the first aspect mentioned above, in one possible implementation, the method specifically includes: determining the network devices used to build the network topology based on the network topology, and / or the ports of the network devices; determining at least one VXLAN switch that has a connection relationship with the network devices, and / or at least one VXLAN switch that has a connection relationship with the ports of the network devices.

[0008] In conjunction with the first aspect above, in one possible implementation, before receiving the network topology building request from the first terminal, the method further includes: receiving a first network device invocation request from the first terminal; the first network device invocation request is used to request the use of a network device; determining whether the network device is currently available based on a network device database; the network device database is used to visualize network device information; and sending a first response message to the first terminal if it is determined that the network device is currently available; the first response message is used to grant the first terminal permission to use the network device.

[0009] In conjunction with the first aspect mentioned above, in one possible implementation, the method further includes: obtaining network device information; the network device information includes: network device, network device usage status, network device port, and network device port usage status; and constructing a network device database based on the network device information.

[0010] In conjunction with the first aspect above, in one possible implementation, after sending the first indication information to multiple VXLAN switches, the method further includes: receiving a second network device call request from a second terminal; the second network device call request includes: a second time period during which the second terminal uses the network device; determining whether the network device is idle during the second time period; generating second response information if it is determined that the network device is idle during the second time period; the second response information is used to instruct the second terminal to use the network device.

[0011] In conjunction with the first aspect above, in one possible implementation, the first network device call request includes: a first time period during which the first terminal uses the network device. The method specifically includes: determining whether there is an overlap between the second time period and the first time period; if it is determined that there is no overlap between the second time period and the first time period, determining that the network device is idle in the second time period; if it is determined that there is an overlap between the second time period and the first time period, determining that the network device is not idle in the second time period.

[0012] In conjunction with the first aspect above, in one possible implementation, before generating the second response information when it is determined that the network device is in an idle state in the second time period, the method further includes: storing a snapshot of the network topology when it is determined that the network device is in an idle state; the snapshot is used to restore the network topology after the second terminal finishes using the network device; sending second indication information to multiple VXLAN switches; the second indication information is used to instruct the multiple VXLAN switches to disconnect the VXLAN tunnel and release the network device.

[0013] In a second aspect, a network topology building apparatus is provided, comprising: a communication unit and a processing unit; the communication unit is configured to receive a network topology building request from a first terminal; the network topology building request includes: a network topology structure; the network topology structure is used to characterize multiple network devices in the network topology and the connection relationships between the multiple network devices; the processing unit is configured to determine multiple network virtualization VXLAN switches based on the network topology structure; the multiple VXLAN switches are connected to the multiple network devices via physical lines; the multiple VXLAN switches are used to realize the connection relationships between the multiple network devices; the communication unit is configured to send first indication information to the multiple VXLAN switches; the first indication information is used to instruct the construction of a VXLAN tunnel between the multiple VXLAN switches; the VXLAN tunnel is used to connect network devices through the multiple VXLAN switches to build a network topology.

[0014] In conjunction with the second aspect above, in one possible implementation, the processing unit is specifically used for: determining, based on the network topology, the network devices used to build the network topology, and / or, the ports of the network devices; determining at least one VXLAN switch that has a connection relationship with the network devices, and / or, at least one VXLAN switch that has a connection relationship with the ports of the network devices.

[0015] In conjunction with the second aspect above, in one possible implementation, before receiving the network topology setup request from the first terminal, the processing unit is further configured to: instruct the communication unit to receive the first network device call request from the first terminal; the first network device call request is used to request the use of a network device; determine whether the network device is currently available based on the network device database; the network device database is used to visualize the network device information; and, if it is determined that the network device is currently available, send a first response message to the first terminal; the first response message is used to grant the first terminal permission to use the network device.

[0016] In conjunction with the second aspect above, in one possible implementation, the processing unit is further configured to: instruct the communication unit to acquire network device information; the network device information includes: network device, network device usage status, network device port, and network device port usage status; and construct a network device database based on the network device information.

[0017] In conjunction with the second aspect above, in one possible implementation, after sending the first indication information to multiple VXLAN switches, the processing unit is further configured to: instruct the communication unit to receive a second network device call request from the second terminal; the second network device call request includes: a second time period during which the second terminal uses the network device; determine whether the network device is idle during the second time period; generate second response information if it is determined that the network device is idle during the second time period; the second response information is used to instruct the second terminal to use the network device.

[0018] In conjunction with the second aspect above, in one possible implementation, the first network device call request includes: a first time period during which the first terminal uses the network device; and a processing unit specifically configured to: determine whether there is an overlap between the second time period and the first time period; if it is determined that there is no overlap between the second time period and the first time period, determine that the network device is idle in the second time period; and if it is determined that there is an overlap between the second time period and the first time period, determine that the network device is not idle in the second time period.

[0019] In conjunction with the second aspect above, in one possible implementation, before generating the second response information when it is determined that the network device is in an idle state during the second time period, the processing unit is further configured to store a snapshot of the network topology when it is determined that the network device is in an idle state; the snapshot is used to restore the network topology after the second terminal finishes using the network device; the instruction communication unit sends a second instruction message to multiple VXLAN switches; the second instruction message is used to instruct the multiple VXLAN switches to disconnect the VXLAN tunnel and release the network device.

[0020] Thirdly, a network topology building apparatus is provided, comprising: a processor and a memory; wherein the memory is used to store computer execution instructions, and when the network topology building apparatus is running, the processor executes the computer execution instructions stored in the memory to cause the network topology building apparatus to perform the network topology building method as described in the first aspect above and any possible implementation thereof.

[0021] Fourthly, a computer-readable storage medium is provided, which stores instructions that, when executed by a processor of a network topology building apparatus, cause the network topology building apparatus to perform the network topology building method as described in the first aspect and any possible implementation thereof.

[0022] Fifthly, a chip is provided, the chip including a processor and a communication interface, the communication interface and the processor being coupled, the processor being used to run computer programs or instructions to implement the network topology construction method as described in the first aspect above and any possible implementation thereof.

[0023] In this disclosure, the names of the aforementioned network topology building devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of this disclosure, they fall within the scope of this disclosure and its equivalents.

[0024] The technical solution provided in this disclosure brings at least the following beneficial effects: The network topology building device in this disclosure first receives a network topology building request from a first terminal; based on the network topology structure in the network topology building request, it determines the network devices used to build the network topology, then determines multiple VXLAN switches connected to the network devices via physical lines, and instructs the multiple VXLAN switches to build VXLAN tunnels. The network devices are then connected based on the VXLAN tunnels to build the network topology. In this way, when the user's network topology requirements change, it is not necessary to remove the physical lines; only the original VXLAN tunnels need to be disconnected, and a new VXLAN tunnel can be built based on the user's network topology requirements to achieve network topology building. This avoids fiber optic loss and reduces the cost of network topology building, thereby solving the technical problems of complex network topology lines, easy fiber optic loss due to redeployment of physical lines, and high cost of network topology building in network laboratories. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.

[0026] Figure 1 This is a schematic diagram of a network topology building system provided in an embodiment of the present disclosure;

[0027] Figure 2 A schematic diagram of the hardware structure of a network topology building device provided in this embodiment of the present disclosure;

[0028] Figure 3 A flowchart illustrating a network topology construction method provided in this embodiment of the disclosure;

[0029] Figure 4 A flowchart illustrating yet another network topology construction method provided in this disclosure embodiment;

[0030] Figure 5 A flowchart illustrating yet another network topology construction method provided in this disclosure embodiment;

[0031] Figure 6 A flowchart illustrating yet another network topology construction method provided in this disclosure embodiment;

[0032] Figure 7 A flowchart illustrating yet another network topology construction method provided in this disclosure embodiment;

[0033] Figure 8 A flowchart illustrating yet another network topology construction method provided in this disclosure embodiment;

[0034] Figure 9 A flowchart illustrating yet another network topology construction method provided in this disclosure embodiment;

[0035] Figure 10 A schematic diagram of modules included in a network topology building device provided in an embodiment of this disclosure;

[0036] Figure 11 A flowchart illustrating yet another network topology construction method provided in this disclosure embodiment;

[0037] Figure 12 This is a schematic diagram of a network topology building device provided in an embodiment of the present disclosure. Detailed Implementation

[0038] The following description, in conjunction with the accompanying drawings, details a network topology construction method, apparatus, and storage medium provided in the embodiments of this disclosure.

[0039] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0040] The terms “first” and “second” in this disclosure and its accompanying drawings are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a particular order of objects.

[0041] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this disclosure are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus. It should be noted that in the embodiments of this disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this disclosure should not be construed as preferred or advantageous over other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0042] In the description of this disclosure, unless otherwise stated, "multiple" means two or more.

[0043] The following explanations of the terms used in the embodiments of this disclosure are provided to facilitate the reader's understanding.

[0044] 1. Virtual Extended Local Area Network

[0045] Virtual Extensible Local Area Network (VXLAN) is a network virtualization technology defined by the Internet Engineering Task Force (IETF). It aims to address the scalability and isolation issues encountered by traditional VLANs in large-scale cloud computing and virtualization environments. VXLAN creates virtual networks over existing IP networks, encapsulating traffic and extending it to a Layer 3 gateway to achieve cross-regional Layer 2 interconnection. As an advanced network virtualization technology, VXLAN has been widely adopted in large data centers, cloud computing environments, and virtualized data centers due to its high scalability, flexibility, and multi-tenancy support. With continuous technological development, VXLAN is expected to become one of the mainstream network virtualization technologies.

[0046] 2. Network Topology

[0047] Network topology refers to the physical layout of various devices interconnected by transmission media, that is, the way and form of interconnection between nodes, which determines the data transmission route and efficiency in the network.

[0048] Currently, in network labs where network topology is built based on user requests, changes in user network topology requirements necessitate backing up network device configurations, dismantling existing fiber optic cables and network cables, and rewiring according to the new topology. However, due to the complexity of network topology cabling, redeploying physical cabling can easily lead to fiber optic loss, thus increasing the cost of network topology construction in network labs.

[0049] To address the aforementioned technical problems, this disclosure provides a network topology construction method, apparatus, and storage medium. This addresses the issues of complex network topology lines, fiber optic loss due to physical line redeployment, and high costs associated with network topology construction in network laboratories. The method includes: first, receiving a network topology construction request from a first terminal; determining the network devices used to construct the network topology based on the network topology structure in the request; then, identifying multiple VXLAN switches physically connected to the network devices and instructing them to construct VXLAN tunnels; and finally, connecting the network devices through these VXLAN tunnels to construct the network topology. This allows for network topology construction without dismantling physical lines when user network topology requirements change. Instead, existing VXLAN tunnels are disconnected, and new VXLAN tunnels are constructed based on the user's new requirements. This avoids fiber optic loss and reduces construction costs, thus solving the problems of complex network topology lines, fiber optic loss due to physical line redeployment, and high costs associated with network topology construction in network laboratories.

[0050] In one possible implementation, the above-described network topology construction method can be applied to the network topology construction system 100. The following, in conjunction with... Figure 1 This application provides a detailed description of a network topology construction system 100 according to an embodiment. For example... Figure 1 As shown, Figure 1 A network topology building system 100 is provided for embodiments of this disclosure. The system includes: a terminal 101 and a network topology building device 102.

[0051] The terminal 101 is used to send a network topology building request to the network topology building device 102. The network topology building request includes: a network topology structure; the network topology structure is used to determine the network devices used to build the network topology.

[0052] The network topology building device 102 is used to receive a network topology building request from the terminal 101, determine multiple network virtualization VXLAN switches based on the network topology structure; the multiple VXLAN switches are connected to different network devices based on physical lines; send first indication information to the multiple VXLAN switches; the first indication information is used to build a VXLAN tunnel between the multiple VXLAN switches; the VXLAN tunnel is used to connect network devices through the multiple VXLAN switches to build the network topology.

[0053] In one possible implementation, the hardware structure of the network topology building device includes: Figure 2 The components included in the network topology building device 200 shown below are described in detail below. Figure 2The hardware structure of a network topology building device is illustrated using the network topology building device 200 shown as an example. Figure 2 As shown, the network topology building device 200 includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may also include a memory 203. The processor 201, memory 203, and communication interface 204 can be connected via the communication line 202.

[0054] The processor 201 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present disclosure, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).

[0055] Communication line 202 may include a path for transmitting information between the aforementioned components.

[0056] The communication interface 204 is used to communicate with other devices or communication networks. It can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0057] The memory 203 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of including or storing desired program code having the form of instructions or data structures and accessible by a computer, but not limited thereto.

[0058] In one possible design, the memory 203 can exist independently of the processor 201, meaning the memory 203 can be an external memory of the processor 201. In this case, the memory 203 can be connected to the processor 201 via a communication line 202 to store execution instructions or application code, and its execution is controlled by the processor 201 to implement the network topology construction method provided in the following embodiments of this disclosure. In another possible design, the memory 203 can also be integrated with the processor 201, meaning the memory 203 can be an internal memory of the processor 201. For example, the memory 203 can be a cache, which can be used to temporarily store some data and instruction information.

[0059] As one possible implementation, processor 201 may include one or more CPUs, for example Figure 2 CPU0 and CPU1 in the example. Alternatively, the network topology building device 200 may include multiple processors, such as CPU0 and CPU1. Figure 2 The processors 201 and 207 are included. Alternatively, the network topology building apparatus 200 may also include an output device 205 and an input device 206.

[0060] The following provides a detailed description of a network topology construction method provided by embodiments of this disclosure.

[0061] like Figure 3 As shown, Figure 3 This disclosure provides a network topology construction method, which can be applied to, for example... Figure 2 The network topology building device shown includes the following steps S301-S303, which will be described in detail below.

[0062] S301, The network topology building device receives a network topology building request from the first terminal.

[0063] The network topology setup request includes: network topology structure; the network topology structure is used to represent multiple network devices in the network topology and the connection relationships between multiple network devices;

[0064] In one possible implementation, the network topology building device determines the network devices used when building the network topology based on the network topology structure.

[0065] S302, The network topology building device determines multiple VXLAN switches based on the network topology structure.

[0066] Multiple VXLAN switches are connected to multiple network devices via physical lines; multiple VXLAN switches are used to realize the connection relationship between multiple network devices.

[0067] In one possible implementation, the VXLAN switch is connected to different network devices via routing lines. The network setup device determines the multiple network devices that need to be used based on the network topology and determines the multiple VXLAN switches that are connected to the multiple network devices.

[0068] S303, The network topology building device sends the first instruction information to multiple VXLAN switches.

[0069] The first instruction information is used to build a VXLAN tunnel between multiple VXLAN switches; the VXLAN tunnel is used to connect network devices through multiple VXLAN switches to build a network topology.

[0070] In one possible implementation, the network topology building device sends a first instruction message to multiple VXLAN switches, instructing the multiple VXLAN switches to enable the Layer 2 Virtual Private Network (L2VPN) function, and build VXLAN tunnels between the multiple VXLAN switches, thereby realizing the connection between network devices and building the network topology.

[0071] The technical solution provided by the above embodiments can bring at least the following beneficial effects: The network topology building device first receives a network topology building request from a first terminal; based on the network topology structure in the network topology building request, it determines the network devices used to build the network topology, then determines multiple VXLAN switches connected to the network devices via physical lines, and instructs the multiple VXLAN switches to build VXLAN tunnels. The network devices are connected based on the VXLAN tunnels to build the network topology. In this way, when the user's network topology requirements change, it is not necessary to remove the physical lines. Only the original VXLAN tunnels need to be disconnected, and a new VXLAN tunnel can be built based on the user's network topology requirements to realize the network topology building. This avoids fiber optic loss and reduces the cost of network topology building, thereby solving the technical problems that the network topology lines are relatively complex, redeploying physical lines can easily cause fiber optic loss, and the cost of building network topology in network laboratories is high.

[0072] In one possible implementation, combining Figure 3 ,like Figure 4 As shown, the process of determining multiple VXLAN switches based on the network topology structure in S302 above can be specifically implemented through the following S401-S402, which will be explained in detail below.

[0073] S401, The network topology building device determines the network devices used to build the network topology based on the network topology structure, and / or the ports of the network devices.

[0074] In one possible implementation, the network device requested in the network topology setup request of the first terminal can be one or more network devices, or it can be a port of one or more network devices.

[0075] For example, the network devices in the network topology are numbered C01, C02, C03, and C04. Among them, network devices C01, C02, and C03 are used exclusively, and network device C04 uses only the port of the XX network device. Then the network topology building device determines that the network devices used to build the network topology are the ports of network devices C01, C02, C03, and the XX network device of network device C04.

[0076] S402, The network topology building device identifies at least one VXLAN switch that has a connection relationship with the network device, and / or at least one VXLAN switch that has a connection relationship with the port of the network device.

[0077] In one possible implementation, the network topology building apparatus determines at least one VXLAN switch connected to the network devices via routing lines.

[0078] For example, if the network topology building device determines that the network devices used to build the network topology are network devices C01, C02, C03, and the port of the XX network device of network device C04, then the network topology building device determines the VXLAN switch connected to network device C01 via a routing line, the VXLAN switch connected to network device C01 via a routing line, the VXLAN switch connected to network device C02 via a routing line, the VXLAN switch connected to network device C03 via a routing line, and the VXLAN switch connected to the port of the XX network device of network device C04 via a routing line.

[0079] The technical solution provided by the above embodiments can bring at least the following beneficial effects: the network topology structure in the network topology request of the network topology building device determines the network device used to build the network topology, and / or the port of the network device, and determines at least one VXLAN switch that has a connection relationship with the network device, and / or at least one VXLAN switch that has a connection relationship with the port of the network device, so that the network topology building device can build the network topology through the VXLAN switch.

[0080] In one possible implementation, combining Figure 4 ,like Figure 5As shown, before the network topology building device receives the network topology building request from the first terminal in S301, it needs to determine whether the network device is currently available. This process can be implemented in detail in the following S501-S503.

[0081] S501, The network topology building device receives a first network device call request from the first terminal.

[0082] The first network device call request is used to request the use of a network device.

[0083] In one possible implementation, before sending a network topology building request to the network topology building device, the first terminal sends a first network device call request to the network topology building device to determine whether the network device is currently available.

[0084] S502, The network topology building device determines whether the network devices are currently available based on the network device database.

[0085] In one possible implementation, the network topology building device determines the network device used by the first terminal based on the first network device call request, and determines whether the network device requested by the first terminal is currently available according to the network device database.

[0086] For example, the network topology building device determines, based on the first network device call request, that the network devices used by the first terminal are network devices C01, C02, C03, and C04, and determines whether network devices C01, C02, C03, and C04 are currently available according to the usage status of network devices C01, C02, C03, and C04 in the network device database.

[0087] S503. When the network topology building device determines that the network equipment is currently available, it sends a first response message to the first terminal.

[0088] The first response information is used to grant the first terminal permission to use the network device.

[0089] For example, the network topology building device determines, based on the first network device call request, that the network devices used by the first terminal are network devices C01, C02, C03, and C04, and determines the usage status of network devices C01, C02, C03, and C04 according to the network device database. If all of them are in an idle state, the device determines that the network devices are currently available, sends a first response message to the first terminal, and grants the first terminal permission to use the network devices.

[0090] The technical solution provided by the above embodiments can bring at least the following beneficial effects: Before receiving a network topology building request from a first terminal, the network topology building device receives a first network device call request from the first terminal. If it is determined that the network device requested by the first terminal is available, the device grants the first terminal the permission to use the network device, so that the first terminal sends a network topology building request to the network topology building device based on the permission to use the network device.

[0091] One possible implementation is, such as Figure 6 As shown, the network topology building device also needs to build a network device database. This process can be implemented through the following steps S601-S602, which will be explained in detail below.

[0092] S601, The network topology building device obtains information on currently available network devices.

[0093] The network device information includes: the network device, the network device's usage status, the network device's port, and the usage status of the network device's port.

[0094] In one possible implementation, the network devices are located in the network laboratory, and the network topology building device obtains information on the network devices currently available in the network laboratory from the network laboratory management system.

[0095] S602, The network topology building device constructs a network device database based on network device information.

[0096] In one possible implementation, the network topology building device acquires information about network devices in the network laboratory, their usage status, ports, and port usage status, and then constructs a network device database based on these information.

[0097] In one possible implementation, after building a network device database, the network topology building device displays the currently available network devices and their ports through a visual interface.

[0098] The technical solution provided by the above embodiments can bring at least the following beneficial effects: the network topology building device obtains information on currently available network devices and builds a network device database based on the network device information, so that the network topology building device can determine whether the network devices are currently available based on the network device database.

[0099] One possible implementation is, such as Figure 7As shown, after the network topology building device sends the first instruction information to multiple VXLAN switches in S303 above, the network topology building device can instruct the second terminal to use the network device. This process can be specifically implemented through the following S701-S703, which will be described in detail below.

[0100] S701, The network topology building device receives a second network device call request from the second terminal.

[0101] The second network device call request includes: the second time period during which the second terminal uses the network device.

[0102] In one possible implementation, after the first terminal uses the network device to build a network topology, when the second terminal needs to use the network device, it sends a second network device call request to the network topology building device. The second network device call request includes a second time period during which the second terminal uses the network device.

[0103] For example, after the first terminal uses the network device to build a network topology, when the second terminal needs to use the network device, it sends a second network device call request to the network topology building device. The second network device call request includes a second time period for the second terminal to use the network device, which is from August 14th to September 15th.

[0104] S702, The network topology building device determines whether the network equipment is idle in the second time period.

[0105] In one possible implementation, the first network device call request includes a first time period during which the first terminal uses the network device, and the network topology building device determines whether the network device is idle in a second time period based on the first time period during which the first terminal uses the network device.

[0106] S703, The network topology building device generates a second response message when it is determined that the network device is idle in the second time period.

[0107] The second response information is used to instruct the second terminal to use the network device.

[0108] In one possible implementation, if the network topology building device determines that the network device is idle during the second time period when the first terminal does not use the network device during the second time period, it generates a second response message to instruct the second terminal to use the network device during the second time period.

[0109] The technical solution provided by the above embodiments can bring at least the following beneficial effects: After receiving a second network device call request from a second terminal, the network topology building device determines whether the network device is idle during the second time period when the second terminal uses the network device. If it is determined that the network device is idle, a second response information is generated to instruct the second terminal to use the network device during the second time period, thereby improving the utilization rate of the network device.

[0110] In one possible implementation, the first network device call request includes: a first time period during which the first terminal uses the network device, combined with... Figure 7 ,like Figure 8 As shown, the process by which the network topology building device determines whether a network device is idle in the second time period, as described above in S702, can be specifically implemented through the following S801-S803, which will be explained in detail below.

[0111] S801, The network topology building device determines whether there is an overlap between the second time period and the first time period.

[0112] In one possible implementation, the network topology building device determines a first time period for the first terminal to use the network device based on a first network device call request from a first terminal, determines a second time period for the second terminal to use the network device based on a second network device call request from a second terminal, and determines whether there is an overlap between the second time period and the first time period.

[0113] S802. If the network topology building device determines that the network equipment is idle in the second time period if there is no overlap between the second time period and the first time period, the network topology building device determines that the network equipment is idle in the second time period.

[0114] For example, the network topology building device determines, based on a first network device call request from a first terminal, that the first time period for the first terminal to use the network device is from August 1st to August 10th and from September 16th to December 30th; the network topology building device determines, based on a second network device call request from a second terminal, that the second time period for the second terminal to use the network device is from August 14th to September 15th. In this case, the network topology building device determines that the second time period does not overlap with the first time period, and the network device is idle during the second time period.

[0115] S803. When the network topology building device determines that there is an overlap between the second time period and the first time period, it determines that the network equipment is not idle in the second time period.

[0116] For example, if the network topology building device determines, based on a first network device call request from a first terminal, that the first time period for the first terminal to use the network device is from August 1st to December 30th; and if the network topology building device determines, based on a second network device call request from a second terminal, that the second time period for the second terminal to use the network device is from August 14th to September 15th, then the network topology building device determines that the second time period overlaps with the first time period, and the network device is not idle during the second time period.

[0117] The technical solution provided by the above embodiments can bring at least the following beneficial effects: the network topology building device determines the first time period for the first terminal to use the network device based on the first network device call request from the first terminal, and determines the second time period for the second terminal to use the network device based on the second network device call request from the second terminal. It determines whether the network device is idle in the second time period based on whether there is an overlap between the second time period and the first time period. This allows the network topology building device to generate a second response information to instruct the second terminal to use the network device in the second time period when it is determined that the network device is idle in the second time period, thereby improving the utilization rate of the network device.

[0118] One possible implementation is, such as Figure 9 As shown, before the network topology building device generates the second response information in the case that the network device is in an idle state in the second time period, in the above-mentioned S703, the network topology building device also needs to release the network device. This process can be implemented in detail in the following S901-S902.

[0119] S901, The network topology building device stores a snapshot of the network topology when it is determined that the network equipment is in an idle state.

[0120] The snapshot is used to restore the network topology after the second terminal finishes using the network device.

[0121] In one possible implementation, the network topology building device saves a snapshot of the network topology built by the first terminal based on snapshot storage technology. After the second terminal finishes using the network device, the network topology built by the first terminal is restored based on the snapshot of the network topology built by the first terminal.

[0122] S902, The network topology building device sends a second instruction message to multiple VXLAN switches.

[0123] The second instruction information is used to instruct multiple VXLAN switches to disconnect the VXLAN tunnel and release the network devices.

[0124] In one possible implementation, the network topology building device saves a snapshot of the network topology structure built by the first terminal, and sends a second instruction message to multiple VXLAN switches, instructing the multiple VXLAN switches to disconnect the VXLAN tunnel and release the network devices so that the second terminal can use the network devices.

[0125] The technical solution provided by the above embodiments can bring at least the following beneficial effects: the network topology building device saves a snapshot of the network topology structure built by the first terminal, sends a second instruction message to multiple VXLAN switches, instructing the multiple VXLAN switches to disconnect the VXLAN tunnel and release the network devices so that the second terminal can use the network devices, and can quickly restore the network topology built by the first terminal based on the snapshot of the network topology structure built by the first terminal after the second terminal finishes using the network devices.

[0126] One possible implementation is, such as Figure 10 As shown, Figure 10 This is a schematic diagram of the modules included in a network topology building device provided in an embodiment of the present disclosure. The network topology building device includes: a resource input module 1001, a resource application module 1002, a topology establishment module 1003, and a topology switching module 1004.

[0127] The resource entry module 1001 is used to obtain information on currently available network devices and construct a network device database based on the network device information; the resource application module 1002 is used to process network device call requests from terminals and allocate network devices based on the network device call requests; the topology establishment module 1003 is used to receive network topology building requests from terminals and build a network topology based on the network topology building requests; and the topology switching module 1004 is used to reallocate network devices and rebuild the network topology when a new network device call request is received.

[0128] One possible implementation is, such as Figure 11 As shown, Figure 11 This is another network topology construction method provided in the embodiments of the present disclosure. The process specifically includes the following S1101-S1105. The specific implementation of this process has been described in detail and will not be repeated here.

[0129] S1101. Obtain information on currently available network devices and build a network device database based on the network device information.

[0130] S1102. Receive a network device call request from the terminal and determine the port or network device used by the terminal.

[0131] S1103. Determine whether it is necessary to disconnect the old network topology and release the allocated network devices when building the network topology. If not, proceed to S1104; if yes, proceed to S1105.

[0132] S1104. Receive a network topology setup request from the terminal and set up a network topology based on the VXLAN switch.

[0133] S1105: Back up a snapshot of the old network topology, release network devices, receive network topology setup requests from terminals, and build a network topology based on the VXLAN switch.

[0134] As can be seen, the above mainly describes the technical solutions provided by the embodiments of this disclosure from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0135] This disclosure embodiment can divide the network topology building device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this disclosure embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0136] One possible implementation is, such as Figure 12 , Figure 12 This is a schematic diagram of a network topology building device 1200 provided in this disclosure.

[0137] A network topology building device 1200 includes a communication unit 1201 and a processing unit 1202. The communication unit 1201 receives a network topology building request from a first terminal. The network topology building request includes a network topology structure, which characterizes multiple network devices within the network topology and the connection relationships between them. The processing unit 1202 determines multiple network virtualization VXLAN switches based on the network topology structure. These multiple VXLAN switches are connected to the multiple network devices via physical lines. The multiple VXLAN switches are used to establish the connection relationships between the multiple network devices. The communication unit 1201 sends first instruction information to the multiple VXLAN switches. The first instruction information instructs the construction of a VXLAN tunnel between the multiple VXLAN switches. The VXLAN tunnel is used to connect network devices through the multiple VXLAN switches to build the network topology.

[0138] In one possible implementation, the processing unit 1202 is specifically used to: determine the network devices used to build the network topology based on the network topology, and / or the ports of the network devices; determine at least one VXLAN switch that has a connection relationship with the network devices, and / or at least one VXLAN switch that has a connection relationship with the ports of the network devices.

[0139] In one possible implementation, before receiving a network topology setup request from the first terminal, the processing unit 1202 is further configured to: instruct the communication unit 1201 to receive a first network device call request from the first terminal; the first network device call request is used to request the use of a network device; determine whether the network device is currently available based on the network device database; the network device database is used to visualize network device information; and send a first response message to the first terminal if it is determined that the network device is currently available; the first response message is used to grant the first terminal permission to use the network device.

[0140] In one possible implementation, the processing unit 1202 is further configured to: instruct the communication unit 1201 to acquire network device information; the network device information includes: network device, network device usage status, network device port, and network device port usage status; and construct a network device database based on the network device information.

[0141] In one possible implementation, after sending the first indication information to multiple VXLAN switches, the processing unit 1202 is further configured to: instruct the communication unit 1201 to receive a second network device call request from the second terminal; the second network device call request includes: a second time period during which the second terminal uses the network device; determine whether the network device is in an idle state during the second time period; generate second response information if it is determined that the network device is in an idle state during the second time period; the second response information is used to instruct the second terminal to use the network device.

[0142] In one possible implementation, the first network device call request includes: a first time period during which the first terminal uses the network device; the processing unit 1202 is specifically configured to: determine whether there is an overlap between the second time period and the first time period; if it is determined that there is no overlap between the second time period and the first time period, determine that the network device is in an idle state during the second time period; if it is determined that there is an overlap between the second time period and the first time period, determine that the network device is not in an idle state during the second time period.

[0143] In one possible implementation, before generating the second response information when it is determined that the network device is in an idle state in the second time period, the processing unit 1202 is further configured to store a snapshot of the network topology when it is determined that the network device is in an idle state; the snapshot is used to restore the network topology after the second terminal finishes using the network device; the instruction communication unit 1201 sends a second instruction information to multiple VXLAN switches; the second instruction information is used to instruct the multiple VXLAN switches to disconnect the VXLAN tunnel and release the network device.

[0144] This disclosure also provides a network topology building apparatus, which includes a processor and a memory; wherein the memory is used to store computer execution instructions, and when the network topology building apparatus is running, the processor executes the computer execution instructions stored in the memory so that the network topology building apparatus performs the network topology building method described in this disclosure.

[0145] Embodiments of this disclosure provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the network topology construction method described in the above method embodiments.

[0146] Embodiments of this disclosure provide a chip including a processor and a communication interface, the communication interface and the processor being coupled together, the processor being used to run computer programs or instructions to implement the network topology construction method as described in the above method embodiments.

[0147] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In this embodiment of the disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0148] Since the apparatus, devices, computer-readable storage media, and computer program products in the embodiments of this disclosure can be applied to the above methods, the technical effects they can achieve can also be referred to the above method embodiments, and the embodiments of this disclosure will not be repeated here. The above descriptions are merely specific embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in this disclosure should be covered within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A method for constructing a network topology, characterized in that, include: Receive a first network device call request from the first terminal; The first network device call request is used to request the use of a network device, and the first network device call request includes a first time period during which the first terminal uses the network device; The availability of a network device is determined based on a network device database; the network device database is used for visualizing network device information. If it is determined that the network device is currently available, a first response message is sent to the first terminal; The first response information is used to grant the first terminal permission to use the network device; Receive a network topology setup request from the first terminal; The network topology setup request includes: a network topology structure; the network topology structure is used to represent multiple network devices in the network topology and the connection relationships between the multiple network devices; Based on the network topology, multiple network virtualization VXLAN switches are determined; these multiple VXLAN switches are connected to the multiple network devices via physical lines; these multiple VXLAN switches are used to realize the connection relationships between the multiple network devices. Send a first instruction message to the plurality of VXLAN switches; the first instruction message is used to instruct the construction of a VXLAN tunnel between the plurality of VXLAN switches; the VXLAN tunnel is used to connect the network devices through the plurality of VXLAN switches to build the network topology. Receive a second network device call request from a second terminal; the second network device call request includes: a second time period during which the second terminal uses the network device; Determine whether there is any overlap between the second time period and the first time period; If it is determined that the second time period does not overlap with the first time period, it is determined that the network device is in an idle state during the second time period; If it is determined that the second time period overlaps with the first time period, it is determined that the network device is not idle during the second time period; If the network device is determined to be in an idle state, a snapshot of the network topology is stored; the snapshot is used to restore the network topology after the second terminal finishes using the network device. Send a second indication message to the plurality of VXLAN switches; the second indication message is used to instruct the plurality of VXLAN switches to disconnect the VXLAN tunnel and release the network device. If it is determined that the network device is idle during the second time period, a second response message is generated; the second response message is used to instruct the second terminal to use the network device.

2. The method according to claim 1, characterized in that, The determination of multiple network virtualization VXLAN switches based on the network topology includes: Based on the network topology, determine the network devices used to build the network topology, and / or the ports of the network devices; Identify at least one VXLAN switch that has a connection relationship with the network device, and / or at least one VXLAN switch that has a connection relationship with a port of the network device.

3. The method according to claim 1, characterized in that, The method further includes: Obtain network device information; the network device information includes: network device, network device usage status, network device port, and network device port usage status. A network device database is constructed based on the network device information.

4. A network topology construction device, characterized in that, include: Communication unit and processing unit; The communication unit is used to receive a first network device call request from the first terminal; The first network device call request is used to request the use of a network device, and the first network device call request includes a first time period during which the first terminal uses the network device; The processing unit is used to determine whether the network device is currently available based on the network device database; the network device database is used to visualize network device information. The communication unit is configured to send a first response information to the first terminal when it is determined that the network device is currently available. The first response information is used to grant the first terminal permission to use the network device; The communication unit is used to receive a network topology building request from the first terminal; The network topology setup request includes: a network topology structure; the network topology structure is used to represent multiple network devices in the network topology and the connection relationships between the multiple network devices; The processing unit is configured to determine multiple network virtualization VXLAN switches based on the network topology; the multiple VXLAN switches are connected to the multiple network devices via physical lines; the multiple VXLAN switches are used to implement the connection relationships between the multiple network devices. The communication unit is used to send first indication information to the plurality of VXLAN switches; the first indication information is used to instruct the construction of a VXLAN tunnel between the plurality of VXLAN switches; the VXLAN tunnel is used to connect the network devices through the plurality of VXLAN switches to build the network topology. The communication unit is further configured to receive a second network device call request from the second terminal; the second network device call request includes: a second time period during which the second terminal uses the network device; The processing unit is further configured to determine whether there is an overlap between the second time period and the first time period; if it is determined that there is no overlap between the second time period and the first time period, it determines that the network device is in an idle state during the second time period; if it is determined that there is an overlap between the second time period and the first time period, it determines that the network device is not in an idle state during the second time period. The processing unit is further configured to store a snapshot of the network topology when it is determined that the network device is in an idle state; the snapshot is used to restore the network topology after the second terminal finishes using the network device; The communication unit is further configured to send a second indication message to the plurality of VXLAN switches; the second indication message is configured to instruct the plurality of VXLAN switches to disconnect the VXLAN tunnel and release the network device; The processing unit is further configured to generate second response information when it is determined that the network device is idle during the second time period; the second response information is used to instruct the second terminal to use the network device.

5. A network topology construction device, characterized in that, include: A processor and a memory; wherein the memory is used to store computer execution instructions, and when the network topology building device is running, the processor executes the computer execution instructions stored in the memory to cause the network topology building device to perform the network topology building method according to any one of claims 1-3.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed by a network topology building processor, cause the network topology building apparatus to perform the network topology building method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Lightweight large-scale autonomous network protocol function test method

    CN110838954A

  • SDN-based virtual network topology automatic construction method

    CN115118607A

  • Database redundancy method and device, electronic equipment and storage medium

    CN118427008A