A kind of cutting state determination method, device, electronic equipment and storage medium

By acquiring and comparing the number of online users and optical power data of the original and target devices, the problem of inaccurate manual judgment of network cutover status was solved, thereby improving the accuracy of cutover status and the utilization of optical signals.

CN116614178BActive Publication Date: 2025-12-23CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310525640.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2025-12-23
Estimated Expiration
2043-05-10

AI Technical Summary

Technical Problem

In existing technologies, relying on manual judgment of network cutover status is prone to errors, making it impossible to accurately determine the cutover status and affecting the use of optical signals by user equipment.

Method used

By acquiring the number of online users and optical power data of the original and target devices during the target service, and using the difference threshold and optical power comparison, the network cutover status can be determined.

Benefits of technology

Accurate and effective determination of network cutover status improves the effectiveness of cutover status determination and the user experience of optical signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116614178B_ABST
    Figure CN116614178B_ABST
Patent Text Reader

Abstract

The application provides a cutting state determination method and device, electronic equipment and a storage medium, relates to the technical field of computers, and solves the technical problem that the related art is prone to errors in the process of network cutting, and the cutting state of network cutting cannot be accurately determined, thereby affecting the use of optical signals by user equipment. The method comprises: obtaining first data and second data, the first data comprising the number of online users when an original device performs a target service and the transmit / receive optical power when the original device performs the target service, and the second data comprising the number of online users when a target device performs the target service and the transmit / receive optical power when the target device performs the target service; and determining, by the electronic equipment, a cutting state when network cutting is performed according to the first data and the second data, the cutting state being a normal state or an abnormal state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device and storage medium for determining cutover status. Background Technology

[0002] Currently, during network cutover, the cutover status can be judged manually.

[0003] However, relying on manual judgment is prone to errors and may fail to accurately determine the cutover status of the network, which in turn will affect the user equipment's use of optical signals. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and storage medium for determining the cutover status, which solves the technical problem that relying on manual judgment of the cutover status during network cutover is prone to errors and may fail to accurately determine the cutover status, thereby affecting the user equipment's use of optical signals.

[0005] In a first aspect, this application provides a method for determining a cutover status, comprising: acquiring first data and second data, wherein the first data is data from an original device performing a target service, and the second data is data from a target device performing the target service; the first data includes the number of online users and the transmit / receive power of the original device performing the target service, and the second data includes the number of online users and the transmit / receive power of the target device performing the target service; the target device is a device transmitting target service data after a network cutover, and the target service data is the service data of the target service; and determining the cutover status during the network cutover based on the first data and the second data, wherein the cutover status is a normal status or an abnormal status.

[0006] Optionally, determining the cutover status during network cutover based on the first data and the second data specifically includes: if the number of first users is greater than the number of second users, determining whether the difference between the number of first users and the number of second users is greater than a difference threshold, where the number of first users is the number of online users when the original device performs the target service, and the number of second users is the number of online users when the target device performs the target service; if the difference between the number of first users and the number of second users is greater than the difference threshold, and / or the first transmit / receive power is greater than the second transmit / receive power, determining that the cutover status during network cutover is an abnormal state, where the first transmit / receive power is the transmit / receive power when the original device performs the target service, and the second transmit / receive power is the transmit / receive power when the target device performs the target service.

[0007] In this application, after acquiring the first data and the second data, the electronic device can determine whether the number of first users (i.e., the number of online users when the original device performs the target service) is greater than the number of second users (i.e., the number of online users when the target device performs the target service). If the number of first users is greater than the number of second users, it indicates that the number of online users before the network cutover is greater than the number of online users after the network cutover. However, this phenomenon may be abnormal, and further judgment is needed. Specifically, it is necessary to determine whether the difference between the number of first users and the number of second users is greater than a difference threshold.

[0008] In this application, the electronic device can accurately and effectively determine the cutover status during network cutover based on the number of online users and the transmit and receive power before and after the network cutover, thereby improving the effectiveness of the cutover status determination.

