Method, device, equipment and readable storage medium for calculating optimal service path

By dynamically updating the topology virtual network diagram and calculating the weighted shortest path, it solves the problem of low efficiency of manual path switching when the backbone network fails, and achieves real-time, efficient and accurate calculation of service paths.

CN116155701BActive Publication Date: 2024-10-01BEIJING TIANCHI NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310187199.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-11
Publication Date
2024-10-01
Estimated Expiration
2043-02-11

AI Technical Summary

Technical Problem

When the backbone network fails, the existing technology requires operation and maintenance personnel to manually switch service paths, which is inefficient and requires a full understanding of the entire network's equipment, links, and ports and superb network skills.

Method used

Provides a method for calculating the optimal business path by obtaining fault and/or change information, updating the topology virtual network diagram, and calculating the optimal service path based on the updated topology virtual network diagram, including Celery timing detection and mqtt received information, dynamically update device and link status, and calculate the weighted shortest path.

Benefits of technology

It achieves real-time, efficient and accurate calculation of business paths, reduces the operational complexity and time of operation and maintenance personnel, and improves the efficiency of failover.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155701B_ABST
    Figure CN116155701B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device, equipment and computer-readable storage medium for calculating the optimal service path. The method includes obtaining fault and / or change information; updating a topological virtual network diagram based on the fault and / or change information; and calculating the optimal service path based on the updated topological virtual network diagram. In this way, real-time, efficient and accurate calculation of the service path is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and in particular to a method, apparatus, device and computer-readable storage medium for calculating an optimal service path. Background Art

[0002] With the rapid development of the Internet and network communications, most SDN platforms have implemented network planning for the entire network by specifying paths for services. However, when a backbone network failure occurs, services can only be switched by manually switching paths.

[0003] The manual switching of service paths has obvious disadvantages. When the operation and maintenance personnel detect network anomalies and query the affected services, they need to plan paths for the services that need to be urgently switched to other paths to perform service switching operations. This requires the operation and maintenance personnel to have a full understanding of the entire network equipment, links, ports, etc. and superb network skills, which is inefficient. Summary of the invention

[0004] According to an embodiment of the present application, a solution for calculating an optimal service path is provided.

[0005] In a first aspect of the present application, a method for calculating an optimal service path is provided. The method comprises:

[0006] Obtain fault and / or change information;

[0007] Based on the fault and / or change information, update the topology virtual network map;

[0008] Based on the updated topology virtual network diagram, the optimal service path is calculated.

[0009] Furthermore, the fault and / or change information includes:

[0010] Celery periodically detects faults, receives faults from MQTT, and displays node changes, link changes, and / or business change information.

[0011] Further, updating the topology virtual network diagram based on the fault and / or change information includes:

[0012] Update the topology virtual network diagram through the online status of devices and ports detected regularly by Celery;

[0013] Update the topology virtual network diagram through the port up / down, device up / down and / or routing table update information received through MQTT;

[0014] The topology virtual network diagram is updated based on the change information generated by backbone network operations.

[0015] Furthermore, the online status update topology virtual network diagram of the devices and ports detected regularly by Celery includes:

[0016] Delete the points where the device status is down in the topology virtual network diagram;

[0017] Delete the links in the topology virtual network diagram that have ports in down state;

[0018] Add a point with the device status up in the topology virtual network diagram;

[0019] Add a link with a port status of up in the topology virtual network diagram.

[0020] Further, the port up / down, device up / down and / or routing table update information received through MQTT, updating the topology virtual network diagram includes:

[0021] When the routing table is updated, all services that do not have a specified path are calculated and the bandwidth of the link lines in the topology virtual network diagram is updated.

[0022] Furthermore, the calculating of the optimal service path based on the updated topology virtual network diagram includes:

[0023] Based on the A / Z end nodes and the service bandwidth of the service, a first path is selected from the updated topology virtual network diagram; the first path is a shortest path with a weight;

[0024] Copy an updated topology virtual network diagram, delete the link lines whose remaining link bandwidth is less than the service bandwidth in the diagram, if after the deletion, there is a shortest path with weight in the diagram, then the path is the optimal path, if not, then the first path is the optimal path.

[0025] Furthermore, the operations on the backbone network include:

[0026] Add / remove nodes, add / remove devices;

[0027] Deleting, adding and modifying links; and / or

[0028] Activate services, modify service bandwidth, and delete services.

