Network service fault recovery method and device, electronic equipment and storage medium
By adjusting the initial bandwidth of network services to meet the fault recovery needs, the problem of bandwidth waste in the prior art is solved, and the efficiency and resource utilization of network fault recovery are improved.
Patent Information
- Application Number
- CN202411137634.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-31
AI Technical Summary
In the prior art, the protection routing bandwidth reserved during network failure recovery is the same as the normal transmission bandwidth, resulting in low usage efficiency and waste of bandwidth, affecting network reliability.
By determining the initial bandwidth and target bandwidth of network services, adjusting the initial bandwidth to meet the failure recovery needs, increasing bandwidth only in the event of a failure, ensuring the availability of the recovery path.
It improves the efficiency of network service failure recovery, reduces the waste of network bandwidth, and optimizes the utilization of network resources.
Smart Images

Figure CN119232556A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network service failure recovery, and in particular to a network service failure recovery method, device, electronic device and storage medium. Background Art
[0002] With the emergence of new applications such as Cloud VR, cloud gaming, and smart healthcare, data and voice services have exploded, and the bandwidth requirements of services have gradually become more refined. In addition, the latency requirements of different services are also different. When a network link fails, it may affect the concurrent transmission of thousands of services, which puts higher requirements on network reliability. In the current related technologies, for the recovery of network failures, protection routes are generally configured for network services. However, the reserved network bandwidth of the protection route is the same as the network bandwidth when the network service is normally transmitted. Since network service failures are somewhat accidental, the reserved network bandwidth of the protection route is not only inefficient, but also causes a waste of network bandwidth. Summary of the invention
[0003] In view of this, the purpose of the present application is to propose a network service failure recovery method, device, electronic device and storage medium to solve or partially solve the above technical problems.
[0004] Based on the above purpose, the present application provides a network service failure recovery method, including:
[0005] In response to determining that a first type of network service has failed, determining an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is provided corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service;
[0006] Determining whether a target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth;
[0007] In response to determining that the target network bandwidth is greater than the initial bandwidth, adjusting the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth;
[0008] The first type of network service is restored based on the protection path after adjusting the initial bandwidth.
[0009] Based on the same concept, the present application also proposes a network service failure recovery device, including:
[0010] A fault response module, in response to determining that a first type of network service has a fault, determines an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is provided corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service;
[0011] A determination module, determining whether a target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth;
[0012] an adjustment module, in response to determining that the target network bandwidth is greater than the initial bandwidth, adjusting the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth;
[0013] A recovery module is configured to recover the first type of network service based on the protection path after adjusting the initial bandwidth.
[0014] Based on the same concept, the present application also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the network service failure recovery method as described above when executing the program.
[0015] Based on the same concept, the present application also proposes a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the network service failure recovery method as described above.
[0016] Based on the same concept, the present application also proposes a computer program product, which includes a computer program. The computer program is executed by one or more processors so that the processors execute the network service failure recovery method as described above.
[0017] As can be seen from the above, the network service fault recovery method, device, electronic device and storage medium provided by the present application, in response to determining that a first type of network service has failed, determine the initial bandwidth of the protection path corresponding to the first type of network service; wherein a protection path is set corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service; determine whether the target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth; in response to determining that the target network bandwidth is greater than the initial bandwidth, adjust the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth; restore the first type of network service based on the protection path after adjusting the initial bandwidth, so that when the first type of network service does not fail, the protection path only reserves a small amount of initial bandwidth. When the first type of network service fails and the target network bandwidth required by the first type of network service is greater than the initial bandwidth, the initial bandwidth is adjusted to meet the service recovery function of the protection path, thereby improving the efficiency of network service fault recovery and reducing the waste of network bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A schematic diagram of an application scenario of an embodiment of the present application;
[0020] Figure 2 A flowchart of a network service failure recovery method according to an embodiment of the present application;
[0021] Figure 3 A schematic diagram of the structure of a network service failure recovery device according to an embodiment of the present application;
[0022] Figure 4 A schematic diagram of a specific electronic device hardware structure of an embodiment of the present application. DETAILED DESCRIPTION
[0023] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0024] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with general skills in the field to which the present application belongs. The "first", "second" and similar words used in the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connecting" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, which can be direct connections, indirect connections, wired connections, and wireless connections. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. In addition, in the description of the present application, unless otherwise specified, the term "multiple" refers to two or more. The term "and / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0025] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0026] It is understandable that before using the technical solutions of each embodiment of the present application, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0027] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to the electronic device, application, server, storage medium or other software or hardware that performs the operation of the technical solution of the present application according to the prompt message.
[0028] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0029] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of this application. Other methods that meet relevant laws and regulations may also be applied to the implementation method of this application.
[0030] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0031] As described in the background technology section, in the current related technology, for the recovery of network failures, a protection route is generally configured for network services. However, the reserved network bandwidth of the protection route is the same as the network bandwidth during normal transmission of network services. Since network service failures are somewhat accidental, the reserved network bandwidth of the protection route is not only inefficient in use, but also wastes network bandwidth resources and even occupies the transmission bandwidth of other services, resulting in a limited number of services that the network can accommodate.
[0032] In summary, in order to solve the above problems, the present application embodiment proposes a network service failure recovery method, including:
[0033] In response to determining that a first type of network service has failed, determining an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is provided corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service; determining whether a target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth; in response to determining that the target network bandwidth is greater than the initial bandwidth, adjusting the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth; restoring the first type of network service based on the protection path after adjusting the initial bandwidth, so that when the first type of network service has not failed, the protection path only reserves a small amount of initial bandwidth, and when the first type of network service fails and the target network bandwidth required by the first type of network service is greater than the initial bandwidth, the initial bandwidth is adjusted to meet the service recovery function of the protection path, thereby improving the efficiency of network service failure recovery and reducing the waste of network bandwidth.
[0034] In some specific application scenarios, the network service failure recovery method of the present application can be applied to various platforms or systems involving network service failure recovery. As an example, the application scenario includes at least one server and at least one terminal. Figure 1 , which is a schematic diagram of an application scenario of a network service fault recovery method provided by an exemplary embodiment of the present disclosure. The application scenario includes a terminal device 101, a server 102, and a data storage system 103. Among them, the terminal device 101, the server 102 and the data storage system 103 can be connected through a wired or wireless communication network. The terminal device includes but is not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server and the terminal can communicate through the network to realize data transmission. Among them, the network can be a wired network or a wireless network, which is not specifically limited in this application.
[0035] The server may be a server that provides various services. Specifically, the server may be used to provide background services for applications running on the terminal. Optionally, in some implementations, the network service failure recovery method provided in the embodiment of the present application may be executed by the server. Optionally, in some implementations, the network service failure recovery method provided in the embodiment of the present application may be directly executed by the terminal device.
[0036] Optionally, the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules for providing distributed services), or it can be implemented as a single software or software module. This embodiment of the application does not specifically limit this.
[0037] Optionally, the wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including hypertext mark-up language (HTML), extensible markup language (XML), etc. In addition, conventional encryption technologies such as secure socket layer (SSL), transport layer security (TLS), virtual private network (VPN), and Internet protocol security (IPsec) can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0038] The data storage system stores a large amount of data. Optionally, the data storage system can partition the data according to different uses and data types. The source of the data includes but is not limited to an existing database, data crawled from the Internet, or data uploaded by the user when using the client.
[0039] The following describes the network service failure recovery method according to the exemplary implementation of the present application in conjunction with a specific application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this regard. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0040] refer to Figure 2 , is a flow chart of a network service failure recovery method according to an embodiment of the present application, the method comprising the following steps:
[0041] S101, in response to determining that a first type of network service has failed, determining an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is provided corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service.
[0042] During the specific implementation, with the continuous development of technologies such as cloud-network integration and large-model computing, many emerging services have emerged, but different types of services often have different requirements for optical networks: such as data backup between data centers, due to the large amount of data, often requires large bandwidth transmission, but its real-time requirements for the network are relatively low; and voice, video conferencing and other services, in contrast, have lower bandwidth requirements, but require extremely low latency to ensure service quality. The first category of network services in the embodiments of the present application mainly refers to network services with higher priority, that is, network services with higher latency requirements, such as video conferencing. Optionally, the specific first category of network services can be set as needed without limitation. It should be noted that, considering that the first category of network services have higher latency requirements, therefore, in the embodiments of the present application, a backup protection path is set for the first category of network services. When the first category of network services fails, rapid fault recovery can be achieved through the protection path.
[0043] S102: Determine whether the target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth.
[0044] In the specific implementation, considering that the occurrence of network failures is somewhat accidental, in order to avoid wasting network resources, an initial bandwidth can be set for the protection path, and the initial bandwidth is generally relatively small. For example, the initial bandwidth can be set to 2M through OSU (Optical Service Unit) technology. In this way, every time a first-class network service fails, it is first determined whether the target network bandwidth corresponding to the first-class network service is greater than the initial bandwidth. If it is less, the first-class network service can be directly restored through the protection path. If it is greater, the initial bandwidth at this time cannot meet the network failure recovery requirements, and it is necessary to further perform step S103.
[0045] S103: In response to determining that the target network bandwidth is greater than the initial bandwidth, adjust the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth.
[0046] In specific implementation, when it is determined that the target network bandwidth is greater than the initial bandwidth, in order to meet the bandwidth requirements of network fault recovery, the initial bandwidth can be adjusted first so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth. It should be noted that in some embodiments, no matter how the initial bandwidth is adjusted, it may not meet the network requirements for fault recovery, that is, the adjusted initial bandwidth is less than the target network bandwidth. At this time, a network fault prompt message can be directly issued, that is, the network fault recovery fails.
[0047] S104: Restore the first type of network service based on the protection path after adjusting the initial bandwidth.
[0048] In specific implementation, after adjusting the initial bandwidth, the first type of network service can be restored according to the protection path after adjusting the initial bandwidth, that is, the protection path after adjusting the network bandwidth can replace the original path of the first type of network service to transmit information.
[0049] In some embodiments, adjusting the initial bandwidth specifically includes:
[0050] Determining a remaining adjustable bandwidth corresponding to the protection path;
[0051] Determining whether the remaining adjustable bandwidth is greater than or equal to the target network bandwidth;
[0052] In response to determining that the remaining adjustable bandwidth is less than the target network bandwidth, determining at least one second type of network service corresponding to the protection path; wherein the priority of the second type of network service is less than the priority of the first type of network service;
[0053] reducing the network bandwidth of the at least one second type of network service to increase the remaining adjustable bandwidth;
[0054] The initial bandwidth is adjusted based on the increased remaining adjustable bandwidth.
[0055] In specific implementation, since the protection path normally only reserves the initial bandwidth, when adjusting the initial bandwidth, it may be affected by the network bandwidth of other services carried by the protection path, that is, it is necessary to first determine the remaining adjustable bandwidth corresponding to the protection path, which is the currently idle and available network bandwidth of the protection path in addition to the initial bandwidth. When it is determined that the remaining adjustable bandwidth is less than the target network bandwidth, that is, the remaining adjustable bandwidth cannot meet the adjustment requirements, in this embodiment, the network bandwidth of the second type of network service currently using the protection path can be further reduced, so that the remaining adjustable bandwidth can be increased. Optionally, the priority of the second type of network service is less than the priority of the first type of network service, that is, the second type of network service is generally a low-priority network service, such as data backup in the above embodiment. It should be noted that the at least one second type of network service corresponding to the protection path can be multiple or one. When the at least one second type of network service is multiple, the remaining adjustable bandwidth can be increased by reducing the network bandwidth of multiple second type network services.
[0056] In some embodiments, reducing the network bandwidth of the at least one second type of network service specifically includes:
[0057] Determine a first target network service having the largest network bandwidth from the at least one second type of network service;
[0058] The network bandwidth of the first target network service is reduced based on a preset maximum delay tolerance.
[0059] In specific implementation, when there are multiple second-class network services, the first target network service with the largest network bandwidth can be reduced first, so that only one second-class network service may be reduced to meet the fault recovery requirements, thereby minimizing the impact on other second-class network services.
[0060] In some embodiments, reducing the network bandwidth of the first target network service based on a preset maximum delay tolerance specifically includes:
[0061] Acquire the original network bandwidth of the first target network service;
[0062] Determine a maximum reducible bandwidth corresponding to the first target network service based on the preset maximum delay tolerance and the original network bandwidth;
[0063] In response to determining that the maximum reducible bandwidth is less than the difference between the target network bandwidth and the initial bandwidth, determining a second target network service having the largest network bandwidth from the at least one second type of network service other than the first target network service;
[0064] The network bandwidth of the first target network service and the network bandwidth of the second target network service are reduced at the same time.
[0065] In specific implementation, when only reducing the network bandwidth of the first target network service cannot meet the demand, a second target network service with the largest network bandwidth can be further determined among the at least one second-class network service other than the first target network service, and the network bandwidth of the first target network service and the network bandwidth of the second target network service can be reduced at the same time. It should be noted that, taking this implementation as an example, when it is necessary to reduce the network bandwidth of multiple second-class network services, the network bandwidth of each second-class network service can be reduced in order from large to small network bandwidth until the demand for network fault recovery is met.
[0066] In some embodiments, the method further comprises:
[0067] In response to determining that a second type of network service has failed, reconstructing a route for the second type of network service in a network system corresponding to the second type of network service; wherein the priority of the second type of network service is lower than the priority of the first type of network service, and the network system includes a plurality of network nodes; the plurality of network nodes include a source node and a sink node corresponding to the second type of network service;
[0068] The second type of network service is restored by the reconstructed routing.
[0069] In the specific implementation, considering that the second type of network service has a lower requirement for network delay, therefore, in the embodiment of the present application, when the second type of network service fails, the failure recovery is not performed through a specially set protection path, but the route is reconstructed for the second type of network service in the network system corresponding to the second type of network service. Optionally, the network system corresponding to the second type of network service can be a network system between multiple network nodes established based on an optical transport network (OTN).
[0070] In some embodiments, the second type of network service is multiple; and reconstructing a route for the second type of network service in a network system corresponding to the second type of network service specifically includes:
[0071] Obtaining service duration and service bandwidth corresponding to each of the second-category network services;
[0072] Prioritizing recovery of each of the second-category network services based on the service duration and service bandwidth;
[0073] Based on the result of the priority restoration sorting, the route is reconstructed for each of the second-category network services in turn.
[0074] In specific implementation, in some embodiments, the priority recovery sorting can be performed using the following formula:
[0075]
[0076] o i The recovery order value of the business, optional, o i The larger the value of , the higher the priority recovery ranking. α and β are weight parameters, α+β=1, t i is the duration of the ith service (the total number of services is n), b i is the required bandwidth of the ith service, b j is the remaining bandwidth of the jth link of the current route (total number of link segments m), b is the average remaining bandwidth of the link segments of the current route, and services with large recovery order values are restored first. Among them, the first term (α·(1 / t i )) means that the services with short duration are restored first, so more services can be restored within the specified time. The second Indicates that the services with balanced remaining bandwidth of the link are restored first. Optionally, in some embodiments, other methods can be used to prioritize the restoration of each of the second-category network services according to the service duration and service bandwidth. For example, priority can be given to restoring services with short duration, or priority can be given to restoring services with balanced remaining bandwidth of the link, without limitation.
[0077] In some embodiments, reconstructing a route for the second type of network service in a network system corresponding to the second type of network service specifically includes:
[0078] In response to determining that the second type of network service corresponds to multiple alternative routes, obtaining a load balancing value of each of the alternative routes; wherein the load balancing value is a mean square error between the remaining resources of each link of the alternative route and the average remaining resources of all links;
[0079] Determine a target candidate route with the smallest load balancing value from the multiple candidate routes; and reconstruct a route for the second type of network service based on the target candidate route.
[0080] In specific implementation, load balancing refers to the mean square error of the remaining resources of each link segment in each alternative route and the average remaining resources of multiple (all) links of the alternative route. The smaller the mean square error, the better the network load balancing degree. In the embodiment of the present application, when there are multiple alternative routes corresponding to the second type of network service, priority is given to matching the target alternative route with better load balancing degree.
[0081] The network service fault recovery method provided by the present application determines, in response to determining that a first type of network service has failed, an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is set corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service; determines whether a target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth; in response to determining that the target network bandwidth is greater than the initial bandwidth, adjusts the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth; restores the first type of network service based on the protection path after adjusting the initial bandwidth, so that when the first type of network service has not failed, the protection path only reserves a small amount of initial bandwidth, and when the first type of network service fails and the target network bandwidth required by the first type of network service is greater than the initial bandwidth, the initial bandwidth is adjusted to meet the service recovery function of the protection path, thereby improving the efficiency of network service fault recovery and reducing the waste of network bandwidth.
[0082] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a network service failure recovery device.
[0083] refer to Figure 3 , the network service failure recovery device comprises:
[0084] A fault response module 201, in response to determining that a first type of network service has a fault, determines an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is provided corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service;
[0085] Determining module 202, determining whether the target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth;
[0086] An adjustment module 203, in response to determining that the target network bandwidth is greater than the initial bandwidth, adjusts the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth;
[0087] The recovery module 204 recovers the first type of network service based on the protection path after adjusting the initial bandwidth.
[0088] In some embodiments, the adjustment module specifically includes:
[0089] A first determining unit, determining a remaining adjustable bandwidth corresponding to the protection path;
[0090] A second determining unit, determining whether the remaining adjustable bandwidth is greater than or equal to the target network bandwidth;
[0091] A third determining unit, in response to determining that the remaining adjustable bandwidth is less than the target network bandwidth, determines at least one second type of network service corresponding to the protection path; wherein the priority of the second type of network service is less than the priority of the first type of network service;
[0092] A reducing unit, which reduces the network bandwidth of the at least one second type of network service to increase the remaining adjustable bandwidth;
[0093] An adjusting unit adjusts the initial bandwidth based on the increased remaining adjustable bandwidth.
[0094] In some embodiments, the lowering unit is specifically used to:
[0095] Determine a first target network service having the largest network bandwidth from the at least one second type of network service;
[0096] The network bandwidth of the first target network service is reduced based on a preset maximum delay tolerance.
[0097] In some embodiments, the lowering unit is further configured to:
[0098] Acquire the original network bandwidth of the first target network service;
[0099] Determine a maximum reducible bandwidth corresponding to the first target network service based on the preset maximum delay tolerance and the original network bandwidth;
[0100] In response to determining that the maximum reducible bandwidth is less than the difference between the target network bandwidth and the initial bandwidth, determining a second target network service having the largest network bandwidth from the at least one second type of network service other than the first target network service;
[0101] The network bandwidth of the first target network service and the network bandwidth of the second target network service are reduced at the same time.
[0102] In some embodiments, the apparatus further comprises a reconfiguration routing module, configured to:
[0103] In response to determining that a second type of network service has failed, reconstructing a route for the second type of network service in a network system corresponding to the second type of network service; wherein the priority of the second type of network service is lower than the priority of the first type of network service, and the network system includes a plurality of network nodes; the plurality of network nodes include a source node and a sink node corresponding to the second type of network service;
[0104] The second type of network service is restored by the reconstructed routing.
[0105] In some embodiments, the second type of network service is multiple; the reconstructing routing module is specifically used to:
[0106] Obtaining service duration and service bandwidth corresponding to each of the second-category network services;
[0107] Prioritizing recovery of each of the second-category network services based on the service duration and service bandwidth;
[0108] Based on the result of the priority restoration sorting, the route is reconstructed for each of the second-category network services in turn.
[0109] In some embodiments, the reconstructing routing module is specifically used to:
[0110] In response to determining that the second type of network service corresponds to multiple alternative routes, obtaining a load balancing value of each of the alternative routes; wherein the load balancing value is a mean square error between the remaining resources of each link of the alternative route and the average remaining resources of all links;
[0111] Determine a target candidate route with the smallest load balancing value from the multiple candidate routes; and reconstruct a route for the second type of network service based on the target candidate route.
[0112] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0113] The network service failure recovery device of the above embodiment is used to implement the corresponding network service failure recovery method in any of the above embodiments, and has the beneficial effects of the corresponding network service failure recovery method embodiment, which will not be described in detail here.
[0114] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the network service failure recovery method described in any of the above embodiments is implemented.
[0115] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0116] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0117] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040 and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030 and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.
[0118] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0119] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0120] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0121] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and the power equipment. The communication module can realize communication through a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WIFI, Bluetooth, etc.).
[0122] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0123] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0124] The electronic device of the above embodiment is used to implement the corresponding network service failure recovery method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0125] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the network service failure recovery method described in any of the above embodiments.
[0126] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0127] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the network service failure recovery method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0128] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a computer program product, which includes a computer program. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the network service failure recovery method described in the above-mentioned embodiments. Corresponding to the execution subject corresponding to each step in each embodiment of the network service failure recovery method, the processor that executes the corresponding step can belong to the corresponding execution subject.
[0129] To simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the following fact, that is, the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuit) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0130] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0131] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of simplicity.
[0132] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A network service failure recovery method, characterized in that: include: In response to determining that a first type of network service has failed, determining an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is provided corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service; Determining whether a target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth; In response to determining that the target network bandwidth is greater than the initial bandwidth, adjusting the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth; The first type of network service is restored based on the protection path after adjusting the initial bandwidth.
2. The method according to claim 1, characterized in that Adjusting the initial bandwidth specifically includes: Determining a remaining adjustable bandwidth corresponding to the protection path; Determining whether the remaining adjustable bandwidth is greater than or equal to the target network bandwidth; In response to determining that the remaining adjustable bandwidth is less than the target network bandwidth, determining at least one second type of network service corresponding to the protection path; wherein the priority of the second type of network service is less than the priority of the first type of network service; reducing the network bandwidth of the at least one second type of network service to increase the remaining adjustable bandwidth; The initial bandwidth is adjusted based on the increased remaining adjustable bandwidth.
3. The method according to claim 2, characterized in that Reducing the network bandwidth of the at least one second-category network service specifically includes: Determine a first target network service having the largest network bandwidth from the at least one second type of network service; The network bandwidth of the first target network service is reduced based on a preset maximum delay tolerance.
4. The method according to claim 3, characterized in that Reducing the network bandwidth of the first target network service based on the preset maximum delay tolerance specifically includes: Acquire the original network bandwidth of the first target network service; Determine a maximum reducible bandwidth corresponding to the first target network service based on the preset maximum delay tolerance and the original network bandwidth; In response to determining that the maximum reducible bandwidth is less than the difference between the target network bandwidth and the initial bandwidth, determining a second target network service having the largest network bandwidth from the at least one second type of network service other than the first target network service; The network bandwidth of the first target network service and the network bandwidth of the second target network service are reduced at the same time.
5. The method according to claim 1, characterized in that: The method further comprises: In response to determining that a second type of network service has failed, reconstructing a route for the second type of network service in a network system corresponding to the second type of network service; wherein the priority of the second type of network service is lower than the priority of the first type of network service, and the network system includes a plurality of network nodes; the plurality of network nodes include a source node and a sink node corresponding to the second type of network service; The second type of network service is restored by the reconstructed routing.
6. The method according to claim 5, characterized in that There are multiple second-type network services; reconstructing routes for the second-type network services in a network system corresponding to the second-type network services specifically includes: Obtaining service duration and service bandwidth corresponding to each of the second-category network services; Prioritizing recovery of each of the second-category network services based on the service duration and service bandwidth; Based on the result of the priority restoration sorting, the route is reconstructed for each of the second-category network services in turn.
7. The method according to claim 5, characterized in that Reconstructing a route for the second type of network service in a network system corresponding to the second type of network service specifically includes: In response to determining that the second type of network service corresponds to multiple alternative routes, obtaining a load balancing value of each of the alternative routes; wherein the load balancing value is a mean square error between the remaining resources of each link of the alternative route and the average remaining resources of all links; Determine a target candidate route having a minimum load balancing value from the multiple candidate routes; Reconstruct a route for the second type of network service based on the target candidate route.
8. A network service failure recovery device, characterized in that: include: A fault response module, in response to determining that a first type of network service has a fault, determines an initial bandwidth of a protection path corresponding to the first type of network service; wherein a protection path is provided corresponding to the first type of network service, and the protection path is used to provide a backup transmission path for the first type of network service; A determination module, determining whether a target network bandwidth corresponding to the first type of network service is greater than the initial bandwidth; an adjustment module, in response to determining that the target network bandwidth is greater than the initial bandwidth, adjusting the initial bandwidth so that the adjusted initial bandwidth is greater than or equal to the target network bandwidth; A recovery module is configured to recover the first type of network service based on the protection path after adjusting the initial bandwidth.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