[0009] Optionally, obtaining the aforementioned second data specifically includes: obtaining the device identifier of at least one next-hop device corresponding to the target device; based on the device identifier of the at least one next-hop device, obtaining the power of the optical signal received by each of the at least one next-hop devices when performing the target service and the power of the optical signal transmitted by each of the at least one next-hop devices when performing the target service; and determining the transmit and receive power of the target device when performing the target service based on the power of the optical signal received by each of the next-hop devices when performing the target service and the power of the optical signal transmitted by each of the next-hop devices when performing the target service.

[0010] In this application, since each next-hop device corresponding to the target device is used to receive the optical signal transmitted by the target device and to transmit the terminal's optical signal to the target device, the power of the optical signal received by each next-hop device and the power of the optical signal transmitted by each sub-device when performing the target service can accurately and effectively characterize the power of the optical signal received and transmitted by the target device when performing the target service. Thus, based on the power of the optical signal received by each next-hop device and the power of the optical signal transmitted by each sub-device when performing the target service, the electronic device can accurately and effectively determine the transmit and receive power of the target device when performing the target service. This improves the accuracy of cutover status determination.

[0011] Optionally, the above-mentioned acquisition of the first data and the second data includes: asynchronously acquiring the first data and the second data based on at least two threads.

[0012] In this application, the electronic device can asynchronously acquire first data and second data based on at least two threads. The acquisition processes of the two types of data do not interfere with each other, and there is no need to wait for one type of data to be acquired before acquiring the other type of data, which improves the efficiency of data acquisition. This, in turn, improves the efficiency of determining the cutover state.

[0013] Secondly, this application provides a cutover status determination device, comprising: an acquisition module and a determination module; the acquisition module is configured to acquire first data and second data, the first data being data of the original device performing the target service, and the second data being data of the target device performing the target service, the first data including the number of online users and the transmit / receive power of the original device performing the target service, the second data including the number of online users and the transmit / receive power of the target device performing the target service, the target device being a device transmitting target service data after network cutover, and the target service data being the service data of the target service; the determination module is configured to determine, based on the first data and the second data, the cutover status during network cutover, the cutover status being a normal status or an abnormal status.

[0014] Optionally, the determining module is specifically configured to, when the number of first users is greater than the number of second users, determine whether the difference between the number of first users and the number of second users is greater than a difference threshold, wherein the number of first users is the number of online users when the original device performs the target service, and the number of second users is the number of online users when the target device performs the target service; the determining module is further specifically configured to, when the difference between the number of first users and the number of second users is greater than the difference threshold, and / or the first transmit / receive power is greater than the second transmit / receive power, determine that the cutover state during network cutover is an abnormal state, wherein the first transmit / receive power is the transmit / receive power when the original device performs the target service, and the second transmit / receive power is the transmit / receive power when the target device performs the target service.

[0015] Optionally, the acquisition module is specifically configured to acquire the device identifier of at least one next-hop device corresponding to the target device; the acquisition module is further specifically configured to acquire, based on the device identifier of the at least one next-hop device, the power of the optical signal received by each of the at least one next-hop devices when performing the target service and the power of the optical signal transmitted by each of the at least one next-hop devices when performing the target service; the determination module is further configured to determine the transmit and receive power of the target device when performing the target service based on the power of the optical signal received by each of the next-hop devices when performing the target service and the power of the optical signal transmitted by each of the next-hop devices when performing the target service.

[0016] Optionally, the acquisition module is specifically used to asynchronously acquire the first data and the second data based on at least two threads.

[0017] Thirdly, this application provides an electronic device, including: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the optional cutover state determination methods in the first aspect described above.

[0018] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed by an electronic device, enable the electronic device to perform any of the optional cutover state determination methods described in the first aspect.

[0019] The cutover status determination method, apparatus, electronic device, and storage medium provided in this application allow the electronic device to acquire first data and second data. The first data represents data from the original device performing the target service, and the second data represents data from the target device performing the target service. The original device is the device transmitting the target service data before the network cutover, and the target device is the device transmitting the target service data after the network cutover. In this application, since the first and second data can respectively characterize the service data transmission situation before and after the network cutover, the differences before and after the network cutover can be easily and effectively identified based on the first and second data. Thus, the electronic device can accurately and effectively determine the cutover status during the network cutover based on the first and second data, thereby improving the user experience of optical signals. Attached Figure Description

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

