CN116800460A - Streaming media data transmission method and system based on transit switching mode - Google Patents

Streaming media data transmission method and system based on transit switching mode Download PDF

Info

Publication number
CN116800460A
CN116800460A CN202211643843.4A CN202211643843A CN116800460A CN 116800460 A CN116800460 A CN 116800460A CN 202211643843 A CN202211643843 A CN 202211643843A CN 116800460 A CN116800460 A CN 116800460A
Authority
CN
China
Prior art keywords
media data
streaming media
server
sending
terminal
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
CN202211643843.4A
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 Standard Intelligent Security Technology Co Ltd
Original Assignee
China Standard Intelligent Security Technology 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 China Standard Intelligent Security Technology Co Ltd filed Critical China Standard Intelligent Security Technology Co Ltd
Priority to CN202211643843.4A priority Critical patent/CN116800460A/en
Publication of CN116800460A publication Critical patent/CN116800460A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1096Supplementary features, e.g. call forwarding or call holding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a streaming media data transmission method and a streaming media data transmission system based on a transfer switching mode, which are characterized in that a private network transfer terminal and a public network transfer terminal are arranged on a server in a connection mode, and after a sending terminal is accessed to the server, the streaming media data is transmitted on the private network or public network layer by utilizing the private network transfer terminal or the public network transfer terminal, so that when the sending terminal and a receiving terminal are respectively in different network systems, safe and stable transmission of the streaming media data can be realized, and the transmission efficiency and the reliability of the streaming media data under different network system scenes are improved.

Description

