CN116074364A - Signaling transmission method, device and system - Google Patents

Signaling transmission method, device and system Download PDF

Info

Publication number
CN116074364A
CN116074364A CN202111270600.6A CN202111270600A CN116074364A CN 116074364 A CN116074364 A CN 116074364A CN 202111270600 A CN202111270600 A CN 202111270600A CN 116074364 A CN116074364 A CN 116074364A
Authority
CN
China
Prior art keywords
signaling
transmission paths
server
transmission
transmission path
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
CN202111270600.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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111270600.6A priority Critical patent/CN116074364A/en
Publication of CN116074364A publication Critical patent/CN116074364A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A signaling transmission method, device and system belong to the technical field of communication. The method comprises the following steps: the server receives the first signaling sent by the first device through m first transmission paths between the server and the first device, and sends the first signaling to the second device through n second transmission paths between the server and the second device. Wherein at least one of m and n is greater than 1, the first signaling being signaling for establishing a traffic connection between the first device and the second device. The method and the device are beneficial to improving the reliability of signaling transmission, thereby improving the success rate of establishing service connection.

Description

Signaling transmission method, device and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a signaling transmission method, device, and system.
Background
The transmission of traffic generally includes signaling transmission and data transmission, and whether signaling is successful or not is a key to whether data is successful or not. In an actual network scenario, signaling transmission failure may be caused by unstable network quality (such as network packet loss, jitter, delay, etc.), thereby causing data transmission failure. Therefore, a signaling scheme is needed to improve the reliability of signaling.
Disclosure of Invention
The application provides a signaling transmission method, device and system. The technical scheme of the application is as follows:
in a first aspect, a signaling transmission method is provided, the method including: the server establishes m first transmission paths with the first equipment; the server establishes n second transmission paths with the second equipment; the server receives first signaling sent by a first device through the m first transmission paths, wherein the first signaling is signaling for establishing service connection between the first device and a second device; the server transmits the first signaling to the second device via the n second transmission paths. Wherein at least one of m and n is greater than 1, and m and n are both positive integers. The service connection is used for transmitting data of the target service.
According to the technical scheme, the server receives the first signaling sent by the first device through m first transmission paths between the server and the first device, and sends the first signaling to the second device through n second transmission paths between the server and the second device, at least one of m and n is larger than 1, so that redundant transmission of the first signaling is realized between at least one of the first device and the second device and the server, reliability of signaling transmission is improved, and success rate of establishing service connection is improved.
Optionally, the service connection is a call connection, and the service connection is used for transmitting call data.
Optionally, after the server sends the first signaling to the second device through n second transmission paths, the method further includes: the server receives second signaling sent by the first device through the m first transmission paths, wherein the second signaling is signaling for removing the service connection; the server transmits the second signaling to the second device over the n second transmission paths.
According to the technical scheme, the server receives the second signaling sent by the first device through the m first transmission paths between the server and the first device, and sends the second signaling to the second device through the n second transmission paths between the server and the second device, so that redundant transmission of the second signaling is realized between at least one device of the first device and the second device and the server, and reliability of signaling transmission is improved.
Optionally, the server sends the first signaling to the second device through n second transmission paths, including: for a first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission paths in the n second transmission paths, wherein k is greater than or equal to 1 and less than or equal to n, and k is an integer; the server transmits the first signaling to the second device over the k second transmission paths.
According to the technical scheme, through setting the corresponding relation between the m first transmission paths and the n second transmission paths, the server can perform signaling forwarding through the first transmission paths and the second transmission paths which correspond to each other.
Optionally, the first signaling sent by the first device through any one of the first transmission paths carries indication information of the second device; for a first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission path from among n second transmission paths, including: for a first signaling received through any one first transmission path, the server determines k second transmission paths corresponding to the first transmission path in the n second transmission paths according to a path association table, indication information of the first transmission path and indication information of second equipment carried by the first signaling; the path association table records the correspondence relationship among the indication information of the second device, the indication information of the m first transmission paths and the indication information of the n second transmission paths. The indication information of the first transmission path adopted by the server in determining the k second transmission paths may be carried in the first signaling or may be determined by the server through network sensing.
According to the technical scheme, the m first transmission paths and the n second transmission paths are corresponding through the setting of the path association table, so that the server can determine the first transmission paths and the second transmission paths which correspond to each other according to the path association table, and signal forwarding is carried out between the first equipment and the second equipment through the first transmission paths and the second transmission paths which correspond to each other.
Optionally, k >1, the server sends the first signaling to the second device through k second transmission paths, including: the server copies the first signaling to obtain k pieces of first signaling; the server transmits the k first signaling to the second device through the k second transmission paths, wherein each first signaling is transmitted through one second transmission path.
According to the technical scheme, when a certain first transmission path corresponds to a plurality of second transmission paths, the server copies the first signaling received through the certain first transmission path to obtain a plurality of first signaling, and the plurality of first signaling is sent to the second equipment through the plurality of second transmission paths corresponding to the certain first transmission path, so that redundant transmission of the first signaling between the server and the second equipment is realized, and reliability of the first signaling transmission is improved.
Optionally, p first transmission paths in the m first transmission paths correspond to one second transmission path in the n second transmission paths, m is greater than or equal to p >1, and p is an integer; the server sends the first signaling to the second device through the n second transmission paths, including: for p first signaling received through the p first transmission paths, the server transmits the p first signaling to the second device through the one second transmission path.
According to the technical scheme, when a plurality of first transmission paths correspond to one second transmission path, the server sends the first signaling received through the plurality of first transmission paths to the second device through the one second transmission path, redundant transmission of the first signaling between the first device and the server is achieved, and reliability of the first signaling transmission is improved.
Optionally, m=n, and the m first transmission paths are in one-to-one correspondence with the n second transmission paths.
Optionally, m and n are both greater than 1, the m first transmission paths include a main transmission path and an auxiliary transmission path, the n second transmission paths include a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting a critical message and a non-critical message, the auxiliary transmission path is used for transmitting a critical message, and the critical message includes first signaling; the main transmission paths of the m first transmission paths correspond to the main transmission paths of the n second transmission paths, and the auxiliary transmission paths of the m first transmission paths correspond to the auxiliary transmission paths of the n second transmission paths.
Optionally, the first device includes i first network cards, i is greater than or equal to 1 and less than or equal to m, and i is an integer; the second equipment comprises j second network cards, j is more than or equal to 1 and less than or equal to n, and j is an integer; the m first transmission paths are transmission paths between the i first network cards and the server, and each of the i first network cards is bound with at least one of the m first transmission paths; the n second transmission paths are transmission paths between the j second network cards and the server, and each of the j second network cards is bound with at least one of the n second transmission paths. For example, the i first network cards and the j second network cards respectively include default network cards, the main transmission paths in the m first transmission paths are bound with the default network cards in the i first network cards, and the main transmission paths in the n second transmission paths are bound with the default network cards in the j second network cards.
Optionally, i=m, and the i first network cards are bound with the m first transmission paths in a one-to-one correspondence manner. j=n, and the j second network cards are bound with the n second transmission paths in a one-to-one correspondence manner.
Optionally, the method further comprises: when the heartbeat signals sent by the first equipment through m first transmission paths are not received within the appointed duration, the server determines that the first equipment is offline; or when the heartbeat signals sent by the second device through the n second transmission paths are not received within the specified duration, the server determines that the second device is offline. Wherein, the first device being offline means that the transmission paths between the first device and the server are all disconnected, and if at least one transmission path between the first device and the server is not disconnected, the first device is online. Offline of the second device means that the transmission paths between the second device and the server are all broken, and if at least one transmission path between the second device and the server is not broken, the second device is online.
For example, when the server receives a heartbeat signal transmitted by the first device through at least one of the m first transmission paths within a specified period of time, the server determines that the first device is online. When the server does not receive the heartbeat signal sent by the first device through any one of the m first transmission paths within the specified duration, the server determines that the first device is offline. When the server does not receive the heartbeat signal sent by the first device through one of the m first transmission paths within a specified duration and receives the heartbeat signal sent by the first device through the other first transmission paths in the m first transmission paths, the server determines that the one first transmission path is disconnected, and the server determines that the first device is online because the server receives the heartbeat signal sent by the first device through the other first transmission paths. The same is true for the determination of whether the second device is offline.
Optionally, the first transmission path and the second transmission path are both transmission control protocol (transmission control protocol, TCP) paths. The TCP path is also referred to as a TCP connection.
Optionally, the m first transmission paths include TCP long connection paths, and the n second transmission paths include TCP long connection paths. For example, the main transmission path of the m first transmission paths is a TCP long connection path, and the main transmission path of the n second transmission paths is a TCP long connection path. The TCP long connection path is also referred to as a TCP long connection.
In a second aspect, a signaling transmission method is provided, which includes: the first equipment and the server establish m first transmission paths, wherein m is an integer greater than 1; the first device sends first signaling to the server through the m first transmission paths, wherein the first signaling is signaling for establishing a service connection between the first device and the second device.
According to the technical scheme, the first device sends the first signaling to the server through m first transmission paths between the first device and the server, and m is an integer larger than 1, so that redundant transmission of the first signaling is realized between the first device and the server, reliability of signaling transmission is improved, and success rate of establishing service connection is improved.
Optionally, the service connection is a call connection, and the service connection is used for transmitting call data.
Optionally, after the first device sends the first signaling to the server through the m first transmission paths, the method further includes: the first device sends a second signaling to the server through the m first transmission paths, wherein the second signaling is a signaling for removing the service connection.
According to the technical scheme, the first device sends the second signaling to the server through the m first transmission paths between the first device and the server, so that redundant transmission of the second signaling is realized between the first device and the server, and reliability of signaling transmission is improved.
Optionally, the m first transmission paths include a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting a key message and a non-key message, the auxiliary transmission path is used for transmitting the key message, and the key message includes first signaling; the first device establishes the m first transmission paths with the server, including: when a target application in the first device is started, the first device establishes a main transmission path with the server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service; and the first equipment establishes an auxiliary transmission path with the server when the target service is initiated. Wherein the initiation time of the target service is generally located after the initiation time of the target application.
According to the technical scheme, the first device establishes the main transmission path with the server when the target application in the first device is started, and establishes the auxiliary transmission path with the server when the target service is started, so that on one hand, the first device can be ensured to have an established signaling transmission path between the first device and the server when signaling needs to be transmitted to the server, and on the other hand, waste of network resources caused by the fact that more signaling transmission paths are established between the first device and the server can be avoided.
Optionally, an internet protocol (internet protocol, IP) address of the server carried by the set-up request sent by the first device to the server when the secondary transmission path is set up is the same as an IP address of the server carried by the set-up request sent by the first device to the server when the primary transmission path is set up, and a port number carried by the set-up request sent by the first device to the server when the secondary transmission path is set up is the same as a port number carried by the set-up request sent by the first device to the server when the primary transmission path is set up. Thereby ensuring that the secondary transmission path and the primary transmission path are located between the first device and the same server.
Optionally, the first device includes i first network cards, i is greater than or equal to 1 and less than or equal to m, and i is an integer; the m first transmission paths are transmission paths between the i first network cards and the server, and each of the i first network cards is bound with at least one of the m first transmission paths. For example, the i first network cards include a default network card, and the main transmission path of the m first transmission paths is bound with the default network card of the i first network cards.
Optionally, i=m, and the i first network cards are bound with the m first transmission paths in a one-to-one correspondence manner.
Optionally, the first transmission path is a TCP path.
Optionally, the m first transmission paths include a TCP long connection path, for example, a main transmission path of the m first transmission paths is a TCP long connection path.
In a third aspect, a signaling transmission method is provided, which includes: the second equipment establishes n second transmission paths with the server, wherein n is an integer greater than 1; the second device receives the first signaling sent by the server through the n second transmission paths, where the first signaling is signaling for establishing a service connection between the first device and the second device.
According to the technical scheme, the second device receives the first signaling sent by the server through n second transmission paths between the second device and the server, n is an integer greater than 1, so that redundant transmission of the first signaling is realized between the second device and the server, reliability of signaling transmission is improved, and success rate of establishing service connection is improved.
Optionally, the service connection is a call connection, and the service connection is used for transmitting call data.
Optionally, after the second device receives the first signaling sent by the server through n second transmission paths, the method further includes: and the second equipment receives second signaling sent by the server through the n second transmission paths, wherein the second signaling is signaling for removing service connection.
According to the technical scheme, the second device transmits the second signaling through the n second transmission paths between the second device and the server, so that redundant transmission of the second signaling is realized between the second device and the server, and reliability of signaling transmission is improved.
Optionally, the n second transmission paths include a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting a key message and a non-key message, the auxiliary transmission path is used for transmitting the key message, and the key message includes a first signaling; the second device establishes the n second transmission paths with the server, including: when a target application in the second device is started, the second device establishes a main transmission path with the server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service; and the second equipment establishes an auxiliary transmission path with the server when the target service is initiated. Wherein the initiation time of the target service is generally located after the initiation time of the target application.
According to the technical scheme, the second device establishes the main transmission path with the server when the target application in the second device is started, and establishes the auxiliary transmission path with the server when the target service is started, so that on one hand, the second device can be ensured to have an established signaling transmission path between the second device and the server when signaling needs to be transmitted to the server, and on the other hand, waste of network resources caused by the fact that more signaling transmission paths are established between the second device and the server can be avoided.
Optionally, the IP address of the server carried by the setup request sent by the second device to the server when the secondary transmission path is set up is the same as the IP address of the server carried by the setup request sent by the second device to the server when the primary transmission path is set up, and the port number carried by the setup request sent by the second device to the server when the secondary transmission path is set up is the same as the port number carried by the setup request sent by the second device to the server when the primary transmission path is set up. It is thereby ensured that the secondary transmission path and the primary transmission path are located between the second device and the same server.
Optionally, the second device includes j second network cards, j is greater than or equal to 1 and less than or equal to n, and j is an integer; the n second transmission paths are transmission paths between the j second network cards and the server, and each of the j second network cards is bound with at least one of the n second transmission paths. For example, the j second network cards include a default network card, and the main transmission path of the n second transmission paths is bound with the default network card of the j second network cards.
Optionally, j=n, and the j second network cards are bound with the n second transmission paths in a one-to-one correspondence manner.
Optionally, the second transmission path is a TCP path.
Optionally, the n second transmission paths include a TCP long connection path, for example, a main transmission path of the n second transmission paths is a TCP long connection path.
In a fourth aspect, a signalling device is provided, comprising means for performing the signalling method as provided in the first aspect or any of the alternatives of the first aspect described above.
In a fifth aspect, there is provided a signalling device comprising means for performing the signalling method as provided in the second or any alternative of the second aspect described above.
In a sixth aspect, a signaling device is provided, which includes respective modules for performing the signaling method provided in the third aspect or any optional manner of the third aspect.
The modules in the fourth to sixth aspects described above may be implemented based on software, hardware, or a combination of software and hardware, and the modules may be arbitrarily combined or divided based on specific implementations.
In a seventh aspect, a signaling transfer apparatus is provided, including a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory to cause the signalling means to perform the signalling method as provided in the first aspect or any of the alternatives of the first aspect described above.
In an eighth aspect, a signaling transfer apparatus is provided, including a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory to cause the signalling means to perform the signalling method as provided in the second aspect or any of the alternatives of the second aspect described above.
In a ninth aspect, a signaling transfer apparatus is provided, including a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory to cause the signalling means to perform the signalling method as provided in the third aspect or any of the alternatives of the third aspect described above.
In a tenth aspect, a signaling transmission system is provided, including a first device, a second device, and a server;
the server comprises the signaling means as provided in the fourth aspect, the first device comprises the signaling means as provided in the fifth aspect, and the second device comprises the signaling means as provided in the sixth aspect; or,
The server comprises the signalling means as provided in the seventh aspect above, the first device comprises the signalling means as provided in the eighth aspect above, and the second device comprises the signalling means as provided in the ninth aspect above.
In an eleventh aspect, there is provided a computer readable storage medium having stored therein a computer program which when executed implements the signaling method provided in any one of the above first aspect or the first aspect, or implements the signaling method provided in any one of the above second aspect or the second aspect, or implements the signaling method provided in any one of the above third aspect or the third aspect.
A twelfth aspect provides a computer program product comprising a program or code which, when executed, implements a method of signalling as provided in any of the above first aspect or the first aspect, or implements a method of signalling as provided in any of the above second aspect or the second aspect, or implements a method of signalling as provided in any of the above third aspect or the third aspect.
A thirteenth aspect provides a chip comprising programmable logic circuitry and/or program instructions, the chip being operative to implement a signaling method as provided in any of the above first aspect or the alternative of the first aspect, or to implement a signaling method as provided in any of the above second aspect or the alternative of the second aspect, or to implement a signaling method as provided in any of the above third aspect or the alternative of the third aspect.
The beneficial effects that this application provided technical scheme brought are:
according to the signaling transmission method, the signaling transmission device and the signaling transmission system, the first equipment and the server transmit the signaling through m first transmission paths between the first equipment and the server, the second equipment and the server transmit the signaling through n second transmission paths between the second equipment and the server, at least one of m and n is greater than 1, therefore redundant transmission of the signaling is realized between at least one of the first equipment and the second equipment and the server, and the signaling transmission reliability is improved. The signaling transmitted between the first device and the server and the signaling transmitted between the second device and the server can comprise signaling for establishing service connection, so that the success rate of establishing service connection can be improved, service experience is improved, and service robustness is guaranteed.
Drawings
Fig. 1 is a schematic structural diagram of a signaling transmission system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of another signaling transmission system according to an embodiment of the present application;
fig. 3 is a flowchart of a signaling transmission method provided in an embodiment of the present application;
fig. 4 is a flowchart of a method for a signaling server to send a first signaling to a second device through n second transmission paths according to an embodiment of the present application;
fig. 5 is a flowchart of another signaling transmission method provided in an embodiment of the present application;
fig. 6 is a flowchart of still another signaling transmission method provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a signaling transmission device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another signaling transmission device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of still another signaling transmission device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of still another signaling transmission device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in further detail below with reference to the accompanying drawings.
The transmission of traffic generally includes signaling and data transmission. The signaling may generally include signaling for setting up a traffic connection, signaling for controlling a data transmission process, signaling for tearing down a traffic connection, and so on. For example, for services requiring persistent interaction, such as download services, video services, telephony services, etc., the signaling may include signaling for establishing a service connection, signaling for controlling a data transmission process, and signaling for tearing down a service connection. For non-persistent interactive services such as instant messaging (instant messaging, IM), email, internet information retrieval, etc., the signaling may include signaling for controlling the data transfer process. For example, for voice over internet protocol (voice over internet protocol, voIP) traffic, etc., the signaling includes signaling for establishing a call connection, signaling for controlling the call process (e.g., signaling for keep-alive the call), signaling for tearing down the call connection, etc.
Whether signaling is successful or not is critical to whether data is successful or not. For example, in a call service, whether a signaling for establishing a call connection can be successfully transmitted is a key for successfully establishing a call connection between a calling device and a called device (i.e., a key for establishing a call initiated by the calling device and being able to be connected by the called device), and failure to establish the call connection may result in failure to transmit call data. In an actual network scenario, signaling transmission failure may be caused by unstable network quality (such as network packet loss, jitter, delay, etc.), thereby causing data transmission failure. For example, the failure of signaling transmission causes failure of call connection establishment, thereby causing failure of call data transmission.
Currently, when the signaling transmission fails, the sender of the signaling typically retransmits the signaling. However, retransmission tends to increase signaling transmission delay, affecting service experience. In addition, in case of poor network quality, the retransmission does not necessarily enable the signaling to be successfully transmitted to the receiving end. Therefore, a signaling scheme is needed to improve the reliability of signaling.
The embodiment of the application provides a signaling transmission method, a device and a system. The signaling transmission system comprises a first device, a second device and a server, wherein a plurality of transmission paths are established between at least one device of the first device and the second device and the server, the device which establishes a plurality of transmission paths with the server can send the same signaling to the server through the plurality of transmission paths, and the server can send the same signaling to the device through the plurality of transmission paths, so that the transmission of the same signaling through the plurality of transmission paths, namely, the redundant transmission of the same signaling is realized, and the reliability of signaling transmission is improved. For example, the device having multiple transmission paths established with the server may send signaling for establishing service connection to the server through the multiple transmission paths, so that the success rate of establishing the service connection is improved, the service experience is improved, and the robustness of the service is ensured due to higher reliability of the signaling transmission.
The technical scheme of the application is described below with reference to the accompanying drawings. First, an application scenario of the present application is described.
An application scenario of the embodiment of the application is a signaling transmission system, which includes a first device, a second device, and a server. The server may be used to transmit signaling between the first device and the second device. And a plurality of transmission paths are established between at least one of the first equipment and the second equipment and the server so as to carry out redundant transmission of the signaling through the plurality of transmission paths, thereby improving the reliability of the signaling transmission.
The transmission of traffic typically includes signaling, which is typically transmitted through a signaling server, and data, which is typically transmitted through a media server. The signaling server and the media server may be the same server or two different servers. For convenience of description, the server in the signaling transmission system is referred to as a signaling server, a transmission path between the first device and the server is referred to as a first transmission path, and a transmission path between the second device and the server is referred to as a second transmission path. It will be appreciated that the signalling server may be used for transmitting signalling only, or the signalling server may be used for transmitting both signalling and traffic data.
As an example of the present application, please refer to fig. 1, which shows a schematic structural diagram of a signaling transmission system provided in an embodiment of the present application. The signaling system comprises a first device 101, a second device 102 and a signaling server 103.
M first transmission paths are established between the first device 101 and the signaling server 103, n second transmission paths are established between the second device 102 and the signaling server 103, at least one of m and n is greater than 1, and m and n are both positive integers, so that a plurality of transmission paths can be established between at least one of the first device 101 and the second device 102 and the signaling server 103. Fig. 1 illustrates that m and n are equal to 2. That is, two first transmission paths are established between the first device 101 and the signaling server 103, and two second transmission paths are established between the second device 102 and the signaling server 103.
In this embodiment of the present application, for a signaling to be transmitted (for example, signaling a), the first device 101 sends the signaling a to the signaling server 103 through m first transmission paths between the first device 101 and the signaling server 103, and after the signaling server 103 receives the signaling a, the signaling server 103 sends the signaling a to the second device 102 through n second transmission paths between the signaling server 103 and the second device 102, thereby implementing redundant transmission of the signaling a between the first device 101 and the second device 102, and ensuring reliability of transmission of the signaling a. Similarly, for a signaling (for example, signaling B) to be transmitted, the second device 102 sends the signaling B to the signaling server 103 through n second transmission paths between the second device 102 and the signaling server 103, and after the signaling server 103 receives the signaling B, the signaling B is sent to the first device 101 through m first transmission paths between the signaling server 103 and the first device 101, so that redundant transmission of the signaling B between the second device 102 and the first device 101 is realized, and reliability of transmission of the signaling B is ensured.
In an alternative embodiment, the m first transmission paths and the n second transmission paths have a corresponding relationship. For example, one first transmission path corresponds to a plurality of second transmission paths, or a plurality of first transmission paths corresponds to one second transmission path, and when m=n, the m first transmission paths and the n second transmission paths may be in one-to-one correspondence. The signaling server 103 transmitting signaling a to the second device 102 through n second transmission paths may include: for the signaling a received through any one of the first transmission paths, the signaling server 103 determines at least one second transmission path corresponding to the first transmission path among the n second transmission paths, and transmits the signaling a to the second device 102 through the at least one second transmission path. Similarly, the signaling server 103 may send signaling B to the first device 101 through m first transmission paths, which may include: for the signaling B received through any one of the second transmission paths, the signaling server 103 determines at least one first transmission path corresponding to the second transmission path among the m first transmission paths, and transmits the signaling B to the first device 101 through the at least one first transmission path.
In an alternative embodiment, m and n are each greater than 1, the m first transmission paths include a primary transmission path and a secondary transmission path, and the n second transmission paths also include a primary transmission path and a secondary transmission path. The main transmission path and the auxiliary transmission path are used for transmitting key messages, and the main transmission path is also used for transmitting non-key messages. Critical messages include messages requiring high transmission delay, reliability, etc. such as signaling, and non-critical messages refer to messages other than critical messages. In this embodiment of the present application, the primary transmission paths in the m first transmission paths correspond to the primary transmission paths in the n second transmission paths, and the secondary transmission paths in the m first transmission paths correspond to the secondary transmission paths in the n second transmission paths. In other embodiments, the main transmission paths of the m first transmission paths may be set to correspond to the auxiliary transmission paths of the n second transmission paths, and the auxiliary transmission paths of the m first transmission paths may be set to correspond to the main transmission paths of the n second transmission paths.
In the embodiment of the present application, the first device 101 and the second device 102 respectively include at least one network card, the transmission path between the first device 101 and the signaling server 103 is a transmission path between the network card in the first device 101 and the signaling server 103, and the transmission path between the second device 102 and the signaling server 103 is a transmission path between the network card in the second device 102 and the signaling server 103. For convenience of description, the network card in the first device 101 is referred to as a first network card, and the network card in the second device 102 is referred to as a second network card. The first device may include i first network cards, where each of the i first network cards may be bound to at least one transmission path of the m first transmission paths, i is greater than or equal to 1 and less than or equal to m, and i is an integer. The second device may include j second network cards, where each of the j second network cards may be bound to at least one of the n second transmission paths, j is greater than or equal to 1 and less than or equal to n, and j is an integer. In an alternative embodiment, i=m, the i first network cards are bound in one-to-one correspondence with the m first transmission paths, j=n, and the j second network cards are bound in one-to-one correspondence with the n second transmission paths. For example, the i first network cards include default network cards, the main transmission paths in the m first transmission paths are bound with default network cards in the i first network cards, the j second network cards include default network cards, and the main transmission paths in the n second transmission paths are bound with default network cards in the j second network cards. When i is greater than 1, the i first network cards may include a data network card and a wireless local area network (wireless local area network, WLAN) network card, the WLAN network card may be a default network card, the main transmission paths of the m first transmission paths are bound with the WLAN network card, and the auxiliary transmission paths of the m first transmission paths are bound with the data network card. When j is greater than 1, the j second network cards comprise a data-capable network card and a WLAN network card, the WLAN network card can be a default network card, the main transmission paths in the n second transmission paths are bound with the WLAN network card, and the auxiliary transmission paths in the n second transmission paths are bound with the data network card.
In this embodiment of the present application, the m first transmission paths are all TCP paths, and the m first transmission paths include a TCP long connection path, for example, a main transmission path in the m first transmission paths is a TCP long connection path. The n second transmission paths are all TCP paths, and the n second transmission paths include a TCP long connection path, for example, a main transmission path of the n second transmission paths is a TCP long connection path. Optionally, the secondary transmission path is a TCP long connection path or a TCP short connection path. The TCP path is also called a TCP connection, the TCP long connection path is also called a TCP long connection, and the TCP short connection path is also called a TCP short connection, which is generally torn down immediately after the message is sent.
In the embodiment of the present application, the first device 101 and the second device 102 may be terminal devices having a data connection function, for example, a subscriber identity module (subscriber identity module, SIM) card, and/or a WLAN connection function. For example, the terminal device may be a cell phone, a netbook, a notebook, a tablet, a smartwatch, a smart camera, a personal digital assistant (personal digital assistant, PDA), a portable multimedia player (portable multimedia player, PMP), an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, or the like. The signaling server 103 may be a server, or a server cluster formed by a plurality of servers, or a cloud computing service center, and the signaling server 103 may include a plurality of micro services or micro service clusters, each micro service being configured to implement a part of the functions of the signaling server 103. Each micro-service may be a separate server, or the plurality of micro-services may be different functional modules in a server, which is not limited in this embodiment of the present application.
As another example of the present application, please refer to fig. 2, which illustrates a schematic structural diagram of another signaling transmission system provided in an embodiment of the present application. Fig. 2 illustrates that the first device 101 and the second device 102 are both mobile phones, and the signaling transmission system is taken as a call signaling system. The signaling server 103 includes a connector (connector) micro service 1, a connector micro service 2, a Tunnel (Tunnel) micro service, a terminal routing system (terminal router system, TRS) micro service, and the like, and the connector micro service 1 and the connector micro service 2 are respectively communicatively connected with the Tunnel micro service. Each of the connector microservice 1, the connector microservice 2, the Tunnel microservice, and the TRS microservice may be a separate server. Alternatively, the connector microservice 1, the connector microservice 2, the Tunnel microservice, and the TRS microservice are different functional modules in the same server. The m first transmission paths between the first device 101 and the signaling server 103 may be m first transmission paths between the first device 101 and the connector micro service 1, and the n second transmission paths between the second device 102 and the signaling server 103 may be n second transmission paths between the second device 102 and the connector micro service 2.
In the signaling transmission system shown in fig. 2, the signaling server 103 may receive the signaling a through m first transmission paths, and the connector micro service 1 may receive the signaling a through the m first transmission paths. The connector microservice 1 transmits the signaling a received through each first transmission path to the Tunnel microservice, and the signaling a is transmitted by the Tunnel microservice to the connector microservice 2. For the signaling a received through any one of the first transmission paths, the connector micro service 2 determines at least one second transmission path corresponding to the first transmission path among n second transmission paths between the connector micro service 2 and the second device 102, and sends the signaling a to the second device 102 through the at least one second transmission path. Similarly, the signaling server 103 may receive the signaling B through n second transmission paths, where the connector microserver 2 receives the signaling B through the n second transmission paths. The connector microservice 2 transmits the signaling B received through each second transmission path to the Tunnel microservice, and the signaling B is transmitted by the Tunnel microservice to the connector microservice 1. For the signaling B received through any one of the second transmission paths, the connector micro service 1 determines at least one first transmission path corresponding to the second transmission path among m first transmission paths between the connector micro service 1 and the first device 101, and sends the signaling B to the first device 101 through the at least one first transmission path.
It should be noted that the signaling transmission systems shown in fig. 1 and fig. 2 are only used as examples, and are not used to limit the technical solutions of the present application. In the implementation process, the number of terminal devices in the signaling transmission system and the number of micro services in the signaling server may be configured according to needs, which is not limited in the embodiment of the present application.
The above is an introduction to the application scenario of the present application, and the following describes the method embodiment of the present application.
Referring to fig. 3, a flowchart of a signaling transmission method provided in an embodiment of the present application is shown. The signaling method may be applied to a signaling system as shown in fig. 1 or fig. 2. The signaling transmission method includes the following S301 to S307.
S301, the first device establishes m first transmission paths with a signaling server.
The first device and the signaling server may establish m first transmission paths, where each of the m first transmission paths may be a TCP path, and the m first transmission paths include a TCP long connection path, and m is a positive integer. Optionally, m >1, where the m first transmission paths include a long TCP connection path, and may further include a short TCP connection path, or all the m first transmission paths are long TCP connection paths, which is not limited in the embodiment of the present application.
In this embodiment of the present application, the first device includes i first network cards, where the m first transmission paths are transmission paths between the i first network cards and the signaling server, each of the i first network cards is bound to at least one transmission path in the m first transmission paths, i is greater than or equal to 1 and less than or equal to m, and i is an integer. For example, i=m, and the i first network cards are bound with the m first transmission paths in a one-to-one correspondence manner. In an alternative embodiment, i >1 (e.g., i=2), where the i first network cards may include a data network card and a WLAN network card, m >1 (e.g., m=2), where the m first transmission paths may include a primary transmission path and a secondary transmission path, where the WLAN network card in the i first network cards is bound to the primary transmission path in the m first transmission paths, and where the data network card in the i first network cards is bound to the secondary transmission path in the m first transmission paths. Wherein the number of the main transmission paths is usually one, and the number of the auxiliary transmission paths is usually one or more. For example, m=2, the number of primary transmission paths and the number of secondary transmission paths are one.
In this embodiment of the present application, m first transmission paths established by the first device and the signaling server may be used for transmitting signaling related to the target service between the first device and the signaling server (or the first device and the signaling server establish m first transmission paths for transmitting signaling related to the target service between the first device and the signaling server), so that signaling related to the target service between the first device and the second device is conveniently transmitted, and the m first transmission paths include a main transmission path and an auxiliary transmission path. Thus, the first device establishing the m first transmission paths with the signaling server may comprise: the method comprises the steps that a first device establishes a main transmission path with a signaling server when a target application in the first device is started; the first device establishes an auxiliary transmission path with the signaling server when the target service is initiated. Wherein the target application is a target business related application. For example, the target service is a call service, the target application is a call application, and the calling device (e.g., the first device) initiates the target service through the target application in the calling device.
In an alternative embodiment, the first device detects, in real time or periodically, whether the target application in the first device is started. When a target application in the first device is started, the first device and the signaling server establish a main transmission path through TCP three-way handshake. After the target application is started, the first device detects whether the target application initiates a target service in real time or periodically, and when the target service is initiated, the first device and the signaling server establish an auxiliary transmission path through TCP three-way handshake.
As an example of the application, a user of the first device is referred to as a first user, and when the first user uses a target application in the first device, a start instruction of the target application may be triggered by touch control, voice control, or the like. The first device may detect in real time or periodically whether a start instruction triggered for the target application is received. When the first device receives a starting instruction triggered by the target application, the first device determines that the target application in the first device is started, and the first device and the signaling server establish a main transmission path through TCP three-way handshake. The first user can trigger an initiating instruction of the target service in a touch control mode, a voice control mode and the like. The first device may detect in real time or periodically whether an initiation instruction for the target service is received. When the first equipment receives an initiation instruction aiming at the target service, the first equipment determines that the target service is initiated, and the first equipment and the signaling server establish an auxiliary transmission path through TCP three-way handshake.
For example, in a call traffic scenario, the target application is a call application, the first device may be a calling device, and the first user may be a calling user. For the first device, the initiation instruction of the target service may be a call instruction triggered by a call key provided by the calling user through the call application. In one possible implementation manner, the indication information of the called device (for example, the second device) is stored in the first device, when the first device receives an initiation instruction for the target service, the first device sends signaling of the target service to the signaling server through the established main transmission path, and when the first device sends a first signaling (for example, a tunnel signaling) of the target service to the signaling server through the main transmission path, the first device establishes a secondary transmission path with the signaling server (for example, the first device sends an establishment request for establishing the secondary transmission path to the signaling server). In another possible implementation manner, the indication information of the called device (for example, the second device) is not stored in the first device, when the first device receives an initiation instruction for the target service, the first device sends a remote device query (remote device query) request to the signaling server to query the indication information of the called device (for example, the second device), and when the first device sends the remote device query request to the signaling server, the first device establishes a secondary transmission path with the signaling server (for example, the first device sends an establishment request for establishing the secondary transmission path to the signaling server). The indication information of the second device (for example, the called device) may be information such as communication identity (identity, ID) of the second device.
In an alternative embodiment, the first device and the signaling server establishing a transmission path (a primary transmission path or a secondary transmission path) through a TCP three-way handshake includes: the first device sends an establishment request to the signaling server to request to establish a transmission path with the signaling server; the signaling server establishes a transmission path with the first device after receiving the establishment request, and sends an establishment response to the first device after the transmission path is successfully established so as to inform the first device that the transmission path is successfully established; after receiving the setup response, the first device determines that the transmission path is successfully established, and sends an acknowledgement response to the signaling server to inform the signaling server that the first device has received the setup response. When the first device establishes a transmission path with the signaling server, an establishment request sent by the first device to the signaling server carries an IP address and a port number of the signaling server, for example, the establishment request includes an optional (option) field, and the IP address and the port number of the signaling server are both located in the optional field. In the embodiment of the application, the IP address of the signaling server carried in the setup request sent by the first device to the signaling server when the auxiliary transmission path is established is the same as the IP address of the signaling server carried in the setup request sent by the first device to the signaling server when the main transmission path is established, and the port number carried in the setup request sent by the first device to the signaling server when the auxiliary transmission path is established is the same as the port number carried in the setup request sent by the first device to the signaling server when the main transmission path is established, so that the main transmission path and the auxiliary transmission path can be ensured to be located between the first device and the same signaling server.
As an example of the present application, as shown in fig. 2, the signaling server 103 includes the connector micro service 1, and m first transmission paths between the first device 101 and the signaling server 103 are m first transmission paths between the first device 101 and the connector micro service 1. The first device 101 establishes m first transmission paths with the signaling server 103 for the first device 101 and the connector microservice 1. When the first device 101 establishes a transmission path with the signaling server 103, the IP address of the signaling server carried in the establishment request sent by the first device 101 to the signaling server 103 is the IP address of the connector microservice 1. In an alternative embodiment, the signaling server 103 further includes a TRS micro service, where the TRS micro service is configured to manage IP addresses of the respective connector micro services in the signaling server 103, and before the first device 101 establishes m first transmission paths with the connector micro service 1, the first device 101 sends an address acquisition request (e.g., a getout request) to the TRS micro service, and the TRS micro service sends, by means of polling, the IP address of the connector micro service 1 to the first device 101, so that the first device 101 can acquire the IP address of the connector micro service 1. After the first device 101 acquires the IP address of the connector micro service 1, when the target application in the first device 101 is started, the first device 101 establishes a main transmission path with the connector micro service 1 through a TCP three-way handshake according to the IP address of the connector micro service 1. When the target service is initiated, the first device 101 establishes an auxiliary transmission path with the connector micro service 1 through a TCP three-way handshake according to the IP address of the connector micro service 1. Wherein the TRS micro service transmits the IP address of the connector micro service 1 to the first device 101 by means of polling, for example, the TRS micro service polls the IP address of each connector micro service managed by the TRS micro service according to the received address acquisition request, and when receiving the address acquisition request transmitted by the first device 101, the TRS micro service polls the IP address of the connector micro service 1, so the TRS micro service transmits the IP address of the connector micro service 1 to the first device 101.
In this embodiment of the present application, for a certain device (for example, the first device), when initially establishing a transmission path with the signaling server, the device first sends an address acquisition request to the TRS micro-service to poll the IP address of one connector micro-service, and then establishes a transmission path with the connector micro-service according to the IP address of the connector micro-service. Within a predetermined period of time thereafter, if the transmission path between the device and the connector micro service is disconnected, the device may first attempt to reconnect to the connector micro service (i.e., reestablish the transmission path), and if the number of times the device attempts to reconnect to the connector micro service exceeds a predetermined number of times (e.g., 3), the device re-sends an address acquisition request to the TRS micro service to re-poll the IP address of one connector micro service and establish the transmission path with the re-polled connector micro service. Therefore, on one hand, the problem that the transmission path cannot be established successfully all the time due to the micro-service fault of a certain connector can be avoided, and on the other hand, the polling times can be reduced, and the processing flow is simplified.
In this embodiment of the present application, when the first device and the signaling server establish a main transmission path, an address acquisition request is first sent to the TRS micro-service to poll the IP address of one connector micro-service, and then the main transmission path is established with the connector micro-service according to the IP address of the connector micro-service. After the main transmission path is successfully established, when the target service is initiated, the first device establishes an auxiliary transmission path with the connector micro-service according to the IP address of the connector micro-service. If the secondary transmission path establishment fails, the first device may again attempt to establish a secondary transmission path with the connector microservice. When the number of times the first device attempts to establish the auxiliary transmission path with the connector micro service exceeds a preset number of times (for example, 3 times), the first device terminates the establishment of the auxiliary transmission path with the connector micro service. In the subsequent process, if the main transmission path fails, the first device sends an address acquisition request to the TRS micro service again to re-poll the IP address of one connector micro service, and establishes a main transmission path with the connector micro service according to the re-polled IP address of the connector micro service, and after the main transmission path is successfully established, the first device establishes an auxiliary transmission path with the connector micro service according to the re-polled IP address of the connector micro service. That is, whether the first device polls the TRS micro service for the IP address of the connector micro service is determined according to whether the main transmission path is established, not according to whether the auxiliary transmission path is required to be established, so that the main transmission path and the auxiliary transmission path can be ensured to be located between the first device and the same connector micro service.
In an alternative embodiment, each time the first device and the signaling server establish a first transmission path, the first device sends a login message to the signaling server through the first transmission path, so that the signaling server records the first transmission path. After the signaling server records the first transmission path, the first device may send a heartbeat signal to the signaling server over the first transmission path, so that the signaling server determines whether the first transmission path is disconnected, and determines whether the first device is online. For example, when the signaling server receives a heartbeat signal sent by the first device through at least one of the m first transmission paths within a specified period of time, the signaling server determines that the first device is online (i.e., the first device is not disconnected from the signaling server). When the signaling server does not receive the heartbeat signal sent by the first device through any one of the m first transmission paths within a specified duration, the signaling server determines that the first device is offline (i.e., the first device is disconnected from the signaling server). When the signaling server does not receive the heartbeat signal sent by the first device through one of the m first transmission paths within a specified duration and receives the heartbeat signal sent by the first device through the other first transmission paths in the m first transmission paths, the signaling server determines that the one first transmission path is disconnected, and at this time, the signaling server determines that the first device is online because the signaling server receives the heartbeat signal sent by the first device through the other first transmission paths. Optionally, the login message sent by the first device to the signaling server through each first transmission path carries information of the first transmission path, for example, carries role information (primary transmission path or secondary transmission path) of the first transmission path, so that the signaling server determines the role of the first transmission path.
As can be seen from S301, the primary transmission path and the secondary transmission path are established asynchronously. The first device first establishes a primary transmission path with the signaling server, and after the primary transmission path is established successfully, the first device sends a message (e.g., signaling) to the signaling server through the primary transmission path. In the process that the first device sends the message to the signaling server through the main transmission path, when the auxiliary transmission path is successfully established, the first device redundantly sends the message to the signaling server through the main transmission path and the auxiliary transmission path. Optionally, log dotting may be performed in the process that the first device sends the message to the signaling server through the primary transmission path, so as to determine when the secondary transmission path is active according to the log dotting, which is not limited in the embodiment of the present application.
S302, the second device establishes n second transmission paths with the signaling server.
The second device and the signaling server may establish n second transmission paths, where each of the n second transmission paths may be a TCP path, and the n second transmission paths include a long TCP connection path, and n is a positive integer. Optionally, n >1, where the n second transmission paths include a long TCP connection path, and may further include a short TCP connection path, or all the n second transmission paths are long TCP connection paths, which is not limited in the embodiment of the present application.
In this embodiment of the present application, the second device includes j second network cards, where the n second transmission paths are transmission paths between the j second network cards and the signaling server, each of the j second network cards is bound to at least one transmission path of the n second transmission paths, j is greater than or equal to 1 and less than or equal to n, and j is an integer. For example, j=n, and the j second network cards are bound with the n second transmission paths in a one-to-one correspondence manner. In an alternative embodiment, j >1 (e.g., j=2), where the j second network cards may include a data network card and a WLAN network card, n >1 (e.g., n=2), where the n second transmission paths may include a primary transmission path and a secondary transmission path, where the WLAN network card of the j second network cards is bound to the primary transmission path of the n second transmission paths, and where the data network card of the j second network cards is bound to the secondary transmission path of the n second transmission paths. Wherein the number of the main transmission paths is usually one, and the number of the auxiliary transmission paths is usually one or more. For example, n=2, the number of primary transmission paths and the number of secondary transmission paths are one.
In this embodiment of the present application, n second transmission paths established by the second device and the signaling server may be used for transmitting signaling of the target service between the second device and the signaling server (or the second device and the signaling server establish n second transmission paths for transmitting signaling related to the target service between the second device and the signaling server), so that signaling related to the target service between the second device and the first device is convenient to transmit, and the n second transmission paths include a main transmission path and an auxiliary transmission path. Thus, the second device establishing the n second transmission paths with the signaling server may comprise: the second device establishes a main transmission path with the signaling server when a target application in the second device is started; the second device establishes an auxiliary transmission path with the signaling server when the target service is initiated. Wherein the target application is a target business related application. For example, the target service is a call service, the target application may be a call application, and the calling device (e.g., the first device) initiates the target service through the target application in the calling device.
In an alternative embodiment, the second device detects in real time or periodically whether the target application in the second device is started. When the target application in the second device is started, the second device and the signaling server establish a main transmission path through TCP three-way handshake. After the target application is started, the second device detects whether the target application initiates the target service in real time or periodically, and when the target service is initiated, the second device and the signaling server establish an auxiliary transmission path through TCP three-way handshake.
As an example of the application, the user of the second device is referred to as a second user, and when the second user uses the target application in the second device, the second user may trigger a start instruction of the target application by means of touch control, voice control, or the like. The second device may detect in real time or periodically whether a start instruction triggered for the target application is received. When the second device receives a starting instruction triggered by the target application, the second device determines that the target application in the second device is started, and the second device and the signaling server establish a main transmission path through TCP three-way handshake. The second device may detect in real time or periodically whether an initiation instruction for the target service is received. When the second device receives an initiation instruction for the target service, the second device determines that the target service is initiated, and the second device and the signaling server establish an auxiliary transmission path through TCP three-way handshake.
For example, in a call service scenario, the target application is a call application, the second device may be a called device, and the second user may be a called user. For the second device, the initiation instruction of the target service may be a call instruction received by the second device from the first device. In one possible implementation, the initiation instruction of the target service for the second device is a first signaling (e.g. a tunnel create signaling) belonging to the target service received by the second device from the first device through a primary transmission path between the second device and the signaling server, i.e. when the second device receives the first instruction belonging to the target service from the first device through the primary transmission path between the second device and the signaling server, the second device establishes a secondary transmission path with the signaling server (e.g. the second device sends a setup request to the signaling server for establishing the secondary transmission path). In another possible implementation manner, for the second device, the initiation instruction of the target service is a call instruction (for example, a call push instruction) that the second device receives from the first device and belongs to the target service through other manners, that is, when the second device receives the call push instruction, the second device establishes a secondary transmission path with the signaling server (for example, the second device sends an establishment request for establishing the secondary transmission path to the signaling server).
In an alternative embodiment, the second device establishing a transmission path (a primary transmission path or a secondary transmission path) with the signaling server through a TCP three-way handshake includes: the second device sends an establishment request to the signaling server to request to establish a transmission path with the signaling server; the signaling server establishes a transmission path with the second device after receiving the establishment request, and sends an establishment response to the second device after the transmission path is successfully established so as to inform the second device that the transmission path is successfully established; after receiving the setup response, the second device determines that the transmission path is successfully established, and sends an acknowledgement response to the signaling server to inform the signaling server that the second device has received the setup response. When the second device establishes a transmission path with the signaling server, the second device carries the IP address and the port number of the signaling server in an establishment request sent to the signaling server, for example, the establishment request includes an optional field, and the IP address and the port number of the signaling server are both located in the optional field. In the embodiment of the application, the IP address of the signaling server carried in the setup request sent by the second device to the signaling server when the secondary transmission path is established is the same as the IP address of the signaling server carried in the setup request sent by the second device to the signaling server when the primary transmission path is established, and the port number carried in the setup request sent by the second device to the signaling server when the secondary transmission path is established is the same as the port number carried in the setup request sent by the second device to the signaling server when the primary transmission path is established, so that the primary transmission path and the secondary transmission path can be ensured to be located between the second device and the same signaling server.
As an example of the present application, as shown in fig. 2, the signaling server 103 includes the connector micro service 2, and n second transmission paths between the second device 102 and the signaling server 103 are n second transmission paths between the second device 102 and the connector micro service 2. The second device 102 establishes n second transmission paths with the signaling server 103 for the second device 102 and the connector microservice 2. When the second device 102 establishes a transmission path with the signaling server 103, the IP address of the signaling server carried in the establishment request sent by the second device 102 to the signaling server 103 is the IP address of the connector microservice 2. In an alternative embodiment, before the second device 102 establishes n second transmission paths with the connector micro service 2, the second device 102 may send an address acquisition request to the TRS micro service, where the TRS micro service sends the IP address of the connector micro service 2 to the second device 102 in a polling manner, so that the second device 102 can acquire the IP address of the connector micro service 2. After the second device 102 obtains the IP address of the connector microservice 2, when the target application in the second device 102 is started, the second device 102 establishes a main transmission path with the connector microservice 2 through a TCP three-way handshake according to the IP address of the connector microservice 2. When the target service is initiated, the second device 102 establishes an auxiliary transmission path with the connector microservice 2 through a TCP three-way handshake according to the IP address of the connector microservice 2. Wherein the TRS micro service transmits the IP address of the connector micro service 2 to the second device 102 by means of polling, for example, the TRS micro service polls the IP address of each connector micro service managed by the TRS micro service according to the received address acquisition request, and when receiving the address acquisition request transmitted by the second device 102, the TRS micro service polls the IP address of the connector micro service 2, so that the TRS micro service transmits the IP address of the connector micro service 2 to the second device 102.
In this embodiment of the present application, when the second device and the signaling server establish a main transmission path, an address acquisition request is first sent to the TRS micro-service to poll the IP address of one connector micro-service, and then the main transmission path is established with the connector micro-service according to the IP address of the connector micro-service. After the main transmission path is successfully established, when the target service is initiated, the second device establishes an auxiliary transmission path with the connector micro-service according to the IP address of the connector micro-service. If the secondary transmission path establishment fails, the second device may again attempt to establish a secondary transmission path with the connector microservice. When the number of times the second device attempts to establish the auxiliary transmission path with the connector micro service exceeds a preset number of times (for example, 3 times), the second device terminates the establishment of the auxiliary transmission path with the connector micro service. In the subsequent process, if the main transmission path fails, the second device sends an address acquisition request to the TRS micro service again to re-poll the IP address of one connector micro service, and establishes a main transmission path with the connector micro service according to the re-polled IP address of the connector micro service, and after the main transmission path is successfully established, the second device establishes an auxiliary transmission path with the connector micro service according to the re-polled IP address of the connector micro service. That is, whether the second device polls the TRS micro service for the IP address of the connector micro service is determined according to whether the main transmission path needs to be established, rather than whether the auxiliary transmission path needs to be established, so that the main transmission path and the auxiliary transmission path can be ensured to be located between the second device and the same connector micro service.
In this embodiment of the present application, each time the second device and the signaling server establish a second transmission path, the second device sends a login message to the signaling server through the second transmission path, so that the signaling server records the second transmission path. After the signaling server records the second transmission path, the second device may send a heartbeat signal to the signaling server over the second transmission path, so that the signaling server determines whether the second transmission path is disconnected, and determines whether the second device is online. For example, when the signaling server receives a heartbeat signal sent by the second device through at least one of the n second transmission paths within a specified period of time, the signaling server determines that the second device is online (i.e., the second device is not disconnected from the signaling server). When the signaling server does not receive the heartbeat signal sent by the second device through any one of the n second transmission paths within a specified duration, the signaling server determines that the second device is offline (i.e., the second device is disconnected from the signaling server). When the signaling server does not receive the heartbeat signal sent by the second device through one of the n second transmission paths within a specified duration and receives the heartbeat signal sent by the second device through the other second transmission paths in the n second transmission paths, the signaling server determines that the one second transmission path is disconnected, and at this time, the signaling server determines that the second device is online because the signaling server receives the heartbeat signal sent by the second device through the other second transmission paths. Optionally, the second device carries information of the second transmission path in a login message sent to the signaling server through each second transmission path, for example, carries role information (primary transmission path or secondary transmission path) of the second transmission path, so that the signaling server determines the role of the second transmission path.
As can be seen from S302, the primary transmission path and the secondary transmission path are established asynchronously. The second device first establishes a primary transmission path with the signaling server over which the second device sends a message (e.g., signaling) to the signaling server after the primary transmission path is established successfully. And when the secondary transmission path is successfully established in the process of sending the message to the signaling server through the primary transmission path, the second equipment sends the message to the signaling server through the primary transmission path and the secondary transmission path in a redundancy way. Optionally, the second device may perform log dotting during the process of sending the message to the signaling server through the primary transmission path, so as to determine when the secondary transmission path is active according to the log dotting, which is not limited in the embodiment of the present application.
After performing the above S301 to S302, the signaling server may establish correspondence between the m first transmission paths and the n second transmission paths. For example, the signaling server establishes a path association table, where the path association table includes a correspondence between indication information (e.g., path identifiers) of the m first transmission paths and indication information (e.g., path identifiers) of the n second transmission paths, and the correspondence between the indication information of the m first transmission paths and the indication information of the n second transmission paths indicates the correspondence between the m first transmission paths and the n second transmission paths. The path association table may further include device indication information, and the device indication information in the path association table may include indication information of the first device, indication information of the second device, and the like. The correspondence between the m first transmission paths and the n second transmission paths may be one-to-one, one-to-many, or many-to-one. For example, when m=n, the m first transmission paths and the n second transmission paths may be in one-to-one correspondence (i.e., the m first transmission paths and the n second transmission paths are in one-to-one correspondence). When m is equal to n, the m first transmission paths and the n second transmission paths may be in a one-to-many correspondence, or in a many-to-one correspondence, or one first transmission path may correspond to a plurality of second transmission paths in the n second transmission paths, or a plurality of first transmission paths may correspond to a plurality of second transmission paths in the n second transmission paths, and one first transmission path may also correspond to a second transmission path in the n second transmission paths. In an alternative embodiment, the main transmission paths of the m first transmission paths correspond to the main transmission paths of the n second transmission paths, and the auxiliary transmission paths of the m first transmission paths correspond to the auxiliary transmission paths of the n second transmission paths. For example, m=n=2, the m first transmission paths include one main transmission path and one auxiliary transmission path, the n second transmission paths include one main transmission path and one auxiliary transmission path, the main transmission path of the m first transmission paths corresponds to the main transmission path of the n second transmission paths, and the auxiliary transmission path of the m first transmission paths corresponds to the auxiliary transmission path of the n second transmission paths.
In the embodiment of the present application, the indication information of a certain device refers to various possible information that can indicate or locate to the device, which may be information of the device itself, or other information that can locate to the device, for example, user information logged in the device. By way of example, the device indication information may be a communication ID.
As an example of the present application, m=n, and the m first transmission paths are in one-to-one correspondence with the n second transmission paths. The path association table may be as shown in table 1 below:
TABLE 1
Figure BDA0003328653730000161
As another example of the present application, one of the m first transmission paths corresponds to a plurality of the n second transmission paths. The path association table may be as shown in table 2 below:
TABLE 2
Figure BDA0003328653730000171
As still another example of the present application, a plurality of the m first transmission paths corresponds to one of the n second transmission paths. The path association table may be as shown in table 3 below:
TABLE 3 Table 3
Figure BDA0003328653730000172
Figure BDA0003328653730000181
As yet another example of the present application, there may be one first transmission path among the m first transmission paths corresponding to a plurality of second transmission paths among the n second transmission paths, there may be a plurality of first transmission paths corresponding to one second transmission path among the n second transmission paths, and there may be one first transmission path corresponding to one second transmission path among the n second transmission paths. The path association table may be as shown in table 4 below:
TABLE 4 Table 4
Figure BDA0003328653730000182
As yet another example of the present application, m=n=2, the main transmission path of the m first transmission paths corresponds to the main transmission path of the n second transmission paths, and the auxiliary transmission path of the m first transmission paths corresponds to the auxiliary transmission path of the n second transmission paths. The path association table may be as shown in table 5 below or table 6 below:
TABLE 5
Figure BDA0003328653730000183
TABLE 6
Figure BDA0003328653730000184
Figure BDA0003328653730000191
In tables 1 to 6, communication ID1 is the instruction information of the first device, and communication ID2 is the instruction information of the second device. In tables 1 to 5, the path instruction information 11 to 1m sequentially indicates the first transmission paths 11 to 1m. The path instruction information 21 to 2n sequentially instructs the second transmission paths 21 to 2n. In table 5, the first transmission path 11 indicated by the path indication information 11 is a main transmission path, the first transmission path 12 indicated by the path indication information 12 is a sub transmission path, the second transmission path 21 indicated by the path indication information 21 is a main transmission path, and the second transmission path 22 indicated by the path indication information 22 is a sub transmission path. In table 6, the main indication information 11 indicates a main transmission path of two first transmission paths, the sub indication information 12 indicates a sub transmission path of the two first transmission paths, the main indication information 21 indicates a main transmission path of two second transmission paths, and the sub indication information 22 indicates a sub transmission path of the two second transmission paths.
As shown in fig. 2, the signaling server 103 includes a connector micro service 1 and a connector micro service 2, m first transmission paths are transmission paths between the first device 101 and the connector micro service 1 in the signaling server 103, and n second transmission paths are transmission paths between the second device 102 and the connector micro service 2 in the signaling server 103. The path association tables shown in tables 1 to 6 above may be stored in the connector microservice 1 and/or the connector microservice 2. For example, the path association tables shown in the above tables 1 to 6 are stored in the connector micro service 1 and in the connector micro service 2.
S303, the first device sends a first signaling to the signaling server through m first transmission paths, wherein the first signaling is used for establishing service connection between the first device and the second device.
Wherein the service connection is used for transmitting data of the target service. In a call service scenario, the service connection may be a call connection, the data of the target service is call data, and the first signaling is a call instruction sent by the first device in a call connection process between the first device and the second device. For example, the first device is a calling device and the first signaling may be a paging request.
The first device may send the first signaling to the signaling server through each of the m first transmission paths. When m >1, the first device redundantly transmits the first signaling to the signaling server through the m first transmission paths. The first device may send m pieces of first signaling to the signaling server in total through the m pieces of first transmission paths, where the first signaling sent by the first device to the signaling server through each first transmission path carries indication information of the second device (for example, a communication ID of the second device). Optionally, the first signaling sent by the first device to the signaling server through each first transmission path further carries indication information of the first transmission path, where the indication information of the first transmission path may be a path identifier of the first transmission path or other information capable of identifying the first transmission path. In the embodiment of the application, the path indication field may be extended in signaling to carry the indication information of the transmission path. For example, a control (control) field is typically included in the signaling, and a bit (bit) may be extended in the control field as a path indication field, and in the first signaling, indication information of the first transmission path may be located in the path indication field. In other embodiments, the indication information of the first transmission path may not be carried in the first signaling, which is not limited in the embodiments of the present application. Optionally, the first signaling further carries indication information of the first device (for example, a communication ID of the first device), so that a device that receives the first signaling determines a source of the first signaling.
In an alternative embodiment, the first device includes m processes, and the first device invokes the m processes and sends the first signaling to the signaling server through the m first transmission paths at the same time, and each process sends the first signaling to the signaling server through one first transmission path. Taking the first signaling sent by the first device to the signaling server through each first transmission path as an example to illustrate that the indication information of the first transmission path is carried, each process may first encapsulate the indication information of the corresponding first transmission path in the first signaling, and then send the first signaling through the corresponding first transmission path.
S304, the signaling server receives first signaling sent by the first device through m first transmission paths.
And the signaling server receives the first signaling sent by the first equipment through the m first transmission paths. The signaling server may receive m pieces of first signaling in total.
As shown in fig. 2, the m first transmission paths are transmission paths between the first device 101 and the connector microservice 1 in the signaling server 103, so in S304, the connector microservice 1 may receive m first signaling sent by the first device 101 through the m first transmission paths. After the connector micro service 1 receives the m pieces of first signaling, the m pieces of first signaling may be transmitted to the tunnel micro service, and the m pieces of first signaling may be transmitted to the connector micro service 2 by the tunnel micro service.
S305, the signaling server sends the first signaling to the second device through n second transmission paths.
After receiving the first signaling sent by the first device through the m first transmission paths, the signaling server may send the first signaling to the second device through the n second transmission paths. In this embodiment of the present application, the m first transmission paths and the n second transmission paths have a correspondence relationship, and for a first signaling received through each first transmission path, the signaling server may send the first signaling to the second device through the second transmission path corresponding to the first transmission path.
As an example, please refer to fig. 4, which shows a flowchart of a method for a signaling server to send a first signaling to a second device through n second transmission paths according to an embodiment of the present application. As shown in fig. 4, the method includes S3051 to S3052.
S3051, for a first signaling received through any one of the first transmission paths, a signaling server determines k second transmission paths corresponding to the first transmission paths in n second transmission paths, wherein k is greater than or equal to 1 and less than or equal to n, and k is an integer.
The signaling server may record that there are correspondence between the m first transmission paths and the n second transmission paths. The signaling server determines, for a first signaling received through any one of the first transmission paths, a second transmission path corresponding to the first transmission path according to the correspondence, and the signaling server may determine k second transmission paths corresponding to the first transmission path.
In an optional embodiment, a path association table is recorded in the signaling server, where the path association table includes a correspondence between the indication information of the m first transmission paths and the indication information of the n second transmission paths, and the path association table further includes device indication information, where the device indication information in the path association table includes indication information of the second device. The first device carries indication information of the second device in a first signaling sent to the signaling server by any one of the first transmission paths, and the signaling server can determine k second transmission paths corresponding to the first transmission paths in the n second transmission paths according to the path association table, the indication information of the first transmission paths and the indication information of the second device carried in the first signaling for the first signaling received by any one of the first transmission paths.
In an optional embodiment, the first device not only carries the indication information of the second device, but also carries the indication information of the first transmission path in the first signaling sent to the signaling server by each first transmission path, and the signaling server may determine, according to the indication information of the second device carried in the first signaling and the indication information of the first transmission path carried in the first signaling, the indication information of the second device and the indication information of the first transmission path in the path association table, and further determine the k second transmission paths according to the indication information of the k second transmission paths. In another optional embodiment, the first device carries the indication information of the second device in the first signaling sent to the signaling server by each first transmission path, but does not carry the indication information of the first transmission path, the signaling server may determine, through network awareness, the first transmission path for receiving the first signaling, and the signaling server determines, according to the indication information of the second device carried in the first signaling and the indication information of the first transmission path for receiving the first signaling perceived by the signaling server, the indication information of the second device and the indication information of the first transmission path in the path association table, and further determines the k second transmission paths according to the indication information of the k second transmission paths.
As a first example of the present application, it is assumed that the first signaling A1 received by the signaling server through the first transmission path 11 carries the indication information "communication ID2" of the second device, the first transmission path in which the signaling server receives the first signaling A1 is the first transmission path 11, the indication information of the first transmission path 11 is the "path indication information 11", and the path association table recorded by the signaling server is shown in table 1. The signaling server determines, in the path association table shown in table 1, that the indication information "communication ID2" of the second device and the indication information "path indication information 11" of the first transmission path 11 both correspond to the indication information "path indication information 21" of the second transmission path according to the indication information "path indication information 11" of the first transmission path 11 and the indication information "communication ID2" of the second device carried in the first signaling A1, and determines, in the signaling server, that the second transmission path corresponding to the first transmission path 11 is the second transmission path 21 according to the indication information of the second transmission path.
As a second example of the present application, it is assumed that the indication information "communication ID2" of the second device is carried in the first signaling A2 received by the signaling server through the first transmission path 12, the first transmission path in which the signaling server receives the first signaling A2 is the first transmission path 12, the indication information of the first transmission path 12 is "path indication information 12", and the path association table recorded by the signaling server is shown in table 2. The signaling server determines that the indication information of the second device, "communication ID2," and the indication information of the second transmission path corresponding to the indication information of the first transmission path 12, "path indication information 12," include "path indication information 23," path indication information 24, "and" path indication information 25, "in the path association table shown in table 2, according to the indication information of the first transmission path 12," path indication information 12, "and the indication information of the second device," communication ID2, "carried in the first signaling A2, so that the signaling server determines that the second transmission path corresponding to the first transmission path 12 includes the second transmission path 23, the second transmission path 24, and the second transmission path 25, according to the indication information of the second transmission path," path indication information 23, "" path indication information 24, "and" path indication information 25.
S3052, the signaling server sends the first signaling to the second device through the k second transmission paths.
When k=1, the signaling server transmits the first signaling to the second device through the one second transmission path. Referring to the first example in S3051, the signaling server transmits the first signaling A1 to the second device through the second transmission path 21.
When k >1, the signaling server replicates the first signaling to obtain k first signaling, and the signaling server sends the k first signaling to the second device through the k second transmission paths. Wherein the content of the k first signaling is the same, and each first signaling in the k first signaling is sent through one second transmission path in the k second transmission paths. Referring to the second example in S3051, the signaling server duplicates the first signaling A2 to obtain the same 3 first signaling A2, and transmits the 3 first signaling A2 to the second device through the second transmission path 23, the second transmission path 24, and the second transmission path 25, and each of the 3 first signaling A2 is transmitted through one of the second transmission path 23, the second transmission path 24, and the second transmission path 25.
The embodiment shown in fig. 4 is illustrated by taking one first transmission path corresponding to one or more second transmission paths. In the embodiment of the present application, there is also a case where a plurality of first transmission paths corresponds to one second transmission path. For this case, the signaling server may receive a plurality of first signaling through the plurality of first transmission paths, and the signaling server may transmit the plurality of first signaling to the second device through one of the second transmission paths corresponding to the plurality of first transmission paths. That is, the signaling server transmits a plurality of first signaling to the second device through one second transmission path. For example, p first transmission paths in the m first transmission paths correspond to one second transmission path in the n second transmission paths, m is greater than or equal to p >1, p is an integer, the signaling server receives p first signaling through the p first transmission paths, and for the p first signaling, the signaling server sends the p first signaling to the second device through one second transmission path corresponding to the p first transmission paths. The process of determining the second transmission path corresponding to each of the p first transmission paths by the signaling server may refer to S3051.
As an example of the present application, the path association table recorded by the signaling server is shown in table 3. The signaling server carries the indication information "communication ID2" of the second device in the first signaling A1 received through the first transmission path 11, where the indication information of the first transmission path 11 is "path indication information 11", the signaling server carries the indication information "communication ID2" of the second device in the first signaling A2 received through the first transmission path 12, the indication information of the first transmission path 12 is "path indication information 12", and the signaling server determines that the first transmission path 11 and the first transmission path 12 both correspond to the second transmission path 21 according to the path association table shown in table 3, so that the signaling server sends the first signaling A1 and the first signaling A2 to the second device through the second transmission path 21.
As shown in fig. 2, the signaling server 103 includes the connector micro service 1 and the connector micro service 2, m first transmission paths are transmission paths between the first device 101 and the connector micro service 1, n second transmission paths are transmission paths between the second device 102 and the connector micro service 2, and S305 may be performed by the connector micro service 2.
S306, the second device receives the first signaling sent by the signaling server through n second transmission paths.
The second device receives the first signaling sent by the signaling server through the n second transmission paths. The second device may receive w first signaling sent by the signaling server through the n second transmission paths, w being a larger value of m and n.
After the second device receives w first signaling, the w first signaling may be deduplicated. In an alternative embodiment, m first signaling sent by the first device to the signaling server carries the same sequence number, and in the process that the signaling server sends the first signaling to the second device, the sequence number carried in the first signaling is not modified, so that w first signaling received by the second device carries the same sequence number. The second device may de-duplicate the w first signaling according to the sequence numbers carried in the w first signaling. For example, the second device retains one of the w first signaling and discards the other w-1 first signaling. The second device may also perform deduplication on the w pieces of first signaling in other manners, which is not limited in this application.
S307, the first equipment and the second equipment establish service connection according to the first signaling.
Wherein the service connection is used for transmitting data of the target service. For example, in a telephony service scenario, the service connection is a telephony connection between a first device and a second device, the service connection being for transmitting data of a telephony service.
In this embodiment of the present application, the first device and the second device transmit signaling of the target service through a signaling server, and transmit data of the target service through a media server, where the media server and the signaling server may be the same server or different servers. The service connection includes a first connection between the first device and the media server and a second connection between the second device and the media server, the first connection being bound to the second connection. S307 may include: the first device establishes a first connection with the media server according to the first signaling, and the second device establishes a second connection with the media server according to the first command.
In an alternative embodiment, before the first device sends the first signaling, the first device applies for a communication identifier to the media server, and establishes a first connection with the media server according to the communication identifier. After the first connection is established successfully, the media server binds the first connection with the communication identifier applied by the first device. And then, when the first device sends the first signaling, the applied communication identifier can be carried in the first signaling. After the second device receives the first signaling, the second device establishes a second connection with the media server according to the communication identifier carried in the first signaling. After the second connection is established successfully, the media server binds the communication identifier with the second connection, so that the first connection and the second connection are bound through the communication identifier, and the establishment process of the service connection is completed. The first device may establish a first connection with the media server through a TCP three-way handshake, and the second device may establish a second connection with the media server through the TCP three-way handshake, and an establishing process of the first connection and an establishing process of the second connection are not described herein.
In an alternative embodiment, the first device, the second device and the signaling server are configured with a TCP retransmission timer (retransmission timer), and the timing duration of the TCP retransmission timer is the retransmission duration of the message. If the sending end of the message receives a response to the message within the retransmission time period, the sending end does not retransmit the message. If the sender of the message does not receive a response to the message within the retransmission duration, the sender considers that the message is lost, and the sender needs to retransmit the message. In the embodiment of the application, the retransmission duration of the TCP retransmission timer in the first device, the second device and the signaling server can be set smaller, so that when a certain message is lost, the sending end of the message can retransmit the message faster, the queuing time caused by the TCP retransmission timer is shortened, and the congestion of the message is relieved.
In summary, in the signaling transmission method provided in the embodiment of the present application, m first transmission paths are established between the first device and the signaling server, n second transmission paths are established between the second device and the signaling server, at least one of m and n is greater than 1, the first device sends the first signaling to the signaling server through the m first transmission paths, and the signaling server sends the first signaling to the second device through the n second transmission paths. Therefore, the redundant transmission of the first signaling is realized between at least one device of the first device and the second device and the signaling server, and the reliability of the signaling transmission is improved, so that the success rate of establishing the service connection is improved. Compared with the current signaling retransmission scheme, the signaling transmission scheme provided by the embodiment of the application shortens the transmission time delay of the signaling through the redundant transmission of the signaling, is not only suitable for signaling transmission scenes, but also suitable for other transmission scenes with higher transmission time delay, packet loss and reliability requirements, such as small traffic. The signaling scheme implements inverse multiplexing like multipath TCP (MPTCP) at the application layer without modifying the Linux kernel of the device. When the signaling transmission scheme is applied to a call service scene, the call completing rate and robustness of the call can be improved, for example, the second call completing (call completing is realized within 1 second) of the call can be realized, the call completing rate is improved by 0.4%, and the call dropping condition in the call is improved.
In an alternative embodiment, the first device and the signaling server tear down m first transmission paths, and the second device and the signaling server tear down n second transmission paths. For example, after the first device establishes the service connection with the second device, or after the first device and the second device complete the data transmission of the target service through the service connection, the first device and the signaling server tear down m first transmission paths, and the second device and the signaling server tear down n second transmission paths. Then as an alternative implementation, please refer to fig. 5, the signaling transmission method may further include the following steps S308 to S309 on the basis of fig. 3.
S308, the first equipment and the signaling server detach m first transmission paths.
The m first transmission paths include a main transmission path and an auxiliary transmission path. The first device may tear down the secondary transmission path with the signaling server when the target service is terminated, and the first device may tear down the primary transmission path with the signaling server when a target application in the first device is closed. The target application in the first device is closed, e.g., the first device is powered off, the target application in the first device is deleted, etc. The target service terminates, for example, the first device ends the call with the second device. In general, when the first device and the second device terminate the target service, at least one device of the first device and the second device may send a transmission end signaling (for example, BYE signaling) of the target service to the other device, where the first device and the signaling server tear down the auxiliary transmission path when sending the transmission end signaling of the target service to the second device, or where the first device and the signaling server tear down the auxiliary transmission path when receiving the transmission end signaling of the target service sent by the second device, which is not limited in the embodiment of the present application.
In an alternative embodiment, for any one of the m first transmission paths, the first device and the signaling server tear down the first transmission path through a TCP three-way handshake. For example, the first device sends a tear down request to the signaling server to request that the first transmission path be torn down with the signaling server; the signaling server receives the dismantling request, then tears down the first transmission path with the first device, and after the first transmission path is dismantled successfully, sends a dismantling response to the first device so as to inform the first device that the first transmission path is dismantled successfully; after receiving the tear-down response, the first device determines that the first transmission path is successfully torn down, and sends an acknowledgement response to the signaling server to inform the signaling server that the first device has received the tear-down response.
Each time the first device and the signaling server tear down a first transmission path, the signaling server may delete the indication information of the first transmission path from the path association table. In practical application, after each first transmission path is successfully established, if the signaling server senses that the first transmission path is disconnected (for example, the signaling server does not receive a heartbeat signal sent by the first transmission path within a specified duration), the signaling server deletes the indication information of the first transmission path from the path association table. Thus, the path association table can be dynamically updated, and the information of the disconnected transmission path is prevented from being stored in the path association table.
S309, the second equipment and the signaling server tear down n second transmission paths.
The implementation process of S309 may refer to S308, which is not described herein. And the same as the S308, each time the second device and the signaling server tear down a second transmission path, the signaling server deletes the indication information of the second transmission path from the path association table. In practical application, after each second transmission path is successfully established, if the signaling server senses that the second transmission path is disconnected (for example, the signaling server does not receive a heartbeat signal sent by the second transmission path within a specified duration), the signaling server deletes the indication information of the second transmission path from the path association table. In this way, the signaling server can dynamically update the path association table, so as to avoid storing the information of the disconnected transmission path in the path association table.
In the embodiment of the application, after the service connection between the first device and the second device is successfully established, the first device and the second device can transmit the data of the target service through the service connection. After the data transmission of the target service is completed, the first device and the second device can tear down the service connection to release the network resource. The process of removing the service connection may be triggered by the first device or may be triggered by the second device, which is described in this embodiment by taking the triggering of the first device as an example. Then as an alternative implementation, please refer to fig. 6, and the signaling transmission method further includes S310 to S314 on the basis of fig. 3. S310 to S314 may be located between S306 and S307.
And S310, the first equipment sends second signaling to the signaling server through m first transmission paths, wherein the second signaling is signaling for removing service connection.
S311, the signaling server receives second signaling sent by the first device through m first transmission paths.
S312, the signaling server sends second signaling to the second device through n second transmission paths.
S313, the second device receives second signaling sent by the signaling server through n second transmission paths.
The implementation procedures of S310 to S313 may refer to the implementation procedures of S303 to S306, and will not be described here again.
S314, the first equipment and the second equipment tear down the service connection according to the second signaling.
As described in S307, the service connection comprises a first connection between the first device and the media server and a second connection between the second device and the media server, so S311 comprises the first device tearing down the first connection with the media server according to the second signaling and the second device tearing down the second connection with the media server according to the second signaling.
In an alternative embodiment, the first connection and the second connection are both TCP connections, and the first device may tear down the first connection with the media server through a TCP three-way handshake before or after sending the second signaling. After the second device receives the second signaling, the second device removes the second connection with the media server through a TCP three-way handshake.
After the first device and the second device tear down the service connection, the first device may tear down m first transmission paths with the signaling server, and the second device may tear down n second transmission paths with the signaling server. The implementation process of the first device and the signaling server removing m first transmission paths may refer to S308, and the implementation process of the second device and the signaling server removing n second transmission paths may refer to S309, which are not described herein.
Apparatus embodiments of the present application are described below, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 7, a schematic structural diagram of a signaling transmission device 700 provided in an embodiment of the present application is shown, where the signaling transmission device 700 may be a server, or functional components in the server, for example, the server is a signaling server. Referring to fig. 7, the signaling transmission apparatus 700 includes: a setup module 710, a receive module 720, and a transmit module 730.
A building module 710, configured to build m first transmission paths with the first device, and build n second transmission paths with the second device, where at least one of m and n is greater than 1, and m and n are positive integers; the functional implementation of the setup module 710 may refer to the implementation procedures of S301 to S302 described above.
A receiving module 720, configured to receive, by using the server, a first signaling sent by a first device through m first transmission paths, where the first signaling is a signaling used to establish a service connection between the first device and a second device; the functional implementation of the receiving module 720 may refer to the implementation procedure of S304 described above.
A transmitting module 730, configured to transmit, by the server, the first signaling to the second device through n second transmission paths; the function implementation of the transmitting module 730 may refer to the implementation procedure of S305 described above.
Optionally, the service connection is a call connection.
Optionally, the receiving module 720 is further configured to receive, by using the server through m first transmission paths, a second signaling sent by the first device, where the second signaling is a signaling used for tearing down the service connection; the function implementation of the receiving module 720 may also refer to the implementation procedure of S311 described above.
The sending module 730 is further configured to send the second signaling to the second device through n second transmission paths. The function implementation of the transmitting module 730 may refer to the implementation procedure of S312 described above.
Optionally, a sending module 730 is configured to: for a first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission paths in n second transmission paths, wherein k is greater than or equal to 1 and less than or equal to n, and k is an integer; the server sends the first signaling to the second device over the k second transmission paths.
Optionally, the first signaling sent by the first device through any one of the first transmission paths carries indication information of the second device; the sending module 730 is specifically configured to: for a first signaling received through any one first transmission path, the server determines k second transmission paths corresponding to the first transmission path in the n second transmission paths according to a path association table, indication information of the first transmission path and indication information of second equipment carried by the first signaling; the path association table records the correspondence relationship among the indication information of the second device, the indication information of the m first transmission paths and the indication information of the n second transmission paths.
Optionally, k >1, the sending module 730 is specifically configured to: the server copies the first signaling to obtain k pieces of first signaling; the server transmits the k first signaling to the second device through the k second transmission paths, wherein each first signaling is transmitted through one second transmission path.
Optionally, p first transmission paths in the m first transmission paths correspond to one second transmission path in the n second transmission paths, m is greater than or equal to p >1, and p is an integer; a sending module 730, configured to send, for p first signaling received through the p first transmission paths, the p first signaling to the second device through the one second transmission path.
Optionally, m=n, and the m first transmission paths are in one-to-one correspondence with the n second transmission paths.
Optionally, m and n are both greater than 1, the m first transmission paths include a main transmission path and an auxiliary transmission path, the n second transmission paths include a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting a critical message and a non-critical message, the auxiliary transmission path is used for transmitting a critical message, and the critical message includes a first signaling; the main transmission paths of the m first transmission paths correspond to the main transmission paths of the n second transmission paths, and the auxiliary transmission paths of the m first transmission paths correspond to the auxiliary transmission paths of the n second transmission paths.
Optionally, the first device includes i first network cards, i is greater than or equal to 1 and less than or equal to m, and i is an integer;
the second equipment comprises j second network cards, j is more than or equal to 1 and less than or equal to n, and j is an integer;
the m first transmission paths are transmission paths between the i first network cards and the server, and each of the i first network cards is bound with at least one of the m first transmission paths;
the n second transmission paths are transmission paths between the j second network cards and the server, and each of the j second network cards is bound with at least one of the n second transmission paths.
Optionally, i=m, and the i first network cards are bound with the m first transmission paths in a one-to-one correspondence manner;
j=n, and the j second network cards are bound with the n second transmission paths in a one-to-one correspondence manner.
Optionally, the signaling transmission device 700 further includes: a determining module 740, configured to: when the heartbeat signals sent by the first equipment through m first transmission paths are not received within the appointed duration, the server determines that the first equipment is offline; or when the heartbeat signals sent by the second device through the n second transmission paths are not received within the specified duration, the server determines that the second device is offline.
Optionally, the first transmission path and the second transmission path are both TCP paths.
Optionally, the m first transmission paths and the n second transmission paths respectively include long TCP connection paths. For example, the main transmission path of the m first transmission paths is a TCP long connection path, and the main transmission path of the n second transmission paths is a TCP long connection path.
In summary, in the signaling transmission device provided in the embodiment of the present application, the server receives, through m first transmission paths between the server and the first device, the first signaling sent by the first device, and sends, through n second transmission paths between the server and the second device, the first signaling to the second device, where at least one of m and n is greater than 1, so that redundant transmission of the first signaling is implemented between at least one of the first device and the second device and the server, which is conducive to improving reliability of signaling transmission, thereby improving success rate of establishing service connection, improving service experience, and guaranteeing robustness of service.
Referring to fig. 8, a schematic structural diagram of another signaling transmission apparatus 800 provided in an embodiment of the present application is shown, where the signaling transmission apparatus 800 may be the first device in the foregoing embodiment or a functional component in the first device. Referring to fig. 8, the signaling transmission apparatus 800 includes: a setup module 810 and a send module 820.
A building module 810, configured to build m first transmission paths with the server by using the first device, where m is an integer greater than 1; the functional implementation of the setup module 710 may refer to the implementation procedure of S301 described above.
The sending module 820 is configured to send, by the first device, a first signaling to the server through m first transmission paths, where the first signaling is a signaling for establishing a service connection between the first device and the second device. The function implementation of the transmitting module 820 may refer to the implementation procedure of S303 described above.
Optionally, the service connection is a call connection.
Optionally, the sending module 820 is further configured to send, by the first device, a second signaling to the server through the m first transmission paths, where the second signaling is a signaling for tearing down the service connection. The function implementation of the transmitting module 820 may refer to the implementation procedure of S310 described above.
Optionally, the m first transmission paths include a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting a key message and a non-key message, the auxiliary transmission path is used for transmitting the key message, and the key message includes first signaling;
A building module 810 for: when a target application in the first device is started, the first device establishes a main transmission path with a server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service; and when the target service is initiated, the first equipment establishes an auxiliary transmission path with the server.
Optionally, the IP address of the server carried by the setup request sent by the first device to the server when the secondary transmission path is set up is the same as the IP address of the server carried by the setup request sent by the first device to the server when the primary transmission path is set up, and the port number carried by the setup request sent by the first device to the server when the secondary transmission path is set up is the same as the port number carried by the setup request sent by the first device to the server when the primary transmission path is set up.
Optionally, the first device includes i first network cards, i is greater than or equal to 1 and less than or equal to m, and i is an integer; the m first transmission paths are transmission paths between the i first network cards and the server, and each of the i first network cards is bound with at least one of the m first transmission paths.
Optionally, i=m, and the i first network cards are bound with the m first transmission paths in a one-to-one correspondence manner.
Optionally, the first transmission path is a TCP path.
Optionally, the m first transmission paths include a TCP long connection path. For example, the main transmission path of the m first transmission paths is a TCP long connection path.
In summary, in the signaling transmission device provided in the embodiment of the present application, the first device sends the first signaling to the server through m first transmission paths between the first device and the server, where m is greater than 1, so that redundant transmission of the first signaling is implemented between the first device and the server, which is conducive to improving reliability of signaling transmission, thereby improving success rate of establishing service connection, improving service experience, and guaranteeing robustness of service.
Referring to fig. 9, a schematic structural diagram of still another signaling transmission apparatus 900 provided in an embodiment of the present application is shown, where the signaling transmission apparatus 900 may be the second device in the foregoing embodiment or a functional component in the second device. Referring to fig. 9, the signaling transmission apparatus 900 includes: a setup module 910 and a receive module 920.
A building module 910, configured to build n second transmission paths with the server by using the second device, where n is an integer greater than 1; the functional implementation of the setup module 710 may refer to the implementation procedure of S302 described above.
The receiving module 920 is configured to receive, by the second device, the first signaling sent by the server through n second transmission paths, where the first signaling is signaling used to establish a service connection between the first device and the second device. The functional implementation of the receiving module 920 may refer to the implementation procedure of S306 described above.
Optionally, the service connection is a call connection.
Optionally, the receiving module 920 is further configured to receive, by the second device, a second signaling sent by the server through n second transmission paths, where the second signaling is a signaling for tearing down a service connection. The functional implementation of the receiving module 920 may refer to the implementation procedure of S313 described above.
Optionally, the n second transmission paths include a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting a key message and a non-key message, the auxiliary transmission path is used for transmitting the key message, and the key message includes a first signaling;
a building module 910 for: when a target application in the second device is started, the second device establishes a main transmission path with the server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service; and the second equipment establishes an auxiliary transmission path with the server when the target service is initiated.
Optionally, the IP address of the server carried by the setup request sent by the second device to the server when the secondary transmission path is established is the same as the IP address of the server carried by the setup request sent by the second device to the server when the primary transmission path is established, and the port number carried by the setup request sent by the second device to the server when the secondary transmission path is established is the same as the port number carried by the setup request sent by the second device to the server when the primary transmission path is established.
Optionally, the second device includes j second network cards, j is greater than or equal to 1 and less than or equal to n, and j is an integer; the n second transmission paths are transmission paths between the j second network cards and the server, and each of the j second network cards is bound with at least one of the n second transmission paths.
Optionally, j=n, and the j second network cards are bound with the n second transmission paths in a one-to-one correspondence manner.
Optionally, the second transmission path is a TCP path.
Optionally, the n second transmission paths include a TCP long connection path. For example, the main transmission path of the n second transmission paths is a TCP long connection path.
In summary, in the signaling transmission device provided in the embodiment of the present application, the second device receives, through n second transmission paths between the second device and the server, the first signaling sent by the server, where n is greater than 1, so that redundant transmission of the first signaling is implemented between the second device and the server, which is conducive to improving reliability of signaling transmission, thereby improving success rate of establishing service connection, improving service experience, and guaranteeing robustness of service.
Referring to fig. 10, a schematic structural diagram of still another signaling transmission apparatus 1000 provided in an embodiment of the present application is shown, where the signaling transmission apparatus 1000 may be a first device, a second device or a server in any of the foregoing embodiments. Referring to fig. 10, the signaling device 1000 includes a processor 1002, a memory 1004, a communication interface 1006, and a bus 1008, the processor 1002, the memory 1004, and the communication interface 1006 being communicatively connected to each other through the bus 1008. The connection between the processor 1002, the memory 1004, and the communication interface 1006 shown in fig. 10 is merely exemplary, and in the implementation, the processor 1002, the memory 1004, and the communication interface 1006 may be communicatively connected to each other by other connection means besides the bus 1008.
Wherein the memory 1004 may be used to store a computer program 10042, the computer program 10042 may include instructions and data. In the present embodiment, the memory 1004 may be various types of storage media, such as random access memory (random access memory, RAM), read-only memory (ROM), nonvolatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (electrically erasable PROM, EEPROM), flash memory, optical memory, registers, and the like. Also, the storage 1004 may include a hard disk and/or memory.
The processor 1002 may be a general-purpose processor, which may be a processor that performs certain steps and/or operations by reading and executing a computer program (e.g., the computer program 10042) stored in a memory (e.g., the memory 1004), and the general-purpose processor may use data stored in the memory (e.g., the memory 1004) in performing the steps and/or operations. The stored computer program may be executed, for example, to implement the functions associated with the aforementioned setup module 710, determination module 740, setup module 810, and setup module 910. A general purpose processor may be, for example, but is not limited to, a central processing unit (central processing unit, CPU). Furthermore, the processor 1002 may also be a special purpose processor, which may be a specially designed processor for performing certain steps and/or operations, such as, but not limited to, a digital signal processor (digital signal processor, DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), etc. Furthermore, the processor 1002 may also be a combination of multiple processors, such as a multi-core processor. The processor 1002 may include at least one circuit to perform all or part of the steps of the above embodiments to provide signaling methods.
Among other things, the communication interface 1006 may include an input/output (I/O) interface, a physical interface, a logical interface, and the like for implementing an interconnection of devices inside the signaling transmission apparatus 1000, and an interface for implementing an interconnection of the signaling transmission apparatus 1000 with other devices (e.g., a terminal device, a server, etc.). The physical interface may be Gigabit Ethernet (GE) which may be used to implement the interconnection of the signaling transport apparatus 1000 with other devices, and the logical interface is an interface inside the signaling transport apparatus 1000 which may be used to implement the interconnection of devices inside the signaling transport apparatus 1000. It is to be readily understood that the communication interface 1006 may be used for the signaling transmission device 1000 to communicate with other devices, for example, the communication interface 1006 may be used for sending and receiving signaling between the signaling transmission device 1000 and the other devices, and the communication interface 1006 may implement the functions related to the foregoing receiving module 720, the sending module 730, the sending module 820, and the receiving module 920. In addition, the communication interface 1006 may further include a transceiver for receiving and transmitting messages, where the transceiver may also implement the functions related to the receiving module 720, the transmitting module 730, the transmitting module 820, and the receiving module 920.
Wherein the bus 1008 may be any type of communication bus, such as a system bus, that interconnects the processor 1002, the memory 1004, and the communication interface 1006.
The above devices may be provided on separate chips, or may be provided at least partially or entirely on the same chip. Whether the individual devices are independently disposed on different chips or integrally disposed on one or more chips is often dependent on the needs of the product design. The embodiment of the application does not limit the specific implementation form of the device.
The signaling device 1000 shown in fig. 10 is merely exemplary, and in implementation, the signaling device 1000 may further include other components, which are not listed herein. The signaling device 1000 shown in fig. 10 may perform signaling by performing all or part of the steps of the signaling method provided in the above-described embodiments.
The embodiment of the application provides a signaling transmission system, which comprises a first device, a second device and a server. In one implementation, the first device comprises signaling means 800 as shown in fig. 8, the second device comprises signaling means 900 as shown in fig. 9, and the server comprises signaling means 700 as shown in fig. 7. In another implementation, at least one of the first device, the second device, and the server is the signaling transfer apparatus 1000 shown in fig. 10.
Optionally, in the call scenario, one of the first device and the second device is a calling device, and the other device is a called device.
Optionally, the signaling system is the signaling system shown in fig. 1 or fig. 2.
The present application provides a computer readable storage medium having stored therein a computer program which, when executed (e.g., by a terminal device, a server, one or more processors, etc.), implements all or part of the steps of the signaling method provided by the method embodiments described above.
The present embodiments provide a computer program product comprising a program or code which, when executed (e.g. by a terminal device, a server, one or more processors, etc.), implements all or part of the steps of the signaling method provided by the method embodiments described above.
The present application provides a chip, which includes programmable logic circuits and/or program instructions, and is configured to implement all or part of the steps of the signaling transmission method provided in the above method embodiments when the chip is running.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be embodied in whole or in part in the form of a computer program product comprising one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in or transmitted from one computer readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the available medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium, or a semiconductor medium (e.g., solid state disk), etc.
It should be understood that "at least one" in this application means one or more, and "a plurality" means two or more. In this application "/" means or, unless otherwise indicated, for example, A/B means A or B. The term "and/or" in this application is merely an association relation describing an association object, and means that three kinds of relations may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, for purposes of clarity of description, the words "first," "second," "third," and the like are used throughout this application to distinguish between identical or similar items that have substantially the same function and effect. Those skilled in the art will appreciate that the words "first," "second," "third," etc. do not limit the number and order of execution.
Different types of embodiments, such as a method embodiment and a device embodiment, provided in the embodiments of the present application may be mutually referred to, and the embodiments of the present application are not limited to this. The sequence of the operations of the method embodiment provided in the embodiment of the present application can be appropriately adjusted, the operations can also be increased or decreased according to the situation, and any method that is easily conceivable to be changed by a person skilled in the art within the technical scope of the present application is covered in the protection scope of the present application, so that no further description is provided.
In the corresponding embodiments provided in the present application, it should be understood that the disclosed apparatus and the like may be implemented by other structural manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units illustrated as separate components may or may not be physically separate, and the components described as units may or may not be physical units, may be located in one place, or may be distributed over multiple network devices (e.g., terminal devices). Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
While the invention has been described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made without departing from the spirit and scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (40)