[0021] Figure 1 A flowchart illustrating a method for determining cutover status provided in an embodiment of this application;

[0022] Figure 2 A flowchart illustrating another method for determining cutover status provided in an embodiment of this application;

[0023] Figure 3 A flowchart illustrating another method for determining cutover status provided in an embodiment of this application;

[0024] Figure 4 A flowchart illustrating another method for determining cutover status provided in an embodiment of this application;

[0025] Figure 5 This application provides a schematic diagram of a process for determining the cutover state in an embodiment of the present application.

[0026] Figure 6This is a schematic diagram of the structure of a cutover state determination device provided in an embodiment of this application;

[0027] Figure 7 This is a schematic diagram of another cutover state determination device provided in an embodiment of this application. Detailed Implementation

[0028] The following is a detailed description, with reference to the accompanying drawings, of the method, apparatus, electronic device, and storage medium for determining the cutover state provided in the embodiments of this application.

[0029] The terms "first" and "second," etc., in the specification and drawings of this application are used to distinguish different objects, rather than to describe a specific order of objects. For example, "first data" and "second data," etc., are used to distinguish different data, rather than to describe a specific order of data.

[0030] Furthermore, the terms “comprising” and “having”, and any variations thereof, used in the description of this application 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 steps or units listed, 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.

[0031] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0032] The term "and / or" as used in this application includes using either one of two methods or using both methods simultaneously.

[0033] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0034] As described in the background art, due to the inherent errors in relying on manual judgment of the cutover status during network cutover, it may be impossible to accurately determine the cutover status, thus affecting the user equipment's use of optical signals. Therefore, in this embodiment, since the first data and the second data can respectively characterize the service data transmission situation before and after the network cutover, the differences before and after the cutover can be easily and effectively identified based on the first data and the second data. Thus, the electronic device can accurately and effectively determine the cutover status during the network cutover based on the first data and the second data, thereby improving the user equipment's experience with optical signals.

[0035] For example, the electronic device executing the information prompting method provided in the embodiments of this application can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device. The embodiments of this invention do not impose special limitations on the specific form of the electronic device. It can interact with the user through one or more methods such as a keyboard, touchpad, touch screen, remote control, voice interaction, or handwriting device.

[0036] Optionally, the electronic device can be a standalone physical server, 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 communication, middleware services, domain name services, security services, content delivery network (CDN) acceleration services, and big data and artificial intelligence platforms.

[0037] like Figure 1 As shown, the cutover state determination method provided in this application embodiment may include S101-S102.

[0038] S101, The electronic device acquires the first data and the second data.

[0039] The first data refers to the data of the original device when performing the target service, and the second data refers to the data of the target device when performing the target service. The first data includes the number of online users and the transmit / receive power of the original device when performing the target service. The second data includes the number of online users and the transmit / receive power of the target device when performing the target service. The target device is the device that transmits the target service data after the network cutover. The target service data is the service data of the target service.

[0040] It should be understood that the aforementioned original equipment refers to the equipment that transmitted the target service data before the network cutover was performed. Network cutover, also known as network migration, refers to physical or logical changes to the operating network.

[0041] In this embodiment of the application, as the network is upgraded, the user's services can be cut over and migrated from the old equipment (i.e., the original equipment) to a newer equipment (i.e., the target equipment) with stronger capabilities.

[0042] It is understood that the optical power received by the original equipment when performing the target service includes the power of the original equipment receiving the optical signal and the power of the original equipment transmitting the optical signal when performing the target service.

[0043] In one implementation of this application, the electronic device can first determine the status of each of a plurality of users when performing the target service. The status of a user performing the target service includes an online status and an offline status. These plurality of users can be understood as users who could receive the target service data based on the original device before the network cutover. Then, the electronic device can determine the number of online users when the original device performs the target service by summing the number of users who are online when performing the target service. Similarly, the electronic device can also determine the number of online users when the target device performs the target service by summing the number of users who are online after the network cutover.