Streaming media data transmission method and system based on transit switching mode
Technical Field
The present invention relates to the technical field of streaming media transmission, and in particular, to a method and a system for streaming media data transmission based on a transfer switching mode.
Background
The streaming media data has the characteristics of large data volume and higher transmission bandwidth requirement, and in order to ensure normal and stable transmission of the streaming media data, the streaming media data is usually realized in a P2P mode, namely, a transmitting end and a receiving end are directly connected, so that point-to-point transmission of the streaming media data is realized. The method can ensure the real-time transmission of the streaming media data, but has larger requirements on the sending end, the receiving end and transmission links between the sending end and the receiving end, when the sending end and the receiving end are respectively in different network systems, the sending end and the receiving end cannot realize the connection of P2P, the transmission efficiency and the transmission reliability of the streaming media data are reduced, and the safe and stable transmission of the streaming media data in different network scenes cannot be realized.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention provides a streaming media data transmission method and a streaming media data transmission system based on a transfer switching mode, which are used for connecting a transmitting end with streaming media data transmitting authority to a server and transmitting the streaming media data to the server; according to the network attribute information of the receiving end to which the streaming media data needs to be sent, the streaming media data is transferred to a private network transit end or a public network transit end; and according to the current streaming media data to be sent state information of the transfer end in the private network or the public network, a data transmission link with the receiving end is constructed, so that streaming media data sending operation is carried out to the receiving end, the transfer end in the private network and the public network transfer end are connected and arranged on the server, after the sending end is accessed to the server, the transfer end in the private network or the public network is utilized to transmit the streaming media data on the private network or the public network layer, so that when the sending end and the receiving end are respectively in different network systems, safe and stable transmission of the streaming media data can be realized, and the transmission efficiency and reliability of the streaming media data under different network system scenes are improved.
The invention provides a streaming media data transmission method based on a transfer switching mode, which comprises the following steps:
step S1, judging whether a sending end has streaming media data sending authority according to a streaming media data sending request from the sending end; connecting a transmitting end with streaming media data transmitting authority to a server so that the server receives corresponding streaming media data;
step S2, according to the streaming media data sending request, determining network attribute information of a receiving end to which the streaming media data needs to be sent; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal;
and step S3, constructing a data transmission link with the receiving end according to the state information to be transmitted of the current streaming media data of the forwarding end in the private network or the forwarding end in the public network, and transmitting the streaming media data to the receiving end through the data transmission link.
Further, in the step S1, according to a streaming media data transmission request from a transmitting end, whether the transmitting end has streaming media data transmission authority is determined; connecting a transmitting end with streaming media data transmitting authority to a server so that the server receives corresponding streaming media data, wherein the method comprises the following steps:
extracting terminal identity information of a sending end from a streaming media data sending request from the sending end, and comparing the terminal identity information with a preset terminal identity information white list;
if the terminal identity information exists in a preset terminal identity information white list, judging that the sending end has streaming media data sending authority; otherwise, judging that the sending end does not have the streaming media data sending authority;
connecting a transmitting end with streaming media data transmitting authority to a server according to the current external terminal connection state of the server; and adjusting the receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server.
Further, in the step S1, according to the current external terminal connection state of the server, a transmitting end with the streaming media data transmitting authority is connected to the server; and adjusting a receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server, wherein the method comprises the following steps:
judging whether the server is in a connection saturation state currently according to the current external terminal connection state of the server; if not, connecting a transmitting end with the streaming media data transmitting authority to a server; if so, replacing one of the connected external terminals with a transmitting terminal with streaming media data transmitting authority according to the working state of the external terminal connected with the server currently, so as to connect to the server;
judging whether the server is in a saturated state of receiving streaming media data currently according to the streaming media data received by the server currently; if not, directly receiving the streaming media data from the sending end; if yes, the receiving of the streaming media data from the sending end is suspended.
Further, in the step S2, according to the streaming media data sending request, network attribute information of a receiving end to which the streaming media data needs to be sent is determined; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal, including:
extracting terminal address information of a receiving end to which the streaming media data needs to be sent from the streaming media data sending request; judging whether the receiving end belongs to a private network terminal or a public network terminal according to the terminal address information;
if the receiving end belongs to the private network terminal, transferring the streaming media data from the server to a transfer end in a private network;
and if the receiving end belongs to the public network terminal, transferring the streaming media data from the server to a public network transit end.
Further, in the step S3, according to the status information to be sent of the current streaming media data of the forwarding end in the private network or the forwarding end in the public network, a data transmission link with the receiving end is constructed, and streaming media data sending operation is performed to the receiving end through the data transmission link, including:
acquiring the quantity of stream media data contained in a current stream media data to-be-sent queue of a transfer terminal in the private network or a transfer terminal in the public network;
if the number of the streaming media data is larger than or equal to a preset number threshold, a data transmission link with the receiving end is not constructed;
if the streaming media data is smaller than the preset quantity threshold, a data transmission link with the receiving end is constructed, and streaming media data sending operation is carried out to the receiving end through the data transmission link.
The invention also provides a stream media data transmission system based on the transfer switching mode, which comprises:
the sending end identification module is used for judging whether the sending end has streaming media data sending authority according to a streaming media data sending request from the sending end;
the sending end connection module is used for connecting a sending end with streaming media data sending authority to a server so that the server receives corresponding streaming media data;
the streaming media data transfer module is used for determining network attribute information of a receiving end to which the streaming media data is required to be sent according to the streaming media data sending request; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal;
and the streaming media data sending module is used for constructing a data transmission link with the receiving end according to the current streaming media data to-be-sent state information of the forwarding end in the private network or the forwarding end in the public network, and sending streaming media data to the receiving end through the data transmission link.
Further, the sender identification module is configured to determine, according to a streaming media data sending request from a sender, whether the sender has streaming media data sending authority, and includes:
extracting terminal identity information of a sending end from a streaming media data sending request from the sending end, and comparing the terminal identity information with a preset terminal identity information white list;
if the terminal identity information exists in a preset terminal identity information white list, judging that the sending end has streaming media data sending authority; otherwise, judging that the sending end does not have the streaming media data sending authority;
the sending end connection module is used for connecting a sending end with streaming media data sending authority to a server so that the server receives corresponding streaming media data, and comprises:
connecting a transmitting end with streaming media data transmitting authority to a server according to the current external terminal connection state of the server; and adjusting the receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server.
Further, the transmitting end connection module connects the transmitting end with the streaming media data transmitting authority to the server according to the current external terminal connection state of the server; and adjusting a receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server, wherein the method comprises the following steps:
judging whether the server is in a connection saturation state currently according to the current external terminal connection state of the server; if not, connecting a transmitting end with the streaming media data transmitting authority to a server; if so, replacing one of the connected external terminals with a transmitting terminal with streaming media data transmitting authority according to the working state of the external terminal connected with the server currently, so as to connect to the server;
judging whether the server is in a saturated state of receiving streaming media data currently according to the streaming media data received by the server currently; if not, directly receiving the streaming media data from the sending end; if yes, the receiving of the streaming media data from the sending end is suspended.
Further, the streaming media data transfer module is configured to determine, according to the streaming media data sending request, network attribute information where a receiving end to which the streaming media data needs to be sent is located; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal, including:
extracting terminal address information of a receiving end to which the streaming media data needs to be sent from the streaming media data sending request; judging whether the receiving end belongs to a private network terminal or a public network terminal according to the terminal address information;
if the receiving end belongs to the private network terminal, transferring the streaming media data from the server to a transfer end in a private network;
and if the receiving end belongs to the public network terminal, transferring the streaming media data from the server to a public network transit end.
Further, the streaming media data sending module is configured to construct a data transmission link with the receiving end according to the status information to be sent of the current streaming media data of the forwarding end in the private network or the forwarding end in the public network, and perform streaming media data sending operation to the receiving end through the data transmission link, and includes:
acquiring the quantity of stream media data contained in a current stream media data to-be-sent queue of a transfer terminal in the private network or a transfer terminal in the public network;
if the number of the streaming media data is larger than or equal to a preset number threshold, a data transmission link with the receiving end is not constructed;
if the streaming media data is smaller than the preset quantity threshold, a data transmission link with the receiving end is constructed, and streaming media data sending operation is carried out to the receiving end through the data transmission link.
Compared with the prior art, the streaming media data transmission method and system based on the transfer switching mode connect a transmitting end with streaming media data transmitting authority to a server and transmit the streaming media data to the server; according to the network attribute information of the receiving end to which the streaming media data needs to be sent, the streaming media data is transferred to a private network transit end or a public network transit end; and according to the current streaming media data to be sent state information of the transfer end in the private network or the public network, a data transmission link with the receiving end is constructed, so that streaming media data sending operation is carried out to the receiving end, the transfer end in the private network and the public network transfer end are connected and arranged on the server, after the sending end is accessed to the server, the transfer end in the private network or the public network is utilized to transmit the streaming media data on the private network or the public network layer, so that when the sending end and the receiving end are respectively in different network systems, safe and stable transmission of the streaming media data can be realized, and the transmission efficiency and reliability of the streaming media data under different network system scenes are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for transmitting streaming media data based on a transfer switching mode according to the present invention.
Fig. 2 is a schematic structural diagram of a streaming media data transmission system based on a transit switching mode according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a method for transmitting streaming media data based on a transit switching mode according to an embodiment of the present invention is shown. The streaming media data transmission method based on the transfer switching mode comprises the following steps:
step S1, judging whether the sending end has streaming media data sending authority according to a streaming media data sending request from the sending end; connecting a transmitting end with streaming media data transmitting authority to a server so that the server receives corresponding streaming media data;
step S2, according to the streaming media data sending request, determining network attribute information of a receiving end to which the streaming media data needs to be sent; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal;
step S3, according to the current streaming media data to-be-transmitted state information of the private network transfer terminal or the public network transfer terminal, constructing a data transmission link with the receiving terminal, and transmitting streaming media data to the receiving terminal through the data transmission link.
The beneficial effects of the technical scheme are as follows: the streaming media data transmission method based on the transfer switching mode connects a transmitting end with streaming media data transmitting authority to a server and transmits the streaming media data to the server; according to the network attribute information of the receiving end to which the streaming media data needs to be sent, the streaming media data is transferred to a private network transit end or a public network transit end; and according to the current streaming media data to be sent state information of the transfer end in the private network or the public network, a data transmission link with the receiving end is constructed, so that streaming media data sending operation is carried out to the receiving end, the transfer end in the private network and the public network transfer end are connected and arranged on the server, after the sending end is accessed to the server, the transfer end in the private network or the public network is utilized to transmit the streaming media data on the private network or the public network layer, so that when the sending end and the receiving end are respectively in different network systems, safe and stable transmission of the streaming media data can be realized, and the transmission efficiency and reliability of the streaming media data under different network system scenes are improved.
Preferably, in the step S1, according to a streaming media data transmission request from a transmitting end, whether the transmitting end has streaming media data transmission authority is determined; connecting a transmitting end with streaming media data transmitting authority to a server so that the server receives corresponding streaming media data, wherein the method comprises the following steps:
extracting terminal identity information of a sending end from a streaming media data sending request from the sending end, and comparing the terminal identity information with a preset terminal identity information white list;
if the terminal identity information exists in a preset terminal identity information white list, judging that the sending end has streaming media data sending authority; otherwise, judging that the sending end does not have the sending authority of the streaming media data;
connecting a transmitting end with streaming media data transmitting authority to a server according to the current external terminal connection state of the server; and adjusting the receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server.
The beneficial effects of the technical scheme are as follows: when the sending end needs to send the streaming media data outwards, firstly, a streaming media data sending request is sent to a server, terminal identity information of the sending end is extracted from the streaming media data sending request, white list comparison processing is carried out on the terminal identity information, and whether the sending end has authority for sending the streaming media data through the server is judged. The server can be used for transmitting streaming media data by a plurality of different transmitting ends, and the server itself has corresponding external terminal connection limits, if the server is currently connected with too many external terminals, stable and continuous transmission and transmission of streaming media data of each external terminal cannot be ensured. According to the current external terminal connection state of the server and the received streaming media data, the connection state between the sending end with streaming media data sending authority and the server and the receiving state of the streaming media data by the server are adjusted, so that the situation that the server is connected with too many sending ends and receives too many streaming media data at the same time can be avoided, and the workload of the server is effectively reduced.
Preferably, in the step S1, a transmitting end with streaming media data transmitting authority is connected to a server according to a current external terminal connection state of the server; and adjusting a receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server, including:
judging whether the server is in a connection saturation state currently according to the current external terminal connection state of the server; if not, connecting a transmitting end with the streaming media data transmitting authority to a server; if so, replacing one of the connected external terminals with a transmitting terminal with streaming media data transmitting authority according to the working state of the external terminal connected with the server currently, so as to connect to the server;
judging whether the server is in a saturated state of receiving streaming media data currently according to the streaming media data received by the server currently; if not, directly receiving the streaming media data from the sending end; if yes, the receiving of the streaming media data from the sending end is suspended.
The beneficial effects of the technical scheme are as follows: in actual work, acquiring the number of external terminals connected with the server currently, and if the number of the external terminals connected with the server is larger than or equal to a preset number threshold value, indicating that the server is in a connection saturation state currently; otherwise, it indicates that the server is not currently in connection saturation. When the server is not in a connection saturation state at present, directly connecting a transmitting end with streaming media data transmitting authority to the server; when the server is in a connection saturation state, determining an external terminal with the minimum data operation load in all external terminals connected with the server, disconnecting the external terminal with the minimum data operation load from the server, and connecting a transmitting end with the streaming media data transmitting authority with the server, so that the transmitting end with the streaming media data transmitting authority is ensured to perform streaming media data transmitting operation in time. In addition, when the server is currently in a saturated state of receiving streaming media data (i.e. the currently received streaming media data is greater than or equal to the preset quantity threshold value), the receiving of the streaming media data from the transmitting end is paused until the processing part of the streaming media data received by the server is converted into a non-saturated state of receiving streaming media data, and the streaming media data from the transmitting end is not re-received.
Preferably, in the step S2, according to the streaming media data sending request, network attribute information of a receiving end to which the streaming media data needs to be sent is determined; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal, including:
extracting terminal address information of a receiving end to which the streaming media data needs to be sent from the streaming media data sending request; judging whether the receiving end belongs to a private network terminal or a public network terminal according to the terminal address information; the private network terminal refers to a terminal of which the IP address belongs to a local area network, and the public network terminal refers to a terminal of which the IP address belongs to the Internet;
if the receiving end belongs to the private network terminal, the streaming media data is transferred from the server to the private network transfer end;
if the receiving end belongs to the public network terminal, the streaming media data is transferred from the server to the public network transfer end.
The beneficial effects of the technical scheme are as follows: by the method, the server is provided with the private network transit terminal and the public network transit terminal, so that the streaming media data can be accurately transferred from the server under the condition that the receiving terminal belongs to the private network terminal or the public network terminal, and the streaming media data is ensured to be sent to the receiving terminals of different network systems through the private network transit terminal or the public network transit terminal.
Preferably, in the step S3, according to the status information of the current streaming media data to be sent by the transit end in the private network or the transit end in the public network, a data transmission link with the receiving end is constructed, and streaming media data sending operation is performed to the receiving end through the data transmission link, including:
acquiring the quantity of stream media data contained in a current stream media data to-be-sent queue of a transfer end in the private network or a transfer end in the public network;
if the number of the streaming media data is greater than or equal to a preset number threshold, a data transmission link with the receiving end is not constructed;
if the streaming media data is smaller than the preset number threshold, a data transmission link with the receiving end is constructed, and streaming media data sending operation is carried out to the receiving end through the data transmission link.
The beneficial effects of the technical scheme are as follows: by the method, the transfer terminal in the private network or the transfer terminal in the public network can be guaranteed to timely send the streaming media data to the receiving terminal, and the sending efficiency of the streaming media data is improved.
Referring to fig. 2, a schematic structural diagram of a streaming media data transmission system based on a transit switching mode according to an embodiment of the present invention is shown. The stream media data transmission system based on the transfer switching mode comprises:
the sending end identification module is used for judging whether the sending end has the streaming media data sending authority according to the streaming media data sending request from the sending end;
the sending end connection module is used for connecting a sending end with streaming media data sending authority to the server so that the server receives corresponding streaming media data;
the streaming media data transfer module is used for determining network attribute information of a receiving end to which the streaming media data is required to be sent according to the streaming media data sending request; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal;
and the streaming media data sending module is used for constructing a data transmission link with the receiving end according to the current streaming media data to-be-sent state information of the private network transfer end or the public network transfer end, and sending streaming media data to the receiving end through the data transmission link.
The beneficial effects of the technical scheme are as follows: the streaming media data transmission system based on the transfer switching mode connects a transmitting end with streaming media data transmitting authority to a server and transmits the streaming media data to the server; according to the network attribute information of the receiving end to which the streaming media data needs to be sent, the streaming media data is transferred to a private network transit end or a public network transit end; and according to the current streaming media data to be sent state information of the transfer end in the private network or the public network, a data transmission link with the receiving end is constructed, so that streaming media data sending operation is carried out to the receiving end, the transfer end in the private network and the public network transfer end are connected and arranged on the server, after the sending end is accessed to the server, the transfer end in the private network or the public network is utilized to transmit the streaming media data on the private network or the public network layer, so that when the sending end and the receiving end are respectively in different network systems, safe and stable transmission of the streaming media data can be realized, and the transmission efficiency and reliability of the streaming media data under different network system scenes are improved.
Preferably, the sending end identification module is configured to determine, according to a streaming media data sending request from a sending end, whether the sending end has streaming media data sending authority, and includes:
extracting terminal identity information of a sending end from a streaming media data sending request from the sending end, and comparing the terminal identity information with a preset terminal identity information white list;
if the terminal identity information exists in a preset terminal identity information white list, judging that the sending end has streaming media data sending authority; otherwise, judging that the sending end does not have the sending authority of the streaming media data;
the sending end connection module is used for connecting a sending end with streaming media data sending authority to a server so that the server receives corresponding streaming media data, and comprises:
connecting a transmitting end with streaming media data transmitting authority to a server according to the current external terminal connection state of the server; and adjusting the receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server.
The beneficial effects of the technical scheme are as follows: when the sending end needs to send the streaming media data outwards, firstly, a streaming media data sending request is sent to a server, terminal identity information of the sending end is extracted from the streaming media data sending request, white list comparison processing is carried out on the terminal identity information, and whether the sending end has authority for sending the streaming media data through the server is judged. The server can be used for transmitting streaming media data by a plurality of different transmitting ends, and the server itself has corresponding external terminal connection limits, if the server is currently connected with too many external terminals, stable and continuous transmission and transmission of streaming media data of each external terminal cannot be ensured. According to the current external terminal connection state of the server and the received streaming media data, the connection state between the sending end with streaming media data sending authority and the server and the receiving state of the streaming media data by the server are adjusted, so that the situation that the server is connected with too many sending ends and receives too many streaming media data at the same time can be avoided, and the workload of the server is effectively reduced.
Preferably, the transmitting end connection module connects the transmitting end with the streaming media data transmitting authority to the server according to the current external terminal connection state of the server; and adjusting a receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server, including:
judging whether the server is in a connection saturation state currently according to the current external terminal connection state of the server; if not, connecting a transmitting end with the streaming media data transmitting authority to a server; if so, replacing one of the connected external terminals with a transmitting terminal with streaming media data transmitting authority according to the working state of the external terminal connected with the server currently, so as to connect to the server;
judging whether the server is in a saturated state of receiving streaming media data currently according to the streaming media data received by the server currently; if not, directly receiving the streaming media data from the sending end; if yes, the receiving of the streaming media data from the sending end is suspended.
The beneficial effects of the technical scheme are as follows: in actual work, acquiring the number of external terminals connected with the server currently, and if the number of the external terminals connected with the server is larger than or equal to a preset number threshold value, indicating that the server is in a connection saturation state currently; otherwise, it indicates that the server is not currently in connection saturation. When the server is not in a connection saturation state at present, directly connecting a transmitting end with streaming media data transmitting authority to the server; when the server is in a connection saturation state, determining an external terminal with the minimum data operation load in all external terminals connected with the server, disconnecting the external terminal with the minimum data operation load from the server, and connecting a transmitting end with the streaming media data transmitting authority with the server, so that the transmitting end with the streaming media data transmitting authority is ensured to perform streaming media data transmitting operation in time. In addition, when the server is currently in a saturated state of receiving streaming media data (i.e. the currently received streaming media data is greater than or equal to the preset quantity threshold value), the receiving of the streaming media data from the transmitting end is paused until the processing part of the streaming media data received by the server is converted into a non-saturated state of receiving streaming media data, and the streaming media data from the transmitting end is not re-received.
Preferably, the streaming media data transfer module is configured to determine, according to the streaming media data sending request, network attribute information where a receiving end to which the streaming media data needs to be sent is located; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal, including:
extracting terminal address information of a receiving end to which the streaming media data needs to be sent from the streaming media data sending request; judging whether the receiving end belongs to a private network terminal or a public network terminal according to the terminal address information;
if the receiving end belongs to the private network terminal, the streaming media data is transferred from the server to the private network transfer end;
if the receiving end belongs to the public network terminal, the streaming media data is transferred from the server to the public network transfer end.
The beneficial effects of the technical scheme are as follows: by the method, the server is provided with the private network transit terminal and the public network transit terminal, so that the streaming media data can be accurately transferred from the server under the condition that the receiving terminal belongs to the private network terminal or the public network terminal, and the streaming media data is ensured to be sent to the receiving terminals of different network systems through the private network transit terminal or the public network transit terminal.
Preferably, the streaming media data sending module is configured to construct a data transmission link with the receiving end according to the status information of the current streaming media data to be sent by the transit end in the private network or the transit end in the public network, and perform streaming media data sending operation to the receiving end through the data transmission link, and includes:
acquiring the quantity of stream media data contained in a current stream media data to-be-sent queue of a transfer end in the private network or a transfer end in the public network;
if the number of the streaming media data is greater than or equal to a preset number threshold, a data transmission link with the receiving end is not constructed;
if the streaming media data is smaller than the preset number threshold, a data transmission link with the receiving end is constructed, and streaming media data sending operation is carried out to the receiving end through the data transmission link.
The beneficial effects of the technical scheme are as follows: by the method, the transfer terminal in the private network or the transfer terminal in the public network can be guaranteed to timely send the streaming media data to the receiving terminal, and the sending efficiency of the streaming media data is improved.
As can be seen from the foregoing embodiments, the method and system for transmitting streaming media data based on the transit switching mode connect a transmitting end with streaming media data transmitting authority to a server, and transmit streaming media data to the server; according to the network attribute information of the receiving end to which the streaming media data needs to be sent, the streaming media data is transferred to a private network transit end or a public network transit end; and according to the current streaming media data to be sent state information of the transfer end in the private network or the public network, a data transmission link with the receiving end is constructed, so that streaming media data sending operation is carried out to the receiving end, the transfer end in the private network and the public network transfer end are connected and arranged on the server, after the sending end is accessed to the server, the transfer end in the private network or the public network is utilized to transmit the streaming media data on the private network or the public network layer, so that when the sending end and the receiving end are respectively in different network systems, safe and stable transmission of the streaming media data can be realized, and the transmission efficiency and reliability of the streaming media data under different network system scenes are improved.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. The streaming media data transmission method based on the transit switching mode is characterized by comprising the following steps:
step S1, judging whether a sending end has streaming media data sending authority according to a streaming media data sending request from the sending end; connecting a transmitting end with streaming media data transmitting authority to a server so that the server receives corresponding streaming media data;
step S2, according to the streaming media data sending request, determining network attribute information of a receiving end to which the streaming media data needs to be sent; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal;
and step S3, constructing a data transmission link with the receiving end according to the state information to be transmitted of the current streaming media data of the forwarding end in the private network or the forwarding end in the public network, and transmitting the streaming media data to the receiving end through the data transmission link.
2. The streaming media data transmission method based on the transit switching mode as claimed in claim 1, wherein:
in the step S1, according to a streaming media data transmission request from a transmitting end, whether the transmitting end has streaming media data transmission authority is determined; connecting a transmitting end with streaming media data transmitting authority to a server so that the server receives corresponding streaming media data, wherein the method comprises the following steps:
extracting terminal identity information of a sending end from a streaming media data sending request from the sending end, and comparing the terminal identity information with a preset terminal identity information white list;
if the terminal identity information exists in a preset terminal identity information white list, judging that the sending end has streaming media data sending authority; otherwise, judging that the sending end does not have the streaming media data sending authority;
connecting a transmitting end with streaming media data transmitting authority to a server according to the current external terminal connection state of the server; and adjusting the receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server.
3. The streaming media data transmission method based on the transit switching mode as claimed in claim 2, wherein:
in the step S1, a transmitting end with streaming media data transmitting authority is connected to a server according to the current external terminal connection state of the server; and adjusting a receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server, wherein the method comprises the following steps:
judging whether the server is in a connection saturation state currently according to the current external terminal connection state of the server; if not, connecting a transmitting end with the streaming media data transmitting authority to a server; if so, replacing one of the connected external terminals with a transmitting terminal with streaming media data transmitting authority according to the working state of the external terminal connected with the server currently, so as to connect to the server;
judging whether the server is in a saturated state of receiving streaming media data currently according to the streaming media data received by the server currently; if not, directly receiving the streaming media data from the sending end;
if yes, the receiving of the streaming media data from the sending end is suspended.
4. The streaming media data transmission method based on the transit switching mode as claimed in claim 1, wherein:
in the step S2, according to the streaming media data sending request, determining network attribute information of a receiving end to which the streaming media data needs to be sent; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal, including:
extracting terminal address information of a receiving end to which the streaming media data needs to be sent from the streaming media data sending request; judging whether the receiving end belongs to a private network terminal or a public network terminal according to the terminal address information;
if the receiving end belongs to the private network terminal, transferring the streaming media data from the server to a transfer end in a private network;
and if the receiving end belongs to the public network terminal, transferring the streaming media data from the server to a public network transit end.
5. The streaming media data transmission method based on the transit switching mode as claimed in claim 1, wherein:
in step S3, according to the status information of the current streaming media data to be sent of the forwarding end in the private network or the forwarding end in the public network, a data transmission link with the receiving end is constructed, and streaming media data sending operation is performed to the receiving end through the data transmission link, including:
acquiring the quantity of stream media data contained in a current stream media data to-be-sent queue of a transfer terminal in the private network or a transfer terminal in the public network;
if the number of the streaming media data is larger than or equal to a preset number threshold, a data transmission link with the receiving end is not constructed;
if the streaming media data is smaller than the preset quantity threshold, a data transmission link with the receiving end is constructed, and streaming media data sending operation is carried out to the receiving end through the data transmission link.
6. The stream media data transmission system based on the transfer switching mode is characterized by comprising:
the sending end identification module is used for judging whether the sending end has streaming media data sending authority according to a streaming media data sending request from the sending end;
the sending end connection module is used for connecting a sending end with streaming media data sending authority to a server so that the server receives corresponding streaming media data;
the streaming media data transfer module is used for determining network attribute information of a receiving end to which the streaming media data is required to be sent according to the streaming media data sending request; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal;
and the streaming media data sending module is used for constructing a data transmission link with the receiving end according to the current streaming media data to-be-sent state information of the forwarding end in the private network or the forwarding end in the public network, and sending streaming media data to the receiving end through the data transmission link.
7. The transit switching mode-based streaming media data transmission system according to claim 6, wherein:
the sender identification module is configured to determine, according to a streaming media data sending request from a sender, whether the sender has streaming media data sending authority, and includes:
extracting terminal identity information of a sending end from a streaming media data sending request from the sending end, and comparing the terminal identity information with a preset terminal identity information white list;
if the terminal identity information exists in a preset terminal identity information white list, judging that the sending end has streaming media data sending authority; otherwise, judging that the sending end does not have the streaming media data sending authority;
the sending end connection module is used for connecting a sending end with streaming media data sending authority to a server so that the server receives corresponding streaming media data, and comprises:
connecting a transmitting end with streaming media data transmitting authority to a server according to the current external terminal connection state of the server; and adjusting the receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server.
8. The transit switching mode-based streaming media data transmission system according to claim 7, wherein:
the transmitting end connection module connects the transmitting end with the streaming media data transmitting authority to the server according to the current external terminal connection state of the server; and adjusting a receiving state of the streaming media data from the transmitting end according to the streaming media data currently received by the server, wherein the method comprises the following steps:
judging whether the server is in a connection saturation state currently according to the current external terminal connection state of the server; if not, connecting a transmitting end with the streaming media data transmitting authority to a server; if so, replacing one of the connected external terminals with a transmitting terminal with streaming media data transmitting authority according to the working state of the external terminal connected with the server currently, so as to connect to the server;
judging whether the server is in a saturated state of receiving streaming media data currently according to the streaming media data received by the server currently; if not, directly receiving the streaming media data from the sending end;
if yes, the receiving of the streaming media data from the sending end is suspended.
9. The transit switching mode-based streaming media data transmission system according to claim 6, wherein:
the streaming media data transfer module is used for determining network attribute information of a receiving end to which the streaming media data is required to be sent according to the streaming media data sending request; according to the network attribute information, transferring the streaming media data from the server to a private network transit terminal or a public network transit terminal, including:
extracting terminal address information of a receiving end to which the streaming media data needs to be sent from the streaming media data sending request; judging whether the receiving end belongs to a private network terminal or a public network terminal according to the terminal address information;
if the receiving end belongs to the private network terminal, transferring the streaming media data from the server to a transfer end in a private network;
and if the receiving end belongs to the public network terminal, transferring the streaming media data from the server to a public network transit end.
10. The transit switching mode-based streaming media data transmission system according to claim 6, wherein:
the streaming media data sending module is configured to construct a data transmission link with the receiving end according to the status information to be sent of the current streaming media data of the forwarding end in the private network or the forwarding end in the public network, and perform streaming media data sending operation to the receiving end through the data transmission link, and includes:
acquiring the quantity of stream media data contained in a current stream media data to-be-sent queue of a transfer terminal in the private network or a transfer terminal in the public network;
if the number of the streaming media data is larger than or equal to a preset number threshold, a data transmission link with the receiving end is not constructed;
if the streaming media data is smaller than the preset quantity threshold, a data transmission link with the receiving end is constructed, and streaming media data sending operation is carried out to the receiving end through the data transmission link.
CN202211643843.4A 2022-12-20 2022-12-20 Streaming media data transmission method and system based on transit switching mode Pending CN116800460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211643843.4A CN116800460A (en) 2022-12-20 2022-12-20 Streaming media data transmission method and system based on transit switching mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211643843.4A CN116800460A (en) 2022-12-20 2022-12-20 Streaming media data transmission method and system based on transit switching mode

