CN115811510A - Method and device for realizing talkback service and talkback service system - Google Patents

Method and device for realizing talkback service and talkback service system Download PDF

Info

Publication number
CN115811510A
CN115811510A CN202211521123.0A CN202211521123A CN115811510A CN 115811510 A CN115811510 A CN 115811510A CN 202211521123 A CN202211521123 A CN 202211521123A CN 115811510 A CN115811510 A CN 115811510A
Authority
CN
China
Prior art keywords
client
communication channel
server
port
clients
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
CN202211521123.0A
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211521123.0A priority Critical patent/CN115811510A/en
Publication of CN115811510A publication Critical patent/CN115811510A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method and a device for realizing talkback business and a talkback service system. Wherein, the method comprises the following steps: starting a server port at a server, and receiving a plurality of data packets sent by a plurality of clients through the server port; analyzing the plurality of data packets to obtain network addresses of a plurality of clients and a plurality of client ports for sending the plurality of data packets; establishing a communication channel according to the network address, wherein the communication channel is used for transmitting data between the server port and the plurality of client ports; and transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channel. The method and the device solve the technical problem that the number of the network ports exposed to the external network is increased due to the fact that a plurality of network ports are provided for a plurality of groups of talkback services initiated simultaneously in the related technology.

Description

Method and device for realizing talkback service and talkback service system
Technical Field
The application relates to the technical field of audio and video communication, in particular to a method and a device for realizing a talkback service and a talkback service system.
Background
In the related technology, the application of a client terminal initiates talkback, and after talkback signaling interaction is completed, a talkback server generates a communication port specially used for receiving and transmitting media data with the client terminal; therefore, in the related art, each application and service has a special port to receive and transmit data, and the data is used for directly forwarding the talkback data to other applications after the talkback service receives the talkback data.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a method and a device for realizing an intercom service, and an intercom service system, so as to at least solve the technical problem that the number of network ports exposed to an external network is increased due to the fact that a plurality of network ports are provided for a plurality of groups of intercom services initiated simultaneously in the related art.
According to an aspect of an embodiment of the present application, a method for implementing a talk-back service is provided, including: starting a server port at a server, and receiving a plurality of data packets sent by a plurality of clients through the server port; analyzing the plurality of data packets to obtain network addresses of a plurality of clients and a plurality of client ports for sending the plurality of data packets; establishing a communication channel according to the network address, wherein the communication channel is used for transmitting data between the server port and the plurality of client ports; and transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channel.
Optionally, establishing a communication channel according to the network address includes: determining a client corresponding to the network address, and determining a client port for the client to send a data packet; determining a socket according to the network address and the client port; and reversely connecting the client port according to the socket so as to establish a communication channel between the server port and the client port.
Optionally, the socket is a UDP socket.
Optionally, transmitting a data packet for implementing the talkback service between the multiple clients according to the communication channel includes: analyzing a transmission protocol for transmitting a data packet to obtain a protocol header, wherein the protocol header comprises: a synchronization source identifier; determining a target user identifier and a plurality of group user identifiers according to the synchronous source identifier, wherein the target user identifier is used for indicating one client in a plurality of clients for transmitting the data packet, the group user identifiers are used for indicating a plurality of clients for receiving the target data packet, and the target data packet is transmitted by the client indicated by the target user identifier; and starting the thread pool, and forwarding the data packet to the client indicated by the group user identifier through the thread pool.
Optionally, the synchronization source identifier is further used to identify a target data stream, wherein the target data stream is composed of data packets sent by the client indicated by the target user identifier.
Optionally, after the communication channel is established according to the network address, the method for implementing the talk-back service further includes: monitoring a communication channel; if the data packet exists in the communication channel, determining that the client initiates a talkback service; and if the data packet does not exist in the communication channel, determining that the client does not initiate the talkback service.
According to another aspect of the embodiments of the present application, there is also provided an intercom service system, including: the client comprises a plurality of client ports and is used for sending data packets to the server; and the server is used for executing the method for realizing the talkback service.
According to another aspect of the embodiments of the present application, there is also provided an apparatus for implementing an intercom service, the apparatus including: the starting module is used for starting a server port at a server and receiving a plurality of data packets sent by a plurality of clients through the server port; the analysis module is used for analyzing the plurality of data packets to obtain network addresses of a plurality of clients and a plurality of client ports for sending the plurality of data packets; the system comprises a creating module, a sending module and a receiving module, wherein the creating module is used for creating a communication channel according to a network address, and the communication channel is used for transmitting data between a server port and a plurality of client ports; and the transmission module is used for transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channel.
According to another aspect of the embodiments of the present application, a non-volatile storage medium is further provided, where a program is stored in the non-volatile storage medium, and when the program runs, a device where the non-volatile storage medium is located is controlled to execute the implementation method of the talkback service.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: the system comprises a memory and a processor, wherein the processor is used for operating the program stored in the memory, and the program executes the implementation method of the talkback service when running.
In the embodiment of the application, a server port is started at a server, and a plurality of data packets sent by a plurality of clients are received through the server port; analyzing the plurality of data packets to obtain network addresses of a plurality of clients and a plurality of client ports for sending the plurality of data packets; establishing a communication channel according to the network address, wherein the communication channel is used for transmitting data between the server port and the plurality of client ports; according to the communication channel, a mode of transmitting data packets for realizing the talkback service among a plurality of clients is adopted, and the talkback media data are received by using a single network port, so that the purpose of greatly reducing the number of external network ports is achieved, the technical effects of reducing the number of the network ports exposed to the external network and saving network port resources are achieved, and the technical problem that the number of the network ports exposed to the external network is increased due to the fact that a plurality of network ports are provided for a plurality of groups of talkback services simultaneously initiated by the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of a communication system according to the related art;
fig. 2 is a flowchart of a method for implementing an intercom service according to an embodiment of the present application;
fig. 3 is a block diagram of a real-time transport protocol according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an intercom service system according to an embodiment of the present application;
fig. 5 is a block diagram of an apparatus for implementing an intercom service according to an embodiment of the present application;
fig. 6 is a flow chart of a talk-back service according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For a better understanding of the embodiments of the present application, technical terms referred to in the embodiments of the present application are explained as follows:
socket (Socket): for the abstraction of an endpoint for two-way communication between application processes on different hosts in a network, a socket is one end of the process communication on the network.
Thread pool: in one form of multi-threaded processing, tasks are added to a queue during processing and then automatically started after the threads are created.
In the related art, as many members in a group have data ports, the number of data ports required for the intercom service is large, and thus, the problem of network resource waste is caused by the large number of network ports exposed to the external network. In order to solve this problem, the embodiments of the present application provide related solutions, which are described in detail below.
In accordance with an embodiment of the present application, there is provided a method embodiment of a method for implementing a talk-back service, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The technical scheme of the embodiment of the application can be applied to various communication systems, for example: a Global System for Mobile communications (GSM) System, a Code Division Multiple Access (CDMA) System, a Wideband Code Division Multiple Access (WCDMA) System, a General Packet Radio Service (GPRS), a Long Term Evolution (Long Term Evolution, LTE) System, a LTE Frequency Division Duplex (FDD) System, a LTE Time Division Duplex (TDD), a Universal Mobile Telecommunications System (UMTS), a Worldwide Interoperability for Microwave Access (WiMAX) communication System, or a 5G System.
Illustratively, a communication system 100 applied in the embodiment of the present application is shown in fig. 1. The communication system 100 may include a network device 110, and the network device 110 may be a device that communicates with a terminal device 120 (or referred to as a communication terminal, a terminal). Network device 110 may provide communication coverage for a particular geographic area and may communicate with terminal devices located within that coverage area. Alternatively, the Network device 110 may be a Base Station (BTS) in a GSM system or a CDMA system, a Base Station (NodeB, NB) in a WCDMA system, an evolved Node B (eNB or eNodeB) in an LTE system, or a wireless controller in a Cloud Radio Access Network (CRAN), or a Network device in a Mobile switching center, a relay, an Access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, a Network-side device in a 5G Network, or a Network device in a Public Land Mobile Network (PLMN) for future evolution, or the like.
The communication system 100 further comprises at least one terminal device 120 located within the coverage area of the network device 110. As used herein, "terminal equipment" includes, but is not limited to, connections via wireline, such as Public Switched Telephone Network (PSTN), digital Subscriber Line (DSL), digital cable, direct cable connection; and/or another data connection/network; and/or via a Wireless interface, e.g., for a cellular Network, a Wireless Local Area Network (WLAN), a digital television Network such as a DVB-H Network, a satellite Network, an AM-FM broadcast transmitter; and/or means of another terminal device arranged to receive/transmit communication signals; and/or Internet of Things (IoT) devices. A terminal device arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal", or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; personal Communications System (PCS) terminals that may combine a cellular radiotelephone with data processing, facsimile and data Communications capabilities; PDAs that may include radiotelephones, pagers, internet/intranet access, web browsers, notepads, calendars, and/or Global Positioning System (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. A terminal Equipment may refer to an access terminal, user Equipment (UE), subscriber unit, subscriber station, mobile, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent, or User Equipment. An access terminal may be a cellular telephone, a cordless telephone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device having Wireless communication capabilities, a computing device or other processing device connected to a Wireless modem, a vehicle mounted device, a wearable device, a terminal device in a 5G network, or a terminal device in a future evolved PLMN, etc.
Optionally, device-to-Device (D2D) communication may be performed between the terminal devices 120.
Alternatively, the 5G system or the 5G network may also be referred to as a New Radio (NR) system or an NR network.
In the foregoing operating environment, an embodiment of the present application provides a method for implementing an intercom service, as shown in fig. 2, the method includes the following steps:
step S202, a server port is started at a server, and a plurality of data packets sent by a plurality of clients are received through the server port.
In step S202, when it is detected that the client sends a data packet for implementing the session service, the session service process is started, and the server is controlled to start a UDP port (i.e., a server port) conforming to a User Datagram Protocol (UDP) rule, and receive the data packet from the client through the UDP port.
Step S204, analyzing the plurality of data packets to obtain network addresses of the plurality of clients and a plurality of client ports for sending the plurality of data packets.
In step S204, the plurality of packets received by the UDP port are analyzed, and each packet is analyzed to obtain the network address of the client sending the packet and the network port sending the packet.
Step S206, establishing a communication channel according to the network address, wherein the communication channel is used for transmitting data between the server port and the plurality of client ports.
In step S206, a client port for sending the data packet at the network address is determined according to the network address obtained by the parsing in step S204, and a communication channel for transmitting the data packet is established between the UDP port started in step S202 and the client port.
And step S208, transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channels.
In step S208, when one or more clients initiate a session to another client and send a data packet, the data packet is transmitted through the communication channel, so as to implement the session service.
Through the steps, the multi-port service can be converted into the single-port service, and the port resource required by the service can be met only by opening one port from the network layer, so that the network port resource is greatly saved; meanwhile, the protocol is extended by combining the characteristics of the talkback service, so that more effective data can be transmitted by using the existing protocol field, and the network resources are saved.
According to an alternative embodiment of the present application, establishing a communication channel according to a network address includes: determining a client corresponding to the network address, and determining a client port for the client to send a data packet; determining a socket according to the network address and the client port; and reversely connecting the client port according to the socket so as to establish a communication channel between the server port and the client port.
In this embodiment, after the network address of the client sending the media channel packet (i.e. the data packet) is obtained through the analysis in step S204, the client at the network address is determined, and the client port on the client for sending the data packet is determined; determining a socket indicating the port of the client, when the client initiates the talkback service, the server identifies the socket and reversely connects to the port of the client indicated by the socket, if a plurality of client ports for sending data packets exist, determining a socket corresponding to each port respectively; therefore, a communication channel for transmitting data is successfully established between the UDP port of the server and the client port indicated by the socket.
According to some preferred embodiments of the present application, the socket is a UDP socket.
In some preferred embodiments, the socket used for indicating the client port sending the data packet is a UDP socket, and the client can directly send the data packet to the server without connecting to the server through the UDP socket.
According to an optional embodiment of the present application, transmitting a data packet for implementing a talkback service between a plurality of clients according to a communication channel includes the following steps: analyzing a transmission protocol for transmitting a data packet to obtain a protocol header, wherein the protocol header comprises: a synchronization source identifier; determining a target user identifier and a plurality of group user identifiers according to the synchronous source identifier, wherein the target user identifier is used for indicating one client in a plurality of clients for transmitting the data packet, the group user identifiers are used for indicating a plurality of clients for receiving the target data packet, and the target data packet is transmitted by the client indicated by the target user identifier; and starting the thread pool, and forwarding the data packet to the client indicated by the group user identifier through the thread pool.
Fig. 3 is a structure diagram of a header of a Real-time Transport Protocol, in this embodiment, a data packet for implementing an intercom service is transmitted in a communication channel by the following method, and after detecting that a client sends the data packet, a server analyzes a Real-time Transport Protocol (RTP) for transmitting the data packet, as shown in fig. 3, a Protocol header of the RTP includes a version field (V) for indicating a Protocol version of the RTP; a padding field (P) for indicating a negligible number of bytes in the data packet; an extension field (X); a Contributing Source (CSRC) count field (CC) for indicating the number of CSRC identifiers following the fixed protocol header; a flag field (M) for marking important events in the data stream, such as marking frame boundaries; a payload type field (PT) for defining a type of a payload of the RTP protocol; a sequence number field (sequence number) for indicating a sequence number of a packet transmitted by the RTP protocol; a timestamp field (timestamp) for indicating a sampling time of a first byte in a data packet transmitted in the RTP protocol; and a CSRC list field; the version field (V) occupies 2 bits, the padding field (P) occupies 1 bit, the extension field (X) occupies 1 bit, the CSRC count field (CC) occupies 4 bits, the flag field (M) occupies 1 bit, the load type field (PT) occupies 7 bits, the sequence number field (sequence number) occupies 16 bits, the timestamp field (timestamp) occupies 32 bits, and the CSRC list field occupies 32 bits.
As shown in fig. 3, the protocol header of RTP further includes a Synchronization Source identifier (SSRC) field, which occupies 32 bits; in the embodiment of the application, the method is used for identifying the client side sending the data packet and the client side receiving the data packet; in the embodiment of the present application, the first two fields of the SSRC are set as (target) user Identification (ID) fields, and are used for storing the user ID of the sending data packet (i.e. the target user identification); the last two fields of the SSRC are set as an Identity Document (ID) field for storing the group ID of the received packet. Therefore, the RTP protocol is analyzed, the user ID (namely the target user identification) and the group user ID of the sending data packet can be obtained, the receiving thread pool is started after the user ID (namely the target user identification) and the group user ID are obtained, the thread task specially receives the media data (namely the data packet) and forwards the media data (namely the data packet) to the group members indicated by the group user identification, and the talkback concurrency capability is greatly improved.
According to further preferred embodiments of the present application, the synchronization source identifier is further used to identify a target data stream, wherein the target data stream is composed of packets sent by a client indicated by the target user identification.
In other preferred embodiments, the SSRC field is used to identify, in addition to the client sending the data packet and the client receiving the data packet, the data stream composed of the data packets sent by the client; each RTP data stream is identified by means of a sequence number, with different data streams corresponding to different SSRC fields and to different sequence numbers.
According to an optional embodiment of the present application, after the communication channel is established according to the network address, the method for implementing the talk-back service further includes: monitoring a communication channel; if the data packet exists in the communication channel, determining that the client initiates talkback service; and if the data packet does not exist in the communication channel, determining that the client does not initiate the talkback service.
In this embodiment, after the communication channel is established, the server monitors the data channel, and determines whether the client initiates the talk-back service by determining whether a data packet exists in the communication channel; specifically, if a data packet exists in the data channel, it is considered that a client initiates a talk-back service; otherwise, if the data channel is monitored to have no data packet, the client side is considered to have not initiated the talkback service.
Fig. 4 is a schematic diagram of an intercom service system provided in accordance with an embodiment of the present application, and as shown in fig. 4, the system includes: the client 40 comprises a plurality of client ports and a server 42, wherein the client 40 is used for sending data packets to the server; the server 42 is configured to start a UDP port and receive a data packet sent by the client; analyzing the data packet to obtain a network address of a client side sending the data packet and a client side port sending the data packet; establishing a UDP socket, reversely connecting a client port for sending a data packet through the UDP socket, and establishing a communication channel between a server and the client; monitoring the communication channel, when the data packet exists in the communication channel, analyzing a transmission protocol for transmitting the data packet to obtain a user ID for transmitting the data packet and a group user ID for receiving the data packet, and starting a thread pool to transmit the data packet to a plurality of group users indicated by the group user ID.
Fig. 5 is a structural diagram of an apparatus for implementing an intercom service according to an embodiment of the present application, and as shown in fig. 5, the apparatus includes: a starting module 50, configured to start a server port at a server, and receive multiple data packets sent by multiple clients through the server port; the analyzing module 52 is configured to analyze the multiple data packets to obtain network addresses of multiple clients and multiple client ports for sending the multiple data packets; a creating module 54, configured to create a communication channel according to the network address, where the communication channel is used to transmit data between the server port and the plurality of client ports; and a transmission module 56, configured to transmit a data packet for implementing the talkback service between the multiple clients according to the communication channel.
Fig. 6 is a flowchart of the talkback service, as shown in fig. 6, the talkback service is started, the device for implementing the talkback service starts to operate, and the starting module 50 starts a port at the server to wait for receiving the data packet sent by the client; after receiving the data packet, the analyzing module 52 analyzes the received data packet to obtain the network address of the client sending the data packet and the client port sending the data packet; a UDP socket is created by the creating module to connect the client in a reverse direction, a communication channel is created between the client and the server, and the transmission module 56 monitors the communication channel, starts a thread pool when it is monitored that there is data packet transmission in the communication channel, and transmits the data packet sent by the client to a plurality of group users indicated by the group user identifier.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 2 for a preferred implementation of the embodiment shown in fig. 6, and details are not described here again.
By the method provided by the embodiment of the application, the talkback service only starts one UDP port for receiving and transmitting the media data of each user; the server establishes an actual media channel with the terminal for media interaction through reverse connection; meanwhile, the user ID and the group ID are obtained through an extended RTP protocol, and the problem of where the data comes and where the data comes is solved. In addition, for the server, a single-port connectionless channel is directly changed into a manageable client connection channel through a single-port and reverse connection technology, so that the server can manage a plurality of clients conveniently.
The embodiment of the application also provides a nonvolatile storage medium, wherein the nonvolatile storage medium stores a program, and the implementation method of the talkback service is executed by controlling the equipment where the nonvolatile storage medium is located when the program runs.
The storage medium is used for storing a program for executing the following functions: starting a server port at a server, and receiving a plurality of data packets sent by a plurality of clients through the server port; analyzing the plurality of data packets to obtain network addresses of a plurality of clients and a plurality of client ports for sending the plurality of data packets; establishing a communication channel according to the network address, wherein the communication channel is used for transmitting data between the server port and the plurality of client ports; and transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channel.
An embodiment of the present application further provides an electronic device, including: a memory and a processor for running the program stored in the memory, wherein the program runs to execute the above method for implementing the talk-back service.
The electronic device is configured to process a program that performs the following functions: starting a server port at a server, and receiving a plurality of data packets sent by a plurality of clients through the server port; analyzing the plurality of data packets to obtain network addresses of a plurality of clients and a plurality of client ports for sending the plurality of data packets; establishing a communication channel according to the network address, wherein the communication channel is used for transmitting data between the server port and the plurality of client ports; and transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channel.
It should be noted that, each module in the implementation apparatus of the above-mentioned intercom service may be a program module (for example, a set of program instructions for implementing a certain function), or may also be a hardware module, and for the latter, it may be represented in the following form, but is not limited to the following form: the expression of each of the above modules is a processor, or the function of each of the above modules is implemented by a processor.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
In the embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.