[0044] Optionally, a media access control (MAC) address of a next-hop device of the originating device (or target device) corresponds to a user (or terminal). The electronic device can determine the number of MAC addresses of the next-hop devices corresponding to the originating device (or target device) as the number of users corresponding to that originating device (or target device). Furthermore, the electronic device can determine the number of online users when the originating device (or target device) performs the target service based on the number of users corresponding to that originating device (or target device).

[0045] Additionally, when a user is in an online state while performing a target service, the MAC address of that user (or the MAC address of the upstream device of the terminal used by that user) can also be understood as the online MAC address.

[0046] For example, the target service may be a broadband service, a metropolitan area network service, or a transmission link service.

[0047] In one alternative implementation, the electronic device may acquire the first and second data based on a script.

[0048] Specifically, after receiving relevant data from the original device based on a certain script, the electronic device can perform text normalization on the relevant data using regular expressions and character processing methods. Specifically, it can extract the first data (including the number of online users when the original device is performing the target service and the transmit and receive power of the original device when performing the target service, etc.) from the relevant data.

[0049] Optionally, after acquiring the first data and the second data, the electronic device can back up and store the first data and the second data. Specifically, the electronic device can store the first data and the second data in a database or in the form of a file. Furthermore, the electronic device can query and retrieve the first data and the second data based on a script.

[0050] Combination Figure 1 ,like Figure 2 As shown, in one implementation of this application embodiment, the electronic device acquires the aforementioned second data, which may specifically include S1011-S1013.

[0051] S1011. The electronic device obtains the device identifier of at least one next-hop device corresponding to the target device.

[0052] It should be understood that the target service device can send the target service data to each of the at least one next-hop devices, so that each next-hop device can send the target service data to the user (or terminal) corresponding to each next-hop device.

[0053] In one alternative implementation, the target device can be an optical line terminal (OLT), and the next-hop device corresponding to the OLT can be an optical network unit (ONU), which can also be understood as an optical modem.

[0054] Optionally, the device identifier of an ONU can be the serial number (SN) of that ONU.

[0055] S1012. The electronic device, based on the device identifier of at least one next-hop device, obtains the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service.

[0056] It is understandable that after obtaining the device identifier of at least one next-hop device, the electronic device can determine each of the at least one next-hop devices based on the device identifier of the at least one next-hop device, thereby obtaining the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service.

[0057] S1013. The electronic device determines the receiving and transmitting power of the target device when performing the target service based on the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service.

[0058] In one alternative implementation, the electronic device can determine a first value and a second value, wherein the first value is the average power of the received optical signal when each next-hop device performs the target service, and the second value is the average power of the transmitted optical signal when each next-hop device performs the target service. The electronic device can then determine the sum of the first value and the second value as the received optical power of the target device when performing the target service.

[0059] In another alternative implementation, the electronic device may also determine a third value and a fourth value, wherein the third value is the sum of the power of the received optical signals when each next-hop device performs the target service, and the fourth value is the sum of the power of the transmitted optical signals when each next-hop device performs the target service. The electronic device can then determine the sum of the third value and the fourth value as the transmit and receive optical power of the target device when performing the target service.

[0060] It should be noted that the process by which the electronic device acquires the first data (specifically, the transmit and receive power of the initial device when performing the target service) is the same as or similar to the explanation of the electronic device acquiring the transmit and receive power of the target device when performing the target service, and will not be repeated here.

[0061] In this embodiment, since each next-hop device corresponding to the target device is used to receive the optical signal sent by the target device and to send the terminal's optical signal to the target device, the power of the optical signal received by each next-hop device and the power of the optical signal sent by each sub-device when performing the target service can accurately and effectively characterize the power of the optical signal received and sent by the target device when performing the target service. Thus, based on the power of the optical signal received by each next-hop device and the power of the optical signal sent by each sub-device when performing the target service, the electronic device can accurately and effectively determine the optical power received by the target device when performing the target service. This improves the accuracy of cutover status determination.