Publications (1)

Publication Number Publication Date
CN116800460A true CN116800460A (en) 2023-09-22

Family

ID=88042662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211643843.4A Pending CN116800460A (en) 2022-12-20 2022-12-20 Streaming media data transmission method and system based on transit switching mode

Country Status (1)

Country Link
CN (1) CN116800460A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117478680A (en) * 2023-12-26 2024-01-30 国网四川省电力公司信息通信公司 Terminal data stream transmission remote control method and system based on Internet of things management platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117478680A (en) * 2023-12-26 2024-01-30 国网四川省电力公司信息通信公司 Terminal data stream transmission remote control method and system based on Internet of things management platform
CN117478680B (en) * 2023-12-26 2024-03-15 国网四川省电力公司信息通信公司 Terminal data stream transmission remote control method and system based on Internet of things management platform

Similar Documents

Publication Publication Date Title
US9137623B2 (en) Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (M2M) platform
US7437478B2 (en) Priority control device
CN101123588B (en) Method, media gateway and system for controlling redundant data packet transmission
EP1892887A1 (en) Communication method between communication devices and communication apparatus
CN106230896A (en) A kind of information push method, Apparatus and system
CN102394925B (en) Communication method and device for remote monitoring diagnosis center and area regulation center
CN110808948B (en) Remote procedure calling method, device and system
US20110032940A1 (en) Triggering bandwidth reservation and priority remarking
CN103532822A (en) Management method for message delivery, server and system thereof
CN109217983B (en) Industrial Internet of things operation terminal communication protocol design method
CN101499934A (en) Method, apparatus and system for diagnosing whether the node is abnormal in peer-to-peer network
CN113098985B (en) Session management method and scheduling server
CN104821909A (en) Peer-to-peer data transmission method and system
CN116800460A (en) Streaming media data transmission method and system based on transit switching mode
CN108551571B (en) Monitoring video distribution method, device and system and distribution server
CN105515936A (en) Method, server and system for message communication
CN102256113A (en) Control method and control device for forwarding media stream
CN111092952A (en) Data interaction method and related product
JP2018046404A (en) Relay device, relay system, relay program, and relay method
CN112468513B (en) Terminal management communication method for enterprise network
CN101924736B (en) Method and device for transmitting dynamic host configuration protocol message
CN113286347B (en) Wireless network construction method
CN108989467B (en) Centralized addressing method
CN102291315B (en) Method and system for transmitting information in monitoring system
CN116488712B (en) Non-real-time relay communication method based on improved store-and-forward protocol

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