Claims (10)

1. A method for implementing an intercom service, comprising:
starting a server port at a server, and receiving a plurality of data packets sent by a plurality of clients through the server port;
analyzing the plurality of data packets to obtain network addresses of the plurality of clients and a plurality of client ports for sending the plurality of data packets;
establishing a communication channel according to the network address, wherein the communication channel is used for transmitting data between the server port and the plurality of client ports;
and transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channels.
2. The method of claim 1, wherein establishing a communication channel based on the network address comprises:
determining a client corresponding to the network address, and determining a client port for the client to send the data packet;
determining a socket according to the network address and the client port;
and reversely connecting the client port according to the socket so as to establish the communication channel between the server port and the client port.
3. The method of claim 2, wherein the socket is a UDP socket.
4. The method of claim 1, wherein transmitting data packets for implementing the talk-back service between the plurality of clients according to the communication channel comprises:
analyzing a transmission protocol for transmitting the data packet to obtain a protocol header, wherein the protocol header comprises: a synchronization source identifier;
determining a target user identifier and a plurality of group user identifiers according to the synchronization source identifier, wherein the target user identifier is used for indicating one client in a plurality of clients for transmitting the data packet, the group user identifiers are used for indicating a plurality of clients for receiving the target data packet, and the target data packet is transmitted by the client indicated by the target user identifier;
and starting a thread pool, and forwarding the data packet to the client indicated by the group user identifier through the thread pool.
5. The method of claim 4, wherein the sync source identifier is further configured to identify a destination data stream, wherein the destination data stream is composed of packets transmitted by a client indicated by the destination user identifier.
6. The method of claim 1, wherein after establishing a communication channel according to the network address, the method further comprises:
monitoring the communication channel;
if the data packet exists in the communication channel, determining that the client initiates the talkback service;
and if the data packet does not exist in the communication channel, determining that the client does not initiate the talkback service.
7. An intercom service system, the system comprising: a client side and a server side, wherein,
the client comprises a plurality of client ports and is used for sending data packets to the server;
the server is configured to execute the method for implementing the intercom service according to any one of claims 1 to 6.
8. An apparatus for implementing an intercom service, comprising:
the starting module is used for starting a server port at a server and receiving a plurality of data packets sent by a plurality of clients through the server port;
the analysis module is used for analyzing the data packets to obtain network addresses of the clients and a plurality of client ports for sending the data packets;
a creating module, configured to create a communication channel according to the network address, where the communication channel is used to transmit data between the server port and the plurality of client ports;
and the transmission module is used for transmitting data packets for realizing the talkback service among the plurality of clients according to the communication channels.
9. A non-volatile storage medium, wherein a program is stored in the non-volatile storage medium, and when the program runs, a device where the non-volatile storage medium is located is controlled to execute the method for implementing the intercom service according to any one of claims 1 to 6.
10. An electronic device, comprising: a memory and a processor, wherein the processor is configured to execute a program stored in the memory, and when the program is executed, the method for implementing a talk-back service according to any one of claims 1 to 6 is performed.
CN202211521123.0A 2022-11-30 2022-11-30 Method and device for realizing talkback service and talkback service system Pending CN115811510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211521123.0A CN115811510A (en) 2022-11-30 2022-11-30 Method and device for realizing talkback service and talkback service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211521123.0A CN115811510A (en) 2022-11-30 2022-11-30 Method and device for realizing talkback service and talkback service system