[0062] Combination Figure 1 ,like Figure 3 As shown, in one implementation of this application embodiment, the above-mentioned electronic device acquires first data and second data, which may specifically include S1014.

[0063] S1014. The electronic device acquires first and second data asynchronously based on at least two threads.

[0064] In one alternative implementation, the at least two threads may include a first thread and a second thread. The electronic device may acquire first data based on the first thread and acquire second data based on the second thread.

[0065] In another alternative implementation, the at least two threads may further include a third and a fourth thread. The electronic device can acquire first data based on the first and second threads, and acquire second data based on the third and fourth threads. Specifically, the electronic device can acquire the number of online users when the original device performs the target service based on the first thread, and acquire the transmit / receive power of the original device when performing the target service based on the second thread. The electronic device can acquire the number of online users when the target device performs the target service based on the third thread, and acquire the transmit / receive power of the target device when performing the target service based on the fourth thread.

[0066] In this embodiment of the application, the electronic device can asynchronously acquire first data and second data based on at least two threads. The acquisition processes of the two types of data do not interfere with each other, and there is no need to wait for one type of data to be acquired before acquiring the other type of data. This can improve the efficiency of data acquisition and thus improve the efficiency of cutover state determination.

[0067] S102. The electronic device determines the cutover status during network cutover based on the first data and the second data.

[0068] The cutover status can be either normal or abnormal.

[0069] Based on the description of the above embodiments, it should be understood that the first data is the data of the original device performing the target service, the second data is the data of the target device performing the target service, the original device is the device that transmits the target service data before the network cutover, and the target device is the device that transmits the target service data after the network cutover. That is, the first data can characterize the service data transmission situation before the network cutover, and the second data can characterize the service data transmission situation after the network cutover.

[0070] In this embodiment, since the first data and the second data can respectively characterize the service data transmission situation before and after the network cutover, the differences before and after the network cutover can be easily and effectively identified based on the first data and the second data. Thus, the electronic device can accurately and effectively determine the cutover status during the network cutover based on the first data and the second data.

[0071] The technical solution provided by the above embodiments can bring at least the following beneficial effects: As shown in S101-S102, the electronic device can acquire first data and second data. The first data is the data of the original device when performing the target service, and the second data is the data of the target device when performing the target service. The original device is the device that transmits the target service data before the network cutover, and the target device is the device that transmits the target service data after the network cutover. In this embodiment, since the first data and the second data can respectively characterize the service data transmission situation before the network cutover and the service data transmission situation after the network cutover, the differences before and after the network cutover can be easily and effectively identified based on the first data and the second data. Thus, the electronic device can accurately and effectively determine the cutover status during the network cutover based on the first data and the second data. This can improve the user experience of optical signals.

[0072] Combination Figure 1 ,like Figure 4 As shown, in one implementation of this application embodiment, the above-mentioned electronic device determines the cutover state when performing network cutover based on the first data and the second data, which may specifically include: S1021-S1022.

[0073] S1021. If the number of first users is greater than the number of second users, the electronic device determines whether the difference between the number of first users and the number of second users is greater than the difference threshold.

[0074] The first number of users refers to the number of online users when the original device performs the target service, and the second number of users refers to the number of online users when the target device performs the target service.

[0075] It should be understood that after acquiring the first and second data, the electronic device can determine whether the number of first users is greater than the number of second users. If the number of first users is greater than the number of second users, it indicates that the number of online users before the network cutover was greater than the number of online users after the network cutover. This phenomenon may be abnormal and requires further judgment. In other words, the electronic device can determine whether the difference between the number of first users and the number of second users is greater than a difference threshold.

[0076] S1022. If the difference between the number of first users and the number of second users is greater than the difference threshold, and / or the first transmit power is greater than the second transmit power, the electronic device determines that the cutover state during network cutover is an abnormal state.

[0077] Wherein, the first transmit power is the transmit power of the original device when performing the target service, and the second transmit power is the transmit power of the target device when performing the target service.

