CN107995201B - Data transmission method and device, server and storage medium - Google Patents

Data transmission method and device, server and storage medium Download PDF

Info

Publication number
CN107995201B
CN107995201B CN201711291958.0A CN201711291958A CN107995201B CN 107995201 B CN107995201 B CN 107995201B CN 201711291958 A CN201711291958 A CN 201711291958A CN 107995201 B CN107995201 B CN 107995201B
Authority
CN
China
Prior art keywords
data
area network
local area
conference
data receiving
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.)
Active
Application number
CN201711291958.0A
Other languages
Chinese (zh)
Other versions
CN107995201A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201711291958.0A priority Critical patent/CN107995201B/en
Publication of CN107995201A publication Critical patent/CN107995201A/en
Application granted granted Critical
Publication of CN107995201B publication Critical patent/CN107995201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2801Broadband local area networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms

Abstract

The invention discloses a data transmission method and device, a server and a storage medium. The method comprises the following steps: acquiring local area network information connected with a data sending end and a data receiving end in a network conference room; determining a data transmission mode between the data sending end and the data receiving end according to the local area network information, wherein the data transmission mode comprises local area network transmission and/or wide area network transmission; and controlling the data sending end to send conference data to the data receiving end according to the data transmission mode. By adopting the technical scheme, the embodiment of the invention can shorten the time delay in the data transmission process, reduce the packet loss probability of data transmission and improve the speed and quality of data transmission in the teleconference.

Description