[0029] In a second aspect of the present application, a device for calculating an optimal service path is provided. The device comprises:

[0030] An acquisition module, used to acquire fault and / or change information;

[0031] An updating module, configured to update a topology virtual network diagram based on the fault and / or change information;

[0032] The calculation module is used to calculate the optimal service path based on the updated topology virtual network diagram.

[0033] In a third aspect of the present application, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.

[0034] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present application is implemented.

[0035] The method for calculating the optimal service path provided in the embodiment of the present application is as follows: Figure 2 When the app starts, it draws and saves the topology virtual network diagram, changes the topology virtual network diagram when operating backbone data, changes the topology virtual network diagram and publishes the business switching path task when the Celery scheduled task detects a fault and MQTT receives a fault message. Based on the updated topology virtual network diagram, the data for the task of calculating the optimal path comes from the diagram. After calculating the optimal business path and switching successfully, the diagram is updated again, realizing real-time, efficient and accurate calculation of the business path.

[0036] It should be understood that the contents described in the Summary of the Invention are not intended to limit the key or important features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0038] Figure 1 is a flowchart of a method for calculating an optimal service path according to an embodiment of the present application;

[0039] Figure 2 is an overall flow chart according to an embodiment of the present application;

[0040] Figure 3 is a block diagram of a computing device for a service optimal path according to an embodiment of the present application;

[0041] Figure 4 It is a schematic diagram of the structure of a terminal device or a server suitable for implementing the embodiments of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0043] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0044] Figure 1 A flow chart of a method for calculating a service optimal path according to an embodiment of the present disclosure is shown. The method comprises:

[0045] S110, obtaining fault and / or change information.

[0046] In some embodiments, the change information is typically information generated by operating the backbone network.

[0047] The fault and / or change information includes:

[0048] Faults detected by Celery regularly, faults received by MQTT, node changes, link changes, and / or business change information, etc.

[0049] S120: Update a topology virtual network map based on the fault and / or change information.

[0050] In some embodiments, reference Figure 2 , when the app is started, a topology virtual network diagram is drawn. The topology virtual network diagram is a data structure.

[0051] Furthermore, the topology virtual network diagram is updated through the online status of devices and ports detected regularly by Celery.

[0052] Specifically, delete the points in the topology virtual network diagram where the device status is down;

[0053] Delete the links in the topology virtual network diagram that have ports in down state;

[0054] Add a point with the device status up in the topology virtual network diagram (if it does not exist in the original topology virtual network diagram, add it);

[0055] Add a link with a port status of up in the topology virtual network diagram (if it does not exist in the original topology virtual network diagram, add it).

[0056] Furthermore, the topology virtual network diagram is updated through the port up / down, device up / down and / or routing table update information received through MQTT.

[0057] Specifically, the way the port up / down and device up / down update the topology virtual network diagram can refer to the specific process of updating the topology virtual network diagram through Celery, which will not be repeated here. When the routing table is updated, all services that do not have a specified path are calculated and the bandwidth of the link line in the topology virtual network diagram is updated.

[0058] Furthermore, the topology virtual network diagram is updated through the change information generated by the backbone network operation.

[0059] Specifically, when a node is added and run, a corresponding node is added to the topology virtual network diagram;

[0060] When adding a device to a node, modify the corresponding node in the topology virtual network diagram;

[0061] When deleting a node, delete the corresponding node in the topology virtual network diagram;

[0062] When adding a link, add the corresponding line (link) in the topology virtual network diagram;

[0063] When modifying a link, delete the original line and add a new line in the topology virtual network diagram;

[0064] When deleting a link, delete the corresponding line in the topology virtual network diagram;

[0065] When opening a service, modifying service bandwidth, or deleting a service, the bandwidth occupied by all links through which the service passes is calculated and the topology virtual network diagram is updated;

[0066] When a service formulates a path, the occupied bandwidth of all links through which the service passes is calculated to update the topology virtual network diagram.

[0067] S130, calculating the optimal service path based on the updated topology virtual network diagram.

[0068] In some embodiments, based on the A / Z end nodes of the service and the service bandwidth, a first path is selected from the updated topology virtual network diagram; the first path is a shortest path with a weight;

[0069] Copy an updated topology virtual network diagram, delete the link lines whose remaining link bandwidth is less than the service bandwidth in the diagram, if after the deletion, there is a shortest path with weight in the diagram, then the path is the optimal path, if not, then the first path is the optimal path;