[0078] It should be understood that if the difference between the number of first users and the number of second users is greater than the difference threshold, it indicates that the difference between the number of first users and the number of second users is large. From the perspective of the number of online users, the difference before and after the network cutover is large. Furthermore, since the network performance after the cutover is worse than the network performance before the cutover (i.e., the number of first users is greater than the number of second users), the electronic device can determine that the cutover state during the network cutover is an abnormal state.

[0079] It is understandable that after acquiring the first and second data, the electronic device can also determine whether the first transmit / receive power is greater than the second transmit / receive power. If the first transmit / receive power is greater than the second transmit / receive power, it indicates that the transmit / receive power before the network cutover is greater than the transmit / receive power after the network cutover. That is, from the perspective of transmit / receive power, the network performance after the cutover is worse than the network performance before the cutover, and the electronic device can also determine that the cutover state during the network cutover is an abnormal state.

[0080] It is worth noting that when a user's status changes from online to offline while performing a target service, it may be due to a user-initiated offline action, not a reduction in the number of online users caused by network cutover. In this embodiment, to avoid interference from this situation in determining the cutover status, i.e., excluding user-initiated offline actions during network cutover, the aforementioned difference threshold is set to improve the accuracy of cutover status determination.

[0081] In one optional implementation, if the difference between the number of first users and the number of second users is less than or equal to a difference threshold, it indicates that the difference between the number of first users and the number of second users is small, meaning that from the perspective of the number of online users, the difference before and after the network cutover is small. Although the network performance after the cutover is worse than the network performance before the cutover (i.e., the number of first users is greater than the number of second users), the difference before and after the network cutover is within an acceptable normal range. If the first transmit / receive power is less than or equal to the second transmit / receive power, it indicates that the transmit / receive power before the network cutover is less than or equal to the transmit / receive power after the network cutover. That is, from the perspective of transmit / receive power, the network performance after the cutover is better than the network performance before the cutover, and at this time, the electronic device can determine that the cutover state is a normal state.

[0082] In one implementation of this application, when the number of first users is less than or equal to the number of second users, it is stated that, from the perspective of the number of online users, the network performance after the cutover is better than the network performance before the cutover. Similarly, when the first transmit / receive power is less than or equal to the second transmit / receive power, it is stated that, from the perspective of transmit / receive power, the network performance after the cutover is also better than the network performance before the cutover. That is, when the number of first users is less than or equal to the number of second users, and the first transmit / receive power is less than or equal to the second transmit / receive power, the electronic device determines the network cutover state as a normal state.

[0083] In this embodiment, after acquiring the first data and the second data, the electronic device can determine whether the number of first users (i.e., the number of online users when the original device performs the target service) is greater than the number of second users (i.e., the number of online users when the target device performs the target service). If the number of first users is greater than the number of second users, it indicates that the number of online users before the network cutover is greater than the number of online users after the network cutover. This phenomenon may be abnormal, and further judgment is needed, specifically determining whether the difference between the number of first users and the number of second users is greater than a difference threshold. If the difference between the number of first users and the number of second users is greater than the difference threshold, it indicates that the difference between the number of first users and the number of second users is large. From the perspective of the number of online users, the difference before and after the network cutover is large. Furthermore, since the network performance after the cutover is worse than the network performance before the cutover (i.e., the number of first users is greater than the number of second users), the electronic device can determine that the cutover state during the network cutover is an abnormal state.

[0084] Furthermore, the electronic device can also determine whether the first received power is greater than the second received power. If the first received power is greater than the second received power, it indicates that the received power before the network cutover was greater than the received power after the network cutover. That is, from the perspective of received power, the network performance after the cutover is worse than the network performance before the cutover. In this case, the electronic device can also determine that the cutover state during the network cutover is an abnormal state. In other words, the electronic device can accurately and effectively determine the cutover state during the network cutover based on the number of online users and the received power before and after the network cutover, thus improving the effectiveness of the cutover state determination.

[0085] The following example illustrates the process by which the electronic device provided in this application determines the cutover status.

