CN114710445A - Voice soft switching service method, device, system, electronic equipment and storage medium - Google Patents

Voice soft switching service method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114710445A
CN114710445A CN202210570449.6A CN202210570449A CN114710445A CN 114710445 A CN114710445 A CN 114710445A CN 202210570449 A CN202210570449 A CN 202210570449A CN 114710445 A CN114710445 A CN 114710445A
Authority
CN
China
Prior art keywords
task
execution
soft switch
target
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210570449.6A
Other languages
Chinese (zh)
Inventor
周大伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210570449.6A priority Critical patent/CN114710445A/en
Publication of CN114710445A publication Critical patent/CN114710445A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiment of the disclosure discloses a voice soft switch service method, a device, a system, an electronic device and a storage medium, wherein the method comprises the following steps: the grid server determines a task to be executed; the sidecar service node sends a task pulling request to the grid server; the grid server sends a target execution task corresponding to the voice soft switch node associated with the side car service node to the side car service node; the sidecar service node executes the target execution task; after the completion of the execution of the target execution task is detected, reporting a corresponding execution result to a grid server; and the grid server performs preset processing on the execution result. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the voice soft switch service, thereby avoiding the problems of monitoring and control failure, request delay, inaccurate data statistics, overlong call connection duration and the like caused by the dependence on the central service.

Description