[0070] Furthermore, weight items such as bandwidth in the topology virtual network diagram are updated.

[0071] According to the embodiments of the present disclosure, the following technical effects are achieved:

[0072] Real-time, efficient and accurate calculation of business paths is achieved.

[0073] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0074] The above is an introduction to the method embodiment. The following is a further explanation of the scheme described in this application through an apparatus embodiment.

[0075] Figure 3 A computing device for a service optimal path according to an embodiment of the present application is shown, such as Figure 3 Shown include:

[0076] An acquisition module 310 is used to acquire fault and / or change information;

[0077] An updating module 320, configured to update a topology virtual network diagram based on the fault and / or change information;

[0078] The calculation module 330 is used to calculate the optimal service path based on the updated topology virtual network diagram.

[0079] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0080] Figure 4 A schematic diagram of the structure of a terminal device or server suitable for implementing an embodiment of the present application is shown.

[0081] like Figure 4As shown, the terminal device or server includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the terminal device or server are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0082] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.

[0083] In particular, according to an embodiment of the present application, the above method flow steps can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present application are executed.

[0084] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0085] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and the aforementioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0086] The units or modules involved in the embodiments described in the present application may be implemented by software or hardware. The units or modules described may also be arranged in a processor. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.

[0087] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the method described in the present application.

[0088] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.

Claims

1. A method for calculating an optimal service path, characterized in that: include: Obtain fault and / or change information; Based on the fault and / or change information, update the topology virtual network map; The fault and / or change information includes: faults detected by Celery regularly, faults received by mqtt, node changes, link changes and / or business change information; The updating of the topology virtual network diagram based on the fault and / or change information includes: Update the topology virtual network diagram through the online status of devices and ports detected regularly by Celery; The online status update topology virtual network diagram of the devices and ports detected regularly by Celery includes: Delete the points where the device status is down in the topology virtual network diagram; Delete the link in the topology virtual network diagram that passes through the port with the status of down; add the point in the topology virtual network diagram that the device status is up; Add a link with a port status of up in the topology virtual network diagram; Update the topology virtual network diagram through the port up / down, device up / down and / or routing table update information received through MQTT; The port up / down, device up / down and / or routing table update information received through MQTT, updating the topology virtual network diagram includes: When the routing table is updated, all services that do not have a specified path are calculated and the bandwidth of the link lines in the topology virtual network diagram is updated; Update the topology virtual network diagram through the change information generated by the backbone network operation; Based on the updated topology virtual network diagram, the optimal service path is calculated.

2. The method according to claim 1, characterized in that The calculating of the optimal service path based on the updated topology virtual network diagram includes: Based on the A / Z end nodes and the service bandwidth of the service, a first path is selected from the updated topology virtual network diagram; the first path is a shortest path with a weight; Copy an updated topology virtual network diagram, delete the link lines whose remaining link bandwidth is less than the service bandwidth in the diagram, if after the deletion, there is a shortest path with weight in the diagram, then the path is the optimal path, if not, then the first path is the optimal path.

3. The method according to claim 2, characterized in that Operations on the backbone network include: Add / remove nodes, add / remove devices; Deleting, adding, and modifying links; And / or activate services, modify service bandwidth, and delete services.

4. A device for calculating an optimal service path, characterized in that: include: An acquisition module, used to acquire fault and / or change information; An updating module, configured to update a topology virtual network diagram based on the fault and / or change information; The fault and / or change information includes: faults detected by Celery regularly, faults received by mqtt, node changes, link changes and / or business change information; The updating of the topology virtual network diagram based on the fault and / or change information includes: Update the topology virtual network diagram through the online status of devices and ports detected regularly by Celery; The online status update topology virtual network diagram of the devices and ports detected regularly by Celery includes: Delete the points where the device status is down in the topology virtual network diagram; Delete the link in the topology virtual network diagram that passes through the port with the status of down; add the point in the topology virtual network diagram that the device status is up; Add a link with a port status of up in the topology virtual network diagram; Update the topology virtual network diagram through the port up / down, device up / down and / or routing table update information received through MQTT; The port up / down, device up / down and / or routing table update information received through MQTT, updating the topology virtual network diagram includes: When the routing table is updated, all services that do not have a specified path are calculated and the bandwidth of the link lines in the topology virtual network diagram is updated; Update the topology virtual network diagram through the change information generated by the backbone network operation; The calculation module is used to calculate the optimal service path based on the updated topology virtual network diagram.

5. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.