[0086] For example, such as Figure 5 As shown, before network cutover, the electronic device can execute a first script, which enables the acquisition of first data. This acquisition process specifically includes connecting to the original device, acquiring relevant data from the original device, performing text normalization on the relevant data to extract the first data, and storing the first data.

[0087] After the network cutover, the electronic device can execute a second script, which enables the acquisition of second data. This acquisition process specifically includes connecting to the target device, acquiring relevant data from the target device, text-based text processing of the target device's data to extract the second data, and storing the second data.

[0088] After acquiring the first and second data, the electronic device can determine the cutover status during network cutover based on the first and second data. Specifically, assuming the aforementioned threshold is 5, if the number of first users is greater than the number of second users, and the difference between the number of first users and the number of second users is less than or equal to 5, the electronic device can determine whether the second transmit / receive power is greater than the first transmit / receive power. If the second transmit / receive power is greater than the first transmit / receive power, the electronic device determines that the cutover status during network cutover is normal (which can also be understood as a successful cutover).

[0089] If the number of first users is greater than the number of second users, and the difference between the number of first users and the number of second users is greater than 5, then the electronic device determines that the cutover status during network cutover is abnormal (which can also be understood as cutover failure). If the second transmit power is less than or equal to the first transmit power, the electronic device can also determine that the cutover status during network cutover is abnormal.

[0090] This application embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional module, 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. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0091] When dividing each function into modules according to its corresponding function. Figure 6 A possible structural schematic diagram of the cutover state determination device involved in the above embodiments is shown, such as... Figure 6 As shown, the cutover status determination device 10 may include an acquisition module 101 and a determination module 102.

[0092] The acquisition module 101 is used to acquire first data and second data. The first data is the data of the original device when performing the target service, and the second data is the data of the target device when performing the target service. The first data includes the number of online users and the transmit / receive power of the original device when performing the target service. The second data includes the number of online users and the transmit / receive power of the target device when performing the target service. The target device is a device that transmits target service data after network cutover. The target service data is the service data of the target service.

[0093] The determination module 102 is used to determine the cutover status during network cutover based on the first data and the second data, wherein the cutover status is a normal state or an abnormal state.

[0094] Optionally, the determining module 102 is specifically used to determine whether the difference between the first number of users and the second number of users is greater than a difference threshold when the first number of users is greater than the second number of users. The first number of users is the number of online users when the original device performs the target service, and the second number of users is the number of online users when the target device performs the target service.

[0095] The determination module 102 is further specifically used to determine that the cutover state during network cutover is an abnormal state when the difference between the first number of users and the second number of users is greater than the difference threshold and / or the first transmit power is greater than the second transmit power. The first transmit power is the transmit power of the original device when performing the target service, and the second transmit power is the transmit power of the target device when performing the target service.

[0096] Optionally, the acquisition module 101 is specifically used to acquire the device identifier of at least one next-hop device corresponding to the target device;

[0097] The acquisition module 101 is further specifically used to acquire, based on the device identifier of the at least one next-hop device, the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service;

[0098] The determining module 102 is further configured to determine the receiving and transmitting power of the target device when performing the target service based on the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service.

[0099] Optionally, the acquisition module 101 is specifically used to asynchronously acquire the first data and the second data based on at least two threads.

[0100] When using integrated units, Figure 7 A possible structural schematic diagram of the cutover state determination device involved in the above embodiments is shown. For example... Figure 7 As shown, the cutover status determination device 20 may include a processing module 201 and a communication module 202. The processing module 201 can be used to control and manage the operation of the cutover status determination device 20. The communication module 202 can be used to support communication between the cutover status determination device 20 and other entities. Optionally, as... Figure 7 As shown, the cutover status determination device 20 may further include a storage module 203 for storing the program code and data of the cutover status determination device 20.

[0101] The processing module 201 can be a processor or a controller. The communication module 202 can be a transceiver, transceiver circuit, or communication interface, etc. The storage module 203 can be a memory.

[0102] In this configuration, when the processing module 201 is a processor, the communication module 202 is a transceiver, and the storage module 203 is a memory, the processor, transceiver, and memory can be connected via a bus. The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc.