Voice soft switching service method, device, system, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of voice soft switch service technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for voice soft switch service.
Background
In the voice soft switch request link, as the service is increased, the number of soft switch instances is increased rapidly, and the soft switch network structure is gradually complicated. In the prior art, the monitoring and control of the soft switch service are usually performed by a server side through remote detection by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a decentralized system to obtain routing data and then initiate a call, the processing mode is too dependent on central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and further the problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for a soft switch network, which is separated from a central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
Disclosure of Invention
The embodiment of the disclosure provides a voice soft switch service method, a device, a system, an electronic device and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a voice soft switch service method, which is applicable to a voice soft switch service grid system, where the voice soft switch service grid system includes a grid server, two or more voice soft switch nodes, and two or more sidecar service nodes associated with the voice soft switch nodes.
Specifically, the voice soft switch service method includes:
the grid server determines a task to be executed, wherein the task to be executed comprises one or more of the following elements: task content, task type, execution time requirement and execution target voice soft switch node information;
the sidecar service node sends a task pulling request to the grid server;
the method comprises the steps that a grid server responds to a task pulling request of a sidecar service node, and sends a target execution task corresponding to a voice soft switch node associated with the sidecar service node to the sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements;
the sidecar service node responds to the received target execution task and executes the target execution task; reporting a corresponding execution result to the grid server in response to detecting that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task;
and the grid server receives the execution result of the target execution task reported by the sidecar service node and performs preset processing on the execution result.
In a second aspect, the present disclosure provides a soft switch service method, which is applicable to a grid server in a soft switch service grid system, where the soft switch service grid system further includes two or more soft switch nodes and two or more sidecar service nodes correspondingly associated with the soft switch nodes.
Specifically, the soft switch service method includes:
determining a task to be executed, wherein the task to be executed comprises one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
in response to receiving a task pull request of a sidecar service node, sending a target execution task corresponding to a soft switch node associated with the sidecar service node to the sidecar service node so as to enable the sidecar service node to execute the target execution task, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements;
and receiving an execution result of the target execution task reported by the sidecar service node, and performing preset processing on the execution result, wherein the execution result comprises execution result data and an execution state of the target execution task.
In one implementation manner of the present disclosure, the determining a task to be executed includes:
receiving a task execution instruction sent by a control party, wherein the task execution instruction comprises task content, task type and execution time requirement;
determining an execution target soft switching node according to the task content and the task type;
and generating the task to be executed based on the task execution instruction and the information of the execution target soft switch node.
In an implementation manner of the present disclosure, after determining the task to be executed, the method further includes:
putting the task to be executed into a task queue corresponding to an execution target soft switch node of the task to be executed;
the method comprises the following steps that in response to receiving a task pulling request of a sidecar service node, a target execution task corresponding to a soft switch node associated with the sidecar service node is sent to the sidecar service node, and the method is implemented as follows:
and responding to a task pulling request received from a side car service node, determining a soft switch node associated with the side car service node, and sending one or more target execution tasks in a soft switch node task queue corresponding to the associated soft switch node to the side car service node.
In one implementation manner of the present disclosure, the method further includes:
receiving a task canceling instruction sent by a control party, wherein the task canceling instruction comprises canceling content and canceling time requirements;
determining a cancel target soft switch node according to the cancel content;
generating a task canceling command according to the task canceling command, sending the task canceling command to a sidecar service node associated with the canceling target soft switch node, so that the sidecar service node cancels the execution of the corresponding task according to the task canceling command, and returning a canceling execution result;
and receiving a cancel execution result sent by the associated sidecar service node, and executing preset operation on the cancel execution result, wherein the cancel execution result comprises current execution result data and/or an execution state.
In a third aspect, an embodiment of the present disclosure provides a soft switch service method, which is applicable to a sidecar service node in a soft switch service grid system, where the soft switch service grid system further includes a grid server, two or more soft switch nodes, and the sidecar service node is correspondingly associated with the soft switch node.
Specifically, the soft switch service method includes:
sending a task pulling request to a grid server;
in response to receiving a target performance task, performing the target performance task, wherein the target performance task includes one or more of the following elements: task content, task type and execution time requirements;
and reporting a corresponding execution result to the grid server in response to the detection that the target execution task is executed completely.
In one implementation manner of the present disclosure, the executing the target execution task includes:
generating a corresponding task thread according to the target execution task;
putting the task thread into a thread queue;
and executing the task thread according to the arrangement sequence of the threads in the thread queue.
In one implementation manner of the present disclosure, the method further includes:
in response to receiving a task canceling command sent by a grid server, determining a target task thread corresponding to a task to be canceled according to the task canceling command;
interrupting execution of the target task thread;
and generating an execution cancellation result, and reporting the execution cancellation result to the grid server, wherein the execution cancellation result comprises current execution result data and/or an execution state.
In a fourth aspect, an embodiment of the present disclosure provides a soft switch service method, which is applicable to a soft switch service grid system, where the soft switch service grid system includes a grid server, two or more soft switch nodes, and two or more sidecar service nodes correspondingly associated with the soft switch nodes.
Specifically, the soft switch service method includes:
the grid server determines a task to be executed, wherein the task to be executed comprises one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
the sidecar service node sends a task pulling request to the grid server;
the method comprises the steps that a grid server responds to a task pulling request of a sidecar service node and sends a target execution task corresponding to a soft switching node associated with the sidecar service node to the sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements;
the sidecar service node responds to the received target execution task and executes the target execution task; reporting a corresponding execution result to the grid server in response to detecting that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task;
and the grid server receives the execution result of the target execution task reported by the sidecar service node and performs preset processing on the execution result.
In a fifth aspect, the present disclosure provides a soft switch service apparatus, which is suitable for a grid server in a soft switch service grid system, where the soft switch service grid system further includes two or more soft switch nodes and two or more sidecar service nodes correspondingly associated with the soft switch nodes.
Specifically, the soft switch service apparatus includes:
a determining module configured to determine a task to be performed, wherein the task to be performed includes one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
a first sending module, configured to send, in response to receiving a task pull request of a sidecar service node, a target execution task corresponding to a softswitch node associated with the sidecar service node to the sidecar service node, so as to cause the sidecar service node to execute the target execution task, where the target execution task includes one or more of the following elements: task content, task type and execution time requirements;
and the processing module is configured to receive an execution result of the target execution task reported by the sidecar service node and perform preset processing on the execution result, wherein the execution result comprises execution result data and an execution state of the target execution task.
In a sixth aspect, an embodiment of the present disclosure provides a soft switch service apparatus, which is suitable for a sidecar service node in a soft switch service grid system, where the soft switch service grid system further includes a grid server, two or more soft switch nodes, and the sidecar service node is correspondingly associated with the soft switch node.
Specifically, the soft switch service apparatus includes:
a second sending module configured to send a task pull request to the grid server;
an execution module configured to execute a target execution task in response to receiving the target execution task, wherein the target execution task includes one or more of the following elements: task content, task type, and execution time requirements;
and the reporting module is configured to report a corresponding execution result to the grid server in response to detecting that the target execution task is executed completely.
In a seventh aspect, an embodiment of the present disclosure provides a soft switch service system, which is applicable to a soft switch service grid system, where the soft switch service grid system includes a first grid server, two or more first soft switch nodes, and two or more first sidecar service nodes correspondingly associated with the first soft switch nodes.
Specifically, the soft switch service system includes:
a first grid server configured to determine a task to be performed, wherein the task to be performed comprises one or more of the following elements: task content, task type, execution time requirement and execution target first soft switch node information; in response to receiving a task pull request of a first sidecar service node, sending a target execution task corresponding to a first soft switch node associated with the first sidecar service node to the first sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements; receiving an execution result of the target execution task reported by the first sidecar service node, and performing preset processing on the execution result;
a first sidecar service node configured to send a task pull request to a first grid server; in response to receiving a target execution task, executing the target execution task; and reporting a corresponding execution result to the first grid server in response to the detection that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task.
In an eighth aspect, the present disclosure provides an electronic device, including a memory and at least one processor, wherein the memory is configured to store one or more computer instructions, and wherein the one or more computer instructions are executed by the at least one processor to implement the method steps of the above method.
In a ninth aspect, the disclosed embodiments provide a computer-readable storage medium for storing computer instructions for the apparatus, which includes computer instructions for performing the method as described above.
In a tenth aspect, the disclosed embodiments provide a computer program product comprising computer programs/instructions, wherein the computer programs/instructions, when executed by a processor, implement the method steps of the above-described method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the technical scheme, in the voice soft switch service grid system, a corresponding sidecar service node is deployed for each voice soft switch node, so that the sidecar service node can replace the voice soft switch node to realize the execution of tasks and the transmission of corresponding data. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the voice soft switch service, thereby avoiding the problems of monitoring and control failure, request delay, inaccurate data statistics, overlong call connection duration and the like caused by the dependence on the central service.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects, and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments when taken in conjunction with the accompanying drawings. The following is a description of the drawings.
Fig. 1 shows a flow chart of a soft switch service method according to an embodiment of the present disclosure.
Fig. 2 shows a schematic structural diagram of a soft switch service grid system according to an embodiment of the present disclosure.
Fig. 3 shows a flow chart of a soft switch service method according to another embodiment of the present disclosure.
Fig. 4 shows a flowchart of a soft switch service method according to still another embodiment of the present disclosure.
Fig. 5 shows a flow chart of a voice soft switch service method according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of a soft switch service apparatus according to an embodiment of the present disclosure.
Fig. 7 shows a block diagram of a soft switch service apparatus according to another embodiment of the present disclosure.
Fig. 8 shows a block diagram of a soft switch service system according to an embodiment of the present disclosure.
Fig. 9 shows a block diagram of a voice soft switch service system according to an embodiment of the present disclosure.
Fig. 10 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
FIG. 11 is a block diagram of a computer system suitable for use in implementing a method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the present disclosure, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of the disclosed features, numbers, steps, behaviors, components, parts, or combinations thereof, and are not intended to preclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or combinations thereof may be present or added.
It should be further noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In the technical scheme provided by the embodiment of the disclosure, in a voice soft switch service grid system, a corresponding sidecar service node is deployed for each voice soft switch node, so that the sidecar service node can replace the voice soft switch node to implement task execution and corresponding data transmission. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the voice soft switch service, thereby avoiding the problems of monitoring and control failure, request delay, inaccurate data statistics, overlong call connection duration and the like caused by the dependence on the central service.
Fig. 1 shows a flowchart of a soft switch service method according to an embodiment of the present disclosure, as shown in fig. 1, the soft switch service method includes the following steps S101 to S103:
in step S101, a task to be executed is determined, wherein the task to be executed includes one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
in step S102, in response to receiving a task pull request of a sidecar service node, sending a target execution task corresponding to a soft switch node associated with the sidecar service node to the sidecar service node, so that the sidecar service node executes the target execution task, where the target execution task includes one or more of the following elements: task content, task type, and execution time requirements;
in step S103, receiving an execution result of the target execution task reported by the sidecar service node, and performing preset processing on the execution result, where the execution result includes execution result data and an execution state of the target execution task.
As mentioned above, in the voice soft switch request link, as the service increases, the number of soft switch instances increases rapidly, and the soft switch network structure becomes increasingly complex. In the prior art, the monitoring and control of the soft switch service are usually performed by a server side through remote detection by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a decentralized system to obtain routing data and then initiate a call, the processing mode is too dependent on central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and further the problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for a soft switch network, which is separated from a central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the above drawbacks, in this embodiment, a method for a soft switch service is proposed, in which a corresponding sidecar (sidecar) service node is deployed for each soft switch node in a soft switch service grid system, so that the sidecar service node can perform task execution and corresponding data transmission instead of the soft switch node. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the soft switch service, thereby avoiding the problems of invalid monitoring and control, delayed request, inaccurate data statistics, overlong call connection time and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the soft switch service method may be applied to a grid server located in a soft switch service grid system for monitoring and controlling soft switch services.
In an embodiment of the present disclosure, the soft switch service grid system refers to a grid (mesh) system for implementing and managing a voice soft switch service, and may also be considered as a voice soft switch service implemented in a grid structure, where the soft switch service grid system includes a grid server, two or more soft switch nodes for implementing voice soft switch, and two or more sidecar service nodes associated with the soft switch nodes; the grid server refers to a server in a grid structure, and can be a central grid server in the grid structure or other grid servers in the grid structure; the sidecar service node is correspondingly associated with the soft switch nodes, that is, each soft switch node is correspondingly provided with a sidecar service node, that is, each soft switch node and a sidecar service node are arranged on the same machine, wherein the communication between the sidecar service node and the corresponding associated soft switch node as well as between the sidecar service node and the grid server can be in a polling mode or a long connection mode, the sidecar service node can replace the soft switch node by virtue of the communication between the sidecar service node and the grid server to realize the execution of certain tasks and the transmission of corresponding data, such as data acquisition, heartbeat detection, soft switch registration, concurrent acquisition, network packet grabbing, network quality detection and other data plane tasks and data transmission, and call character string generation, data transmission, and the like, Control plane tasks such as local routing instruction updating and operation and maintenance instruction execution and data transmission, wherein the sidecar service node refers to a service node which is deployed on a machine to which the soft switch node belongs and can realize a sidecar function, and the sidecar function refers to a function of separating functions which belong to other nodes or application programs to form a single process. A schematic structural diagram of a soft switch service grid system according to an embodiment of the present disclosure is shown in fig. 2.
In addition to the grid server, the soft switch node and the sidecar service node corresponding to and associated with the soft switch node, the soft switch service grid system may further include a one-key query subsystem, an operation and maintenance release subsystem, an index calculation and data center subsystem, and the like, wherein the one-key query subsystem is configured to provide a release and control interface of a task execution instruction for a user and a query interface of link information query, the operation and maintenance release subsystem is configured to provide an operation and maintenance data release interface and an interface, and the index calculation and data center subsystem is configured to collect full link events for concurrent calculation and association, calculate index data, and provide an index query interface.
In an embodiment of the present disclosure, the task to be executed refers to a task that is generated according to an instruction of a control party and needs to be executed. Wherein the task to be executed may include one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information; the task content is used for indicating what the task to be executed needs to do; the execution time requirement is used for indicating when the task to be executed needs to be executed, for example, whether the task is executed immediately or executed regularly; the execution target soft switch node information refers to identification information of the soft switch node which needs to execute the task to be executed, and the like. If the task to be executed does not comprise a task type, determining the task type according to the task content; if the task to be executed does not include the execution time requirement, the task to be executed can be executed immediately by default; if the task to be executed does not include the information of the execution target soft switch node, the information of the execution target soft switch node can be determined according to the task content.
In an embodiment of the present disclosure, the task pull request refers to a request for obtaining a task that needs to be executed from the grid server.
In an embodiment of the present disclosure, the target execution task refers to a task that the sidecar service node requests to pull, needs to be executed by a softswitch node associated with the sidecar service node, and the sidecar service node may instead execute, where the target execution task includes one or more of the following elements: task content, task type, and execution time requirements.
In an embodiment of the present disclosure, the execution result refers to a result obtained after the sidecar service node executes the target execution task, where the execution result includes execution result data obtained after the target execution task is executed and an execution state of the target execution task at this time, for example, whether the target execution task is executed or not. As mentioned above, the communication between the sidecar service node and the grid server may be a polling method or a long connection method, and therefore, the grid server may obtain the execution result sent by the sidecar service node during polling or may obtain the execution result sent by the sidecar service node immediately.
In an embodiment of the present disclosure, the preset processing performed on the execution result may be, for example, storing and counting the execution result, or the like.
In the above embodiment, the grid server first determines the task to be executed; then after receiving a task pulling request of a sidecar service node, sending a target execution task corresponding to a soft switching node associated with the sidecar service node to the sidecar service node, so that the sidecar service node executes after receiving the target execution task, and reporting an obtained execution result to the grid server; and the grid server can perform preset processing on the execution result after receiving the execution result of the target execution task reported by the sidecar service node. The technical scheme that the sidecar service node replaces a soft switch node to realize the execution of tasks and the transmission of corresponding data can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the soft switch service, thereby avoiding the problems of monitoring and control failure, request delay, inaccurate data statistics, overlong call connection time and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the step S101, that is, the step of determining the task to be executed, may include the following steps:
receiving a task execution instruction sent by a control party, wherein the task execution instruction comprises task content, task type and execution time requirement;
determining an execution target soft switching node according to the task content and the task type;
and generating the task to be executed based on the task execution instruction and the information of the execution target soft switch node.
In this embodiment, the task to be executed is generated based on an instruction of the control party. Specifically, a task execution instruction including task content, task type and execution time requirement, which is sent by a controller, is received, where the controller may be a console, and the task execution instruction may be an instruction sent by a user via the console or an instruction generated by the console, where in order to adapt to multiple sets of soft switch execution operation and maintenance capabilities, the console is provided with an instruction template for executing mapping of different instructions for different soft switch platforms according to the same operation and maintenance operation, so as to implement external unification of operation and maintenance interfaces and facilitate user operation; then determining an execution target soft switching node which needs to execute the task according to the task content and the task type which are included in the task execution instruction; and finally, generating the task to be executed based on the task content, the task type and the execution time requirement which are included by the task execution instruction and the determined execution target soft switch node information.
In an embodiment of the present disclosure, after the step S101, that is, after the step of determining the task to be executed, the method may further include the following steps:
putting the task to be executed into a task queue corresponding to an execution target soft switch node of the task to be executed;
the method comprises the following steps that in response to receiving a task pulling request of a sidecar service node, a target execution task corresponding to a soft switch node associated with the sidecar service node is sent to the sidecar service node, and the method is implemented as follows:
and responding to a task pulling request received from a side car service node, determining a soft switch node associated with the side car service node, and sending one or more target execution tasks in a soft switch node task queue corresponding to the associated soft switch node to the side car service node.
In this embodiment, the grid server implements storage and distribution of tasks to be performed by means of a task queue. Specifically, the grid server firstly puts the task to be executed into a task queue corresponding to an execution target soft switch node which needs to execute the task, wherein the grid server configures a task queue for each soft switch node; and then after receiving a task pulling request of the sidecar service node, determining a soft switch node associated with the sidecar service node, and then sending one or more target execution tasks in a soft switch node task queue corresponding to the associated soft switch node to the sidecar service node. As mentioned above, the communication between the sidecar service node and the grid server may be in a polling manner or a long connection manner, and therefore, the grid server may obtain the task pull request sent by the sidecar service node during polling or may obtain the task pull request sent by the sidecar service node immediately.
In an embodiment of the present disclosure, the method may further include the steps of:
receiving a task canceling instruction sent by a control party, wherein the task canceling instruction comprises canceling content and canceling time requirements;
determining a cancel target soft switch node according to the cancel content;
generating a task canceling command according to the task canceling command, sending the task canceling command to a sidecar service node associated with the canceling target soft switch node, so that the sidecar service node cancels the execution of the corresponding task according to the task canceling command, and returning a canceling execution result;
and receiving a cancel execution result sent by the associated sidecar service node, and executing preset operation on the cancel execution result, wherein the cancel execution result comprises current execution result data and/or an execution state.
In the embodiment, if a control party sends a task canceling instruction comprising canceling content and canceling time requirements, determining a canceling target soft switch node needing to cancel a task according to the canceling content in the task canceling instruction; then generating a task canceling command according to the task canceling instruction, and sending the task canceling command to a sidecar service node associated with the canceling target soft switch node, so that the associated sidecar service node can cancel the execution of the corresponding task according to the task canceling command and return a canceling execution result comprising current execution result data and/or an execution state; after receiving the execution cancellation result sent by the associated sidecar service node, the grid server may perform a preset operation on the execution cancellation result, where the current execution result data refers to execution result data obtained when the task is cancelled, and the execution state refers to whether the task to be cancelled is cancelled. As mentioned above, the communication between the sidecar service node and the grid server may be in a polling manner or a long connection manner, and therefore, the grid server may obtain the cancellation execution result sent by the sidecar service node during polling or may obtain the cancellation execution result sent by the sidecar service node immediately.
Fig. 3 shows a flowchart of a soft switch service method according to another embodiment of the present disclosure, and as shown in fig. 3, the soft switch service method includes the following steps S301 to S303:
in step S301, a task pull request is sent to the mesh server;
in step S302, in response to receiving a target execution task, executing the target execution task, wherein the target execution task includes one or more of the following elements: task content, task type, and execution time requirements;
in step S303, in response to detecting that the target execution task is completely executed, reporting a corresponding execution result to the grid server.
As mentioned above, in the voice soft switch request link, as the service increases, the number of soft switch instances increases rapidly, and the soft switch network structure becomes increasingly complex. In the prior art, the monitoring and control of the soft switch service are usually performed by a server side through remote detection by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a decentralized system to obtain routing data and then initiate a call, the processing mode is too dependent on central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and further the problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for a soft switch network, which is separated from a central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the foregoing drawbacks, in this embodiment, a method for soft switch service is provided, where in a soft switch service grid system, a sidecar service node is deployed for each soft switch node, so that the sidecar service node can perform task execution and corresponding data transmission instead of the soft switch node. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the soft switch service, thereby avoiding the problems of invalid monitoring and control, delayed request, inaccurate data statistics, overlong call connection time and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the soft switch service method may be applied to a sidecar service node located in a soft switch service grid system, associated with a corresponding soft switch node, and deployed on the same machine as the associated soft switch node, instead of the soft switch node performing the related task.
In one embodiment of the present disclosure, a separate thread may be provided to detect whether the target task has been performed.
In the above embodiment, the sidecar service node sends a task pull request to the grid server in real time or at regular time; after the sidecar service node pulls a target execution task, executing the target execution task; and after detecting that the target execution task is executed completely, reporting the generated corresponding execution result to the grid server.
In an embodiment of the present disclosure, in the step S302, the step of executing the target execution task may include the following steps:
generating a corresponding task thread according to the target execution task;
putting the task thread into a thread queue;
and executing the task thread according to the arrangement sequence of the threads in the thread queue.
In this embodiment, the sidecar service node executes the task by means of a task thread. Specifically, the sidecar service node first generates a corresponding task thread according to the target execution task; then putting the task threads into a pre-configured thread queue, wherein when the task threads are put into the pre-configured thread queue, the task threads can be arranged according to the execution time requirement of the target execution task, so that the task threads with the execution time closer to the current time are executed earlier; and then executing the task thread according to the arrangement sequence of the threads in the thread queue.
In addition, it should be noted that, when the sidecar service node executes the task thread, it may need to communicate or transmit data with its associated soft switch node and other nodes to complete the task thread.
In an embodiment of the present disclosure, the method may further include the steps of:
in response to receiving a task canceling command sent by a grid server, determining a target task thread corresponding to a task to be canceled according to the task canceling command;
interrupting execution of the target task thread;
and generating an execution cancellation result, and reporting the execution cancellation result to the grid server, wherein the execution cancellation result comprises current execution result data and/or an execution state.
In the embodiment, after a task canceling command sent by a grid server is received, a target task thread corresponding to a task to be canceled is determined according to the task canceling command; and then executing interrupt operation on the target task thread, generating data including a current execution result and/or an execution state cancellation execution result, and reporting the cancellation execution result to the grid server.
In one embodiment of the present disclosure, in order to react to the task cancel command in time, a separate thread may be provided to detect the task cancel command sent by the grid server.
Technical terms and technical features related to the technical terms and technical features shown in fig. 3 and related embodiments are the same as or similar to those of the technical terms and technical features shown in fig. 1-2 and related embodiments, and for the explanation and description of the technical terms and technical features related to the technical terms and technical features shown in fig. 3 and related embodiments, reference may be made to the above explanation of the embodiment shown in fig. 1-2 and related embodiments, and no further description is provided here.
Fig. 4 shows a flowchart of a soft switch service method according to still another embodiment of the present disclosure, and as shown in fig. 4, the soft switch service method includes the following steps S401 to S405:
in step S401, the grid server determines a task to be executed, wherein the task to be executed includes one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
in step S402, the sidecar service node sends a task pull request to the grid server;
in step S403, in response to receiving a task pull request from a sidecar service node, the grid server sends a target execution task corresponding to a softswitch node associated with the sidecar service node to the sidecar service node, where the target execution task includes one or more of the following elements: task content, task type and execution time requirements;
in step S404, the sidecar service node executes the target execution task in response to receiving the target execution task; reporting a corresponding execution result to the grid server in response to detecting that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task;
in step S405, the grid server receives the execution result of the target execution task reported by the sidecar service node, and performs preset processing on the execution result.
As mentioned above, in the voice soft switch request link, as the service increases, the number of soft switch instances increases rapidly, and the soft switch network structure becomes increasingly complex. In the prior art, the monitoring and control of the soft switch service are usually performed by a server side through remote detection by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a decentralized system to obtain routing data and then initiate a call, the processing mode is too dependent on central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and further the problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for the soft switch network, which is separated from the central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the foregoing drawbacks, in this embodiment, a method for soft switch service is provided, where in a soft switch service grid system, a sidecar service node is deployed for each soft switch node, so that the sidecar service node can perform task execution and corresponding data transmission instead of the soft switch node. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the soft switch service, thereby avoiding the problems of invalid monitoring and control, delayed request, inaccurate data statistics, overlong call connection time and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the soft switch service method may be applied to a soft switch service grid system including a grid server, two or more soft switch nodes, and two or more sidecar service nodes correspondingly associated with the soft switch nodes, for monitoring and controlling soft switch services.
Technical terms and technical features related to the technical terms and technical features shown in fig. 4 and related embodiments are the same as or similar to those of the technical terms and technical features shown in fig. 1 to 3 and related embodiments, and for the explanation and description of the technical terms and technical features related to the technical terms and technical features shown in fig. 4 and related embodiments, reference may be made to the above explanation of the embodiment shown in fig. 1 to 3 and related embodiments, and no further description is provided here.
Fig. 5 shows a flowchart of a voice soft-switch service method according to an embodiment of the present disclosure, and as shown in fig. 5, the voice soft-switch service method includes the following steps S501-S505:
in step S501, the grid server determines a task to be executed, where the task to be executed includes one or more of the following elements: task content, task type, execution time requirement and execution target voice soft switch node information;
in step S502, the sidecar service node sends a task pull request to the grid server;
in step S503, in response to receiving a task pull request from a sidecar service node, the mesh server sends a target execution task corresponding to a voice soft switch node associated with the sidecar service node to the sidecar service node, where the target execution task includes one or more of the following elements: task content, task type, and execution time requirements;
in step S504, the sidecar service node executes the target execution task in response to receiving the target execution task; reporting a corresponding execution result to the grid server in response to detecting that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task;
in step S505, the grid server receives the execution result of the target execution task reported by the sidecar service node, and performs preset processing on the execution result.
As mentioned above, in the voice soft switch request link, as the service increases, the number of soft switch instances increases rapidly, and the soft switch network structure becomes increasingly complex. In the prior art, the monitoring and control of the soft switch service are usually performed by remote detection through a server by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a centralized system to obtain routing data and then initiate a call, the processing mode is too dependent on the central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for a soft switch network, which is separated from a central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the foregoing drawbacks, in this embodiment, a method for voice soft switch service is provided, where in a voice soft switch service grid system, a sidecar service node is deployed for each voice soft switch node, so that the sidecar service node can replace the voice soft switch node to implement task execution and corresponding data transmission. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the voice soft switch service, thereby avoiding the problems of monitoring and control failure, request delay, inaccurate data statistics, overlong call connection duration and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the voice soft switch service method may be applied to a voice soft switch service grid system for monitoring and controlling a voice soft switch service, the voice soft switch service grid system including a grid server, two or more voice soft switch nodes, and two or more sidecar service nodes correspondingly associated with the voice soft switch nodes.
Technical terms and technical features related to the technical terms and technical features shown in fig. 5 and related embodiments are the same as or similar to those of the technical terms and technical features shown in fig. 1 to 4 and related embodiments, and for the explanation and description of the technical terms and technical features related to the technical terms and technical features shown in fig. 5 and related embodiments, reference may be made to the above explanation of the embodiment shown in fig. 1 to 4 and related embodiments, and no further description is provided here.
The above-described scheme is explained and illustrated below using two practical application scenarios as examples.
Network packet capturing task scene
In the scene, a control console obtains network packet capturing parameters, such as calling and called information and time length related to network packet capturing, generates a task execution instruction and sends the task execution instruction to a grid server in a soft switch service grid system, the grid server determines a signaling media cluster to be accessed and sent out by means of network element configuration according to the received task execution instruction, namely, each soft switch node in the cluster is determined as an execution target soft switch node, then generates a network packet capturing task to be executed and puts the network packet capturing task into a task queue corresponding to the execution target soft switch node, after receiving a task pulling request sent by a sidecar service node associated with the execution target soft switch node, a target execution network packet capturing task corresponding to the execution target soft switch node is sent to the sidecar service node, and after the sidecar service node receives the target execution network packet capturing task, generating a corresponding network packet capturing thread, executing a network packet capturing Operation, directly sending a generated packet capturing file and an execution result to a grid server after the execution is finished, or uploading the generated packet capturing file to an Operation Support System (OSS), then sending an OSS file name and the execution result to the grid server, polling all task execution results by the grid server, collecting all execution result data, such as files or file names, that is, processing the execution result data, such as storing and counting the execution result data, and generating a download link based on the execution result data and sending the download link to a console for a user to download.
Second, local routing instruction updates task scene
In the scene, a grid server determines a soft switching node needing to update a local route, namely an execution target soft switching node, then generates a local route instruction updating task to be executed, puts the local route instruction updating task into a task queue corresponding to the execution target soft switching node, sends a target execution local route instruction updating task corresponding to the execution target soft switching node to a sidecar service after receiving a task pulling request sent by a sidecar service node associated with the execution target soft switching node, wherein the target execution local route instruction updating task comprises latest routing data successfully routed with a cluster, and a local route instruction converted by the soft switching node in the cluster, and the sidecar service node generates a corresponding local route instruction updating thread after receiving the target execution local route instruction updating task, and executes the local route instruction execution according to the latest routing data successfully routed with the cluster and the routing instruction converted by the soft switching node in the cluster And in specific execution, firstly, converting a local routing instruction according to the soft switching node in the cluster to degrade and switch the soft switching node associated with the local routing instruction into a local routing state, then updating the historical routing data of the soft switching node according to the latest successful routing data of routing with the same cluster, and after the execution is finished, sending the local routing instruction updating result to the grid server by the sidecar service node.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 6 shows a block diagram of a soft switch service device according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of the two. As shown in fig. 6, the soft switch service apparatus includes:
a determining module 601 configured to determine a task to be performed, wherein the task to be performed includes one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
a first sending module 602, configured to, in response to receiving a task pull request of a sidecar service node, send a target execution task corresponding to a softswitch node associated with the sidecar service node to the sidecar service node, so as to cause the sidecar service node to execute the target execution task, where the target execution task includes one or more of the following elements: task content, task type, and execution time requirements;
the processing module 603 is configured to receive an execution result of the target execution task reported by the sidecar service node, and perform preset processing on the execution result, where the execution result includes execution result data and an execution state of the target execution task.
As mentioned above, in the voice soft switch request link, as the service increases, the number of soft switch instances increases rapidly, and the soft switch network structure becomes increasingly complex. In the prior art, the monitoring and control of the soft switch service are usually performed by remote detection through a server by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a centralized system to obtain routing data and then initiate a call, the processing mode is too dependent on the central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for a soft switch network, which is separated from a central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the foregoing drawbacks, in this embodiment, a soft switch service apparatus is provided, where a corresponding sidecar service node is deployed for each soft switch node in a soft switch service grid system, so that the sidecar service node can perform task execution and corresponding data transmission instead of the soft switch node. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the soft switch service, thereby avoiding the problems of invalid monitoring and control, delayed request, inaccurate data statistics, overlong call connection time and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the soft switch service device may be implemented as a grid server located in a soft switch service grid system for monitoring and controlling soft switch services.
Fig. 7 shows a block diagram of a soft switch service apparatus according to another embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 7, the soft switch service apparatus includes:
a second sending module 701 configured to send a task pull request to the grid server;
an execution module 702 configured to execute a target execution task in response to receiving the target execution task, wherein the target execution task includes one or more of the following elements: task content, task type, and execution time requirements;
the reporting module 703 is configured to report, in response to detecting that the target execution task is executed completely, a corresponding execution result to the grid server.
As mentioned above, in the voice softswitch request link, as the service increases, the number of softswitch instances increases rapidly, and the softswitch network structure also becomes gradually complex. In the prior art, the monitoring and control of the soft switch service are usually performed by a server side through remote detection by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a decentralized system to obtain routing data and then initiate a call, the processing mode is too dependent on central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and further the problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for a soft switch network, which is separated from a central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the above drawbacks, in this embodiment, a soft switch service apparatus is provided, which deploys a corresponding sidecar service node for each soft switch node in a soft switch service grid system, so that the sidecar service node can perform task execution and corresponding data transmission instead of the soft switch node. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the soft switch service, thereby avoiding the problems of invalid monitoring and control, delayed request, inaccurate data statistics, overlong call connection time and the like caused by the dependence on the central service.
In one embodiment of the present disclosure, the soft switch service device may be implemented as a sidecar service node located in the soft switch service grid system, associated with the corresponding soft switch node, and deployed on the same machine as the associated soft switch node, instead of the soft switch node performing the related task.
Fig. 8 shows a block diagram of a soft switch service system according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 8, the soft switch service system includes:
a first grid server 801 configured to determine a task to be performed, wherein the task to be performed comprises one or more of the following elements: task content, task type, execution time requirement and execution target first soft switch node information; in response to receiving a task pull request of a first sidecar service node, sending a target execution task corresponding to a first soft switch node associated with the first sidecar service node to the first sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements; receiving an execution result of the target execution task reported by the first sidecar service node, and performing preset processing on the execution result;
a first sidecar service node 802 configured to send a task pull request to a first grid server; in response to receiving a target execution task, executing the target execution task; and reporting a corresponding execution result to the first grid server in response to the detection that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task.
As mentioned above, in the voice soft switch request link, as the service increases, the number of soft switch instances increases rapidly, and the soft switch network structure becomes increasingly complex. In the prior art, the monitoring and control of the soft switch service are usually performed by a server side through remote detection by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a decentralized system to obtain routing data and then initiate a call, the processing mode is too dependent on central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and further the problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for the soft switch network, which is separated from the central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the foregoing drawbacks, in this embodiment, a soft switch service system is provided, where a sidecar service node is deployed for each soft switch node in a soft switch service grid system, so that the sidecar service node can perform task execution and corresponding data transmission instead of the soft switch node. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the soft switch service, thereby avoiding the problems of invalid monitoring and control, delayed request, inaccurate data statistics, overlong call connection time and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the soft switch service system may be implemented as a soft switch service grid system including a grid server, two or more soft switch nodes, and two or more sidecar service nodes correspondingly associated with the soft switch nodes for monitoring and controlling soft switch services.
Fig. 9 shows a block diagram of a voice softswitch service system according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 9, the voice soft switch service system includes:
a second grid server 901 configured to determine a task to be executed, wherein the task to be executed includes one or more of the following elements: task content, task type, execution time requirement and second soft switch node information of executing target voice; in response to receiving a task pull request of a second sidecar service node, sending a target execution task corresponding to a voice second soft switch node associated with the second sidecar service node to the second sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements; receiving an execution result of the target execution task reported by the second sidecar service node, and performing preset processing on the execution result;
a second sidecar service node 902 configured to send a task pull request to a second grid server; in response to receiving a target execution task, executing the target execution task; and reporting a corresponding execution result to the second grid server in response to the detection of the completion of the execution of the target execution task, wherein the execution result comprises execution result data and an execution state of the target execution task.
As mentioned above, in the voice soft switch request link, as the service increases, the number of soft switch instances increases rapidly, and the soft switch network structure becomes increasingly complex. In the prior art, the monitoring and control of the soft switch service are usually performed by a server side through remote detection by means of an exposed http interface or an sip protocol, the routing service of the soft switch also needs to make a request in a decentralized system to obtain routing data and then initiate a call, the processing mode is too dependent on central service, once the central service is unavailable, the monitoring and control of the soft switch service is invalid, and due to the fact that the soft switch deployment is a network structure, if all soft switch nodes initiate requests to the same center, obvious request delay is generated, and further the problems of inaccurate data statistics and overlong call connection duration are caused. Therefore, a solution suitable for a soft switch network, which is separated from a central service and can effectively, timely and accurately monitor and control the soft switch service is needed.
In view of the foregoing drawbacks, in this embodiment, a voice soft switch service system is provided, where in a voice soft switch service grid system, a sidecar service node is deployed for each voice soft switch node, so that the sidecar service node can perform task execution and corresponding data transmission instead of the voice soft switch node. The technical scheme can realize the purpose of separating from the central service, and can effectively, timely and accurately monitor and control the voice soft switch service, thereby avoiding the problems of monitoring and control failure, request delay, inaccurate data statistics, overlong call connection duration and the like caused by the dependence on the central service.
In an embodiment of the present disclosure, the voice soft switch service system may be implemented as a voice soft switch service grid system for monitoring and controlling a voice soft switch service, and including a grid server, two or more voice soft switch nodes, and two or more sidecar service nodes correspondingly associated with the voice soft switch nodes.
Technical terms and technical features related to the above-described apparatus-related embodiments are the same as or similar to those mentioned in the above-described method-related embodiments, and for the explanation and description of the technical terms and technical features related to the above-described apparatus-related embodiments, reference may be made to the above-described explanation of the method-related embodiments, and no further description is given here.
The present disclosure also discloses an electronic device, fig. 10 shows a block diagram of the electronic device according to an embodiment of the present disclosure, and as shown in fig. 10, the electronic device 1000 includes a memory 1001 and a processor 1002; wherein,
the memory 1001 is used to store one or more computer instructions that are executed by the processor 1002 to implement the above-described method steps.
FIG. 11 is a block diagram of a computer system suitable for use in implementing a method according to an embodiment of the present disclosure.
As shown in fig. 11, the computer system 1100 includes a processing unit 1101, which can execute various processes in the above-described embodiments according to a program stored in a Read Only Memory (ROM) 1102 or a program loaded from a storage section 1108 into a Random Access Memory (RAM) 1103. In the RAM1103, various programs and data necessary for the operation of the computer system 1100 are also stored. The processing unit 1101, the ROM1102, and the RAM1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
The following components are connected to the I/O interface 1105: an input portion 1106 including a keyboard, mouse, and the like; an output portion 1107 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 1108 including a hard disk and the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, or the like. The communication section 1109 performs communication processing via a network such as the internet. A driver 1110 is also connected to the I/O interface 1105 as necessary. A removable medium 1111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1110 as necessary, so that a computer program read out therefrom is mounted into the storage section 1108 as necessary. The processing unit 1101 may be implemented as a CPU, a GPU, a TPU, an FPGA, an NPU, or other processing units.
In particular, the above described methods may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication portion 1109 and/or installed from the removable medium 1111.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (14)