Publications (1)

Publication Number Publication Date
CN115811510A true CN115811510A (en) 2023-03-17

Family

ID=85484531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211521123.0A Pending CN115811510A (en) 2022-11-30 2022-11-30 Method and device for realizing talkback service and talkback service system

Country Status (1)

Country Link
CN (1) CN115811510A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116938603A (en) * 2023-09-15 2023-10-24 杭州安恒信息技术股份有限公司 Traffic transmission method, device, equipment and storage medium based on stealth gateway

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116938603A (en) * 2023-09-15 2023-10-24 杭州安恒信息技术股份有限公司 Traffic transmission method, device, equipment and storage medium based on stealth gateway
CN116938603B (en) * 2023-09-15 2023-12-05 杭州安恒信息技术股份有限公司 Traffic transmission method, device, equipment and storage medium based on stealth gateway

Similar Documents

Publication Publication Date Title
CN105744652B (en) User equipment and communication method
CN105722058B (en) User equipment and information forwarding method
EP3491881B1 (en) Devices for multi-path communication over multiple radio access technologies
KR20110044840A (en) System and method for resolving contention among applications requiring data connections between a mobile communications device and a wireless network
US9832650B2 (en) Dynamic WLAN connections
US8780795B2 (en) Wireless communication apparatus and control method thereof
US20230051269A1 (en) Qos control method and apparatus, and readable storage medium
EP1472835B1 (en) Processing different size packet headers for a packet based conversational service in a mobile communications system
CN112805979A (en) Header compression processing method and device and communication equipment
CN115811510A (en) Method and device for realizing talkback service and talkback service system
CN115443723A (en) Multipath transmission method and device, network equipment and terminal
US20090067368A1 (en) Method and Apparatus for Selecting a Radio Access Technology for Communication
CN113115361B (en) Method, device, chip and computer program for compressing Ethernet frame header
CN114365470B (en) Method and apparatus for transmitting Ethernet compressed packets
US9319974B2 (en) Communication transmission methods and systems
CN112673601B (en) Method and device for processing frame header and communication equipment
CN114303355A (en) Method and device for indicating decompression object and communication equipment
CN115843434A (en) Network element discovery method, device, equipment and storage medium
US20230247112A1 (en) Non-IP Header Compression in Broadcast Sidelink Communication
CN116235520B (en) Non-IP header compression in broadcast side uplink communications
KR20210065149A (en) Communication method, terminal device and network device
CN112243576B (en) Information transmission method and device and communication equipment
US20230371094A1 (en) Communication method and apparatus
CN115669212A (en) Method, device, equipment and storage medium for establishing relay session
CN117501741A (en) Header compression method and device, terminal equipment and network equipment

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