Data transmission method and device, server and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method and apparatus, a server, and a storage medium.
Background
With the development of information technology and the acceleration of life rhythm of people, the remote conference terminal is used for carrying out remote network conference to gradually replace the traditional conference mode of face-to-face conference of users, and becomes one of the current common conference modes.
In the current teleconference scheme, a virtual teleconference room is generally created according to an application of a certain client, the client is added into the created virtual teleconference room after the creation of the virtual teleconference room is completed, and then the client who invites or applies to enter the virtual teleconference room is added into the virtual teleconference room based on the invitation of the client to other clients who do not enter the virtual teleconference room or based on the application of other clients who do not enter the virtual teleconference room, so that data transmission and sharing among clients in the same virtual teleconference room are realized.
However, the inventor finds that the prior art has the following technical defects in the process of implementing the invention: the existing teleconference scheme is limited by network bandwidth when transmitting data, has long time delay and high packet loss probability, has low data transmission rate and poor data transmission quality, and causes poor use experience of conference participants on conference terminals.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data transmission method and apparatus, a server, and a storage medium, so as to solve the technical problems of a low data transmission rate and a poor data transmission quality of a teleconference in the prior art.
In a first aspect, an embodiment of the present invention provides a data transmission method, including:
acquiring local area network information connected with a data sending end and a data receiving end in a network conference room;
determining a data transmission mode between the data sending end and the data receiving end according to the local area network information, wherein the data transmission mode comprises local area network transmission and/or wide area network transmission;
and controlling the data sending end to send conference data to the data receiving end according to the data transmission mode.
In a second aspect, an embodiment of the present invention provides a data transmission apparatus, including:
the local area network information acquisition module is used for acquiring local area network information connected with the indoor data sending end and the indoor data receiving end of the network conference;
a transmission mode determining module, configured to determine, according to the local area network information, a data transmission mode between the data sending end and the data receiving end, where the data transmission mode includes local area network transmission and/or wide area network transmission;
and the data transmission module is used for controlling the data sending end to send the conference data to the data receiving end according to the data transmission mode.
In a third aspect, an embodiment of the present invention provides a server, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method according to the embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method according to the embodiment of the present invention.
In the technical scheme of data transmission, local area network information connected with a data sending end and a data receiving end in a network conference room is obtained, a data transmission mode between the data sending end and the data receiving end is determined according to the local area network information, and conference data sent by the data sending end is forwarded to the data receiving end according to the determined data transmission mode. According to the technical scheme for transmitting the data, the data transmission mode between the data transmitting end and the data receiving end is determined based on the local area network information connected with the data transmitting end and the data receiving end, so that the time delay in the data transmission process can be shortened, the packet loss probability of data transmission is reduced, and the data transmission rate and quality in the teleconference are improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data transmission method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a preferred data transmission method according to a third embodiment of the present invention;
fig. 4 is a block diagram of a data transmission apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
The embodiment of the invention provides a data transmission method. The method may be performed by a data transmission device, wherein the device may be implemented by software and/or hardware, and may generally be integrated into a server corresponding to a conference client. Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
s101, local area network information connected with a data sending end and a data receiving end in the network conference room is obtained.
The data sending end can be understood as a conference terminal which sends conference data in a certain network conference room, and the data receiving end can be understood as a conference terminal which receives the conference data sent by the data sending end in the network conference room. The local area network information may include IP information of a local area network connected to each conference terminal (data sending end and data receiving end) in the network conference room, and the determination rule of the IP information may be determined as needed, for example, the IP information of all local area networks in which at least one conference terminal connected to the server corresponding to the network conference room is connected and exists in the network conference room may be first obtained, switching devices (switches, routers, or the like) in each local area network are controlled to send local area network broadcasts, and the local area network information of the conference terminal responding to a certain local area network broadcast is determined as the local area network IP information of the local area network in which the switching device sending the local area network broadcast is located; the IP address information of each conference terminal can also be obtained, and the local area network information of each conference terminal is determined based on the network number in the IP address of each conference terminal; the IP address information of the switching device connected to each conference terminal may also be obtained, and the local area network information connected to each conference terminal may be determined based on the IP address information, which is not limited herein. In view of convenience in determining the local area network information, optionally, the acquiring the local area network information connected to each conference terminal in the network conference room includes: acquiring IP address information of a data sending end and a data receiving end in a network conference room; and determining local area network information connected with each conference terminal in the network conference room according to the IP address information.
Generally, when a teleconference is performed, a teleconference room may be created or allocated for a conference terminal based on a teleconference request of the conference terminal, after the teleconference room is created or allocated and the conference terminal is added to the created or allocated teleconference room, other conference terminals that do not enter the teleconference room may be added to the teleconference room based on an invitation sent by the conference terminal already located in the teleconference room to the other conference terminals or based on a conference room entering request sent by the other conference terminals, so as to ensure that conference data may be transmitted between the conference terminals in the teleconference room, and implement a teleconference between the conference terminals in the teleconference room.
When acquiring the local area network information connected with the data transmitting terminal and the data receiving terminal, the data transmitting terminal and the data receiving terminal in the network conference room can be firstly determined, and then the local area network information of the data transmitting terminal and the data receiving terminal is acquired, or the local area network information of each conference terminal in the network conference room is firstly acquired, and then the data receiving terminal and the data transmitting terminal are determined; and the operation of determining the data sending end and the data receiving end and acquiring the local area network information of each conference terminal can be simultaneously carried out. In this embodiment, the local area network information may be determined in real time based on local area network broadcasting, IP address information of the switching device, and/or IP address information of the conference terminal, and the like; when a certain conference terminal joins in a network conference room, the local area network information connected with the conference terminal is determined based on local area network broadcasting, IP address information of switching equipment and/or the IP address information of the conference terminal and the like, and is stored in a set storage position, and the stored local area network information connected with each conference terminal (a data sending end and a data receiving end) is obtained from the corresponding storage position when the local area network information is obtained.
In this embodiment, the data receiving end and the data sending end may be determined according to the received data sending request or data obtaining request, for example, the conference terminal sending the data sending request may be determined as the data sending end, and/or the conference terminal sending the data obtaining request may be determined as the data receiving end. Optionally, when determining the data sending end and the data receiving end, the data sending end and the data receiving end in the network conference room may be determined according to the IP address information carried in the data sending request. At this time, the data sending request may carry IP address information of both data sending and receiving parties, where the IP address information of the data receiving party may be IP address information of a conference terminal that receives the data or IP address information of an exchange device that receives the data, for example, when the IP address information of the data receiving party carried in the data sending request is IP address information of an exchange, a conference terminal in the network conference room corresponding to the IP address information of the data sending party carried in the data sending request may be determined as a data sending end, and a conference terminal in the network conference room connected to the exchange corresponding to the IP address information of the data receiving party is determined as a data receiving end; when the IP address information of the data receiver carried in the data sending request is the IP address information of the conference terminal, the conference terminal in the network conference room corresponding to the IP address information of the data sender carried in the data sending request may be determined as the data sending end, and the conference terminal in the network conference room corresponding to the IP address information of the data receiver carried in the data sending request may be determined as the data receiving end. Considering that in a remote conference scenario, a data sending end generally sends audio data and/or video data generated by the data sending end to all other conference terminals in a network conference room, so that all other conference terminals can receive audio and video at one side of the data sending end, optionally, a conference terminal in the network conference room corresponding to the IP address information of the data sending end carried in the data sending request can be determined as the data sending end, and all conference terminals except the data sending end in the network conference room are determined as data receiving ends.
S102, determining a data transmission mode between the data sending end and the data receiving end according to the local area network information, wherein the data transmission mode comprises local area network transmission and/or wide area network transmission.
In this embodiment, for a certain conference data to be sent, the number of the data sending ends may be 1, and the number of the data receiving ends may be 1 or more. When determining the data transmission mode, determining whether the data sending end and the data receiving end are in the same local area network based on the local area network information connected with the data sending end and the data receiving end, and if the data sending end and a certain data receiving end are in the same local area network, determining the data transmission mode between the data sending end and the data receiving end as local area network transmission; if the data sending end and a certain data receiving end are in different local area networks, the data transmission mode between the data sending end and the data receiving end can be determined as wide area network transmission. Here, it should be noted that, when the data sending end and a certain data receiving end are in different local area networks, determining the data transmission mode between the data sending end and the data receiving end as the wide area network transmission does not limit that the data sending end and the data receiving end only can use the wide area network transmission in the data transmission process, and may also use a mode of combining the local area network and the wide area network for data transmission, which is not limited herein.
For example, the determining method for determining whether the data sending end and a certain data receiving end are in the same local area network based on the local area network information connected to the data sending end and the data receiving end may be determined as required, for example, it may be determined whether the local area network information connected to the data sending end is the same as the local area network information connected to the data receiving end, and if the local area network information is the same as the local area network information connected to the data receiving end, it is determined that the data sending end and the data receiving end are in the same local area network; otherwise, the data sending end and the data receiving end are judged to be in different local area networks; the local area network broadcast may also be sent by the data sending end, or the switching device in the local area network where the data sending end is located is determined based on the local area network information connected to the data sending end and the local area network broadcast is sent by the switching device, a data receiving end in the network conference room responding to the local area network broadcast sent by the data sending end or the switching device is determined as a data receiving end in the same local area network as the data sending end, and a data receiving end in the network conference not responding to the local area network broadcast is determined as a data receiving end in a different local area network from the data sending end.
S103, controlling the data sending end to send conference data to the data receiving end according to the data transmission mode.
Exemplarily, if the determined data transmission mode between the data sending end and a certain data receiving end is local area network transmission, the data sending end may be controlled to forward conference data to be sent to the data receiving end through its connected switching device based on a local area network communication protocol; if the determined data transmission mode between the data sending end and a certain data receiving end is wide area network transmission, the data sending end can be controlled to directly send the conference data to be sent to the data receiving end based on a wide area network communication protocol, the data sending end can also be controlled to send the conference data to be sent to first switching equipment connected with the data sending end based on a local area network communication protocol, the first switching equipment is controlled to forward the received conference data to the data receiving end based on the wide area network transmission protocol, or the switching equipment is controlled to forward the received conference data to second switching equipment connected with the data receiving end based on the wide area network transmission protocol and to forward the received conference data to the data receiving end based on the local area network transmission protocol.
The transmitted conference data may include audio data generated by the data transmitting end based on the sound information of the local conference participants and/or video data generated by the data transmitting end based on the video information of the local conference participants. For example, if the teleconference mode in the network conference room is an audio conference, the conference data sent by the data sending end may only include audio data of local participants; if the teleconference mode in the network conference room is the video mode, the conference data sent by the data sending end may include video data of local conference participants, and may also include audio data of local conference participants, which is not limited here.
It should be noted that the data sending end and the data receiving end provided in this embodiment are the data sending end and the data receiving end determined for a certain network data to be sent, in practical application, a certain conference terminal may be used as both a data sending list and a data receiving end at the same time or different times, which is not limited in this embodiment.
The data transmission method provided by the embodiment of the invention obtains the local area network information connected with the data sending end and the data receiving end in the network conference room, determines the data transmission mode between the data sending end and the data receiving end according to the local area network information, and controls the data sending end to send conference data to the data receiving end according to the data transmission mode. By adopting the above technical scheme, the data transmission mode between the data sending end and the data receiving end is determined based on the local area network information connected between the data sending end and the data receiving end, so that the time delay in the data transmission process can be shortened, the packet loss probability of data transmission is reduced, the data transmission rate and quality in the teleconference are improved, and the use experience of a user is improved.
Example two
Fig. 2 is a flowchart illustrating a data transmission method according to a second embodiment of the present invention. In this embodiment, the optimization is performed on the basis of the above embodiment, and in this embodiment, "determining the data transmission mode between the data sending end and the data receiving end according to the local area network information" is optimized as follows: determining a first data receiving terminal in the same local area network as the data sending terminal and a second data receiving terminal in a non-same local area network as the data sending terminal according to the local area network information; and determining a first data transmission mode between the data sending end and the first data receiving end as local area network transmission, and determining a second data transmission mode between the data sending end and the second data receiving end as local area network transmission and wide area network transmission.
Further, before determining the first data transmission mode between the data sending end and the first data receiving end as local area network transmission, the method further includes: determining that a ratio between a first number of the first data receiving terminals and a second number of the second data receiving terminals is greater than a set ratio threshold; and/or determining that an intranet service module for integrating conference data sent by different data sending ends is configured in the local area network connected with the first data receiving end.
Further, the controlling the data sending end to send the conference data to the data receiving end according to the data transmission manner may be optimized as: and controlling the data sending end to send conference data to the first data receiving end based on a local area network communication protocol, and to send conference data to the second data receiving end based on a wide area network communication protocol.
Correspondingly, as shown in fig. 2, a data transmission method provided by the second embodiment of the present invention includes:
s201, local area network information connected with a data sending end and a data receiving end in the network conference room is obtained.
S202, determining a first data receiving terminal in the same local area network as the data sending terminal and a second data receiving terminal in a non-same local area network as the data sending terminal according to the local area network information.
In this embodiment, whether the data sending end and the data receiving end are located in the same local area network may be determined based on the local area network information connected to the data sending end and the data receiving end, the data receiving end in the network conference room that is located in the same local area network as the data sending end is determined as the first data receiving end, and the data receiving end in the network conference room that is located in the different local area network as the second data receiving end. At this time, if there is no data receiver in the same local area network as the data transmitting end (or there is no data receiver in a different local area network from the data transmitting end), the first data receiver may be determined to be null (or the second data receiver may be determined to be null).
S203, determining that the ratio between the first number of the first data receiving ends and the second number of the second data receiving ends is larger than a set ratio threshold, and/or determining that an intranet service module for integrating conference data sent by different data sending ends is configured in a local area network connected with the first data receiving ends.
S204, determining a first data transmission mode between the data sending end and the first data receiving end as local area network transmission, and determining a second data transmission mode between the data sending end and the second data receiving end as wide area network transmission.
In this embodiment, after determining the first data receiving end and the second data receiving end, it may be determined whether a ratio between a first number of the first data receiving ends and a second number of the second data receiving ends is greater than a set ratio threshold, if so, determining a data transmission mode between the data sending end and the first data receiving end as local area network transmission, and if not, determining a data transmission mode between the data sending end and the first data receiving end as wide area network transmission; or, judging whether an intranet service module is configured in a local area network connected with the first data receiving terminal, if so, determining a data transmission mode between the data sending terminal and the first data receiving terminal as local area network transmission, and if not, determining the data transmission mode between the data sending terminal and the first data receiving terminal as wide area network transmission; it may also be determined whether a ratio between the first number of the first data receiving terminals and the second number of the second data receiving terminals is greater than a set ratio threshold and an intranet service module is configured in a local area network to which the first data receiving terminals are connected, if so, determining a data transmission mode between the data sending terminal and the first data receiving terminal as local area network transmission, and if not, determining a data transmission mode between the data sending terminal and the first data receiving terminal as wide area network transmission, which is not limited herein.
Wherein, the setting proportion threshold value can be flexibly set according to the requirement, for example, the setting proportion threshold value can be 4: 1 or 3: 1 equal proportional value; the intranet service module can comprise a video service module capable of integrating video data sent by all data sending ends at the same time and/or an audio service module capable of integrating audio data sent by all data sending ends at the same time. In this embodiment, when determining whether an intranet service module is configured in a local area network to which the first data receiving end is connected, it is preferably determined whether an intranet service module corresponding to conference data is configured in the local area network, for example, if the conference data is video data, it may be determined whether a video service module exists in the local area network, if the conference data is audio data, it may be determined whether an audio service module exists in the local area network, if the conference data includes video data and audio data, it may be determined whether a video module and an audio module exist in the local area network, if so, it may be determined that an intranet service module exists in the local area network to which the first data receiving end is connected, otherwise, it may be determined that an intranet service module does not exist in the local area network to which the first data receiving end is connected.
S205, the data sending end is controlled to send conference data to the first data receiving end based on a local area network communication protocol, and the conference data is sent to the second data receiving end based on a wide area network communication protocol.
Here, it should be noted that, when the control data sending end sends the conference data to the second data receiving end based on the wan transmission protocol, the control data sending end is not limited to sending the conference data to the second data receiving end based only on the wan transmission protocol, and during the data transmission process, the control data sending end may also be used in cooperation with the lan transmission protocol for transmission, that is, during the data transmission process of sending the conference data to the second data receiving end, the control data sending end may include both wan transmission and lan transmission, and here, the control data sending end is not limited.
In the data transmission method provided by the second embodiment of the present invention, when it is determined that the ratio between the first number of the first data receiving terminals and the second number of the second data receiving terminals is greater than the set ratio threshold, and/or it is determined that an intranet service module is configured in a local area network connected to the first data receiving terminals, the data transmission mode between the data sending terminal and the first data receiving terminal is determined as local area network transmission, which not only can shorten the time delay in the data transmission process, reduce the packet loss probability of data transmission, and improve the data transmission rate in a teleconference; the time consumed by repeatedly switching the data transmission modes can be reduced, the data quality of the transmitted conference data is improved, and the use experience of the user is improved.
On the basis of the foregoing embodiment, the data transmission method may further include: and if the number of the first data receiving ends in the network conference room is 1 and the number of the second data receiving ends is 0, determining the data transmission mode as a P2P network transmission mode in a local area network. In this embodiment, if only two conference terminals exist in the network conference room and the two conference terminals are located in the same lan, the data transmission mode between the two conference terminals may be determined as the P2P network transmission mode in the lan, that is, the network data sent by a certain conference terminal may be directly forwarded to another conference terminal via the switching device connected to the network data, and the intranet service module is not required to be used to integrate the conference data, so that the transmission speed of the conference data between the two conference terminals is further increased while the data quality of the conference data is ensured.
EXAMPLE III
The third embodiment of the invention provides a preferable data transmission method. The method may be performed by a data transmission device, wherein the device may be implemented by software and/or hardware, and may be generally integrated in a server corresponding to the conference client. Fig. 3 is a schematic flow chart of a preferred data transmission method according to a third embodiment of the present invention, as shown in fig. 3, the method includes:
s301, local area network information connected with a data sending end and a data receiving end in the network conference room is obtained.
S302, a first data receiving end in the same local area network with the data sending end and a second data receiving end in a non-same local area network with the data sending end are determined according to the local area network information.
S303, determining the first number of the first data receiving ends and the second number of the second data receiving ends.
S304, judging whether the first number is 1 and the second number is 0, if so, executing S305; if not, go to S306.
S305, controlling the data sending end to send the conference data to the first data receiving end by using a P2P network transmission manner in the local area network.
S306, judging whether a corresponding intranet service module is configured in the local area network connected with the first data receiving end, if so, executing S307; if not, go to S309.
S307, judging whether the ratio between the first quantity and the second quantity is larger than a set ratio threshold value, if so, executing S308; if not, go to S309.
And S308, controlling the data sending end to send the conference data to the first data receiving end in a local area network transmission mode, and controlling the data sending end to send the conference data to the second data receiving end in a wide area network transmission mode.
And S309, controlling the data sending end to send the conference data to the first data receiving end and the second data receiving end by adopting a wide area network transmission mode.
In the preferred data transmission method provided by the third embodiment of the present invention, when only two conference terminals exist, conference data is sent in a P2P network transmission manner in a local area network, and when a ratio between a first number of first data receiving terminals and a second number of second data receiving terminals is greater than a set ratio threshold and an intranet service module is configured in the local area network to which the first data receiving terminals are connected, the conference data is sent to the first data receiving terminals in the local area network transmission manner, which can shorten a time delay in a data transmission process, reduce a packet loss probability of data transmission, reduce time consumed by repeatedly switching a data transmission manner, improve a data transmission rate and quality in a teleconference, and improve user experience.
Example four
The fourth embodiment of the invention provides a data transmission device. The device can be realized by software and/or hardware, can be generally integrated in a server corresponding to the conference client, and can realize data transmission by a data transmission method. Fig. 4 is a block diagram of a data transmission apparatus according to a fourth embodiment of the present invention, and as shown in fig. 4, the apparatus includes:
a local area network information obtaining module 401, configured to obtain local area network information connected to a data sending end and a data receiving end in a network conference room;
a transmission mode determining module 402, configured to determine, according to the local area network information, a data transmission mode between the data sending end and the data receiving end, where the data transmission mode includes local area network transmission and/or wide area network transmission;
a data transmission module 403, configured to control the data sending end to send conference data to the data receiving end according to the data transmission manner.
In the data transmission device provided by the fourth embodiment of the present invention, the local area network information obtaining module obtains the local area network information connected to the data sending end and the data receiving end in the network conference room, the transmission mode determining module determines the data transmission mode between the data sending end and the data receiving end according to the local area network information, and the data transmission module forwards the conference data sent by the data sending end to the data receiving end according to the determined data transmission mode. By adopting the above technical scheme, the data transmission mode between the data sending end and the data receiving end is determined based on the local area network information connected between the data sending end and the data receiving end, so that the time delay in the data transmission process can be shortened, the packet loss probability of data transmission is reduced, the data transmission rate and quality in the teleconference are improved, and the use experience of a user is improved.
In the foregoing scheme, the transmission mode determining module 402 may include: a data receiving end determining unit, configured to determine, according to the local area network information, a first data receiving end in the same local area network as the data sending end and a second data receiving end in a different local area network from the data sending end; a first transmission mode determining unit, configured to determine a first data transmission mode between the data sending end and the first data receiving end as local area network transmission, and determine a second data transmission mode between the data sending end and the second data receiving end as wide area network transmission.
Further, the data transmission device provided in this embodiment may further include: a condition determining unit, configured to determine that a ratio between a first number of the first data receiving ends and a second number of the second data receiving ends is greater than a set ratio threshold before the first data transmission mode between the data transmitting end and the first data receiving end is determined to be local area network transmission; and/or determining that an intranet service module for integrating conference data sent by different data sending ends is configured in the local area network connected with the first data receiving end.
Further, the data transmission device provided in this embodiment may further include: and a second transmission mode determining unit, configured to determine, when the number of first data receiving ends in the network conference room is 1 and the number of second data receiving ends is 0, the data transmission mode as a P2P network transmission mode in a local area network.
In the above scheme, the data transmission module 403 may be configured to: and controlling the data sending end to send conference data to the first data receiving end based on a local area network communication protocol, and to send conference data to the second data receiving end based on a wide area network communication protocol.
In the foregoing solution, the local area network information obtaining module 401 may include: the IP address acquisition unit is used for acquiring IP address information of the indoor data sending end and the data receiving end of the network conference; and the local area network information determining unit is used for determining the local area network information connected with each conference terminal in the network conference room according to the IP address information.
Further, the data transmission device provided in this embodiment may further include: and the data request receiving module is used for receiving the data sending request and determining a data sending end and a data receiving end in the network conference room according to the IP address information carried in the data sending request.
The data transmission device provided by the fourth embodiment of the present invention can execute the data transmission method provided by any embodiment of the present invention, and has functional modules corresponding to the data transmission method and beneficial effects. For details of the data transmission method provided in any embodiment of the present invention, reference may be made to the technical details not described in detail in this embodiment.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention, and as shown in fig. 5, the server includes a processor 50 and a memory 51; the number of the processors 50 in the server may be one or more, and one processor 50 is taken as an example in fig. 5; the processor 50 and the memory 51 in the server may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The memory 51 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the data transmission method in the embodiment of the present invention (for example, the local area network information acquisition module 401, the transmission mode determination module 402, and the data transmission module 403 in the data transmission device). The processor 50 executes various functional applications of the server and data processing, i.e., implements the above-described data transmission method, by executing software programs, instructions, and modules stored in the memory 51.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 51 may further include memory located remotely from the processor 50, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a data transmission method, including:
acquiring local area network information connected with a data sending end and a data receiving end in a network conference room;
determining a data transmission mode between the data sending end and the data receiving end according to the local area network information, wherein the data transmission mode comprises local area network transmission and/or wide area network transmission;
and controlling the data sending end to send conference data to the data receiving end according to the data transmission mode.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the data transmission method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the data transmission device, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example" or "some examples" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A data transmission method is applied to a server, the server is connected with at least one conference terminal, the conference terminal comprises a data sending end and a data receiving end, and the method comprises the following steps:
acquiring local area network information connected with a data sending end and a data receiving end in a network conference room;
determining a data transmission mode between the data sending end and the data receiving end according to the local area network information, wherein the data transmission mode comprises local area network transmission and/or wide area network transmission;
controlling the data sending end to send conference data to the data receiving end according to the data transmission mode, wherein the conference data comprises audio data and video data;
wherein, the determining the data transmission mode between the data sending end and the data receiving end according to the local area network information comprises:
determining a first data receiving terminal in the same local area network as the data sending terminal and a second data receiving terminal in a non-same local area network as the data sending terminal according to the local area network information;
determining a first data transmission mode between the data sending end and the first data receiving end as local area network transmission, and determining a second data transmission mode between the data sending end and the second data receiving end as wide area network transmission;
before determining the first data transmission mode between the data sending end and the first data receiving end as local area network transmission, the method further includes:
determining that a ratio between a first number of the first data receiving terminals and a second number of the second data receiving terminals is greater than a set ratio threshold; and/or the presence of a gas in the gas,
determining that an intranet service module for integrating conference data sent by different data sending ends is configured in a local area network connected with the first data receiving end;
further comprising:
and if the number of the first data receiving ends in the network conference room is 1 and the number of the second data receiving ends is 0, determining the data transmission mode as a P2P network transmission mode in a local area network.
2. The method of claim 1, wherein the controlling the data sending end to send the conference data to the data receiving end according to the data transmission manner comprises:
and controlling the data sending end to send conference data to the first data receiving end based on a local area network communication protocol, and to send conference data to the second data receiving end based on a wide area network communication protocol.
3. The method according to claim 1, wherein the obtaining the local area network information connected to each conference terminal in the network conference room comprises:
acquiring IP address information of a data sending end and a data receiving end in a network conference room;
and determining local area network information connected with each conference terminal in the network conference room according to the IP address information.
4. The method of claim 1, further comprising:
and receiving a data sending request, and determining a data sending end and a data receiving end in the network conference room according to the IP address information carried in the data sending request.
5. The utility model provides a transmission device of data which characterized in that is applied to in the server, at least one conference terminal is connected to the server, conference terminal includes data sending end and data receiving end, the device includes:
the local area network information acquisition module is used for acquiring local area network information connected with the indoor data sending end and the indoor data receiving end of the network conference;
a transmission mode determining module, configured to determine, according to the local area network information, a data transmission mode between the data sending end and the data receiving end, where the data transmission mode includes local area network transmission and/or wide area network transmission;
the data transmission module is used for controlling the data sending end to send conference data to the data receiving end according to the data transmission mode, and the conference data comprises audio data and video data;
wherein the transmission mode determining module comprises:
a data receiving end determining unit, configured to determine, according to the local area network information, a first data receiving end in the same local area network as the data sending end and a second data receiving end in a different local area network from the data sending end;
a first transmission mode determining unit, configured to determine a first data transmission mode between the data sending end and the first data receiving end as local area network transmission, and determine a second data transmission mode between the data sending end and the second data receiving end as wide area network transmission;
further comprising: a condition determining unit, configured to determine that a ratio between a first number of the first data receiving ends and a second number of the second data receiving ends is greater than a set ratio threshold before the first data transmission mode between the data transmitting end and the first data receiving end is determined to be local area network transmission; and/or determining that an intranet service module for integrating conference data sent by different data sending ends is configured in a local area network connected with the first data receiving end;
further comprising: and a second transmission mode determining unit, configured to determine, when the number of first data receiving ends in the network conference room is 1 and the number of second data receiving ends is 0, the data transmission mode as a P2P network transmission mode in a local area network.
6. A server, characterized in that the server comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of transmitting data as claimed in any one of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of transmitting data according to any one of claims 1 to 4.
CN201711291958.0A 2017-12-08 2017-12-08 Data transmission method and device, server and storage medium Active CN107995201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711291958.0A CN107995201B (en) 2017-12-08 2017-12-08 Data transmission method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711291958.0A CN107995201B (en) 2017-12-08 2017-12-08 Data transmission method and device, server and storage medium