1. A voice soft switch service method is suitable for a voice soft switch service grid system, the voice soft switch service grid system comprises a grid server, two or more voice soft switch nodes and two or more sidecar service nodes correspondingly associated with the voice soft switch nodes, and the method comprises the following steps:
the grid server determines a task to be executed, wherein the task to be executed comprises one or more of the following elements: task content, task type, execution time requirement and execution target voice soft switch node information;
the sidecar service node sends a task pulling request to the grid server;
the method comprises the steps that a grid server responds to a task pulling request of a sidecar service node, and sends a target execution task corresponding to a voice soft switch node associated with the sidecar service node to the sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements;
the sidecar service node responds to the received target execution task and executes the target execution task; reporting a corresponding execution result to the grid server in response to detecting that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task;
and the grid server receives the execution result of the target execution task reported by the sidecar service node and performs preset processing on the execution result.
2. A soft switch service method is suitable for grid servers in a soft switch service grid system, wherein the soft switch service grid system also comprises two or more soft switch nodes and two or more sidecar service nodes correspondingly associated with the soft switch nodes, and the method comprises the following steps:
determining a task to be executed, wherein the task to be executed comprises one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
in response to receiving a task pull request of a sidecar service node, sending a target execution task corresponding to a soft switch node associated with the sidecar service node to the sidecar service node so as to enable the sidecar service node to execute the target execution task, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements;
and receiving an execution result of the target execution task reported by the sidecar service node, and performing preset processing on the execution result, wherein the execution result comprises execution result data and an execution state of the target execution task.
3. The method of claim 2, the determining tasks to perform, comprising:
receiving a task execution instruction sent by a control party, wherein the task execution instruction comprises task content, task type and execution time requirement;
determining an execution target soft switching node according to the task content and the task type;
and generating the task to be executed based on the task execution instruction and the information of the execution target soft switch node.
4. The method of claim 2 or 3, after determining that a task is to be performed, further comprising:
putting the task to be executed into a task queue corresponding to an execution target soft switch node of the task to be executed;
the method comprises the following steps that in response to receiving a task pulling request of a sidecar service node, a target execution task corresponding to a soft switch node associated with the sidecar service node is sent to the sidecar service node, and the method is implemented as follows:
and responding to a task pulling request received from a side car service node, determining a soft switch node associated with the side car service node, and sending one or more target execution tasks in a soft switch node task queue corresponding to the associated soft switch node to the side car service node.
5. The method of claim 2 or 3, further comprising:
receiving a task canceling instruction sent by a control party, wherein the task canceling instruction comprises canceling content and canceling time requirements;
determining a cancel target soft switch node according to the cancel content;
generating a task canceling command according to the task canceling command, sending the task canceling command to a sidecar service node associated with the canceling target soft switch node, so that the sidecar service node cancels the execution of the corresponding task according to the task canceling command, and returning a canceling execution result;
and receiving a cancel execution result sent by the associated sidecar service node, and executing preset operation on the cancel execution result, wherein the cancel execution result comprises current execution result data and/or an execution state.
6. A soft switch service method is suitable for a sidecar service node in a soft switch service grid system, wherein the soft switch service grid system further comprises a grid server, two or more soft switch nodes, and the sidecar service node is correspondingly associated with the soft switch nodes, and the method comprises the following steps:
sending a task pulling request to a grid server;
in response to receiving a target performance task, performing the target performance task, wherein the target performance task includes one or more of the following elements: task content, task type, and execution time requirements;
and reporting a corresponding execution result to the grid server in response to the detection that the execution of the target execution task is completed.
7. The method of claim 6, the performing the target performance task, comprising:
generating a corresponding task thread according to the target execution task;
putting the task thread into a thread queue;
and executing the task thread according to the arrangement sequence of the threads in the thread queue.
8. The method of claim 6 or 7, further comprising:
in response to receiving a task canceling command sent by a grid server, determining a target task thread corresponding to a task to be canceled according to the task canceling command;
interrupting execution of the target task thread;
and generating an execution cancellation result, and reporting the execution cancellation result to the grid server, wherein the execution cancellation result comprises current execution result data and/or an execution state.
9. A soft switch service method adapted for a soft switch service grid system, the soft switch service grid system including a grid server, two or more soft switch nodes, and two or more sidecar service nodes associated with the soft switch nodes, comprising:
the grid server determines a task to be executed, wherein the task to be executed comprises one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
the sidecar service node sends a task pulling request to the grid server;
the grid server responds to a task pulling request received from a sidecar service node, and sends a target execution task corresponding to a soft switch node associated with the sidecar service node to the sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements;
the sidecar service node responds to the received target execution task and executes the target execution task; in response to the detection that the execution of the target execution task is completed, reporting a corresponding execution result to the grid server, wherein the execution result comprises execution result data and an execution state of the target execution task;
and the grid server receives the execution result of the target execution task reported by the sidecar service node and performs preset processing on the execution result.
10. A softswitch service apparatus adapted for a grid server in a softswitch service grid system, said softswitch service grid system further comprising two or more softswitch nodes and two or more sidecar service nodes correspondingly associated with said softswitch nodes, comprising:
a determining module configured to determine a task to be performed, wherein the task to be performed includes one or more of the following elements: task content, task type, execution time requirement and execution target soft switch node information;
a first sending module, configured to send, in response to receiving a task pull request of a sidecar service node, a target execution task corresponding to a softswitch node associated with the sidecar service node to the sidecar service node, so as to cause the sidecar service node to execute the target execution task, where the target execution task includes one or more of the following elements: task content, task type, and execution time requirements;
and the processing module is configured to receive an execution result of the target execution task reported by the sidecar service node and perform preset processing on the execution result, wherein the execution result comprises execution result data and an execution state of the target execution task.
11. A soft switch service apparatus adapted for a sidecar service node in a soft switch service grid system, wherein the soft switch service grid system further comprises a grid server, two or more soft switch nodes, and the sidecar service node is correspondingly associated with the soft switch node, comprising:
a second sending module configured to send a task pull request to the grid server;
an execution module configured to execute a target execution task in response to receiving the target execution task, wherein the target execution task includes one or more of the following elements: task content, task type and execution time requirements;
and the reporting module is configured to report a corresponding execution result to the grid server in response to detecting that the target execution task is executed completely.
12. A softswitch service system adapted for use in a softswitch service grid system, the softswitch service grid system including a first grid server, two or more first softswitch nodes, and two or more first sidecar service nodes correspondingly associated with the first softswitch nodes, comprising:
a first grid server configured to determine a task to be performed, wherein the task to be performed comprises one or more of the following elements: task content, task type, execution time requirement and execution target first soft switch node information; in response to receiving a task pull request of a first sidecar service node, sending a target execution task corresponding to a first soft switch node associated with the first sidecar service node to the first sidecar service node, wherein the target execution task comprises one or more of the following elements: task content, task type, and execution time requirements; receiving an execution result of the target execution task reported by the first sidecar service node, and performing preset processing on the execution result;
a first sidecar service node configured to send a task pull request to a first grid server; in response to receiving a target execution task, executing the target execution task; and reporting a corresponding execution result to the first grid server in response to the detection that the target execution task is executed completely, wherein the execution result comprises execution result data and an execution state of the target execution task.
13. An electronic device comprising a memory and at least one processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the at least one processor to implement the method steps of any one of claims 1-9.
14. A computer readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method steps of any of claims 1-9.
CN202210570449.6A 2022-05-24 2022-05-24 Voice soft switching service method, device, system, electronic equipment and storage medium Pending CN114710445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210570449.6A CN114710445A (en) 2022-05-24 2022-05-24 Voice soft switching service method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210570449.6A CN114710445A (en) 2022-05-24 2022-05-24 Voice soft switching service method, device, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114710445A true CN114710445A (en) 2022-07-05

