Communication fault handling method, device, equipment and medium
By establishing a data backup link in the video network system, the business interruption caused by communication failure between the superior server and the subordinate server in the video network system is solved, and rapid communication recovery and business efficiency are achieved.
Patent Information
- Application Number
- CN202010688247.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-16
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2040-07-16
AI Technical Summary
In the video networking system, when the communication link between the superior server and the subordinate server fails, the subordinate server cannot communicate, resulting in business interruption and inefficiency.
After the lower server detects a failure, it finds other servers that have a standby communication relationship with itself, determines the target server based on the preset level relationship, establishes a data backup link, and switches to the standby link for communication to restore the connection with the upper server.
It realizes timely recovery in the event of communication failure, avoids business interruption, and improves the efficiency of visual network services.
Smart Images

Figure CN111970142B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a communication failure processing method, device, equipment and medium. Background Art
[0002] The visual network adopts the world's most advanced VisionVera real-time HD video exchange technology, realizing real-time transmission of HD video across the entire network that is currently impossible with the Internet. It integrates dozens of video, voice, image, text, communication, data and other services such as HD video conferencing, video surveillance, remote training, intelligent monitoring and analysis, emergency command, video calls, live broadcasts, TV mails, information releases, etc. into one system platform, and realizes real-time interconnection of HD quality video communications through a variety of terminal devices.
[0003] In the related technology, when a communication network failure occurs between an upper-level server and a lower-level server in a visual network, the lower-level servers cannot communicate with each other, and the visual network business can only be continued after the communication is restored, resulting in technical problems such as forced interruption of the visual network business and low business efficiency. Summary of the invention
[0004] In view of the above problems, an embodiment of the present invention provides a communication fault processing method, device, electronic device and storage medium to overcome the above problems or at least partially solve the above problems.
[0005] A first aspect of an embodiment of the present invention discloses a communication failure processing method, which is applied to a lower-level server in a visual network, wherein the lower-level server is communicatively connected to an upper-level server, and the method comprises:
[0006] When a communication link failure with the upper-level server is detected, searching for a plurality of other servers that have a standby communication relationship with the lower-level server;
[0007] Determining a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers;
[0008] Establishing a data backup link from the lower-level server to the upper-level server via the target server through the target server;
[0009] The communication link with the upper-level server is switched to the data backup link to communicate with the upper-level server through the data backup link.
[0010] Optionally, a standby communication relationship with the multiple other servers is established by the following steps:
[0011] In response to a data forwarding setting command packet sent by a control system in the Internet, the data forwarding setting command packet is sent to the plurality of other servers respectively, so that the plurality of other servers generate a first data forwarding configuration file;
[0012] In response to the setting response packets returned by the multiple other servers after generating the first data forwarding configuration file, sending a data forwarding packet to the upper-level server, so that the upper-level server generates a second data forwarding configuration file;
[0013] In response to the response signaling returned by the upper-level server when generating the second data forwarding configuration file, generate a data configuration file of the local end to complete the establishment of a standby communication relationship with the multiple other servers;
[0014] Find multiple other servers that have alternate communication relationships with the subordinate server, including:
[0015] According to the data configuration file of the local end, multiple other servers having a standby communication relationship with the subordinate server are searched.
[0016] Optionally, establishing a data backup link from the lower-level server to the upper-level server via the target server through the target server includes:
[0017] Sending a link switching instruction to the target server, so that the target server establishes a first data link with the upper-level server according to the first data forwarding configuration file;
[0018] In response to a link establishment completion signaling returned by the target server after the target server establishes the first data link, establishing a second data link with the target server according to the data configuration file of the local end;
[0019] The first data link and the second data link are activated to complete the establishment of the data backup link.
[0020] Optionally, establishing a second data link with the target server according to the data configuration file of the local end includes:
[0021] Determine, according to the local data configuration file, a first forwarding routing device mounted on the subordinate server and a sub-control device to which the first forwarding routing device belongs, and a second forwarding routing device mounted on the target server;
[0022] A second data link is established from the sub-control device to which the first forwarding routing device belongs, through the first forwarding routing device to the second forwarding routing device.
[0023] Optionally, searching for a plurality of other servers that have a standby communication relationship with the subordinate server includes:
[0024] Acquire multiple sub-control devices mounted on the lower-level server, and search for at least one target sub-control device mounted with a forwarding routing device from the multiple sub-control devices;
[0025] The other servers corresponding to the forwarding routing devices mounted on the at least one target sub-control device are determined to be a plurality of other servers that have a standby communication relationship with the lower-level server.
[0026] Optionally, determining the target server from the multiple other servers according to a preset level relationship between the multiple other servers includes:
[0027] Filtering out at least one other server whose preset level relationship is a peer relationship from the multiple other servers;
[0028] According to the communication signal strength between the at least one other server, a target server with the strongest communication signal strength is screened out from the at least one other server.
[0029] A second aspect of an embodiment of the present invention provides a communication failure processing method, which is applied to a server in a visual network, and the method includes:
[0030] In response to a link switching instruction sent by a lower-level server in the visual network, a first data link is established with an upper-level server, wherein the link switching instruction is sent by the lower-level server when a failure in the communication link between the lower-level server and the upper-level server is detected;
[0031] Returning a link establishment completion signaling to the subordinate server, so that the subordinate server establishes a second data link with the other server;
[0032] Based on the first data link and the second data link, a data backup link is established between the lower-level server and the upper-level server, so that the lower-level server communicates with the upper-level server through the data backup link.
[0033] Optionally, before establishing the first data link with the upper-level server, the method further includes:
[0034] Receiving a data forwarding setting command packet sent by the subordinate server;
[0035] Based on the data forwarding setting command packet, generate a first data forwarding configuration file;
[0036] Creating a first data link with an upper-level server, including:
[0037] A first data link is established with the upper-level server according to the first data forwarding configuration file.
[0038] Optionally, establishing a first data link with an upper-level server includes:
[0039] Determine the forwarding routing device and border routing device mounted on this server;
[0040] A first data link is created between the forwarding routing device and the border routing device, wherein the border routing device is connected to a border routing device of an upper-level server.
[0041] Optionally, after establishing a data backup link between the lower-level server and the upper-level server based on the first data link and the second data link, the method further includes:
[0042] Generating a multicast address for the data standby link;
[0043] The multicast address is sent to the upper-level server, so that the upper-level server updates the multicast address of the communication link between the upper-level server and the lower-level server to the multicast address of the data backup link.
[0044] According to a third aspect of an embodiment of the present invention, there is provided a communication fault processing device, which is applied to a lower-level server in a visual network, wherein the lower-level server is communicatively connected to an upper-level server, and the device comprises:
[0045] A search module, used for searching for a plurality of other servers having a backup communication relationship with the subordinate server when a communication link with the superior server is detected to be faulty;
[0046] A determination module, configured to determine a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers;
[0047] A link establishment module, used to establish a data backup link from the lower-level server to the upper-level server via the target server through the target server;
[0048] The switching module is used to switch the communication link with the upper-level server to the data backup link, so as to communicate with the upper-level server through the data backup link.
[0049] A fourth aspect of an embodiment of the present invention provides a communication fault processing device, which is applied to a server in a visual network, and the device includes:
[0050] A link creation module, configured to create a first data link with an upper-level server in response to a link switching instruction sent by a lower-level server in the visual network, wherein the link switching instruction is sent by the lower-level server when a failure in the communication link between the lower-level server and the upper-level server is detected;
[0051] A signaling sending module, used for returning a link establishment completion signaling to the subordinate server, so that the subordinate server establishes a second data link with the other server;
[0052] A link establishment module is used to establish a data backup link between the subordinate server and the superior server based on the first data link and the second data link, so that the subordinate server can communicate with the superior server through the data backup link.
[0053] The embodiment of the present invention further discloses an electronic device, including:
[0054] one or more processors; and
[0055] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to execute the communication failure processing method as described in the first aspect or the second aspect of the embodiment of the present invention.
[0056] The embodiment of the present invention further discloses a computer-readable storage medium, the computer program stored in the storage medium enables a processor to execute the communication failure processing method as described in the first aspect or the second aspect of the embodiment of the present invention.
[0057] The embodiments of the present invention include the following advantages:
[0058] In this embodiment, when the subordinate server detects that the communication link with the superior server fails, it searches for multiple other servers that have a backup communication relationship with the subordinate server; and determines the target server based on the preset level relationship with the multiple other servers; establishes a data backup link from the subordinate server to the superior server via the target server through the target server; switches the communication link with the superior server to a data backup link to communicate with the superior server through the data backup link. Because when a communication failure occurs between the subordinate server and the superior server, the subordinate server reestablishes the data backup link with the superior server through other target servers that have a backup communication relationship with it, thereby restoring the communication link with the superior server so that the two can communicate successfully. In this way, the interrupted visual networking business can be restored in time, thereby ensuring the normal operation of the visual networking business. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0060] Figure 1 It is a networking schematic diagram of a visual network of the present invention;
[0061] Figure 2 is a flowchart of a method for handling communication failures in an embodiment of the present invention;
[0062] Figure 3 is a flowchart of another method for handling communication failures in an embodiment of the present invention;
[0063] Figure 4 It is a flow chart of a communication fault processing method in an example of the present invention;
[0064] Figure 5 is a flow chart of steps for monitoring an access server to join a visual network in an embodiment of the present invention;
[0065] Figure 6 is a flowchart of the steps of another communication fault processing method in an embodiment of the present invention;
[0066] Figure 7 is a flowchart of the steps of the communication failure processing method executed by the visual networking terminal side in an embodiment of the present invention;
[0067] Figure 8 It is a structural schematic diagram of a communication fault processing device according to an embodiment of the present invention;
[0068] Fig. 9 A schematic structural diagram of yet another communication fault processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0069] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0070] In order to enable those skilled in the art to better understand the embodiments of the present invention, the visual network is introduced as follows:
[0071] The network technologies used in the visual network are as follows:
[0072] The network technology innovation of Visual Networking improves the traditional Ethernet to cope with the huge potential first video traffic on the network. Different from simple network packet switching (Packet Switching) or network circuit switching (Circuit Switching), Visual Networking technology uses Packet Switching to meet the streaming needs. Visual Networking technology has the flexibility, simplicity and low price of packet switching, and the quality and security guarantee of circuit switching, realizing the seamless connection of the whole network switching virtual circuit and data format.
[0073] Switching Technology
[0074] Visual networking uses the two advantages of Ethernet: asynchronism and packet switching. It eliminates Ethernet defects under the premise of full compatibility, and has seamless end-to-end connection across the entire network, directly connects to user terminals, and directly carries IP data packets. User data does not require any format conversion within the entire network. Visual networking is a more advanced form of Ethernet and a real-time switching platform that can achieve large-scale real-time transmission of high-definition video across the entire network, which is currently unattainable on the Internet, and pushes many network video applications towards high definition and unification.
[0075] Server Technology
[0076] The server technology on the visual network and unified video platform is different from the traditional server. Its streaming media transmission is based on connection-oriented. Its data processing capability is independent of traffic and communication time. A single network layer can include signaling and data transmission. For voice and video services, the complexity of streaming media processing on the visual network and unified video platform is much simpler than data processing, and its efficiency is more than 100 times higher than that of traditional servers.
[0077] Storage Technology
[0078] The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system to adapt to the media content with ultra-large capacity and ultra-large flow, mapping the program information in the server command to the specific hard disk space. The media content no longer passes through the server, but is directly delivered to the user terminal in an instant. The user generally waits for less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical movement of the hard disk head seeking, and the resource consumption accounts for only 20% of the same level of IP Internet, but it generates 3 times more concurrent traffic than the traditional hard disk array, and the overall efficiency is improved by more than 10 times.
[0079] Network Security Technology
[0080] The structural design of the visual network completely eradicates the network security issues that plague the Internet through separate licensing for each service and complete isolation of equipment and user data. Generally, anti-virus programs and firewalls are not required, and attacks by hackers and viruses are eliminated, providing users with a structurally worry-free and secure network.
[0081] Service Innovation Technology
[0082] The unified video platform integrates services and transmission. Whether it is a single user, a private network user or a network, it is just an automatic connection. User terminals, set-top boxes or PCs are directly connected to the unified video platform to obtain rich and colorful multimedia video services in various forms. The unified video platform uses a "recipe-style" table configuration mode to replace traditional complex application programming. Complex applications can be implemented with very little code, realizing "unlimited" new business innovation.
[0083] The networking of the visual network is as follows:
[0084] Visual networking is a centrally controlled network structure. The network can be a tree network, star network, ring network, etc., but on this basis, there needs to be a centralized control node in the network to control the entire network.
[0085] Reference Figure 1 , Figure 1 FIG. 4 shows a schematic diagram of the network structure of the visual network in this embodiment. Figure 1 As shown in the figure, the visual network is divided into two parts: access network and metropolitan area network.
[0086] The equipment in the access network can be divided into three categories: node server, access switch, and terminal (including various set-top boxes, encoding boards, storage, etc.). The node server is connected to the access switch, and the access switch can be connected to multiple terminals and can be connected to Ethernet.
[0087] The node server is a node in the access network that performs centralized control functions and can control access switches and terminals. The node server can be directly connected to the access switch or directly connected to the terminal.
[0088] Similarly, the devices in the metropolitan area network can also be divided into three categories: metropolitan area servers, node switches, and node servers. The metropolitan area servers are connected to the node switches, and the node switches can be connected to multiple node servers.
[0089] The node server is a node server of the access network part, that is, the node server belongs to both the access network part and the metropolitan area network part.
[0090] The metropolitan area server is a node with centralized control function in the metropolitan area network, which can control the node switch and node server. The metropolitan area server can be directly connected to the node switch or the node server.
[0091] It can be seen that the entire visual network is a hierarchical and centrally controlled network structure, and the network controlled by the node server and the metropolitan area server can be a tree, star, ring, etc. Figuratively speaking, the access network part can form a unified video platform (the part in the dotted circle), and multiple unified video platforms can form a visual network; each unified video platform can be interconnected through the metropolitan area and wide area visual networks.
[0092] Since the visual network is a hierarchical and centrally controlled network structure, in practice, the network structure used in the existing visual network is generally a tree network structure. Figure 2 As shown, a schematic diagram of a tree-type network structure in a visual network is shown. Figure 2 As shown, it can be seen that there are multiple servers at different levels distributed in the visual network, among which the upper-level server can manage multiple lower-level servers at the same time, and the lower-level server can manage multiple lower-level servers at the same time. The lower-level server generally only corresponds to one upper-level server, and the servers cannot communicate across levels. For example, server L31 cannot communicate with server L11 across server L21. In practice, server L31 can only send data to server L21 first, and then server L21 sends data to server L11.
[0093] In the related art, in the communication environment formed by this network structure, generally speaking, a lower-level server can only communicate with its associated upper-level server and the lower-level server it manages, and due to the actual situation of network resources and security, servers of the same level do not communicate with each other, that is, two servers of the same level each constitute an independent network environment. Figure 2 As shown, the lower-level server L21 and the lower-level server L22 belong to the same-level servers managed by the upper-level server L11, and the two are independent of each other. For example, in practice, the lower-level server L21 constitutes a visual network facing Sichuan Province, and the lower-level server L22 constitutes a visual network facing Qinghai Province. In order to ensure security and save visual network resources, the visual network of Sichuan Province and the visual network of Qinghai Province are independent in communication, that is, the communication between the two is not maintained.
[0094] Based on the above visual network architecture, when a communication failure occurs between a lower-level server and an upper-level server, since the visual network is a hierarchical and centrally controlled network, it is different from the Internet network with densely distributed switching nodes. When a communication node fails, it can automatically switch to another switching node to automatically establish a route. Since the visual network is hierarchically and centrally controlled, when a communication failure occurs between a lower-level server and an upper-level server, the independent visual networks under their jurisdiction cannot complete the switching of alternative communication links. For example, Figure 2 As shown, when a communication failure occurs between the lower-level server L21 and the upper-level server L11, the lower-level server L21 cannot send data to the upper-level server L11 through other links. In this case, the communication between the lower-level server and the upper-level server must be restored after the communication failure between the lower-level server and the upper-level server is resolved. In this case, the visual networking service must be forced to be interrupted.
[0095] Generally speaking, there are many reasons for communication failures. To solve these communication failures, it is necessary to first identify the cause of the failure and then restore it according to the cause of the failure. The whole process will take a very long time, resulting in the inability to restore the visual network business. Therefore, the efficiency of the visual network business is reduced.
[0096] In view of this, in order to be able to promptly restore the visual networking services between the lower-level server and the upper-level server when a communication failure occurs between the two, the applicant has proposed one of the core concepts of the present invention: utilizing other servers that have a backup communication relationship with the lower-level server to transfer data between the upper-level server and the lower-level server, thereby restoring the visual networking services.
[0097] Reference Figure 3 FIG. 1 shows a communication architecture diagram of each server in an embodiment of the present invention. Figure 3 Three servers are shown, namely server A, server B and server C, where server A is an upper-level server, and server B and server C are lower-level servers of the same level. Each server includes a main control device and multiple sub-control devices, where the main control device is a core control device. In practice, it can serve all visual networking services in a metropolitan visual network, and each sub-control device provides visual networking services for a local visual network in a metropolitan visual network.
[0098] In this embodiment, a boundary routing device and a forwarding routing device are mounted under one or more sub-control devices. The boundary routing device is used to communicate with external servers. The forwarding routing device is a device specially configured to restore the communication between the upper-level server and the lower-level server in the visual network.
[0099] Specifically, since the visual network is a hierarchical and centrally controlled network, generally speaking, the upper-level server communicates with the lower-level server through the boundary routing device, while the same-level servers do not communicate with each other. In this embodiment, in order to enable the same-level servers to overcome the defect that the original visual network is hierarchically and centrally controlled and cannot communicate with each other, a forwarding routing device is configured under one or more sub-control devices to help establish communication between servers of the same level under special circumstances, so as to help the upper-level server and the lower-level server restore communication when a communication failure occurs between them.
[0100] Combination Figure 2 The network architecture shown and Figure 3 The communication architecture shown in the figure introduces a communication fault handling method of the present application in detail. Figure 4 FIG. 1 is a flowchart showing a method for handling a communication failure in this embodiment, which may include the following steps:
[0101] Step S401: when it is detected that a communication link with the upper-level server fails, searching for a plurality of other servers that have a backup communication relationship with the lower-level server.
[0102] In this embodiment, when the lower-level server loses the communication link with the upper-level server, it can be considered that the communication link with the upper-level server fails. Of course, in practice, in order to find the communication failure in time, the lower-level server can periodically send heartbeat packets to the upper-level server, and detect the state of the communication link with the upper-level server through the heartbeat signaling returned by the upper-level server. When the heartbeat signaling returned by the upper-level server is not received, it can be determined that the communication link with the upper-level server fails.
[0103] Among them, the reasons for the failure of the communication link in this embodiment may be: the communication link between the lower-level server and the upper-level server is attacked, the communication link fails, etc.
[0104] In practice, when it is determined that the communication link with the upper-level server has failed, the visual network service will be suspended. In order to restore the visual network service in time, the lower-level server can search for multiple other servers that have a backup communication relationship with itself. The backup communication relationship may refer to a pre-configured relationship that allows other servers to communicate with the lower-level server under special circumstances. The other server may refer to a server at the same level as the lower-level server, or a server at the next level managed by the lower-level server.
[0105] In this embodiment, the standby communication relationship does not mean that there is a communication link between the subordinate server and other servers, and when other servers are needed at a later stage, a communication link is established according to the standby communication relationship.
[0106] Step S402: determining a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers.
[0107] In this embodiment, the preset level relationship can represent the level relationship between the subordinate server and other servers, for example, Figure 2 As shown, if the lower-level server is L21 and the other server is L22, the preset level relationship between the lower-level server L21 and the other server L22 is a peer relationship.
[0108] In practice, other servers with the same level relationship can be preset as target servers, so that the lower-level server can restore the communication with the upper-level server through other servers of the same level. Figure 2 As shown in the figure, when other servers of the same level are used to help restore the visual networking service, compared with using a server at a lower level to help restore the visual networking service, the recovery link between the lower-level server and the upper-level server is shorter and the recovery efficiency is higher. For example, when using server L22 to restore the visual networking service, the communication link is generally from L21-L22-L11, and if L31 is used to restore the visual networking service, the communication link is generally L21-L31-L35-L22-L11.
[0109] Step S403: establishing a data backup link from the lower-level server to the upper-level server via the target server through the target server.
[0110] In this embodiment, the subordinate server can establish a data backup link through the target server, and the data backup link is used to transmit data between the subordinate server and the superior server. Specifically, the data backup link is a link from the subordinate server to the superior server via the target server. It can be seen that the target server plays the role of data bridge in the data backup link. In this way, when the communication link between the subordinate server and the superior server fails, the subordinate server can send data to the superior server through the target server to restore the visual network service.
[0111] Step S404: Switch the communication link with the upper-level server to the data backup link, so as to communicate with the upper-level server through the data backup link.
[0112] In this embodiment, after the data backup link is established, the lower-level server can abandon the original communication link with the upper-level server and use the data backup link as the link for communication with the upper-level server, thereby using the data backup link to communicate with the upper-level server. Specifically, in this case, the lower-level server can send the service data to be sent, such as audio and video data, to the target server, and the target server sends the audio and video data to the upper-level server, thereby realizing the recovery of the visual network service.
[0113] By adopting the technical solution of this embodiment, when a communication link between an upper-level server and a lower-level server fails and communication cannot be achieved, a data backup link can be established from the lower-level server to the upper-level server via the target server, and the original communication link with the upper-level server can be switched to the data backup link, thereby restoring communication with the upper-level server through the data backup link, and restoring the visual network service in time, avoiding the problem of waiting for the original communication link between the upper-level servers to return to normal, which causes the visual network service to be delayed too long and affects the service efficiency.
[0114] In practice, if Figure 3 As shown, each server may include multiple sub-control devices, and one or more sub-control devices have forwarding routing devices mounted under them. When searching for multiple other servers that have backup communication relationships with the lower-level servers, the search can be performed in two ways.
[0115] Among them, in one method A, combined with Figure 3 As shown, when determining multiple other servers that have a backup communication relationship with the subordinate server, multiple sub-control devices mounted on the subordinate server can be obtained, and at least one target sub-control device mounted with a forwarding routing device can be searched from the multiple sub-control devices; the other servers corresponding to the forwarding routing devices mounted on each of the at least one target sub-control devices are determined as the multiple other servers that have a backup communication relationship with the subordinate server.
[0116] In this embodiment, the forwarding routing device mounted on a sub-control device of the lower-level server can be used to communicate with the forwarding routing devices mounted on other servers. Multiple sub-control devices in the lower-level server can all mount forwarding routing devices to have a standby communication relationship with multiple other servers.
[0117] In specific implementation, each sub-control device mounted, the forwarding routing device mounted on the sub-control device, and another server connected to each forwarding routing device are recorded in the main control device. Among them, the other server connected to the forwarding routing device can be used as multiple other servers that have a backup communication relationship with the lower-level server. Therefore, multiple other servers that have a backup communication relationship can be determined by querying the records of the main control device.
[0118] When this technical solution is adopted, it is only necessary to find the servers to which other forwarding routing devices connected to its own forwarding routing device belong. The servers to which other forwarding routing devices connected to the forwarding routing devices belong are other servers that have a backup communication relationship with the subordinate server.
[0119] In another method B, a subordinate server can pre-negotiate with other servers whether to establish a backup communication relationship. If the negotiation is successful, the subsequent visual network service can be restored based on the data configuration file. In this way, when the communication between the subordinate server and the upper-level server fails, other servers that have a backup communication relationship with the subordinate server can be determined based on the data configuration file, and then other servers can be used to transfer data between the subordinate server and the upper-level server, thereby realizing the restoration of communication.
[0120] The following describes the communication fault handling method under mode B.
[0121] Reference Figure 5 As shown, a flowchart of the steps of a communication fault processing method in one embodiment of the present invention is shown. In this embodiment, it is introduced from the lower-level server side in the visual network, and specifically may include the following steps:
[0122] Step S501: in response to a data forwarding setting command packet sent by a control system in the Internet, the data forwarding setting command packet is sent to the multiple other servers respectively, so that the multiple other servers generate a first data forwarding configuration file.
[0123] In this implementation, the subordinate server can be connected to the control system in the Internet for communication, and the control system in the Internet can send a data forwarding setting command packet to the subordinate server through the TCP / IP protocol. The command packet includes the following information: operation code (data forwarding setting), the prefix of the subordinate server, the number of the forwarding routing device of the subordinate server, the prefix of the server with which a backup communication relationship is to be established, and the number of the forwarding routing device of the server.
[0124] Among them, after receiving the data forwarding setting command package, the lower-level server can send the data forwarding setting command package to the corresponding multiple other servers through the locally mounted forwarding routing device. Specifically, the data forwarding setting command package can be sent to the corresponding multiple other servers mounted on the forwarding routing devices, so as to push the data forwarding setting command package to the multiple other servers through the forwarding routing devices mounted on the multiple other servers.
[0125] In this way, multiple other servers that receive the data forwarding setting command packet can generate their own first data forwarding configuration files according to the data forwarding setting command packet. The first data forwarding configuration file can be used as a sign of successful negotiation of the standby communication relationship between the other servers and the subordinate server, wherein the prefix of the subordinate server, the level of the subordinate server, and the number of the forwarding routing device of the subordinate server can be stored in the first data forwarding configuration file.
[0126] Step S502: in response to the setting response packets returned by the multiple other servers after generating the first data forwarding configuration file, sending a data forwarding packet to the upper-level server, so that the upper-level server generates a second data forwarding configuration file.
[0127] In this embodiment, after generating its own first data forwarding configuration file, the other servers can return a setting response packet to the subordinate server via the original route. The setting response packet may include the following information: operation code (data forwarding setting response), the prefix of the subordinate server, the number of the forwarding routing device of the subordinate server, the prefix of the other server, the number of the forwarding routing device of the other server, setting result (0 indicates success, other values indicate failure), etc.
[0128] In practice, after receiving the setting response packet, the master control device of the subordinate server parses the packet. If the setting is successful, the master control device of the subordinate server encapsulates the data forwarding packet to the master control device of the superior server. After receiving the command packet, the master control device of the superior server parses the packet and generates a second data forwarding configuration file. The second data forwarding configuration file can be used as a sign that the superior server allows the subordinate server to use the backup communication relationship, wherein the prefix of the subordinate server, the level of the subordinate server, and the number of the forwarding routing device of the subordinate server can be stored in the second data forwarding configuration file.
[0129] Among them, the data forwarding packet may include the following information: operation code (data forwarding), prefix of the upper-level server, device number of the upper-level server, data forwarding information (including: prefix of the lower-level server, prefix of other servers), among which the device number of the upper-level server is the number of the upper boundary routing device mounted by the upper-level server.
[0130] Step S503: in response to the response signaling returned by the upper-level server when generating the second data forwarding configuration file, generate a data configuration file of the local end to complete the establishment of the backup communication relationship with the multiple other servers.
[0131] In this embodiment, after the main control device of the upper-level server successfully generates the second data forwarding configuration file, it returns a response signaling to the main control device of the lower-level server through the original route. The response signaling includes the following information: operation code (data forwarding response), prefix of the upper-level server, number of the boundary routing device of the upper-level server, prefix of the lower-level server, number of the boundary routing device of the lower-level server, setting result (0 indicates success, other values indicate failure), etc.
[0132] When the subordinate server receives the response signaling returned by the superior server, it can parse the response signaling, and when it is determined that the superior server successfully generates the second data forwarding configuration file, it can generate a local data configuration file, and the generation of the data configuration file can indicate the successful establishment of the backup communication relationship between the subordinate server and other servers. The data configuration file can save the backup communication information negotiated with other servers and the superior server, and through the data configuration file, it can find the server that has a backup communication relationship with the subordinate server, and the backup communication information includes: the number of the forwarding routing device of other servers, the prefix of other servers, etc.
[0133] Of course, in some actual situations, when it is determined that the upper-level server fails to generate the second data forwarding configuration file, this situation may be due to the failure of the upper-level server or the permission setting of the upper-level server (for example, communication through the backup communication link is not allowed). The lower-level server can request the server that has generated the first data forwarding configuration file to clear the generated first data forwarding configuration file, thereby abandoning the establishment of the backup communication relationship.
[0134] Step S504: when it is detected that a communication link with the upper-level server fails, multiple other servers having a backup communication relationship with the lower-level server are searched according to the data configuration file of the local end.
[0135] In this embodiment, since the subordinate server generates a data configuration file, the data configuration file indicates the successful establishment of a backup communication relationship between the subordinate server and other servers. Therefore, multiple other servers that have a backup communication relationship with the subordinate server can be found based on the pre-generated data configuration file.
[0136] Step S505: determining a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers.
[0137] In this embodiment, when determining the target server from the multiple other servers, at least one other server whose preset level relationship is a peer relationship can be screened out from the multiple other servers; and based on the communication signal strength between the at least one other servers, the target server with the strongest communication signal strength can be screened out from the at least one other server.
[0138] In specific implementation, since there may be multiple other servers at the same level as the lower-level server, in this case, the target server can be determined based on the communication signal strength between at least one other server at the same level. In specific implementation, a detection data stream can be sent to at least one server respectively, and the communication signal strength between at least one other server and the other server can be determined based on the sending speed of the detection data stream, wherein the other server with the fastest sending speed can be determined as the target server with the strongest communication signal strength.
[0139] Step S506: establishing a data backup link from the lower-level server to the upper-level server via the target server through the target server.
[0140] In this embodiment, since the lower-level server has a data configuration file, and other servers also generate a first data forwarding configuration file, in a specific example, refer to Figure 6 As shown, a flowchart of the steps of establishing a data backup link is shown, which may specifically include the following steps:
[0141] Step S5061: Send a link switching instruction to the target server, so that the target server establishes a first data link with the upper-level server according to the first data forwarding configuration file.
[0142] In this embodiment, since the first data forwarding configuration file can serve as a sign of a successful negotiation of a backup communication relationship between the other server and the subordinate server, and the target server can be a server at the same level as the subordinate server, and in the visual network, servers at the same level generally correspond to the same superior server, the target server can establish a first data link with the superior server according to the link switching instruction, and the first data link can refer to a link between the forwarding routing device of the target server and the boundary routing device of the superior server.
[0143] Step S5062: In response to the link establishment completion signaling returned by the target server after the target server establishes the first data link, a second data link is established between the local end and the target server according to the data configuration file of the local end.
[0144] In this embodiment, after establishing the first data link, the target server can return a link establishment completion signaling to the subordinate server, and at this time, the subordinate server can establish a second data link with the target server according to the data configuration file of the local end. Specifically, since the data configuration file can save the backup communication information negotiated with other servers and the superior server, the second data link can be established according to the backup communication information.
[0145] Specifically, in a specific example, when establishing a second data link with the target server according to the data configuration file of the local end, the first forwarding routing device mounted on the lower-level server and the sub-control device to which the first forwarding routing device belongs, as well as the second forwarding routing device mounted on the target server can be determined according to the local data configuration file; and a second data link is established from the sub-control device to which the first forwarding routing device belongs, through the first forwarding routing device to the second forwarding routing device.
[0146] In specific implementation, since the backup communication information includes: the number of the forwarding routing device of other servers, the prefix of other servers, etc., the target server can be determined according to the prefix of other servers in the backup communication information, and the second forwarding routing device mounted on the target server can be determined according to the number of the forwarding routing device of the target server, and the first forwarding routing device corresponding to the second forwarding routing device mounted on the target server can be determined; and then a second data link is established from the sub-control device to which the first forwarding routing device belongs, through the first forwarding routing device to the second forwarding routing device. The second data link is the link for communication between the lower-level server and the target server.
[0147] like Figure 3 As shown, the second data link established is as follows Figure 3 As shown by the arrow between server B and server C, the first data link established is as follows Figure 3 As shown by the arrow between server A and server C in .
[0148] Step S5063: Activate the first data link and the second data link to complete the establishment of the data backup link.
[0149] In this embodiment, activating the first data link and the second data link may mean: connecting the first data link and the second data link, that is, establishing a path from the forwarding routing device of the target server to its sub-control device to the boundary routing device, so that the first data link and the second data link are connected, thereby completing the establishment of the data backup link.
[0150] Step S507: Switch the communication link with the upper-level server to the data backup link, so as to communicate with the upper-level server through the data backup link.
[0151] The process of step S507 is similar to the process of step S404 described above. For the relevant details, please refer to the description of step S404 and will not be repeated here.
[0152] When the technical solution of this embodiment is adopted, a backup communication relationship can be established in advance between a subordinate server and multiple other servers, wherein the backup communication relationship is marked by the servers generating data configuration files respectively. Then, when the communication link between the superior server and the subordinate server fails and communication cannot be achieved, a data backup link is established from the subordinate server to the superior server via the target server, and the original communication link with the superior server is switched to a data backup link, so as to restore the communication with the superior server through the data backup link and restore the visual network service in time, avoiding the problem of waiting for the original communication link between the superior servers to return to normal, which causes the visual network service to be delayed too long and affects the service efficiency.
[0153] Based on the same inventive concept, Figure 7 As shown, a flowchart of a method for handling communication failures in an embodiment is shown. This embodiment introduces how to help other servers restore the communication between the other servers and their superior servers from the server side in the visual network. The server referred to in this embodiment can be as follows: Figure 2 In the visual networking network structure shown, a non-top-level visual networking server, for example, may be a visual networking server L21 or a visual networking server L22.
[0154] First, the server can establish a backup communication relationship with multiple other servers in advance, so that when there is a communication failure between other servers and the upper-level server, the server can help other servers restore communication with the upper-level server based on the backup communication relationship. Specifically, Figure 7 As shown, the following steps may be included:
[0155] Step S701: receiving a data forwarding setting command packet sent by the subordinate server.
[0156] In this embodiment, the data forwarding setting command packet can be a command packet sent by a control system within the Internet and received by a subordinate server. The command packet may include the following information: operation code (data forwarding setting), the prefix of the subordinate server, the number of the forwarding routing device of the subordinate server, the prefix of the server with which a backup communication relationship is to be established, and the number of the forwarding routing device of the server.
[0157] Step S702: Generate a first data forwarding configuration file based on the data forwarding setting command packet.
[0158] In this embodiment, the server can parse the data forwarding setting command packet to obtain information such as the operation code (data forwarding setting), the prefix of the subordinate server, the number of the forwarding routing device of the subordinate server, the prefix of the server to establish a backup communication relationship, and the number of the forwarding routing device of the server, and then generate its own first data forwarding configuration file. The first data forwarding configuration file can be used as a sign of the successful negotiation of the backup communication relationship between the server and the subordinate server, wherein the prefix of the subordinate server, the level of the subordinate server, and the number of the forwarding routing device of the subordinate server can be stored in the first data forwarding configuration file.
[0159] Step S703: In response to a link switching instruction sent by a subordinate server in the visual network, a first data link is created with an upper-level server, wherein the link switching instruction is sent by the subordinate server when a failure is detected in the communication link with the upper-level server.
[0160] Specifically, in this embodiment, a first data link with the upper-level server may be created according to the first data forwarding configuration file.
[0161] Accordingly, in a specific example, combined with Figure 3 The communication architecture shown can determine the forwarding routing device and the boundary routing device mounted on this server when creating the first data link with the upper-level server; and create the first data link between the forwarding routing device and the boundary routing device, wherein the boundary routing device maintains connectivity with the boundary routing device of the upper-level server.
[0162] In this embodiment, the server can directly configure the first data forwarding configuration file to determine that the forwarding routing device on which the server is posted is connected to its own border routing device to complete the establishment of the first data link, wherein the first data link can be a data link from the forwarding routing device to the border routing device of the upper-level server via the border routing device of the server.
[0163] Step S704: Return a link establishment completion signaling to the subordinate server to establish a second data link with the subordinate server.
[0164] In this embodiment, the process of establishing the second data link may refer to the process of step S5062 above, which will not be described in detail here.
[0165] Step S705: Based on the first data link and the second data link, a data backup link is established between the lower-level server and the upper-level server, so that the lower-level server communicates with the upper-level server through the data backup link.
[0166] In this embodiment, the server can connect the first data link with the second data link to complete the establishment of the data backup link, that is, establish a path from the forwarding routing device of the target server to the sub-control device to the boundary routing device to connect the first data link with the second data link.
[0167] In practice, in order to maintain normal communication between the upper server and the lower server, after the data backup link is established, the upper server can be informed that it can obtain data forwarded by the lower server from itself, so as to successfully realize the communication between the lower server and the upper server.
[0168] Specifically, after establishing the data backup link between the subordinate server and the superior server, a multicast address of the data backup link can also be generated; the multicast address is sent to the superior server so that the superior server updates the multicast address of the communication link between the subordinate server and the superior server to the multicast address of the data backup link.
[0169] Among them, after the data backup link is successfully created, this server can generate the latest multicast address of the data source and notify the upper-level server (i.e., server A) about the change of the designated data source. That is, the upper-level server needs to use the latest generated multicast address to replace the multicast address generated by the original line with communication failure, so as to watch the data from the new multicast address.
[0170] By adopting the technical solution of this embodiment, a backup communication relationship with a subordinate server can be established in advance. When a communication failure occurs in the subordinate server and the link needs to be switched, a data backup link can be established from the subordinate server to the superior server via the target server, and the multicast address of the data backup link can be notified to the superior server so that the superior server can use the new multicast address to view data. This helps the subordinate server to restore communication with the superior server through the data backup link, and promptly restore the visual network service, avoiding the problem of waiting for the original communication link between the superior servers to return to normal, which causes the visual network service to be delayed too long and affects the service efficiency.
[0171] Next, combine Figure 3 The communication architecture shown is combined with a specific example to fully illustrate the communication fault handling method of the embodiment of the present application:
[0172] Assume that server A is the superior server of server B and server C, and server B and server C are at the same level. First, in order to ensure that server A can restore the visual network service in time when a communication connection failure occurs with either server B or server C, a backup communication relationship can be established between server B and server C. With server B as the execution subject, the specific process is as follows:
[0173] Step S001: In response to a data forwarding setting command packet sent by a control system in the Internet, the data forwarding setting command packet is sent to the server C respectively, and the server C generates a first data forwarding configuration file.
[0174] Step S002: in response to the setting response packet returned by the server C after generating the first data forwarding configuration file, a data forwarding packet is sent to the upper-level server A, so that the upper-level server A generates a second data forwarding configuration file.
[0175] Step S003: Generate a data configuration file of the local end in response to the response signaling returned by the upper-level server A when generating the second data forwarding configuration file. In this way, the establishment of the standby communication relationship between the server B and the server C is completed.
[0176] Assume that the communication connection between server B and server A is interrupted. In this case, server B needs to use server C to forward data to restore the visual networking service. The specific process is as follows:
[0177] Step S004: Send a link switching instruction to server C, so that server C establishes a first data link with the upper-level server A according to the first data forwarding configuration file.
[0178] Step S005: in response to the link establishment completion signaling returned by the server C after the first data link is established, a second data link is established between the server C and the server C according to the data configuration file of the local end;
[0179] Step S006: Activate the first data link and the second data link to complete the establishment of the data backup link.
[0180] Step S007: Use the data backup link to achieve communication with the upper-level server A. The specific communication process is: Server B sends its own visual network data to the forwarding routing device of server C via its own forwarding routing device. The forwarding routing device of server C sends the visual network data to its own boundary routing device. The boundary routing device of server C then sends the visual network data to the boundary routing device of the upper-level server A. Then, the upper-level server A receives the visual network data forwarded by server B via server C, thereby achieving communication recovery.
[0181] In another case, suppose the communication connection between server C and server A is interrupted. In this case, server C needs to use server B to forward data to restore the visual networking service. Then server B needs to help server C restore the visual networking service through the following process:
[0182] First, server B creates a data link with upper-level server A in response to the link switching instruction sent by server C.
[0183] Next, server B returns a link establishment completion signaling to server C, so that server C establishes a data link with server B.
[0184] Then, server B establishes a data backup link between server C and the upper-level server A based on the data link between server B and the upper-level server A and the data link between server B and server C, so that server C can communicate with the upper-level server A through the data backup link.
[0185] Finally, server B receives the visual networking data transmitted by server C through the data link between server B and server C, and sends the visual networking data to the superior server A through the data link between server B and server A, thereby helping server C to restore the visual networking service.
[0186] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0187] refer to Figure 8 , shows a communication fault processing device, which is applied to a lower-level server in a visual network, wherein the lower-level server is communicatively connected to an upper-level server, and the device may specifically include the following modules:
[0188] A search module 801 is used to search for a plurality of other servers that have a backup communication relationship with the subordinate server when a communication link failure with the superior server is detected;
[0189] A determination module 802, configured to determine a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers;
[0190] A link establishment module 803 is used to establish a data backup link from the lower-level server to the upper-level server via the target server through the target server;
[0191] The switching module 804 is used to switch the communication link with the upper-level server to the data backup link, so as to communicate with the upper-level server through the data backup link.
[0192] Optionally, the device further comprises the following modules:
[0193] A first response module, configured to respond to a data forwarding setting command packet sent by a control system in the Internet and send the data forwarding setting command packet to the multiple other servers respectively, so that the multiple other servers generate a first data forwarding configuration file;
[0194] A second response module, configured to send a data forwarding packet to the upper-level server in response to the setting response packets returned by the multiple other servers after generating the first data forwarding configuration file, so that the upper-level server generates a second data forwarding configuration file;
[0195] A third response module, configured to generate a data configuration file of the local end in response to a response signaling returned by the upper-level server when generating the second data forwarding configuration file, so as to complete the establishment of a standby communication relationship with the multiple other servers;
[0196] The search module 801 may be specifically configured to search for a plurality of other servers that have a standby communication relationship with the lower-level server according to the data configuration file of the local end.
[0197] Optionally, the link establishing module 803 may specifically include the following units:
[0198] a switching unit, configured to send a link switching instruction to the target server, so that the target server establishes a first data link with the upper-level server according to the first data forwarding configuration file;
[0199] a responding unit, configured to respond to a link establishment completion signaling returned by the target server after the target server establishes the first data link, and to establish a second data link with the target server according to the data configuration file of the local end;
[0200] An activation unit is used to activate the first data link and the second data link to complete the establishment of the data backup link.
[0201] Optionally, the response unit specifically includes the following subunits:
[0202] A determination subunit, configured to determine, according to the local data configuration file, a first forwarding routing device mounted on the subordinate server and a sub-control device to which the first forwarding routing device belongs, and a second forwarding routing device mounted on the target server;
[0203] An establishing subunit is used to establish a second data link from a sub-control device to which the first forwarding routing device belongs, through the first forwarding routing device to the second forwarding routing device.
[0204] Optionally, the search module 801 may specifically include the following units:
[0205] An acquisition unit, configured to acquire a plurality of sub-control devices mounted on the lower-level server, and search for at least one target sub-control device mounted with a forwarding routing device from among the plurality of sub-control devices;
[0206] The determining unit is used to determine other servers corresponding to the forwarding routing devices mounted on each of the at least one target sub-control devices as multiple other servers having a standby communication relationship with the lower-level server.
[0207] Optionally, the determining module 802 may specifically include the following units:
[0208] A first screening unit, configured to screen out at least one other server whose preset level relationship is a peer relationship from the plurality of other servers;
[0209] The second screening unit is used to screen out a target server with the strongest communication signal strength from the at least one other server according to the communication signal strength between the at least one other server.
[0210] refer to Fig. 9 , shows a structural block diagram of another communication fault processing device, which is applied to a server in a visual network. The device may specifically include the following modules:
[0211] A link creation module 901, configured to create a first data link with an upper-level server in response to a link switching instruction sent by a lower-level server in the visual network, wherein the link switching instruction is sent by the lower-level server when a failure in the communication link between the lower-level server and the upper-level server is detected;
[0212] A signaling sending module 902, configured to return a link establishment completion signaling to the subordinate server, so that the subordinate server establishes a second data link with the other server;
[0213] The link establishment module 903 is used to establish a data backup link between the subordinate server and the superior server based on the first data link and the second data link, so that the subordinate server can communicate with the superior server through the data backup link.
[0214] Optionally, the device may further include the following modules:
[0215] A command packet receiving module, used for receiving a data forwarding setting command packet sent by the subordinate server;
[0216] A configuration file generating module, used for generating a first data forwarding configuration file based on the data forwarding setting command packet;
[0217] The link creation module 901 may be specifically configured to create a first data link with the upper-level server according to the first data forwarding configuration file.
[0218] Optionally, the link creation module 901 may specifically include the following units:
[0219] A routing device determination unit, used to determine the forwarding routing device and the border routing device mounted on the server;
[0220] A creating unit is used to create a first data link between the forwarding routing device and the border routing device, wherein the border routing device maintains connectivity with the border routing device of the upper-level server.
[0221] Optionally, the device may further include the following modules:
[0222] An address generation module, used to generate a multicast address for the data backup link;
[0223] The address sending module is used to send the multicast address to the upper-level server, so that the upper-level server updates the multicast address of the communication link between the upper-level server and the lower-level server to the multicast address of the data backup link.
[0224] It should be noted that the device embodiment is similar to the method embodiment, so the description is relatively simple, and the relevant parts can be referred to the method embodiment.
[0225] An embodiment of the present invention further provides an electronic device, including:
[0226] one or more processors; and
[0227] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to execute the communication failure processing method as described in any of the above embodiments of the present invention.
[0228] An embodiment of the present invention further provides a computer-readable storage medium, wherein a computer program stored in the storage medium enables a processor to execute the communication failure processing method as described in any of the above embodiments of the present invention.
[0229] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0230] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0231] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0232] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0233] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0234] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0235] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0236] The above is a detailed introduction to a communication fault handling method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A communication fault processing method, characterized in that: A method for applying to a lower-level server in a visual network, wherein the lower-level server is communicatively connected to an upper-level server, and comprising: When a communication link failure with the upper-level server is detected, searching for a plurality of other servers that have a standby communication relationship with the lower-level server; Determining a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers; A data backup link is established through the target server from the lower-level server to the upper-level server via the target server; the data backup link includes a first data link and a second data link, wherein the first data link is a link between a second forwarding routing device mounted on the target server and a boundary routing device of the upper-level server; the second data link is a link from a sub-control device to which the first forwarding routing device mounted on the lower-level server belongs, via the first forwarding routing device to the second forwarding routing device; The communication link with the upper-level server is switched to the data backup link to communicate with the upper-level server through the data backup link.
2. The method according to claim 1, characterized in that The backup communication relationship between the plurality of other servers is established by following the steps: In response to a data forwarding setting command packet sent by a control system in the Internet, the data forwarding setting command packet is sent to the plurality of other servers respectively, so that the plurality of other servers generate a first data forwarding configuration file; In response to the setting response packets returned by the multiple other servers after generating the first data forwarding configuration file, sending a data forwarding packet to the upper-level server, so that the upper-level server generates a second data forwarding configuration file; In response to the response signaling returned by the upper-level server when generating the second data forwarding configuration file, generate a data configuration file of the local end to complete the establishment of a standby communication relationship with the multiple other servers; Find multiple other servers that have alternate communication relationships with the subordinate server, including: According to the data configuration file of the local end, multiple other servers having a standby communication relationship with the subordinate server are searched.
3. The method according to claim 2, characterized in that Establishing a data backup link from the lower-level server to the upper-level server via the target server through the target server, including: Sending a link switching instruction to the target server, so that the target server establishes a first data link with the upper-level server according to the first data forwarding configuration file; In response to a link establishment completion signaling returned by the target server after the target server establishes the first data link, establishing a second data link with the target server according to the data configuration file of the local end; The first data link and the second data link are activated to complete the establishment of the data backup link.
4. The method according to claim 3, characterized in that Establishing a second data link with the target server according to the data configuration file of the local end includes: Determine, according to the local data configuration file, a first forwarding routing device mounted on the subordinate server and a sub-control device to which the first forwarding routing device belongs, and a second forwarding routing device mounted on the target server; A second data link is established from the sub-control device to which the first forwarding routing device belongs, through the first forwarding routing device to the second forwarding routing device.
5. The method according to claim 1, characterized in that Finding multiple other servers that have a backup communication relationship with the subordinate server, including: Acquire multiple sub-control devices mounted on the lower-level server, and search for at least one target sub-control device mounted with a forwarding routing device from the multiple sub-control devices; The other servers corresponding to the forwarding routing devices mounted on the at least one target sub-control device are determined to be a plurality of other servers that have a standby communication relationship with the lower-level server.
6. The method according to any one of claims 1 to 5, characterized in that: Determining a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers includes: Filtering out at least one other server whose preset level relationship is a peer relationship from the multiple other servers; According to the communication signal strength between the at least one other server, a target server with the strongest communication signal strength is screened out from the at least one other server.
7. A communication failure processing method, characterized in that: Applied to a server in a visual network, the method comprises: In response to a link switching instruction sent by a lower-level server in the visual network, a first data link is established with an upper-level server, wherein the link switching instruction is sent by the lower-level server when a failure in the communication link between the lower-level server and the upper-level server is detected; Returning a link establishment completion signaling to the subordinate server to establish a second data link with the subordinate server, wherein the second data link is a link from a sub-control device to which a first forwarding routing device mounted on the subordinate server belongs, through the first forwarding routing device to a second forwarding routing device mounted on the server; Based on the first data link and the second data link, a data backup link is established between the lower-level server and the upper-level server, so that the lower-level server communicates with the upper-level server through the data backup link.
8. The method according to claim 7, characterized in that Before establishing the first data link with the upper-level server, the method further includes: Receiving a data forwarding setting command packet sent by the subordinate server; Based on the data forwarding setting command packet, generate a first data forwarding configuration file; Creating a first data link with an upper-level server, including: A first data link is established with the upper-level server according to the first data forwarding configuration file.
9. The method according to claim 7 or 8, characterized in that: Creating a first data link with an upper-level server, including: Determine the forwarding routing device and border routing device mounted on this server; A first data link is created between the forwarding routing device and the border routing device, wherein the border routing device is connected to a border routing device of an upper-level server.
10. The method according to claim 7, characterized in that After establishing a data backup link between the lower-level server and the upper-level server based on the first data link and the second data link, the method further includes: Generating a multicast address for the data standby link; The multicast address of the data standby link is sent to the upper-level server, so that the upper-level server updates the multicast address of the communication link between the upper-level server and the lower-level server to the multicast address of the data standby link.
11. A communication fault processing device, characterized in that: A device for a lower-level server in a visual network, wherein the lower-level server is communicatively connected to an upper-level server, and the device comprises: A search module, used for searching for a plurality of other servers having a backup communication relationship with the subordinate server when a communication link with the superior server is detected to be faulty; A determination module, configured to determine a target server from the plurality of other servers according to a preset level relationship between the target server and the plurality of other servers; A link establishment module, used to establish, through the target server, a data backup link from the lower-level server to the upper-level server via the target server; the data backup link includes a first data link and a second data link, wherein the first data link is a link between a second forwarding routing device mounted on the target server and a boundary routing device of the upper-level server; the second data link is a link from a sub-control device to which the first forwarding routing device mounted on the lower-level server belongs, via the first forwarding routing device to the second forwarding routing device; The switching module is used to switch the communication link with the upper-level server to the data backup link, so as to communicate with the upper-level server through the data backup link.
12. A communication fault processing device, characterized in that: The device is applied to a server in a visual network, and comprises: A link creation module, configured to create a first data link with an upper-level server in response to a link switching instruction sent by a lower-level server in the visual network, wherein the link switching instruction is sent by the lower-level server when a failure in the communication link between the lower-level server and the upper-level server is detected; a signaling sending module, configured to return a link establishment completion signaling to the subordinate server, so that the subordinate server establishes a second data link with the server, wherein the second data link is a link from a sub-control device to which a first forwarding routing device mounted on the subordinate server belongs, through the first forwarding routing device to a second forwarding routing device mounted on the server; A link establishment module is used to establish a data backup link between the subordinate server and the superior server based on the first data link and the second data link, so that the subordinate server can communicate with the superior server through the data backup link.
13. An electronic device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the communication fault handling method according to any one of claims 1-6 or any one of claims 7-10 is implemented.
14. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the communication failure processing method as described in any one of claims 1-6 or any one of claims 7-10.
