Communication processing method and device, electronic equipment and storage medium
By receiving request and response information from clients, updating the port number, and having the virtual server detect the port type, the communication fault self-healing process is automatically triggered, solving the problem of low efficiency in communication fault detection in existing technologies and achieving fast and stable communication fault repair.
Patent Information
- Application Number
- CN202511413498.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-29
- Publication Date
- 2025-12-12
AI Technical Summary
In existing communication processing, communication fault detection relies on manual troubleshooting, which is inefficient, affects the timeliness and stability of communication, and cannot meet the rapidly evolving communication needs.
By receiving request and response information from clients, updating the port number, and having the virtual server detect the port type, the system automatically triggers a communication failure self-healing process to quickly detect and repair invalid port numbers.
It enables quick and automatic detection of invalid port numbers without the need for tedious manual troubleshooting, improving the efficiency of communication fault handling and ensuring the timeliness and stability of communication.
Smart Images

Figure CN121125449A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The embodiment of the present disclosure relates to the technical field of computer, in particular to a communication processing method and device, electronic equipment and storage medium. BACKGROUND
[0002] In today's digital era, communication technology is developing rapidly. As an important part of it, media communication is widely used in many fields such as social, business and education. It has become a common practice for different clients to realize the interactive transmission of media data through a server, which greatly promotes the circulation and sharing of information.
[0003] However, in the existing communication processing process, when a communication failure occurs, manual detection is often relied on to locate the problem. Manual detection needs to check one by one the network, equipment, port and other links, which not only is inefficient, but also consumes a lot of time. Especially in large-scale communication scenarios, this inefficient fault detection method seriously affects the timeliness and stability of communication, and cannot meet the rapid development of communication needs. SUMMARY
[0004] The present application provides a communication processing method, device, electronic equipment and storage medium, which can quickly and automatically detect the invalid port number, a key factor that may cause communication failure, and start the self-healing process in time, greatly improving the efficiency of communication fault processing, ensuring the timeliness and stability of communication, and effectively meeting the needs of the rapid development of current communication.
[0005] According to an aspect of the present application, a communication processing method is provided, the method comprising:
[0006] receiving a first request response information of a media communication request feedback sent by a first client to a second client; wherein the first request response information comprises a first port number of the first client;
[0007] applying for a second port number through an application server to a media communication agent, updating the first port number in the first request response information to the second port number, and sending the updated request response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication agent and the second client;
[0008] detecting the port type of the second port number in the updated request response information through the virtual server, and triggering the start of a communication fault self-healing process in the case of detecting that the port type is a first port type; wherein the first port type represents that the second port number is an invalid port number.
[0009] According to another aspect of the present application, a communication processing device is provided, the device comprising:
[0010] The first module is configured to receive first request response information of a media communication request feedback sent by a first client to a second client, wherein the first request response information comprises a first port number of the first client.
[0011] The second module is configured to apply for a second port number from a media communication agent through an application server, update the first port number in the first request response information to the second port number, and send the updated request response information to a virtual server of the application server, wherein the second port number is used for information transmission between the media communication agent and the second client.
[0012] The third module is configured to detect a port type of the second port number in the updated request response information through the virtual server, and trigger a communication fault self-recovery processing procedure when the port type is detected as a first port type, wherein the first port type represents that the second port number is an invalid port number.
[0013] According to another aspect of the present application, an electronic device is provided, and the electronic device comprises:
[0014] one or more processors;
[0015] a storage device configured to store one or more programs,
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the communication processing method according to any of the embodiments of the present application.
[0017] According to another aspect of the present application, a computer readable storage medium is provided, and the computer readable storage medium stores computer instructions for causing a processor to implement the communication processing method according to any of the embodiments of the present application when executed.
[0018] The technical scheme of the embodiment of the present disclosure comprises the following steps: receiving first request response information fed back by a first client in response to a media communication request sent by a second client; wherein the first request response information comprises a first port number of the first client. Applying for a second port number from a media communication agent by an application server, updating the first port number in the first request response information to the second port number, and sending the updated request response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication agent and the second client. Detecting the port type of the second port number in the updated request response information by the virtual server, and triggering a communication fault self-healing process in the case that the port type is detected as a first port type; wherein the first port type represents that the second port number is an invalid port number. In the technical scheme of the embodiment of the present disclosure, the virtual server detects the port type of the second port number in the updated information, and when the first port type representing the invalid port number is detected, the communication fault self-healing process is triggered. The invalid port number, which is a key factor that may cause communication failure, can be automatically detected quickly without manual tedious troubleshooting, and the self-healing process is started in time, thereby improving the efficiency of communication fault processing, ensuring the timeliness and stability of communication, and effectively meeting the needs of the current rapid development of communication.
[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0021] Figure 1 A flowchart of a communication processing method provided by the embodiment of the present disclosure is shown in the figure;
[0022] Figure 2 A flowchart of a communication processing method provided by the embodiment of the present disclosure is shown in the figure;
[0023] Figure 3 A flowchart of a communication processing method provided by the embodiment of the present disclosure is shown in the figure;
[0024] Figure 4 A flowchart of an optional embodiment of a communication processing method provided by the embodiment of the present disclosure is shown in the figure;
[0025] Figure 5 A structural schematic diagram of a communication processing device provided by an embodiment of the present disclosure is shown in FIG. 1.
[0026] Figure 6 A structural schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown in FIG. 1. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present application.
[0028] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Figure 1 A flowchart of a communication processing method provided by an embodiment of the present disclosure is shown in FIG. 1. The present embodiment can be applied to the communication between different clients, especially to the communication between clients in a mining area. The method can be executed by a communication processing device, which can be realized in the form of hardware and / or software, and can be configured in an electronic device such as a computer or a server. As shown in FIG. 1, the method of the present embodiment includes the following steps. Figure 1
[0030] S110, receiving first request response information of a media communication request feedback sent by a first client to a second client; wherein the first request response information includes a first port number of the first client.
[0031] The first client and the second client can be two clients that need to perform media communication. The second client can be understood as a client that initiates a media communication request. The first client can be understood as a client that generates first request response information according to the media communication request initiated by the first client. In the embodiment of the present disclosure, the communication protocol of the first client and the communication protocol of the second client can be the same or different. In the embodiment of the present disclosure, the first client and the second client are mine communication devices, wherein the mine communication devices include uphole communication devices and / or downhole communication devices. For example, the first client can be an uphole communication device, and the second client can be a downhole communication device; or the first client can be a downhole communication device, and the second client can be an uphole communication device. Alternatively, the first client and the second client are both uphole communication devices or downhole communication devices.
[0032] In the embodiment of the present disclosure, the media communication request can be understood as a request initiated by the second client to the first client for performing media communication. The media communication request can include a port number of the second client. In addition, the media communication request can also include a media encoding form (for example, a voice encoding form). The media communication request can be established based on a signaling protocol such as SIP (Session Initiation Protocol). It should be noted that SIP, Session Initiation Protocol, is an application layer control protocol used to establish, modify and terminate multimedia sessions such as Internet telephones. The media communication request can be a voice communication request; or it can be a video communication request. It can be understood that the voice communication request is a session request initiated by the second client through the communication system to only transmit audio data, so as to realize real-time voice communication between the second client and the first client. The video communication request is a session request initiated by the second client to simultaneously include audio data and video data, so as to realize visual real-time communication, that is, both parties can not only hear the sound of the other party, but also see the real-time picture.
[0033] In the embodiment of the present disclosure, the first request response information can be understood as information fed back by the first client to the media communication request sent by the second client. In the embodiment of the present disclosure, the first request response information can include a first port number, that is, a port number of the first client. In addition, the first request response information can also include a media encoding form (for example, a voice encoding form) of the first client. The first request response information can be stored in the form of a message. Alternatively, the first request response information can be a 183 message. It should be noted that the 183 message is used to indicate that the call is in progress, to represent that the call has been successfully transmitted from the second client to the first client, and the first client has received the call of the second client.
[0034] Specifically, a media communication request sent by a second client is received, and the media communication request is sent to a first client. In a case where the first client receives the media communication request sent by the second client, first request response information corresponding to the media communication request is generated based on a first port number of the first client. In a case where the first request response information is generated by the first client, the first request response information fed back by the first client is received.
[0035] In S120, a second port number is applied for by the application server to the media communication agent, the first port number in the first request response information is updated as the second port number, and the updated request response information is sent to a virtual server of the application server. The second port number is used for information transmission between the media communication agent and the second client.
[0036] In an IMS (IP Multimedia Subsystem) architecture, an application server (AS) is used to provide basic communication services and value-added service services. The media communication agent can be understood as an intermediate agent used for media stream transmission, forwarding and optimization in a real-time media communication link. The virtual server can be understood as a logical server instance created on the application server through virtualization technology, which can be used to run multiple independent operating systems and application services on a single physical hardware, to realize efficient utilization and isolation of resources. It is not an independent physical device, but a virtual node with independent IP address, operating system and application environment abstracted from the computing, storage and network resources of the application server by means of virtualization software.
[0037] In the embodiments of the present disclosure, the virtual server can be used to record the port number in the received updated request response information, and associate the updated request response information according to the call record between the first client and the second client, and transmit the updated request response information to the IMS network element, so as to send the updated request response information to the second client through the IMS network element.
[0038] Specifically, a port number, i.e., a second port number, used for information transmission between the media communication agent and the second client is applied for by the application server to the media communication agent. In response to an event that the second port number is applied for by the application server, the first port number in the first request response information is replaced with the second port number to obtain updated request response information. Then, the updated request response information can be sent to the virtual server of the application server.
[0039] S130, detecting, by the virtual server, a port type of the second port number in the updated request response information, and triggering a communication fault self-healing process in a case that the port type is a first port type.
[0040] In the embodiments of the present disclosure, the port type can include a first port type and a second port type. The first port type can represent that the second port number is an invalid port number. The second port type can represent that the second port number is a valid port number. In the embodiments of the present disclosure, when it is detected that the port type of the second port in the updated request response information is the first port type, it can be determined that the second port number in the updated request response information is an invalid port number.
[0041] In the embodiments of the present disclosure, the second port in the updated request response information is an invalid port number, because when the application server applies for a port to the media communication agent, the media communication agent may have an undetectable fault, for example, a deadlock occurs in the process of the media communication agent, that is, the process of the media communication agent is in a normal state, but the business logic is blocked, and the exception cannot be detected through the main process state monitoring system. Therefore, in a case that the port type is the first port type, a communication fault self-healing process can be automatically triggered to quickly respond to the communication fault between the first client and the second client, shorten the fault recovery time, guarantee the business continuity, improve the network stability, reduce the operation and maintenance cost, ensure the user perception, and thus optimize the overall network service quality.
[0042] In the embodiments of the present disclosure, the communication fault self-healing process can include one of the following: applying for a test port to the media communication agent by the application server; restarting the media communication agent by the virtual server; and applying for a third port number for information transmission between the media communication agent and the second client by the virtual server. The third port number can be understood as a port number for information transmission between the media communication agent and the second client, which is applied for by the virtual server to the media communication agent.
[0043] As an optional implementation of the embodiments of the present disclosure, in the case where the port type is detected as the first port type, the application server can apply for a test port to the media communication agent. As another optional implementation of the embodiments of the present disclosure, in the case where the port type is detected as the first port type, the virtual server can restart the media communication agent. As still another optional implementation of the embodiments of the present disclosure, in the case where the port type is detected as the first port type, the virtual server can re-apply for a third port number for the media communication agent and the second client information transmission to the media communication agent.
[0044] As another optional implementation of the embodiments of the present disclosure, in the case where the port type is detected as the first port type, the application server can apply for a test port to the media communication agent. If the application is successful, it can be determined that the media communication agent has recovered from the failure state, i.e., changes from the failure state to the normal state; if the application is not successful, it can be determined that the media communication agent is in the failure state, and then the virtual server can restart the media communication agent. In the case where the media communication agent process is restarted, the audio and video stream transceiving port of the media communication agent interacting with the first client applied by the application server is cleared, therefore, the virtual server can extract the transceiving port number from the recorded historical media communication request, and set the extracted port number to the media communication agent. Then, the virtual server re-applies for an audio and video stream transceiving port interacting with the second client to the media communication agent, and fills the applied port into the first request response information to obtain the modified request response information. Then the virtual server can send the modified request response information to other IMS network elements.
[0045] Specifically, the virtual server detects the port type of the second port number in the updated request response information, and determines the port type of the second port number in the updated request response information. In the case where the port type is detected as the first port type, the communication failure self-healing processing flow can be automatically triggered and started.
[0046] On the basis of the above-mentioned embodiments, the method further comprises: in the case where the port type is detected as the second port type, the application server can send the updated request response information to the second client, so that the second client and the first client establish a communication link, and realize the communication interaction between the first client and the second client. The second port can represent that the second port number is a valid port number.
[0047] On the basis of the above-mentioned embodiments, before triggering the starting communication fault self-healing process, the method further comprises: re-executing the operation of applying, by the application server, a second port number to the media communication agent, updating the first port number in the first request response information to the second port number, and sending the updated request response information to the virtual server of the application server; and detecting, by the virtual server, the port type of the second port number in the updated request response information. In the embodiment of the present disclosure, re-executing the operation of applying, by the application server, a second port number to the media communication agent can dynamically update the port number and recheck the type, avoid misjudgment caused by temporary network fluctuation or resource allocation delay, improve the accuracy of port effectiveness detection. Through repeated verification by the virtual server, invalid port numbers can be effectively filtered, the self-healing process is prevented from being triggered by mistake, system resource consumption is reduced, stable establishment of the communication link is ensured, and media data transmission reliability and service continuity are enhanced.
[0048] The technical scheme of the embodiment of the present disclosure comprises: receiving first request response information fed back by a first client in response to a media communication request sent by a second client; wherein the first request response information comprises a first port number of the first client. Applying, by an application server, a second port number to a media communication agent, updating the first port number in the first request response information to the second port number, and sending the updated request response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication agent and the second client. Detecting, by the virtual server, the port type of the second port number in the updated request response information, and triggering the starting of a communication fault self-healing process in the case of detecting that the port type is a first port type; wherein the first port type represents that the second port number is an invalid port number. In the technical scheme of the embodiment of the present disclosure, the virtual server detects the port type of the second port number in the updated information, and when it is detected that the port type is the first port type representing an invalid port number, the starting of the communication fault self-healing process is triggered. Without manual tedious troubleshooting, the invalid port number, which is a key factor that may cause communication failure, can be quickly and automatically detected, the efficiency of communication fault processing is improved, the timeliness and stability of communication are ensured, and the needs of the current rapid development of communication are effectively met.
[0049] Figure 2 The flowchart of another communication processing method provided by the embodiment of the present disclosure is shown. The technical scheme of the embodiment can be combined with other embodiments. For the same or related parts, the description of other embodiments can be combined, and details are not repeated here. As shown in Figure 2 the method of the embodiment can specifically comprise:
[0050] S210, receiving first request response information of a media communication request feedback sent by a first client for a second client; wherein the first request response information comprises a first port number of the first client.
[0051] S220, applying for a second port number through an application server to a media communication agent, updating the first port number in the first request response information as the second port number, and sending the updated request response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication agent and the second client.
[0052] S230, performing consistency comparison between the second port number and a preset identifier in the updated request response information through the virtual server, and triggering a communication fault self-healing process in a case where the second port number is determined to be the preset identifier.
[0053] The preset identifier can be used to indicate that the port type of the second port number is a first port type. The first port type can represent that the second port number is an invalid port number. In the embodiments of the present disclosure, the preset identifier can be set according to actual needs, which is not specifically limited here. The preset identifier can be a character, a numerical value, or a string, etc. For example, the preset identifier can be 0, 1, false, etc.
[0054] Specifically, an identifier representing that the port type of the second port number is the first port type, i.e., the preset identifier, is set in advance. Consistency comparison between the second port number and the preset identifier in the updated request response information is performed through the virtual server to obtain a comparison result. In a case where the comparison result is that the second port number is the preset identifier, it can be determined that the second port number in the updated request response information is an invalid port number. At this time, the communication fault self-healing process can be triggered. It can be understood that in a case where the comparison result is that the second port number is not the preset identifier, it can be determined that the second port number in the updated request response information is a valid port number.
[0055] The technical scheme of the embodiments of the present disclosure performs consistency comparison between the second port number and the preset identifier in the updated request response information through the virtual server, and triggers the communication fault self-healing process in a case where the second port number is determined to be the preset identifier, thereby realizing the function of automatically triggering the communication fault self-healing process.
[0056] Figure 3 Another flowchart of a communication processing method provided by the embodiments of the present disclosure is shown. The technical scheme of the present embodiment can be combined with other embodiments. For the same or related parts, the description of other embodiments can be combined, and will not be repeated here. For example, Figure 3As shown, the method of the embodiment can specifically include:
[0057] S310, in response to the media communication request of the second client, determining the first client in communication with the second client, and sending the media communication request to the virtual server.
[0058] Specifically, the media communication request initiated by the second client is received. Thus, the media communication request can be sent to the virtual server. In addition, the media communication request can be parsed to obtain a parsing result. Then, the first client in communication with the second client can be determined based on the parsing result.
[0059] S320, sending the media communication request to the application server through the virtual server, applying for a fourth port number to the media communication agent through the application server, updating the fifth port number of the second client in the media communication request to the fourth port number, and sending the updated media communication request to the first client.
[0060] The fourth port number can be used for information transmission between the first client and the media communication agent. The fifth port number can be understood as the port number of the second client. In the embodiment of the disclosure, the way of applying for the fourth port number to the media communication agent through the application server can be that an idle port number is applied for to the media communication agent through the application server. If the application is successful, the idle port number applied for can be used as the fourth port number for information transmission between the first client and the media communication agent. If the application fails, it can be determined that there is no available port number at present, and the application can be waited for a preset time period again. It can be understood that the available port number can be a port number in an idle state. In the embodiment of the disclosure, the preset time period can be set according to actual needs, which is not limited here. For example, 3 ms, 5 ms, 10 ms, etc.
[0061] Specifically, the media communication request is sent to the application server through the virtual server. Then, the fourth port number can be applied for to the media communication agent through the application server, the fifth port number of the second client in the media communication request can be determined, and the fifth port number of the second client in the media communication request can be replaced with the fourth port number to obtain an updated media communication request. Then, the updated media communication request can be sent to the first client, so that the first client determines the port number of the media communication agent to be interacted with according to the updated media communication request.
[0062] S330, receiving first request response information of a media communication request feedback sent by a first client for a second client; wherein the first request response information comprises a first port number of the first client.
[0063] S340, applying for a second port number from a media communication agent through an application server, updating the first port number in the first request response information as the second port number, and sending the updated request response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication agent and the second client.
[0064] S350, detecting a port type of the second port number in the updated request response information through the virtual server, and triggering a communication fault self-healing process in a case that the port type is detected as a first port type; wherein the first port type represents that the second port number is an invalid port number.
[0065] The technical scheme of the embodiment of the present disclosure, before receiving the first request response information of the media communication request feedback sent by the first client for the second client, determines the first client in communication with the second client in response to the media communication request of the second client, and sends the media communication request to the virtual server; the virtual server sends the media communication request to the application server, the application server applies for a fourth port number from the media communication agent, and updates a fifth port number of the second client in the media communication request as the fourth port number, and sends the updated media communication request to the first client; wherein the fourth port number is used for information transmission between the first client and the media communication agent. The technical scheme of the embodiment of the present disclosure realizes the function of sending the media communication request of the second client to the first client.
[0066] The embodiment of the present disclosure provides an optional embodiment of a communication processing method, and the specific implementation can be referred to the following embodiments. The same or similar technical features as the above embodiments will not be described here, and refer to Figure 4 , fixed phones and mobile phones communicate through a coal mine private network converged communication system. The coal mine private network converged communication system includes an IMS network element, an AS (application server), a virtual AS (virtual machine of the application server), and an audio / video agent.
[0067] On this communication architecture, the specific steps of the communication between the fixed phone and the mobile phone are as follows:
[0068] Step one, the fixed phone is used to initiate a voice communication request, and sends the voice communication request to the IMS network element.
[0069] It should be noted that the voice communication request is an INVITE request in the SIP protocol; wherein the INVITE request includes an SDP message, which describes the media capabilities supported by the fixed phone (such as voice encoding, voice stream port information, etc.). It should also be noted that the fixed phone refers to a fixed telephone.
[0070] Step two, the IMS network element, for receiving a voice communication request, and sending the request to the virtual AS, so as to transmit the voice communication request to the AS through the virtual AS. In this process, the virtual AS can record the media capability information of the fixed phone;
[0071] Step three, the AS, for applying for a voice stream transceiving port to the audio / video proxy, putting the applied audio / video stream port into an SDP message, and wrapping the INVITE request to deliver to the virtual AS.
[0072] Since the voice encodings adopted by the fixed phone and the mobile phone are different, the voice proxy needs to provide voice transcoding services, which are used as the audio stream port for the interaction between the audio / video proxy and the mobile phone.
[0073] Step four, the virtual AS records the INVITE request and associates the message with the message sent by the fixed phone in step 1 according to the calling and called numbers and the communication identifier, and transmits the message to the IMS system.
[0074] Step five, the IMS system sends the INVITE message to the called mobile phone
[0075] Step six, the called mobile phone sends a 183 (session in progress) response to the calling fixed phone after receiving the INVITE call request message; wherein the SDP message in the 183 message provides the media capabilities of the called mobile phone, including voice encoding, voice stream transceiving port, etc.
[0076] Step seven, the 183 response message returns to the virtual AS through the path of the INVITE, the virtual AS records the 183 message and associates the response with the previous information transmission message according to the calling and called numbers and the communication identifier, and transmits the 183 message to the AS; at this time, the AS applies for a voice stream transceiving port to the audio / video proxy, which is used as the voice stream port for the interaction between the audio / video proxy and the fixed phone.
[0077] Step eight, when the AS applies for a voice stream transceiving port to the audio / video proxy, the audio / video proxy fails, the AS fails to apply for an audio stream transceiving port, the audio transceiving port in the SDP of the 183 response message sent to the fixed phone is 0, and the AS re-sends the 183 response to the virtual AS;
[0078] Step nine, the virtual AS receives the 183 response, associates the response and the previous message according to the calling and called numbers and the communication identifier, and analyzes the 183 response message. If the port of the audio / video agent in the 183 response message is 0, the virtual AS fault processing flow can be triggered.
[0079] In the embodiments of the present disclosure, the virtual AS fault processing flow can specifically include the following steps. First, the audio / video agent is tested by assigning port 0 to determine whether the audio / video agent is faulty. If the test is successful (for example, the audio / video agent has recovered from the fault), the application port is filled into the audio port of the SDP message of the 183 response message. If the test fails, the virtual AS determines that the audio / video agent is faulty, and the virtual AS restarts the audio / video agent service process. After the audio / video agent process is restarted, the audio / video agent is set with the audio stream transceiving port extracted from the recorded INVITE message because the audio stream transceiving port for the AS application and the mobile phone interaction is cleared. Then, the virtual AS re-applies for the audio stream transceiving port of the audio / video agent and the fixed phone interaction, and fills the applied port into the SDP message of the 183 response. Then, the virtual AS sends the 183 response to other network elements of the IMS. After the 183 response passes through the IMS network elements and reaches the fixed phone, the fixed phone and the mobile phone perform normal voice communication through the subsequent 180 response flow, 200 response flow, and ACK flow.
[0080] In the technical scheme of the embodiments of the present disclosure, the virtual server detects the second port number and the port type in the updated information. When the first port type indicating an invalid port number is detected, the communication fault self-healing processing flow is triggered. The invalid port number, which is a key factor that may cause communication faults, can be automatically detected quickly without manual tedious troubleshooting. The self-healing flow is started in time, the efficiency of communication fault processing is improved, the timeliness and stability of communication are ensured, and the current demand for rapid development of communication is effectively met.
[0081] Figure 5 A structural schematic diagram of a communication processing device according to an embodiment of the present disclosure is provided. Figure 5As shown, the communication processing apparatus comprises a first module 410, a second module 420 and a third module 430. The first module 410 is configured to receive first request response information of a media communication request feedback sent by a first client to a second client, wherein the first request response information comprises a first port number of the first client. The second module 420 is configured to apply for a second port number from a media communication agent through an application server, update the first port number in the first request response information to the second port number, and send the updated request response information to a virtual server of the application server, wherein the second port number is used for information transmission between the media communication agent and the second client. The third module 430 is configured to detect the second port number in the updated request response information through the virtual server, and trigger a communication fault self-recovery processing procedure in a case where the second port number is detected as an invalid port number.
[0082] The technical scheme of the embodiment of the present disclosure receives first request response information of a media communication request feedback sent by a first client to a second client through the first module 410, wherein the first request response information comprises a first port number of the first client. The second module 420 applies for a second port number from a media communication agent through an application server, updates the first port number in the first request response information to the second port number, and sends the updated request response information to a virtual server of the application server, wherein the second port number is used for information transmission between the media communication agent and the second client. The third module 430 detects the port type of the second port number in the updated request response information through the virtual server, and triggers a communication fault self-recovery processing procedure in a case where the port type is detected as a first port type, wherein the first port type represents that the second port number is an invalid port number. In the technical scheme of the embodiment of the present disclosure, the virtual server detects the port type of the second port number in the updated information, and triggers the communication fault self-recovery processing procedure when the second port number is detected as the first port type representing an invalid port number. The invalid port number, which is a key factor that may cause communication failure, can be automatically detected quickly without manual tedious troubleshooting, and the self-recovery procedure is started in time, which improves the efficiency of communication fault processing, guarantees the timeliness and stability of communication, and effectively meets the needs of the current rapid development of communication.
[0083] In some embodiments of the present disclosure, the communication processing apparatus further comprises a fourth module. The fourth module is configured to send the updated request response information to the second client through the application server in a case where the port type is detected as a second port type, wherein the second port type represents that the second port number is a valid port number.
[0084] In some embodiments of the present disclosure, optionally, the communication processing apparatus further comprises a repetition detection module, which is configured to, before triggering the start of the communication fault self-healing process, perform again the operation of applying, by the application server, to the media communication agent for a second port number, updating the first port number in the first request response information as the second port number, and sending the updated request response information to the virtual server of the application server; and detecting, by the virtual server, the port type of the second port number in the updated request response information.
[0085] In some embodiments of the present disclosure, optionally, the third module 430 is configured to perform the operation of comparing the second port number in the updated request response information with a preset identifier by the virtual server, and triggering the start of the communication fault self-healing process in the case that the second port number is determined to be the preset identifier; wherein the preset identifier is used to indicate that the port type of the second port number is the first port type.
[0086] In some embodiments of the present disclosure, optionally, the communication fault self-healing process comprises one of the following:
[0087] applying, by the application server, to the media communication agent for a test port;
[0088] restarting, by the virtual server, the media communication agent;
[0089] applying, by the virtual server, to the media communication agent for a third port number for information transmission between the media communication agent and the second client.
[0090] In some embodiments of the present disclosure, optionally, the communication processing apparatus further comprises a fifth module, wherein the fifth module is configured to, in response to a media communication request of the second client, determine a first client in communication with the second client, and send the media communication request to the virtual server; send, by the virtual server, the media communication request to the application server, apply, by the application server, to the media communication agent for a fourth port number, update a fifth port number of the second client in the media communication request as the fourth port number, and send the updated media communication request to the first client; wherein the fourth port number is used for information transmission between the first client and the media communication agent.
[0091] In some embodiments of the present disclosure, optionally, the first client and the second client are mine communication devices, wherein the mine communication devices comprise uphole communication devices and / or downhole communication devices.
[0092] The communication processing apparatus provided in this disclosure can execute the communication processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0093] It is worth noting that the various units and modules included in the above-mentioned communication processing device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0094] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0095] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0096] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0097] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, and the like. The processor 11 performs various methods and processes described above, such as the communication processing method.
[0098] In some embodiments, the communication processing method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the read only memory (ROM) 12 and / or the communication unit 19. When the computer program is loaded onto the random access memory (RAM) 13 and executed by the processor 11, one or more steps of the communication processing method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the communication processing method by any other suitable means, such as by means of firmware.
[0099] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0100] Computer programs used to implement the communication processing method of the present disclosure can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed, implements the functions / operations specified in the flowcharts and / or the block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package, and partially on a remote machine or a server.
[0101] The embodiment of the present disclosure provides a computer readable storage medium, the computer readable storage medium stores computer instructions, the computer instructions are used for making a processor execute a communication processing method, the communication processing method comprises the following steps: receiving first request response information of a media communication request feedback sent by a first client to a second client; wherein the first request response information comprises a first port number of the first client; applying for a second port number through an application server to a media communication agent, updating the first port number in the first request response information to the second port number, and sending the updated request response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication agent and the second client; detecting the second port number in the updated request response information through the virtual server, and triggering a communication fault self-healing processing procedure in the case that the second port number is an invalid port number.
[0102] In the context of the present disclosure, a computer readable storage medium can be a tangible medium which can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium can be a machine readable signal medium. More specific examples of the machine readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disc read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0103] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0104] The systems and techniques described herein can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described herein), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), blockchain networks, and the Internet.
[0105] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, and solves the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.
[0106] In particular, the processes described above with reference to the flowcharts can be implemented as computer software programs in accordance with embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication unit 19, or installed from the storage unit 18, or installed from the ROM 12. When the computer program is executed by the processor 11, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0107] The embodiments of the present disclosure also provide a computer program product comprising a computer program which, when executed by a processor, implements the communication processing method according to any of the embodiments of the present disclosure.
[0108] Computer program products can be written in any one of a number of programming languages, including object oriented languages such as Java, Smalltalk, C++, or conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0109] It should be understood that the various forms of flow shown above can be re-ordered, added to, or have steps deleted. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the present disclosure are achieved, and are not limited herein.
[0110] The specific embodiments discussed above have been presented by way of example only and not limitation. It will be apparent to persons skilled in the art that various modifications, combinations, sub-combinations, and alternatives can be made to the specific embodiments without departing from the spirit and principles of the disclosure. Any such modifications, equivalents, alternatives, and combinations are intended to be included within the scope of the disclosure.
Claims
1. A communication processing method, characterized in that, include: Receive first request response information from the first client in response to a media communication request sent by the second client; wherein the first request response information includes the first port number of the first client; The application server requests a second port number from the media communication proxy, updates the first port number in the first request-response information to the second port number, and sends the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client; The virtual server detects the port type of the second port number in the updated request response information. If the port type is detected to be the first port type, the communication fault self-healing process is triggered. The first port type indicates that the second port number is an invalid port number.
2. The method according to claim 1, characterized in that, The method further includes: If the port type is detected to be the second port type, the updated request response information is sent to the second client through the application server; wherein, the second port can indicate that the second port number is a valid port number.
3. The method according to claim 1, characterized in that, Before triggering the self-healing process for communication failures, the method further includes: The process of requesting a second port number from the media communication proxy through the application server is executed again, updating the first port number in the first request-response information to the second port number, and sending the updated request-response information to the virtual server of the application server; the virtual server then detects the port type of the second port number in the updated request-response information.
4. The method according to claim 1, characterized in that, The step involves detecting the port type of the second port number in the updated request-response information through the virtual server. If the port type is detected to be the first port type, a communication fault self-healing process is triggered, including: The virtual server performs a consistency comparison between the second port number and the preset identifier in the updated request response information. If the second port number is determined to be the preset identifier, the communication fault self-healing process is triggered. The preset identifier is used to indicate that the port type of the second port number is the first port type.
5. The method according to claim 1, characterized in that, The communication fault self-healing process includes one of the following: The application server requests a test port from the media communication proxy. Restart the media communication agent via the virtual server; The virtual server requests a third port number from the media communication proxy for information transmission between the media communication proxy and the second client.
6. The method according to claim 1, characterized in that, Before receiving the first request response information from the first client in response to the media communication request sent by the second client, the method further includes: In response to the media communication request from the second client, a first client communicating with the second client is identified, and the media communication request is sent to the virtual server; The virtual server sends the media communication request to the application server, the application server requests a fourth port number from the media communication proxy, updates the fifth port number of the second client in the media communication request to the fourth port number, and sends the updated media communication request to the first client; wherein, the fourth port number is used for information transmission between the first client and the media communication proxy.
7. The method according to claim 1, characterized in that, The first client and the second client are mine communication devices, wherein the mine communication devices include surface communication devices and / or underground communication devices.
8. A communication processing device, characterized in that, The device includes: The first module is configured to receive first request response information from the first client in response to a media communication request sent by the second client; wherein the first request response information includes the first port number of the first client; The second module is used to request a second port number from the media communication proxy through the application server, update the first port number in the first request-response information to the second port number, and send the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client; The third module is used to detect the port type of the second port number in the updated request response information through the virtual server, and trigger the start of the communication fault self-healing process when the port type is detected to be the first port type; wherein, the first port type indicates that the second port number is an invalid port number.
9. An electronic device, characterized in that, Its features are, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the communication processing method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the communication processing method according to any one of claims 1-7.
Citation Information
Patent Citations
Communication method and device, and storage medium
CN113037540A
Network equipment fault processing method and system, electronic equipment and storage medium
CN119892606A
Configuration method and device for beam failure recovery, and communication system
WO2019134089A1