[0103] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0104] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software 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 application.

[0105] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0106] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0107] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

[0108] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for determining cutover state, characterized in that, The method includes: Acquire first data and second data. The first data is the data of the original device when performing the target service, and the second data is the data of the target device when performing the target service. The first data includes the number of online users and the transmit / receive power of the original device when performing the target service. The second data includes the number of online users and the transmit / receive power of the target device when performing the target service. The target device is a device that transmits target service data after network cutover. The target service data is the service data of the target service. Based on the first data and the second data, determine the cutover status during network cutover, which is either a normal state or an abnormal state. Determining the cutover status during network cutover based on the first data and the second data includes: If the number of first users is greater than the number of second users, determine whether the difference between the number of first users and the number of second users is greater than a difference threshold. The number of first users is the number of online users when the original device performs the target service, and the number of second users is the number of online users when the target device performs the target service. If the difference between the first number of users and the second number of users is greater than the difference threshold, and / or the first transmit / receive power is greater than the second transmit / receive power, the cutover state during network cutover is determined to be an abnormal state. The first transmit / receive power is the transmit / receive power of the original device when performing the target service, and the second transmit / receive power is the transmit / receive power of the target device when performing the target service.

2. The method for determining the cutover state according to claim 1, characterized in that, Obtaining the second data includes: Obtain the device identifier of at least one next-hop device corresponding to the target device; Based on the device identifier of the at least one next-hop device, obtain the power of the optical signal received by each of the at least one next-hop devices when performing the target service and the power of the optical signal transmitted by each of the at least one next-hop devices when performing the target service; The receive and transmit power of the target device when performing the target service is determined based on the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service.

3. The method for determining the cutover state according to any one of claims 1-2, characterized in that, The acquisition of the first data and the second data includes: The first data and the second data are obtained asynchronously using at least two threads.

4. A device for determining the cutover state, characterized in that, include: Get the module and determine the module; The acquisition module is used to acquire first data and second data. The first data is data when the original device performs the target service, and the second data is data when the target device performs the target service. The first data includes the number of online users and the transmit / receive power of the original device when performing the target service. The second data includes the number of online users and the transmit / receive power of the target device when performing the target service. The target device is a device that transmits target service data after network cutover, and the target service data is the service data of the target service. The determining module is used to determine the cutover status during network cutover based on the first data and the second data, wherein the cutover status is a normal state or an abnormal state. The determining module is specifically used to determine whether the difference between the first number of users and the second number of users is greater than a difference threshold when the first number of users is greater than the second number of users. The first number of users is the number of online users when the original device performs the target service, and the second number of users is the number of online users when the target device performs the target service. The determining module is further specifically used to determine that the cutover state during network cutover is an abnormal state when the difference between the first number of users and the second number of users is greater than the difference threshold, and / or the first transmit / receive power is greater than the second transmit / receive power. The first transmit / receive power is the transmit / receive power of the original device when performing the target service, and the second transmit / receive power is the transmit / receive power of the target device when performing the target service.

5. The cutting state determination device according to claim 4, characterized in that, The acquisition module is specifically used to acquire the device identifier of at least one next-hop device corresponding to the target device; The acquisition module is further specifically used to acquire, based on the device identifier of the at least one next-hop device, the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service; The determining module is further configured to determine the receiving and transmitting power of the target device when performing the target service based on the power of the optical signal received by each next-hop device when performing the target service and the power of the optical signal transmitted by each next-hop device when performing the target service.

6. The cutting state determination device according to any one of claims 4-5, characterized in that, The acquisition module is specifically used to asynchronously acquire the first data and the second data based on at least two threads.

7. An electronic device, characterized in that, The electronic device includes: processor; A memory configured to store processor-executable instructions; The processor is configured to execute the instructions to implement the cutover state determination method as described in any one of claims 1-3.

8. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions in the computer-readable storage medium are executed by an electronic device, the electronic device is able to perform the cutover state determination method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Network cutover abnormity identification method and device

    CN110690992A