Family

ID=82176830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210570449.6A Pending CN114710445A (en) 2022-05-24 2022-05-24 Voice soft switching service method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114710445A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115412383A (en) * 2022-08-25 2022-11-29 中国工商银行股份有限公司 Charging method, device, node, system and medium for containerized cloud computing resources
CN115514631A (en) * 2022-09-22 2022-12-23 浙江大学 Real-time interactive monitoring and analyzing method and device for data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140089260A1 (en) * 2012-09-27 2014-03-27 International Business Machines Corporation Workload transitioning in an in-memory data grid
US20210006662A1 (en) * 2019-07-04 2021-01-07 Five9, Inc. Systems and methods for utilizing http for telephony trunking between a provider and a consumer
CN113194029A (en) * 2021-05-08 2021-07-30 上海道客网络科技有限公司 Method, system, medium, and apparatus for automatically identifying and isolating service grid sidecar faults
CN113765965A (en) * 2020-08-21 2021-12-07 北京沃东天骏信息技术有限公司 Service grid system generation method and device and service grid system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140089260A1 (en) * 2012-09-27 2014-03-27 International Business Machines Corporation Workload transitioning in an in-memory data grid
US20210006662A1 (en) * 2019-07-04 2021-01-07 Five9, Inc. Systems and methods for utilizing http for telephony trunking between a provider and a consumer
CN113765965A (en) * 2020-08-21 2021-12-07 北京沃东天骏信息技术有限公司 Service grid system generation method and device and service grid system
CN113194029A (en) * 2021-05-08 2021-07-30 上海道客网络科技有限公司 Method, system, medium, and apparatus for automatically identifying and isolating service grid sidecar faults

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陶志等: "《微服务架构Service Mesh的设计与应用》", 《自动化技术与应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115412383A (en) * 2022-08-25 2022-11-29 中国工商银行股份有限公司 Charging method, device, node, system and medium for containerized cloud computing resources
CN115514631A (en) * 2022-09-22 2022-12-23 浙江大学 Real-time interactive monitoring and analyzing method and device for data