1. A signaling method, the method comprising:
the server establishes m first transmission paths with the first equipment;
the server establishes n second transmission paths with the second equipment;
the server receives first signaling sent by the first device through the m first transmission paths, wherein the first signaling is signaling for establishing service connection between the first device and the second device;
the server sends the first signaling to the second equipment through the n second transmission paths;
wherein at least one of m and n is greater than 1, and m and n are both positive integers.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the service connection is a call connection.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the server receives second signaling sent by the first device through the m first transmission paths, wherein the second signaling is signaling for dismantling the service connection;
the server sends the second signaling to the second device through the n second transmission paths.
4. A method according to any one of claim 1 to 3, wherein,
The server sending the first signaling to the second device through the n second transmission paths, including:
for the first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission paths in the n second transmission paths, wherein k is greater than or equal to 1 and less than or equal to n, and k is an integer;
the server sends the first signaling to the second device through the k second transmission paths.
5. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
the first signaling sent by the first device through any one of the first transmission paths carries indication information of the second device; for the first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission path from the n second transmission paths, including:
for the first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission paths in the n second transmission paths according to a path association table, indication information of the first transmission paths and indication information of the second devices carried by the first signaling;
The path association table records the correspondence relationship among the indication information of the second device, the indication information of the m first transmission paths and the indication information of the n second transmission paths.
6. The method according to claim 4 or 5, wherein,
k >1, the server transmitting the first signaling to the second device through the k second transmission paths, comprising:
the server copies the first signaling to obtain k first signaling;
the server sends k first signaling to the second device through the k second transmission paths, wherein each first signaling is sent through one second transmission path.
7. The method according to claim 4 or 5, wherein,
p first transmission paths in the m first transmission paths correspond to one second transmission path in the n second transmission paths, m is more than or equal to p >1, and p is an integer;
the server sending the first signaling to the second device through the n second transmission paths, including:
for p first signaling received through the p first transmission paths, the server sends p first signaling to the second device through the one second transmission path.
8. The method according to claim 4 or 5, wherein,
m=n, where the m first transmission paths are in one-to-one correspondence with the n second transmission paths.
9. The method according to any one of claim 4 to 8, wherein,
m and n are both greater than 1, the m first transmission paths include a main transmission path and an auxiliary transmission path, the n second transmission paths include a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting a critical message and a non-critical message, the auxiliary transmission path is used for transmitting a critical message, and the critical message includes the first signaling;
the main transmission paths of the m first transmission paths correspond to the main transmission paths of the n second transmission paths, and the auxiliary transmission paths of the m first transmission paths correspond to the auxiliary transmission paths of the n second transmission paths.
10. The method according to any one of claims 1 to 9, wherein,
the first equipment comprises i first network cards, i is more than or equal to 1 and less than or equal to m, and i is an integer;
the second equipment comprises j second network cards, j is more than or equal to 1 and less than or equal to n, and j is an integer;
the m first transmission paths are transmission paths between the i first network cards and the server, and each of the i first network cards is bound with at least one of the m first transmission paths;
The n second transmission paths are transmission paths between the j second network cards and the server, and each of the j second network cards is bound with at least one of the n second transmission paths.
11. The method of claim 10, wherein the step of determining the position of the first electrode is performed,
i=m, wherein the i first network cards are bound with the m first transmission paths in a one-to-one correspondence manner;
j=n, where the j second network cards are bound with the n second transmission paths in a one-to-one correspondence manner.
12. The method according to any one of claims 1 to 11, wherein,
the first transmission path and the second transmission path are both transmission control protocol TCP paths.
13. A signaling method, the method comprising:
the first equipment and the server establish m first transmission paths, wherein m is an integer greater than 1;
the first device sends a first signaling to the server through the m first transmission paths, wherein the first signaling is used for establishing service connection between the first device and the second device.
14. The method of claim 13, wherein the step of determining the position of the probe is performed,
the service connection is a call connection.
15. The method according to claim 13 or 14, characterized in that the method further comprises:
the first device sends a second signaling to the server through the m first transmission paths, wherein the second signaling is used for dismantling the service connection.
16. The method according to any one of claims 13 to 15, wherein,
the m first transmission paths comprise a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting key messages and non-key messages, the auxiliary transmission path is used for transmitting key messages, and the key messages comprise the first signaling;
the first device establishes the m first transmission paths with the server, including:
when a target application in the first device is started, the first device establishes the main transmission path with the server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service;
and when the target service is initiated, the first equipment establishes the auxiliary transmission path with the server.
17. The method according to any one of claims 13 to 16, wherein,
The first equipment comprises i first network cards, i is more than or equal to 1 and less than or equal to m, and i is an integer;
the m first transmission paths are transmission paths between the i first network cards and the server, and each of the i first network cards is bound with at least one of the m first transmission paths.
18. The method of claim 17, wherein the step of determining the position of the probe is performed,
i=m, where the i first network cards are bound with the m first transmission paths in a one-to-one correspondence manner.
19. The method according to any one of claims 13 to 18, wherein,
the first transmission path is a Transmission Control Protocol (TCP) path.
20. A signaling method, the method comprising:
the second equipment establishes n second transmission paths with the server, wherein n is an integer greater than 1;
the second device receives first signaling sent by the server through the n second transmission paths, wherein the first signaling is signaling for establishing service connection between the first device and the second device.
21. The method of claim 20, wherein the step of determining the position of the probe is performed,
the service connection is a call connection.
22. The method according to claim 20 or 21, characterized in that the method further comprises:
And the second equipment receives second signaling sent by the server through the n second transmission paths, wherein the second signaling is signaling for dismantling the service connection.
23. The method according to any one of claims 20 to 22, wherein,
the n second transmission paths comprise a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting key messages and non-key messages, the auxiliary transmission path is used for transmitting key messages, and the key messages comprise the first signaling;
the second device establishes the n second transmission paths with the server, including:
when a target application in the second device is started, the second device establishes the main transmission path with the server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service;
and the second equipment establishes the auxiliary transmission path with the server when the target service is initiated.
24. The method according to any one of claims 20 to 23, wherein,
the second equipment comprises j second network cards, j is more than or equal to 1 and less than or equal to n, and j is an integer;
the n second transmission paths are transmission paths between the j second network cards and the server, and each of the j second network cards is bound with at least one of the n second transmission paths.
25. The method of claim 24, wherein the step of determining the position of the probe is performed,
j=n, where the j second network cards are bound with the n second transmission paths in a one-to-one correspondence manner.
26. The method according to any one of claims 20 to 25, wherein,
the second transmission path is a Transmission Control Protocol (TCP) path.
27. A signaling transmission apparatus, the apparatus comprising:
the system comprises a building module, a first transmission path setting module and a second transmission path setting module, wherein the building module is used for building m first transmission paths with first equipment by a server and building n second transmission paths with second equipment by the server, at least one of m and n is larger than 1, and m and n are positive integers;
a receiving module, configured to receive, by using the server, a first signaling sent by the first device through the m first transmission paths, where the first signaling is a signaling used to establish a service connection between the first device and the second device;
and the sending module is used for sending the first signaling to the second equipment through the n second transmission paths by the server.
28. The apparatus of claim 27, wherein the means for transmitting is configured to:
for the first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission paths in the n second transmission paths, wherein k is greater than or equal to 1 and less than or equal to n, and k is an integer;
The server sends the first signaling to the second device through the k second transmission paths.
29. The apparatus of claim 28, wherein the device comprises a plurality of sensors,
the first signaling sent by the first device through any one of the first transmission paths carries indication information of the second device; the sending module is specifically configured to: for the first signaling received through any one of the first transmission paths, the server determines k second transmission paths corresponding to the first transmission paths in the n second transmission paths according to a path association table, indication information of the first transmission paths and indication information of the second devices carried by the first signaling; the path association table records the correspondence relationship among the indication information of the second device, the indication information of the m first transmission paths and the indication information of the n second transmission paths.
30. The apparatus of claim 28 or 29, wherein the device comprises a plurality of sensors,
k >1, the sending module is specifically configured to:
the server copies the first signaling to obtain k first signaling;
the server sends k first signaling to the second device through the k second transmission paths, wherein each first signaling is sent through one second transmission path.
31. The apparatus of claim 28 or 29, wherein the device comprises a plurality of sensors,
p first transmission paths in the m first transmission paths correspond to one second transmission path in the n second transmission paths, m is more than or equal to p >1, and p is an integer;
the sending module is configured to send, to the second device, p pieces of the first signaling through the one second transmission path, for p pieces of the first signaling received through the p pieces of first transmission paths.
32. The apparatus of claim 28 or 29, wherein the device comprises a plurality of sensors,
m=n, where the m first transmission paths are in one-to-one correspondence with the n second transmission paths.
33. A signaling transmission apparatus, the apparatus comprising:
the building module is used for building m first transmission paths between the first equipment and the server, wherein m is an integer greater than 1;
the sending module is used for sending first signaling to the server through the m first transmission paths by the first device, wherein the first signaling is used for establishing service connection between the first device and the second device.
34. The apparatus of claim 33, wherein the device comprises a plurality of sensors,
the m first transmission paths comprise a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting key messages and non-key messages, the auxiliary transmission path is used for transmitting key messages, and the key messages comprise the first signaling;
The establishing module is used for:
when a target application in the first device is started, the first device establishes the main transmission path with the server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service;
and when the target service is initiated, the first equipment establishes the auxiliary transmission path with the server.
35. A signaling transmission apparatus, the apparatus comprising:
the establishing module is used for establishing n second transmission paths between the second equipment and the server, wherein n is an integer greater than 1;
and the receiving module is used for receiving the first signaling sent by the server through the n second transmission paths by the second equipment, wherein the first signaling is used for establishing service connection between the first equipment and the second equipment.
36. The apparatus of claim 35, wherein the device comprises a plurality of sensors,
the n second transmission paths comprise a main transmission path and an auxiliary transmission path, the main transmission path is used for transmitting key messages and non-key messages, the auxiliary transmission path is used for transmitting key messages, and the key messages comprise the first signaling;
The establishing module is used for:
when a target application in the second device is started, the second device establishes the main transmission path with the server, wherein the target application is an application related to a target service, and the service connection is used for transmitting data of the target service;
and the second equipment establishes the auxiliary transmission path with the server when the target service is initiated.
37. A signaling transfer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory to cause the signaling transmission apparatus to perform the signaling transmission method according to any one of claims 1 to 12.
38. A signaling transfer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory to cause the signaling device to perform the signaling method according to any one of claims 13 to 19 or to cause the signaling device to perform the signaling method according to any one of claims 20 to 26.
39. A signaling transmission system, comprising a first device, a second device, and a server;
the server comprising signalling means according to any of claims 27 to 32, the first device comprising signalling means according to claim 33 or 34, the second device comprising signalling means according to claim 35 or 36; or,
the server comprises the signalling means of claim 37, at least one of the first device and the second device comprising the signalling means of claim 38.
40. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed, implements the signaling method according to any of claims 1 to 26.
CN202111270600.6A 2021-10-29 2021-10-29 Signaling transmission method, device and system Pending CN116074364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111270600.6A CN116074364A (en) 2021-10-29 2021-10-29 Signaling transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111270600.6A CN116074364A (en) 2021-10-29 2021-10-29 Signaling transmission method, device and system