Publications (2)

Publication Number Publication Date
CN107995201A CN107995201A (en) 2018-05-04
CN107995201B true CN107995201B (en) 2020-01-24

Family

ID=62036707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711291958.0A Active CN107995201B (en) 2017-12-08 2017-12-08 Data transmission method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN107995201B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855618B (en) * 2019-10-15 2022-04-15 紫光云(南京)数字技术有限公司 Audio and video service system based on hybrid cloud
CN113194137A (en) * 2021-04-28 2021-07-30 深圳雷曼光电科技股份有限公司 Data transmission method, device, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660683A (en) * 2015-01-27 2015-05-27 广州视源电子科技股份有限公司 Data transmission control method, device and system
CN105682006A (en) * 2016-01-27 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Earphone and method for achieving teleconference based on earphones
CN106454206A (en) * 2016-11-28 2017-02-22 广州视源电子科技股份有限公司 Conference access method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI318833B (en) * 2005-06-22 2009-12-21 Asustek Comp Inc Network device, local network system, and network transmitting method
US20170279700A1 (en) * 2016-03-25 2017-09-28 Le Holdings(Beijing)Co., Ltd. Method and apparatus for transmitting data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660683A (en) * 2015-01-27 2015-05-27 广州视源电子科技股份有限公司 Data transmission control method, device and system
CN105682006A (en) * 2016-01-27 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Earphone and method for achieving teleconference based on earphones
CN106454206A (en) * 2016-11-28 2017-02-22 广州视源电子科技股份有限公司 Conference access method and device