Similar Documents

Publication Publication Date Title
CN114710445A (en) Voice soft switching service method, device, system, electronic equipment and storage medium
WO2022179140A1 (en) Data processing method and system
CN109960634B (en) Application program monitoring method, device and system
US8645519B2 (en) Method for interacting messages based on simple network management protocol
US20070016674A1 (en) Information exchange system, management server, and method for reducing network load used in the same
CN103916481B (en) Method and device for processing data
US20070016673A1 (en) Information exchange system and management server, terminal unit, and method for reducing network load used in the same
US20220391256A1 (en) Non-transitory computer-readable storage medium, information processing apparatus, and multiplex control method
CN110445697B (en) Video big data cloud platform equipment access service method
JP5514040B2 (en) Operation management system, operation management method, and operation management apparatus
CN115834699A (en) Service call chain tracking implementation method and system
JP7348293B2 (en) Data processing methods and equipment
JP2013150042A (en) Network monitoring system
CN108600108A (en) A kind of port shake management method and system
CN112671914A (en) IOT (Internet of things) equipment communication method and system based on actor model
JPWO2009069763A1 (en) Call processing time measuring apparatus, call processing time measuring method, and call processing time measuring program
CN114422386B (en) Monitoring method and device for micro-service gateway
CN113873033B (en) Intelligent edge computing gateway platform with fault-tolerant function
JP2014230234A (en) Network management device and network management method
CN111464357A (en) Resource allocation method and device
CN112787868A (en) Information synchronization method and device
CN112714035A (en) Monitoring method and system
JPH10116257A (en) Decentralized media processing server, and communication network using the same
US20020042848A1 (en) Method of providing services in a network management system having an open system architecture and also a service object, a request object and a request manager therefor
CN115865651B (en) Data acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220705