Publications (1)

Publication Number Publication Date
CN116074364A true CN116074364A (en) 2023-05-05

Family

ID=86178888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111270600.6A Pending CN116074364A (en) 2021-10-29 2021-10-29 Signaling transmission method, device and system

Country Status (1)

Country Link
CN (1) CN116074364A (en)

Similar Documents

Publication Publication Date Title
KR101301434B1 (en) Voice instant messaging between mobile and computing devices
CN101572709B (en) Switching method, system, server and client device of socket connection
WO2013097452A1 (en) Method for receiving data, method for transmitting data, mobile terminal, and server
US9065788B2 (en) Method, device and system for voice communication
CN101594242A (en) A kind of mthods, systems and devices of transmitting video data
US20140089431A1 (en) Instant messaging method, terminal, server, and system
WO2021057526A1 (en) Disaster recovery method for gateway device, and communication device
US11677721B2 (en) Packet transmission method using proxy server and system thereof
CN113315665A (en) Message sending method, device, equipment and medium of dual-network-card terminal equipment
CN107529229B (en) Data transmission method, device and system
EP2974159B1 (en) Method, device and system for voice communication
CN112383472A (en) Network transmission method, device, storage medium and electronic equipment
CN110875914A (en) Method and device for transmitting messages based on shared session link
WO2022100523A1 (en) Communication configuration method and apparatus
CN111385068B (en) Data transmission method, device, electronic equipment and communication system
CN103650401A (en) Internal communication method for mobile terminal
CN101207617A (en) Method for data transmission of network storing system
CN112333690B (en) Data transmission method, device, storage medium, terminal and network access point equipment
WO2016154921A1 (en) Data transmission method and device for data service
CN117336346A (en) IPPBX and PMS docking state conversion method, terminal equipment and medium
CN106534331A (en) Data transmission method and system based on dynamic port switching
US10321395B2 (en) Data packet processing method and related device
CN116074364A (en) Signaling transmission method, device and system
CN115051970B (en) Method and device for controlling user to be online, forwarding plane network element and medium
CN109120578B (en) Method and device for realizing link connection processing

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