[0041] The embodiment of the present invention provides a fault notification method, so that a user can learn fault information in a timely manner through a communication client, which improves the probability of the fault information reaching the communication client and improves user experience.
[0042] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
[0043] The terms "first", "second", "third", "fourth", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and not necessarily used to describe a specific order Or precedence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than the content illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to the clearly listed Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
[0044] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.
[0045] Combine figure 1 As shown, the fault notification method of the present invention provides an embodiment, and the method includes:
[0046] S101. Configure a communication channel between a communication client and a communication server, configure a first failure detection relationship between a failure notification server and the communication server, and configure a second failure detection relationship between the failure notification server and the communication channel.
[0047] The communication client can be communication software installed on the terminal. The communication software can include instant messaging software, email software, Internet phone software, etc. The specific communication client can be QQ chat software or WeChat software, etc., and the communication function needs to be realized through the server That is, the communication server can be the operation server of the instant messaging company to provide communication business services. The server must have the ability to undertake the service and guarantee the service. The communication client initiates a business request to the communication server, and the communication server responds to the business request to complete For corresponding services, communication can only be carried out by establishing a communication channel between the communication client and the communication server. The communication channel can be established wirelessly or wiredly, and the specifics are not limited.
[0048] The failure notification server is used to detect whether the communication server fails and the communication channel fails. When the communication server fails, the server providing the communication software fails, causing the communication server to fail to respond after receiving the service request from the communication customer service terminal. Communication channel failure means that the service request between the communication client and the communication server cannot be received normally, the communication server cannot receive the service request initiated by the communication client, or the communication server responds to the service request received from the communication client, but the communication server cannot The response is returned to the communication client. For example, when the communication channel is established wirelessly, the communication channel failure may be a failure of other network operators such as China Mobile, China Unicom, or China Telecom, which causes wireless transmission to fail.
[0049] The fault notification server is deployed separately. When deployed separately, monitoring points are set on the communication channel or communication server to detect faults. When the monitoring point fails, the fault notification server learns the location of the fault in time through the monitoring point .
[0050] S102. The communication client initiates a service request to the communication server.
[0051] The user starts a certain service and sends a service request to the communication server through the communication client. During normal work, the service request can be transmitted to the communication server through the communication channel. If the communication channel for the communication client to transmit the service request to the communication server fails, the communication The server cannot receive the service request.
[0052] S103. When the communication client determines that the response from the communication server is not received within a preset time, the communication client initiates a fault query request to the fault notification server, so that the fault notification server is The first fault information is obtained by querying a fault detection relationship and/or a second fault detection relationship.
[0053] The communication client starts timing when it initiates a service request, and judges whether it can receive a response from the communication server within the specified time. The response here can include the response to the service request returned by the communication server during normal work, or it can include when a failure occurs. The second fault information returned by the communication server to the communication client. When the communication channel transmitted by the communication server to the communication client fails, neither the response to the service request nor the second fault information can be transmitted to the communication client during normal operation, so that The communication client cannot receive the response from the communication server within the preset time.
[0054] When the timer reaches the preset time, the communication client initiates a fault query request to the fault notification server. The fault notification server queries the first monitoring point set on the communication server according to the first fault detection relationship, and queries according to the second fault detection relationship Set the second monitoring point on the communication channel, obtain the location of the fault through the records of the monitoring point, and store the cause or location of the fault in the first fault information, and the fault notification server sends the first fault information to the communication client Send at the end.
[0055] It should be noted that the fault notification server can be queried in order when querying the fault. For example, first query whether the communication channel between the communication client and the communication server is faulty, then query whether the communication server is faulty, and finally query the communication server to the communication Whether the communication channel between the clients is faulty, of course, the order of the inquiry can be carried out in other order, which is not limited.
[0056] S104. The communication client receives the first failure information returned by the failure notification server.
[0057] The communication client receives the first failure information returned by the failure notification server, and the first failure information may include the cause and location of the failure. The user can obtain the first failure information through the communication client and get the failure notification in time.
[0058] The failure notification method provided by the present invention solves the problem in the prior art that the communication client cannot receive the failure notification when the server fails or the communication channel causes the communication client to fail to receive the failure notification by adding a failure notification server. The client knows the fault information in time, which increases the probability of the fault information reaching the communication client and improves the user experience.
[0059] Combine below figure 2 As shown, the fault notification method of the present invention also provides an embodiment, and the method includes:
[0060] S201: Configure a communication channel between a communication client and a communication server, configure a first failure detection relationship between the failure notification server and the communication server, and configure a second failure detection relationship between the failure notification server and the communication channel.
[0061] Step S201 is the same as S101 in the previous embodiment, and will not be repeated here. What needs to be added is that the configuration process may be pre-configuration, or time configuration may be selected as required, which is not limited.
[0062] S202: The communication client initiates a service request to the communication server.
[0063] The user starts a certain service and sends a service request to the communication server through the communication client. During normal work, the service request can be transmitted to the communication server through the communication channel. If the communication channel for the communication client to transmit the service request to the communication server fails, the communication The server cannot receive the service request.
[0064] S203: Determine whether the communication client receives the response of the communication server within a preset time, if the response of the communication server is not received, execute S204; if the response of the communication server is accepted, execute S208.
[0065] The preset time can be determined based on statistical results, such as the time interval for the communication server to respond to service requests during normal work, or the time interval for the communication server to return failure information when a failure occurs. Of course, in order to improve accuracy and reduce errors, The preset time can be appropriately extended to meet actual needs, and the length of the preset time is not limited.
[0066] The response of the communication server received by the communication client within the specified time includes that the communication client receives the successful response of the communication server to the service request within the preset time, or the communication client is preset The failure response returned by the communication server is received within time.
[0067] S204. The communication client initiates a fault query request to the fault notification server, so that the fault notification server obtains first fault information by querying according to the first fault detection relationship and/or the second fault detection relationship.
[0068] The communication client does not receive a successful response from the communication server to the service request within a preset time and the communication client does not receive a failure response from the communication server within a preset time. The communication client determines that the response returned by the communication server is not received within the preset time.
[0069] The communication client initiates a fault query request to the fault notification server. The fault notification server queries the first monitoring point set on the communication server based on the first fault detection relationship, and queries the second monitoring set on the communication channel based on the second fault detection relationship. Point, obtain the location of the fault through the records of the monitoring point, and store the cause or location of the fault in the first fault information, and the fault notification server sends the first fault information to the communication client.
[0070] S205. Determine whether the communication client receives the first failure information returned by the failure notification server within a preset time, and if the returned first failure information is received, execute S206, and if the returned first failure information is not received If the fault information, go to S207.
[0071] The communication client receives the first failure information returned by the failure notification server, and the first failure information may include the cause and location of the failure. The user can obtain the first failure information through the communication client and get the failure notification in time.
[0072] S206. The communication client feeds back the first fault information to the user, so that the user understands the cause of the fault.
[0073] The way of feedback may be to display the first fault information on the operation interface of the communication client, or other methods may be adopted to notify the user that the fault has occurred, which is not specifically limited.
[0074] S207: When the communication client does not receive the first failure information returned from the failure notification server within a preset time, the communication client judges the failure by itself.
[0075] After the communication client initiates a fault query request to the fault notification server, it is timed to ensure that the fault notification server is working normally. When the first fault information returned by the fault notification server is not received within the preset time, it can be determined that the fault notification server is also In the event of a failure, the communication client is required to transmit and judge the failure by itself, that is, the communication client actively detects the cause of the failure or the location of the failure, so as to provide the user with a timely notification of the failure.
[0076] S208: The communication client receives second failure information sent by the communication server when the communication server fails and/or the communication channel fails.
[0077] In this step, the second fault information is obtained by the communication server through detection, and the detected second fault information is returned to the communication client. This process has a causal relationship with the failure notification server detecting the failure. When the communication client does not receive the communication server Only when the communication client initiates a fault query request to the fault notification server, that is, when the fault detection of the communication server is unavailable, initiates the fault detection of the fault notification server, thereby ensuring that the fault notification is better returned to the communication client , Improve the probability of failure notification to the communication client.
[0078] The communication channel failure includes a first failure when the communication client fails to transmit to the communication server and a second failure when the communication server fails to transmit to the communication client.
[0079] S209. The communication client feeds back the second fault information to the user, so that the user understands the cause of the fault.
[0080] The communication client receives the second fault information returned by the communication server, the second fault information may include the cause and location of the fault, and the user can obtain the second fault information through the communication client, and get the fault notification in time.
[0081] The feedback method may be to display the second fault information on the operation interface of the communication client, or other methods may be adopted to notify the user of the fault, which is not specifically limited.
[0082] By adding a failure notification server to detect communication server failures or communication channel failures, users can learn about failure information in a timely manner through the communication client, which increases the probability of failure information reaching the communication client and improves user experience.
[0083] In order to facilitate the understanding of the present invention, the present invention can provide an application scenario to facilitate the understanding of the solution of the present invention. The following is a specific introduction.
[0084] Take QQ instant messaging software, use China Mobile network to establish a wireless communication channel, and the QQ server fails as an example.
[0085] The QQ client initiates a chat request to the QQ server through the wireless network. The transmission from the QQ client to the QQ server is used as the uplink communication channel (for the convenience of description), the transmission from the QQ server to the QQ client is the downlink. Communication channel (referred to as downlink for the convenience of description), the failure notification server configures the first monitoring point in the uplink, the failure notification server configures the second monitoring point in the QQ server, and the failure notification server configures the third monitoring point in the downlink Point, that is, the failure notification server and the uplink are configured as a first failure detection relationship, the failure notification server and the QQ server are configured as a second failure detection relationship, and the failure notification server and the downlink are configured as a third failure detection relationship.
[0086] The QQ client initiates a chat request to the QQ server, and the QQ client does not receive the chat establishment response returned by the QQ server within the predetermined time. At this time, the QQ server is faulty, and the QQ client login timeout, but the user did not get the fault notification through the QQ client , Because the QQ server fails to respond to this chat request.
[0087] The QQ client cannot log in to the QQ server, nor does it receive the fault information returned by the QQ server, so the QQ client initiates a fault query request to the fault notification server. After the fault notification server receives the fault query request, it detects the relationship based on the first fault and the second fault. The fault detection relationship and the third fault detection relationship obtain the corresponding first monitoring point, second monitoring point and third monitoring point respectively. Each monitoring point monitors a different location. The second monitoring point returns fault information to indicate that the QQ server is faulty. , Causing the chat request to not be established, the fault notification server returns the fault information returned by the second monitoring point to the QQ client, prompting that the QQ server is faulty, resulting in the chat request not being realized, allowing the user to know the fault situation in time, and improving the fault notification The probability of reaching the QQ client improves the user experience and avoids the situation that the service request cannot be fulfilled and the failure notification is not received, so that the user does not need to wait anxiously, making the service more user-friendly and improving the user experience.
[0088] Please combine as shown by Tu. Correspondingly, the present invention also provides a fault notification system based on the above-mentioned fault notification method. The following models are specifically introduced:
[0089] The fault notification system includes a communication client 100, a communication server 200, and a fault notification server 300. The communication channel between the communication client 100 and the communication server 200 is configured, and the first fault detection relationship between the fault notification server 300 and the communication server 200 is configured. The second failure detection relationship between the failure notification server 300 and the communication channel;
[0090] The communication client 100 is configured to initiate a service request to the communication server 200 and when the communication client 100 determines that it has not received a response from the communication server 200 within a preset time, the communication client 100 Initiate a fault query request to the fault notification server 300, and the communication client 100 can be installed on a mobile terminal, including mobile phones, tablet computers, PDAs (English: Personal Digital Assistant, Chinese: Personal Digital Assistant), and POS (English: Point of Sales, Chinese: sales terminal), on-board computer and other terminal equipment;
[0091] The communication server 200 is configured to receive the service request initiated by the communication client 100 and return a service request success response to the communication client 100 when it is working normally;
[0092] The fault notification server 300 is configured to receive the fault query request initiated by the communication client 100 and obtain the first fault information according to the first fault detection relationship and/or the second fault detection relationship, and to query the first fault information to the communication client The first fault information returned by the terminal 100.
[0093] The communication client 100 is further configured to receive a response to a service request when the communication server 200 and the communication channel are normal.
[0094] The communication client 100 is further configured to receive second failure information sent by the communication server 200 when the communication server 200 fails and/or the communication channel fails.
[0095] The communication client 100 is further configured to judge the failure by itself when the first failure information returned by the failure notification server 300 is not received within a preset time.
[0096] The communication client 100 is further configured to receive the first failure information returned by the failure notification server 300 and then feed back the first failure information to the user, so that the user can understand the cause of the failure.
[0097] The communication client 100 is further configured to receive the second failure information sent by the communication server 200 when the communication server 200 fails and/or the communication channel fails, and then feedback the second failure information to the user, so as to Make the user understand the cause of the failure.
[0098] The system may also include a short message gateway, a mail server, and an alarm box. The short message gateway sends the notification message to the mobile terminal of the operation and maintenance personnel in the form of a short message via the wireless network; Maintenance personnel provide e-mail services; alarm boxes are used to remind operation and maintenance personnel to troubleshoot through sound and light after receiving notification information.
[0099] Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
[0100] In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
[0101] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
[0102] In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized in the form of hardware or software functional unit.
[0103] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
[0104] A person of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be implemented by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. The medium can be read-only memory, magnetic disk or optical disk, etc.
[0105] The above provides a detailed introduction to a fault notification method provided by the present invention. For those skilled in the art, according to the ideas of the embodiments of the present invention, there will be changes in the specific implementation and the scope of application. As mentioned, the content of this specification should not be construed as a limitation of the present invention.