Also Published As

Publication number Publication date
CN107995201A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
RU2374771C2 (en) Method and system for provision of group interactive communication services (chat)
KR100951026B1 (en) System and method for distributing voip data packets in group communications among wireless telecommunication devices
US8630208B1 (en) Muting of communication session participants
EP2436147B1 (en) A system and method for converting unicast client requests into multicast client requests
US9332583B2 (en) Multipoint communication device and method of performing switching from multipoint communication to point-to-point communication
US8659634B2 (en) Method and system for implementing three-party video call by mobile terminals
US7801134B2 (en) VoIP system, VoIP server and client, and multicast packet communication method
US9191219B2 (en) Network multicast peer discovery methods
RU2399160C1 (en) METHOD AND SYSTEM FOR TRANSMITTING DATA BASED ON Peer-to-Peer TECHNOLOGY
CN106973253B (en) Method and device for adjusting media stream transmission
US20130156175A1 (en) Method and apparatus for enabling voice discussions among independent and simultaneous users of data content
CN107211483A (en) A kind of data communications method and terminal
CN107995201B (en) Data transmission method and device, server and storage medium
CN104869106A (en) Sound recording method, voice switching equipment, sound recording server and sound recording system
KR20050043772A (en) Module and process for inter-user communication
WO2018024200A1 (en) Virtual desktop multicast control method, terminal, proxy terminal, and cloud desktop server
CN106549978B (en) Session mode switching method and proxy server
CN106027599B (en) Data transmission channel establishing method, system and server
CN114553799A (en) Multicast forwarding method, device, equipment and medium based on programmable data plane
EP3297210B1 (en) Method and apparatus for setting packet transmission mode
US20200329083A1 (en) Video conference transmission method and apparatus, and mcu
CN101345641A (en) Multicast access equipment and method
CN101146255A (en) A method and system for integrating broadcast and multicast service and unicast service
US20170063563A1 (en) Optimizing user experiences of web conferences that send data with source-specific multicast and automatic multicast tunneling
CN100438544C (en) A method and system for instant calling using instant messaging

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
GR01 Patent grant
GR01 Patent grant