CN111262864B - Method, device and system for sending live broadcast state data and storage medium - Google Patents

Method, device and system for sending live broadcast state data and storage medium Download PDF

Info

Publication number
CN111262864B
CN111262864B CN202010049522.6A CN202010049522A CN111262864B CN 111262864 B CN111262864 B CN 111262864B CN 202010049522 A CN202010049522 A CN 202010049522A CN 111262864 B CN111262864 B CN 111262864B
Authority
CN
China
Prior art keywords
access gateway
gateway
access
gateways
target
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
CN202010049522.6A
Other languages
Chinese (zh)
Other versions
CN111262864A (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 Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN202010049522.6A priority Critical patent/CN111262864B/en
Publication of CN111262864A publication Critical patent/CN111262864A/en
Application granted granted Critical
Publication of CN111262864B publication Critical patent/CN111262864B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Abstract

The application discloses a method, a device and a system for sending live broadcast state data and a storage medium, and relates to the field of data transmission. The live broadcast client can determine the communication performance index of each access gateway recorded in the gateway list, and can determine at least one target access gateway with the communication performance index larger than an index threshold value from the plurality of access gateways, so as to send the live broadcast state data to each target access gateway. Because the access gateways recorded in the gateway list also comprise the edge access gateway which is closer to the terminal besides the central access gateway, the determined target access gateway can be ensured to have better communication performance, so that the stability of data transmission between the live client and the target access gateway can be ensured, and the stability of data transmission between the live client and the central gateway can be effectively ensured.

Description

Method, device and system for sending live broadcast state data and storage medium
Technical Field
The present application relates to the field of data transmission, and in particular, to a method, an apparatus, a system, and a storage medium for sending live broadcast status data.
Background
In the live broadcast process, the anchor client may determine live broadcast state data of the anchor based on a state of the current anchor, and may send the state data to a service server located in an Internet Data Center (IDC) machine room (which may also be referred to as a central machine room). The state of the anchor can be a live state or an off-air state. The central computer room may refer to a core computer room of a live broadcast service.
In the related art, the anchor client may send the live broadcast status data to a central gateway located in a central computer room, and the central gateway may send the data to a service server.
However, when the anchor client is far away from the central computer room, stability of data transmission between the anchor client and the central gateway located in the central computer room is low.
Disclosure of Invention
The application provides a method, a device, a system and a storage medium for sending live broadcast state data, which can solve the problem of low stability of data transmission between an anchor client and a central gateway located in a central computer room in the related art. The technical scheme is as follows:
on one hand, a method for sending live broadcast state data is provided, which is applied to a live broadcast client, and comprises the following steps:
acquiring a gateway list, wherein an identifier of each access gateway in a plurality of access gateways is recorded in the gateway list, the plurality of access gateways comprise at least one edge access gateway located in an edge computer room and at least one center access gateway located in a center computer room, and each edge access gateway and each center access gateway are connected with the center gateway located in the center computer room;
respectively determining the communication performance index of each access gateway;
determining at least one target access gateway from the plurality of access gateways, wherein the communication performance index of each target access gateway is greater than an index threshold;
and respectively sending the live broadcast state data of the live broadcast client to each target access gateway.
Optionally, the gateway list further records a weight of each access gateway, where the weight is positively correlated with the communication performance of the access gateway; the determining the communication performance index of each access gateway respectively includes:
determining a time delay between the live client and each access gateway;
for each access gateway, determining a communication performance index of the access gateway based on the time delay between the live broadcast client and the access gateway and the weight of the access gateway, wherein the communication performance index is positively correlated with the time delay and negatively correlated with the weight.
Optionally, the determining at least one target access gateway from the plurality of access gateways includes:
determining at least one alternative access gateway with a communication performance index larger than an index threshold value from the plurality of access gateways;
sending an authentication request to each alternative access gateway, wherein the authentication request carries an identifier of a live client, and the authentication request is used for indicating the alternative access gateway to authenticate the live client;
and determining at least one target access gateway based on at least one alternative access gateway which sends an authentication passing message in the plurality of alternative access gateways.
Optionally, an identifier of a machine room to which each access gateway belongs is further recorded in the gateway list;
if the number of the alternative access gateways sending the authentication passing message is multiple, the determining at least one target access gateway to determine the target access gateway based on at least one alternative access gateway sending the authentication passing message in the multiple alternative access gateways includes:
if the identifiers of the machine rooms to which the alternative access gateways sending the authentication passing messages belong are the same, determining a target access gateway from the alternative access gateways sending the authentication passing messages;
and if the identifications of the machine rooms to which the multiple alternative access gateways which send the authentication passing messages belong are different, determining multiple target access gateways with different identifications of the machine rooms from the multiple alternative access gateways which send the authentication passing messages.
Optionally, the method further includes:
and for each alternative access gateway, in a first target time length after an authentication request is sent to the alternative access gateway, if an authentication passing message sent by the alternative access gateway is not received and the number of times of sending the authentication request to the alternative access gateway is less than a first time threshold value, executing the operation of sending the authentication request to the alternative access gateway again.
Optionally, after the live broadcast status data of the live broadcast client is respectively sent to each target access gateway, the method further includes:
if it is detected that a handover access gateway meeting a gateway handover condition exists in at least one target access gateway, re-determining at least one target access gateway based on the communication performance index of the handover access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways;
wherein the gateway switching condition comprises at least one of the following conditions:
the connection between the live client and the target access gateway is interrupted;
and the communication performance index of the target access gateway is smaller than the index threshold value.
Optionally, the gateway switching condition includes: the communication performance index of the target access gateway is smaller than the index threshold value; the re-determining at least one target access gateway comprises:
and if the operation of the at least one target access gateway is triggered and re-determined based on the gateway switching condition for the first time within a second target time length after the operation of the at least one target access gateway is triggered and re-determined based on the gateway switching condition, the number of times of re-determining the operation of the at least one target access gateway is triggered and re-determined based on the gateway switching condition is smaller than a second secondary number threshold, re-determining the at least one target access gateway.
Optionally, after determining at least one target access gateway from the plurality of access gateways, the method further includes:
and if the number of the central access gateways included in at least one target access gateway is smaller than the number threshold, re-determining at least one target access gateway based on the communication performance index of each access gateway except for at least one target access gateway in the plurality of access gateways.
In another aspect, an apparatus for sending live broadcast status data is provided, where the apparatus is applied to a live broadcast client, and the apparatus includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a gateway list, and the gateway list records an identifier of each access gateway in a plurality of access gateways, wherein the plurality of access gateways comprise at least one edge access gateway positioned in an edge machine room and at least one center access gateway positioned in a center machine room, and each edge access gateway and each center access gateway are connected with the center gateway positioned in the center machine room;
the first determining module is used for respectively determining the communication performance index of each access gateway;
a second determining module, configured to determine at least one target access gateway from the multiple access gateways, where a communication performance index of each target access gateway is greater than an index threshold;
and the sending module is used for respectively sending the live broadcast state data of the live broadcast client to each target access gateway.
Optionally, the gateway list further records a weight of each access gateway, where the weight is positively correlated with the communication performance of the access gateway; the first determination module is to:
determining a time delay between the live client and each access gateway;
for each access gateway, determining a communication performance index of the access gateway based on the time delay between the live broadcast client and the access gateway and the weight of the access gateway, wherein the communication performance index is positively correlated with the time delay and negatively correlated with the weight.
Optionally, the second determining module includes:
the first determining submodule is used for determining at least one alternative access gateway of which the communication performance index is larger than an index threshold from the plurality of access gateways;
a sending submodule, configured to send an authentication request to each alternative access gateway, where the authentication request carries an identifier of a live broadcast client, and the authentication request is used to instruct the alternative access gateway to authenticate the live broadcast client;
and the second determining submodule is used for determining at least one target access gateway based on at least one alternative access gateway which sends an authentication passing message in the plurality of alternative access gateways.
Optionally, an identifier of a machine room to which each access gateway belongs is further recorded in the gateway list; if the alternative access gateways sending the authentication passing message comprise a plurality of alternative access gateways, the second determining submodule is used for:
if the identifiers of the machine rooms to which the alternative access gateways sending the authentication passing messages belong are the same, determining a target access gateway from the alternative access gateways sending the authentication passing messages;
and if the identifications of the machine rooms to which the multiple alternative access gateways which send the authentication passing messages belong are different, determining multiple target access gateways with different identifications of the machine rooms from the multiple alternative access gateways which send the authentication passing messages.
Optionally, the second determining module is further configured to:
and for each alternative access gateway, in a first target time length after an authentication request is sent to the alternative access gateway, if an authentication passing message sent by the alternative access gateway is not received and the number of times of sending the authentication request to the alternative access gateway is less than a first time threshold value, executing the operation of sending the authentication request to the alternative access gateway again.
Optionally, the apparatus further includes a third determining module, where the third determining module is configured to:
if it is detected that a handover access gateway meeting a gateway handover condition exists in at least one target access gateway, re-determining at least one target access gateway based on the communication performance index of the handover access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways;
wherein the gateway switching condition comprises at least one of the following conditions:
the connection between the live client and the target access gateway is interrupted;
and the communication performance index of the target access gateway is smaller than the index threshold value.
Optionally, the gateway switching condition includes: the communication performance index of the target access gateway is smaller than the index threshold value; the third determining module is to:
and if the operation times of the at least one target access gateway which are re-determined based on the gateway switching condition are triggered again to be less than the second time threshold value within a second target time length after the operation of the at least one target access gateway is re-determined based on the gateway switching condition for the first time, re-determining the at least one target access gateway.
Optionally, the apparatus further comprises: a fourth determination module to:
and if the number of the central access gateways included in at least one target access gateway is smaller than the number threshold, re-determining at least one target access gateway based on the communication performance index of each access gateway except for at least one target access gateway in the plurality of access gateways.
In another aspect, an apparatus for sending live broadcast status data is provided, where the apparatus is applied to a live broadcast client, and the apparatus includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of transmitting live status data as described in the above aspect when executing the computer program.
In yet another aspect, a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform a method of transmitting live status data as described in the above aspect.
In a further aspect, there is provided a computer program product comprising instructions which, when run on the computer, cause the computer to perform the method of transmitting live state data of the above aspect.
In another aspect, a system for sending live broadcast status data is provided, where the system includes: the system comprises a live broadcast client, a plurality of access gateways and a central gateway;
the access gateways comprise at least one edge access gateway positioned in an edge machine room and at least one center access gateway positioned in a center machine room, and each edge access gateway and each center access gateway are connected with the center gateway positioned in the center machine room;
the live client comprises a sending device of the live status data according to the above aspect.
The beneficial effect that technical scheme that this application provided brought includes at least:
the application provides a method, a device, a system and a storage medium for sending live broadcast state data, a live broadcast client can determine a communication performance index of each access gateway recorded in a gateway list, and can determine at least one target access gateway with the communication performance index larger than an index threshold from a plurality of access gateways, so that the live broadcast state data are sent to each target access gateway respectively. Because the access gateways recorded in the gateway list also comprise the edge access gateway which is closer to the terminal besides the central access gateway, the determined target access gateway can be ensured to have better communication performance, so that the stability of data transmission between the live client and the target access gateway can be ensured, and the stability of data transmission between the live client and the central gateway can be effectively ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a system for sending live broadcast status data according to an embodiment of the present application;
fig. 2 is a flowchart of a method for sending live broadcast status data according to an embodiment of the present application;
fig. 3 is a flowchart of another method for sending live broadcast status data according to an embodiment of the present application;
fig. 4 is a flowchart of a method for determining communication performance indicators of each access gateway according to an embodiment of the present application;
fig. 5 is a flowchart of a method for determining at least one target access gateway from a plurality of access gateways according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a device for sending live broadcast status data according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a second determining module provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of another apparatus for sending live broadcast status data according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another apparatus for sending live broadcast status data according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a system for sending live broadcast status data according to an embodiment of the present application. Referring to fig. 1, the transmission system may include: a terminal 10, a plurality of access gateways 20 and a central gateway 30. The plurality of access gateways 20 may include at least one edge access gateway 201 located in edge room a and at least one center access gateway 202 located in center room b. For example, fig. 1 shows 2 edge tenants a, in each of which two edge access gateways 201 may be disposed, and 1 center tenants b, in which two center access gateways 202 and two center gateways 30 may be disposed. The edge equipment room a may be an equipment room that is located at the edge of the network and is closer to the terminal 10.
Each edge access gateway 201 and each central access gateway 202 may be connected to the central gateway 30 by wire or wirelessly. The terminal 10 may be connected with at least one edge access gateway 201, and/or at least one central access gateway 202, by wire or wirelessly.
Alternatively, each edge access gateway 201 and each central access gateway 202 may be connected to the central gateway 30 via dedicated network lines.
In the embodiment of the present application, as shown in fig. 1, a service server 40 and a management server 50 may also be disposed in the central computer room b. Wherein the service server 40 may be connected with each central gateway 30 by wire or wirelessly. The management server 50 may be connected to the terminal 10 by wire or wirelessly.
Alternatively, the terminal 10 may be a mobile phone (e.g., a smart phone), a tablet computer, a notebook computer, a desktop computer, or the like, and may also be referred to as other names such as a user equipment, a portable terminal, a laptop terminal, or a desktop terminal. Each of the access gateway 20 and the central gateway 30 may be a router or a server. Each of the business server 40 and the management server 50 may be a server, or may be a server cluster composed of several servers, or may be a cloud computing service center.
In the embodiment of the present application, a live client 10a is installed in the terminal 10, and the live client 10a may be an anchor client. The live client 101 may detect a state of a current anchor, determine live state data of the anchor based on the detected state of the anchor, and may send the determined live state data to an access gateway connected to the terminal 10. After receiving the live broadcast state data, the access gateway may directly send the live broadcast state data to the central gateway 30 of the central computer room b, and after receiving the live broadcast state data, the central gateway 30 may send the live broadcast state data to the service server 40.
The embodiment of the application provides a method for sending live broadcast state data, which can be applied to a live broadcast client, for example, the live broadcast client 10a shown in fig. 1. Referring to fig. 2, the method may include:
step 101, acquiring a gateway list.
The gateway list may have recorded therein an identification of each of the plurality of access gateways. The plurality of access gateways may include at least one edge access gateway located in an edge room and at least one center access gateway located in a center room.
And 102, respectively determining the communication performance index of each access gateway.
The communication performance index of each access gateway can be used for indicating the quality of the communication performance between the live broadcast client and the access gateway. The communication performance index of each access gateway can be determined based on the time delay between the access gateway and the live broadcast client, and the communication performance index of the access gateway is positively correlated with the time delay.
Step 103, determining at least one target access gateway from the plurality of access gateways.
Wherein, the communication performance index of each target access gateway can be larger than the index threshold.
And step 104, respectively sending the live broadcast state data of the live broadcast client to each target access gateway.
The live broadcast client may encapsulate the live broadcast status data into a plurality of data packets, and then send the data packets to each target access gateway. And the live broadcast state data sent by the live broadcast client to each target access gateway are the same.
To sum up, the embodiment of the present application provides a method for sending live broadcast state data, where a live broadcast client may determine a communication performance index of each access gateway recorded in a gateway list, and may determine at least one target access gateway whose communication performance index is greater than an index threshold from a plurality of access gateways, and then send the live broadcast state data to each target access gateway. Because the access gateways recorded in the gateway list also comprise the edge access gateway which is closer to the terminal besides the central access gateway, the determined target access gateway can be ensured to have better communication performance, so that the stability of data transmission between the live client and the target access gateway can be ensured, and the stability of data transmission between the live client and the central gateway can be effectively ensured.
Fig. 3 is a flowchart of another method for sending live broadcast status data according to an embodiment of the present application, where the method may be applied to a system for sending live broadcast status data, for example, the system shown in fig. 1.
Referring to fig. 3, the method may include:
step 301, the management server sends a gateway list to the live client.
Wherein, the gateway list may record an identifier of each access gateway in the plurality of access gateways. The plurality of access gateways may include at least one edge access gateway located in an edge room and at least one center access gateway located in a center room. Optionally, the identifier of each access gateway may include an Internet Protocol (IP) address and a port number of the access gateway.
In the embodiment of the application, when the live client needs to acquire the gateway list, the live client may send an acquisition request of the gateway list to a management server of a central computer room. The management server responds to the acquisition request of the gateway list and can issue the gateway list to the live broadcast client.
Step 302, the live broadcast client determines the communication performance index of each access gateway respectively.
After receiving the gateway list, the live broadcast client may determine the communication performance index of each access gateway recorded in the gateway list. The communication performance index of each access gateway can be used for indicating the quality of the communication performance between the live broadcast client and the access gateway.
Optionally, the communication performance index of each access gateway may be determined based on a time delay between the access gateway and the live broadcast client, and the communication performance index of the access gateway is positively correlated to the time delay.
In this embodiment, the weight of each access gateway may also be recorded in the gateway list. The weight is positively correlated with the communication performance of the access gateway, which may include: the performance of a Central Processing Unit (CPU) of the access gateway, the memory of the access gateway, and the bandwidth. The performance of the CPU may depend on the utilization of the CPU, as well as the core count of the CPU. Then, referring to fig. 4, the implementation process of step 302 may include:
step 3021, determining a time delay between the live client and each access gateway.
Optionally, after receiving the gateway list, the live broadcast client may send, for each access gateway, a network delay probe packet to the access gateway based on the identifier of the access gateway, receive a network response probe packet for the network delay probe packet sent by the access gateway, and determine a delay between the live broadcast client and the access gateway according to a time when the network response probe packet is received and a time when the network delay probe packet is sent.
Step 3022, for each access gateway, determining a communication performance index of the access gateway based on the time delay between the live broadcast client and the access gateway and the weight of the access gateway.
Wherein the communication performance index is positively correlated with the time delay and negatively correlated with the weight.
In this embodiment of the present application, for each access gateway, the live broadcast client may determine a ratio of a time delay T between the live broadcast client and the access gateway to a weight W of the access gateway as a communication performance index of the access gateway. That is, the communication performance index S may satisfy: and S is T/W.
Step 303, the live client determines at least one target access gateway from the plurality of access gateways.
And the communication performance index of each target access gateway is greater than the index threshold value. The at least one target access gateway may include an edge access gateway or may include a central access gateway.
Fig. 5 is a flowchart of a method for determining at least one target access gateway from a plurality of access gateways according to an embodiment of the present application. Referring to fig. 5, the process of the live client determining at least one target access gateway from the plurality of access gateways may include:
step 3031, determining at least one alternative access gateway with the communication performance index larger than the index threshold value from a plurality of access gateways.
Optionally, the management server may issue a gateway selection policy while issuing the gateway list to the live broadcast client. The indicator threshold may be carried in the gateway selection policy. Alternatively, the indicator threshold may be a fixed value stored in advance in the live client. Or, the index threshold may be determined by the live broadcast client according to the communication performance index of each access gateway.
In an optional implementation manner, for a scene in which the index threshold is a fixed value, after determining the communication performance index of each access gateway, the live broadcast client may compare the communication performance index of each access gateway with the index threshold, and determine an access gateway in which the communication performance index is greater than the index threshold as an alternative access gateway.
In another optional implementation manner, for a scenario in which the index threshold is determined by the live broadcast client based on the communication performance indexes of the respective access gateways, after determining the communication performance index of each access gateway, the live broadcast client may determine a median or an average of the communication performance indexes of the multiple access gateways as the index threshold. Then, the communication performance index of each access gateway may be compared with the index threshold, and the access gateway with the communication performance index greater than the index threshold may be determined as the alternative access gateway.
Step 3032, sending an authentication request to each alternative access gateway.
The authentication request carries a Token (Token) of the live client, and the Token may be a credential for the live client to authenticate each time the live client is started. The authentication request may be used to instruct an alternative access gateway to authenticate the live client.
Optionally, the token of the live client may be determined by the management server for the live client, and is issued to the live client while issuing the gateway list to the live client. The management server may determine the token based on a anchor account of the anchor and a time when a gateway list acquisition request sent by the live client is received.
Step 3033, determining at least one target access gateway based on at least one alternative access gateway which sends the authentication passing message in the plurality of alternative access gateways.
In this embodiment of the present application, after receiving the authentication request, each alternative access gateway may respond to the authentication request, and authenticate the live client based on the token of the live client. And if the authentication is passed, sending an authentication passing message to the live broadcast client. Correspondingly, the live broadcast client can determine at least one target access gateway based on at least one alternative access gateway which sends the authentication passing message from the multiple alternative access gateways. For example, the live client may directly determine each of the at least one alternative access gateways as the target access gateway.
The live broadcast client determines at least one target access gateway based on at least one alternative access gateway which sends the authentication passing message in the plurality of alternative access gateways, so that the determined target access gateways can be ensured to be the access gateways which send the authentication passing message, and the safety of sending the live broadcast state data is effectively ensured.
It should be noted that the gateway selection policy issued by the management server may also carry a specified duration. The live broadcast client can determine at least one target access gateway based on at least one alternative access gateway which sends an authentication passing message in the multiple alternative access gateways within a specified time length after sending the authentication request to each alternative access gateway. Therefore, the efficiency of determining at least one target access gateway by the live broadcast client can be effectively improved.
Optionally, the specified duration may also be pre-stored in the live client. For example, the specified time period may be 20 seconds(s).
In this embodiment of the present application, the identifier of the machine room to which each access gateway belongs may also be recorded in the gateway list. The identification of the machine room may include: and numbering the machine rooms. If the candidate access gateways that send the authentication pass message include a plurality of candidate access gateways, the process of determining, by the live broadcast client, at least one target access gateway to determine the target access gateway based on at least one candidate access gateway that sends the authentication pass message among the candidate access gateways may include:
step S1, if the identifiers of the rooms to which the multiple candidate access gateways that send the authentication pass message belong are the same, the live broadcast client may determine a target access gateway from the multiple candidate access gateways that send the authentication pass message.
After receiving the authentication passing message sent by the access gateway, the live broadcast client can detect whether the identifiers of the machine rooms to which the multiple alternative access gateways sending the authentication passing message belong are the same. If the fact that the identifications of the machine rooms to which the multiple alternative access gateways sending the authentication passing messages belong are the same is detected, the multiple alternative access gateways can be determined to be located in the same machine room, and then the live broadcast client can determine a target access gateway from the multiple alternative access gateways sending the authentication passing messages.
Optionally, the live broadcast client may determine, as the target access gateway, the alternative access gateway with the highest communication performance index among the multiple alternative access gateways.
Step S2, if the identities of the multiple candidate access gateways that send the authentication pass message are different, determining multiple target access gateways that have different identities from each other from the multiple candidate access gateways that send the authentication pass message.
After receiving the authentication passing message sent by the access gateway, the live client can determine that the multiple alternative access gateways exist in access gateways located in different machine rooms if detecting that the identifiers of the multiple alternative access gateways which send the authentication passing message are different, and further can determine multiple target access gateways with different identifiers of the machine rooms from the multiple access gateways which send the authentication passing message.
Because the live broadcast client can determine a plurality of target access gateways with different identifications from the machine rooms of the plurality of alternative access gateways which send the authentication passing messages when the identifications of the machine rooms of the plurality of alternative access gateways which send the authentication passing messages are different, the phenomenon that a central gateway cannot receive live broadcast state data sent by the live broadcast client due to the fault of one machine room can be avoided, and the sending reliability of the live broadcast state data can be ensured.
It should be noted that the gateway selection policy may also carry a first target time length and a first time threshold, and for each alternative access gateway, if the live broadcast client does not receive the authentication passing message sent by the alternative access gateway and the number of times of sending the authentication request to the alternative access gateway is smaller than the first time threshold, the operation of sending the authentication request to the alternative access gateway may be performed again, within the first target time length after the live broadcast client sends the authentication request to the alternative access gateway.
If the authentication passing message sent by the alternative access gateway is not received and the number of times of sending the authentication request to the alternative access gateway is greater than or equal to the first time threshold, the live broadcast client does not execute the operation of sending the authentication request to the alternative access gateway any more.
Optionally, the first target duration and the first time threshold may also be pre-stored in the live client. For example, the first target duration may be 1 minute (min), and the first time threshold may be 2.
For example, assuming that the first target time length is 1min, the first time threshold is 2, the live broadcast client does not receive the authentication passing message sent by the alternative access gateway within 1min after sending the authentication request to a certain alternative access gateway, and the number of times of sending the authentication request to the alternative access gateway is 1, since 1<2, the live broadcast client may determine that the number of times is less than the first time threshold, and may send the authentication request to the alternative access gateway again. The live broadcast client side does not receive the authentication passing message sent by the alternative access gateway within 1min after sending the authentication request to a certain alternative access gateway, the number of times of sending the authentication request to the alternative access gateway is 3, and the live broadcast client side can determine that the number of times is larger than the first time threshold value because 3 is larger than 2, and then does not send the authentication request to the alternative access gateway any more.
The operation of sending the authentication request to the alternative access gateway is executed again only when the live client does not receive the authentication passing message sent by the alternative access gateway within the first target time length after sending the authentication request to the alternative access gateway and the number of times of sending the authentication request to the alternative access gateway is less than the first time threshold value, so that the phenomenon that the live client frequently sends the authentication message to the access gateway and excessively occupies gateway resources can be effectively avoided.
Step 304, if the number of the central access gateways included in the at least one target access gateway is smaller than the number threshold, the live broadcast client re-determines the at least one target access gateway based on the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways.
Optionally, the gateway list may further record an attribute of a machine room to which each access gateway belongs, where the attribute is used to indicate that the machine room is a central machine room or an edge machine room. The gateway selection policy may also carry a number threshold. Optionally, the number threshold may be 1.
After determining a plurality of target access gateways, the live broadcast client may detect that the target access gateway is an edge access gateway or a center access gateway based on the attribute of the machine room to which each target access gateway belongs, and count the number of center access gateways included in the plurality of target access gateways based on the attribute of the machine room to which each target access gateway belongs. Then, the live broadcast client may compare the number with the number threshold, and when the number is smaller than the number threshold, re-determine at least one target access gateway based on the communication new energy index of each access gateway except the at least one target access gateway in the plurality of access gateways. The process of re-determining at least one target access gateway may refer to step 303 above.
For example, assuming that the number threshold is 1 and the number of the currently determined central access gateways included in the at least one target access gateway is 0, since 0<1, the live broadcast client may determine that the number of the central access gateways is smaller than the number threshold, and may re-determine the at least one target access gateway based on the communication performance indicator of each access gateway of the plurality of access gateways except the at least one target access gateway.
Because the center access gateway exists in at least one target access gateway determined by the live broadcast client, when the edge access gateway fails, the center gateway of the center machine room can also be ensured to receive the live broadcast state data sent by the live broadcast client, and the reliability of sending the live broadcast state data is effectively ensured.
And 305, the live broadcast client side sends the live broadcast state data of the live broadcast client side to each target access gateway respectively.
After determining at least one target access gateway, the live broadcast client can send the live broadcast state data of the live broadcast client to each target access network. And the live broadcast state data sent by the live broadcast client to each target access gateway are the same.
Optionally, the at least one target access gateway may include a plurality of target access gateways. When the live client determines a plurality of target access gateways, the live client can simultaneously send live status data to each target access gateway of the plurality of target access gateways.
Because at least one target access gateway can comprise a plurality of target access gateways, the phenomenon that a service server cannot receive live broadcast state data due to the fault of one target access gateway can be avoided, and the reliability of sending the live broadcast state data is effectively improved.
In this embodiment of the present application, before sending the live broadcast status data to each target access gateway, the live broadcast client may encapsulate the live broadcast status data into a plurality of data packets in sequence, and each data packet may carry a sequence number for indicating an arrangement order of the data packet in the plurality of data packets. Then, the live client may send the plurality of data packets to each target access gateway in sequence according to the arrangement order of the plurality of data packets. Correspondingly, when each access gateway receives a plurality of data packets, the data packets can be sequenced based on the sequence number carried by each data packet, so as to obtain complete and accurate live broadcast state data.
And step 306, the target access gateway sends the live broadcast state data to the central gateway.
After receiving the live broadcast state data, each target access gateway can directly send the live broadcast state data to the central gateway.
And 307, the central gateway sends the live broadcast state data to the service server.
After receiving the live broadcast state data, the central gateway can directly send the live broadcast state data to the service server so that the service server can store the live broadcast state data.
Step 308, if it is detected that there is a handover access gateway meeting the gateway handover condition in the at least one target access gateway, the live broadcast client re-determines the at least one target access gateway based on the communication performance index of the handover access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways.
Wherein the gateway switching condition comprises at least one of the following conditions: the connection between the live broadcast client and the target access gateway is interrupted; and the communication performance index of the target access gateway is smaller than the index threshold value.
Since the communication quality between the live broadcast client and the target access gateway is different at different times, in order to ensure real-time performance and reliability of communication between the live broadcast client and the target access gateway, in this embodiment of the application, after step 305, the live broadcast client may detect whether a handover access gateway meeting a gateway handover condition exists in the plurality of target access gateways. That is, whether a target access gateway with which the connection with the live client is interrupted exists in the plurality of target access gateways and/or whether the communication performance index is smaller than the index threshold is detected. If it is detected that a handover access gateway exists in the plurality of target access gateways, a communication performance index of the handover access gateway and a communication performance index of each access gateway except at least one target access gateway in the plurality of access gateways may be determined, and based on the communication performance index of the handover access gateway and the communication performance index of each access gateway except at least one target access gateway in the plurality of access gateways, at least one target access gateway may be determined. Thereafter, the live client may disconnect from the handover gateway and establish a connection with each of the re-determined at least one target access gateway. The process of determining at least one target access gateway by the live broadcast client based on the communication performance index of the switched access gateway and the communication performance index of each access gateway except for the at least one target access gateway in the plurality of access gateways may refer to the implementation process of step 303, which is not described herein again in this embodiment of the application.
For example, assume that an access gateway includes: an access gateway A, an access gateway B, an access gateway C, an access gateway D, an access gateway E, an access gateway F and an access gateway G. The target access gateway determined by the live client through the execution of steps 302 and 303 includes: a target access gateway A, a target access gateway B, a target access gateway C and a target access gateway D. After the live broadcast state data are respectively sent to each target access gateway, the target access gateway A is detected to be a switching access gateway meeting gateway switching conditions. The live client may re-determine at least one target access gateway from the target access gateway a, the access gateway E, the access gateway F, and the access gateway G based on the communication performance indicators of the target access gateway a, the access gateway E, the access gateway F, and the access gateway G.
It should be noted that the gateway switching condition includes: the communication performance index of the target access gateway is smaller than the index threshold value. The gateway selection policy may also carry: a second target duration and a second time threshold. Then step 308 may include:
and if the operation times of the at least one target access gateway which are re-determined based on the gateway switching condition are triggered again to be less than the second time threshold value within a second target time length after the operation of the at least one target access gateway is re-determined based on the gateway switching condition for the first time, re-determining the at least one target access gateway.
In the embodiment of the application, the live client may start timing when triggering the operation of re-determining at least one target access gateway based on the gateway switching condition for the first time, and count the operation of re-determining at least one target access gateway. And then if it is detected that the at least one target gateway meets the gateway switching condition again, performing operations of comparing the timed duration with a second target duration and comparing the counted number with a second time threshold, and re-determining the at least one target access gateway based on the communication performance index of the switched access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways when the timed duration is less than the second target duration and the counted number is less than the time threshold.
And if the live broadcast client detects that the at least one target gateway meets the gateway switching condition again, the timed duration is greater than or equal to the second target duration, and the counted times are greater than or equal to the time threshold, the live broadcast client does not execute the communication performance index based on the switched access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways, and the operation of the at least one target access gateway is determined again.
Optionally, the second target duration and the second time threshold may also be pre-stored by the live client. For example, the second target time period may be 5min, and the second time threshold may be 3.
For example, assume that the second target time period is 5min and the second time threshold is 3. When detecting that the at least one target gateway meets the gateway switching condition again, the current timing duration of the live broadcast client is 4min, the executed operation times for re-determining the at least one target access gateway is 2, and the live broadcast client can re-determine the at least one target access gateway because 4 is less than 5 and 2 is less than 3.
The operation based on switching the access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways is executed only when the number of times that the live broadcast client can redetermine the at least one target access gateway is smaller than the second secondary threshold within the second target time length, so that the problem that the live broadcast client continuously sends a delay detection packet to the access gateway due to poor communication performance index and excessively occupies the resources of the access gateway can be effectively avoided.
It should be noted that, for the parameters that may be carried in the foregoing gateway selection policy, for example, the first target time duration, the first time threshold, the second target time duration, and the like. The parameters can be sent to the live client by the management server, so that the parameters can be conveniently adjusted by a worker.
It should be further noted that, the order of the steps of the method for sending live broadcast status data provided in the embodiment of the present application may be appropriately adjusted, and the steps may also be increased or decreased according to the situation. For example, step 301 may be deleted as the case may be, i.e., the live client may directly obtain its pre-stored gateway list. Alternatively, steps 304 and 308 may be deleted as appropriate. Those skilled in the art can easily conceive of various methods within the technical scope of the present disclosure, and therefore, the detailed description is omitted.
To sum up, the embodiment of the present application provides a method for sending live broadcast state data, where a live broadcast client may determine a communication performance index of each access gateway recorded in a gateway list, and may determine at least one target access gateway whose communication performance index is greater than an index threshold from a plurality of access gateways, and then send the live broadcast state data to each target access gateway. Because the access gateways recorded in the gateway list also comprise the edge access gateway which is closer to the terminal besides the central access gateway, the determined target access gateway can be ensured to have better communication performance, so that the stability of data transmission between the live client and the target access gateway can be ensured, and the stability of data transmission between the live client and the central gateway can be effectively ensured.
The embodiment of the application provides a sending device of live broadcast status data, which can be applied to a live broadcast client, such as the live broadcast client 10a shown in fig. 1. Referring to fig. 6, the apparatus 400 may include:
an obtaining module 401, configured to obtain a gateway list.
The gateway list records an identifier of each access gateway in a plurality of access gateways, wherein the plurality of access gateways include at least one edge access gateway located in an edge computer room and at least one center access gateway located in a center computer room. Each edge access gateway and each central access gateway may be connected to a central gateway located in a central office.
A first determining module 402, configured to determine a communication performance indicator of each access gateway respectively.
A second determining module 403, configured to determine at least one target access gateway from the plurality of access gateways.
The communication performance index of each target access gateway is larger than the index threshold value.
A sending module 404, configured to send the live broadcast status data of the live broadcast client to each target access gateway respectively.
To sum up, the embodiment of the present application provides a device for sending live broadcast status data, where the device may determine a communication performance index of each access gateway recorded in a gateway list, and may determine at least one target access gateway whose communication performance index is greater than an index threshold from multiple access gateways, and then send the live broadcast status data to each target access gateway respectively. Because the access gateways recorded in the gateway list also comprise the edge access gateway which is closer to the terminal besides the central access gateway, the determined target access gateway can be ensured to have better communication performance, so that the stability of data transmission between the live client and the target access gateway can be ensured, and the stability of data transmission between the live client and the central gateway can be effectively ensured.
Optionally, the gateway list may further record a weight of each access gateway, where the weight is positively correlated with the communication performance of the access gateway. The first determining module 402 may be configured to: determining time delay between a live client and each access gateway; and for each access gateway, determining the communication performance index of the access gateway based on the time delay between the live broadcast client and the access gateway and the weight of the access gateway, wherein the communication performance index is positively correlated with the time delay and negatively correlated with the weight.
Optionally, referring to fig. 7, the second determining module 403 may include:
a first determining submodule 4031, configured to determine, from the multiple access gateways, at least one alternative access gateway for which the communication performance indicator is greater than the indicator threshold.
A sending sub-module 4032, configured to send an authentication request to each candidate access gateway, where the authentication request carries an identifier of the live broadcast client, and the authentication request is used to instruct the candidate access gateway to authenticate the live broadcast client.
A second determining sub-module 4033, configured to determine at least one target access gateway based on at least one alternative access gateway, of the multiple alternative access gateways, that sends the authentication pass message.
Optionally, an identifier of a machine room to which each access gateway belongs is further recorded in the gateway list, and if a plurality of candidate access gateways that send the authentication passing message include multiple candidate access gateways, the second determining sub-module 4033 may be configured to:
if the identifications of the machine rooms to which the multiple alternative access gateways which send the authentication passing message belong are the same, determining a target access gateway from the multiple alternative access gateways which send the authentication passing message; if the identifications of the machine rooms to which the multiple alternative access gateways which send the authentication passing messages belong are different, determining multiple target access gateways with different identifications of the machine rooms from the multiple alternative access gateways which send the authentication passing messages.
Optionally, the second determining module 403 may be further configured to:
and for each alternative access gateway, in a first target time length after the authentication request is sent to the alternative access gateway, if the authentication passing message sent by the alternative access gateway is not received and the number of times of sending the authentication request to the alternative access gateway is less than the first time threshold, the operation of sending the authentication request to the alternative access gateway is executed again.
Optionally, referring to fig. 8, the apparatus 400 may further include a third determining module 405, where the third determining module 405 may be configured to:
if the switching access gateway meeting the gateway switching condition is detected to exist in the at least one target access gateway, re-determining the at least one target access gateway based on the communication performance index of the switching access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways; wherein the gateway switching condition comprises at least one of the following conditions: the connection between the live broadcast client and the target access gateway is interrupted; the communication performance index of the target access gateway is smaller than the index threshold value.
Optionally, the gateway switching condition includes: the communication performance index of the target access gateway is smaller than the index threshold value. The third determination module 405 may be configured to:
and if the operation of the at least one target access gateway is triggered and re-determined based on the gateway switching condition for the first time within a second target time length after the operation of the at least one target access gateway is triggered and re-determined based on the gateway switching condition, the operation of the at least one target access gateway is re-determined if the number of times of re-determining the operation of the at least one target access gateway is triggered and re-determined based on the gateway switching condition is smaller than a second secondary threshold value.
Optionally, referring to fig. 8, the apparatus may further include: a fourth determination module 406, the fourth determination module 406 being operable to:
and if the number of the central access gateways included in the at least one target access gateway is smaller than the number threshold, re-determining the at least one target access gateway based on the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways.
To sum up, the present application provides a device for sending live broadcast status data, where the device may determine a communication performance index of each access gateway recorded in a gateway list, and may determine at least one target access gateway whose communication performance index is greater than an index threshold from a plurality of access gateways, and then send the live broadcast status data to each target access gateway respectively. Because the access gateways recorded in the gateway list also comprise the edge access gateway which is closer to the terminal besides the central access gateway, the determined target access gateway can be ensured to have better communication performance, so that the stability of data transmission between the live client and the target access gateway can be ensured, and the stability of data transmission between the live client and the central gateway can be effectively ensured.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus, the modules and the sub-modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 9 is a schematic structural diagram of another apparatus for sending live status data according to an embodiment of the present application, where the apparatus may be applied to a live client, such as the live client 10a shown in fig. 1. Referring to fig. 9, the apparatus 500 may include: a memory 501, a processor 502 and a computer program stored in the memory 502 and operable on the processor 501, wherein the processor 502 when executing the computer program can implement the method for transmitting live status data provided by the above method embodiment, for example, the method shown in fig. 2 or fig. 3.
An embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is caused to execute a method for sending live broadcast status data, such as the method shown in fig. 2 or fig. 3, provided by the foregoing method embodiment.
Embodiments of the present application further provide a computer program product including instructions, which, when running on a computer, causes the computer to execute a method for sending live broadcast status data provided in the foregoing method embodiments, for example, the method shown in fig. 2 or fig. 3.
An embodiment of the present application further provides a system for sending live broadcast status data, referring to fig. 1, where the system may include: a live client 10a, a plurality of access gateways 20, and a central gateway 30.
The plurality of access gateways 20 may include at least one edge access gateway 201 located in the edge room a and at least one center access gateway 202 located in the center room b, and each edge access gateway 201 and each center access gateway 202 may be connected to the center gateway 30 located in the center room b.
The live client 10a may include the sending device of the live status data provided by the above embodiments, such as the device shown in any one of fig. 6, fig. 8 and fig. 9.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for sending live broadcast state data is applied to a live broadcast client, and comprises the following steps:
acquiring a gateway list, wherein the gateway list records an identifier of each access gateway in a plurality of access gateways and an identifier of a machine room to which each access gateway belongs, the plurality of access gateways comprise at least one edge access gateway located in an edge machine room and at least one center access gateway located in a center machine room, and each edge access gateway and each center access gateway are connected with the center gateway located in the center machine room;
respectively determining the communication performance index of each access gateway; determining at least one alternative access gateway with a communication performance index larger than an index threshold value from the plurality of access gateways; sending an authentication request to each alternative access gateway, wherein the authentication request carries an identifier of a live client, and the authentication request is used for indicating the alternative access gateway to authenticate the live client; determining at least one target access gateway based on at least one alternative access gateway which sends an authentication passing message in the plurality of alternative access gateways, wherein the communication performance index of each target access gateway is larger than an index threshold value; respectively sending the live broadcast state data of the live broadcast client to each target access gateway;
if the number of the alternative access gateways sending the authentication passing message is multiple, the determining at least one target access gateway to determine the target access gateway based on at least one alternative access gateway sending the authentication passing message in the multiple alternative access gateways includes:
if the identifications of the machine rooms to which the multiple alternative access gateways which send the authentication passing messages belong are the same, determining a target access gateway from the multiple alternative access gateways which send the authentication passing messages; and if the identifications of the machine rooms to which the multiple alternative access gateways which send the authentication passing messages belong are different, determining multiple target access gateways with different identifications of the machine rooms from the multiple alternative access gateways which send the authentication passing messages.
2. The method according to claim 1, wherein the gateway list further records a weight of each access gateway, and the weight is positively correlated with the communication performance of the access gateway; the determining the communication performance index of each access gateway respectively includes:
determining a time delay between the live client and each access gateway;
for each access gateway, determining a communication performance index of the access gateway based on the time delay between the live broadcast client and the access gateway and the weight of the access gateway, wherein the communication performance index is negatively correlated with the time delay and positively correlated with the weight.
3. The method of claim 1, further comprising:
and for each alternative access gateway, in a first target time length after an authentication request is sent to the alternative access gateway, if an authentication passing message sent by the alternative access gateway is not received and the number of times of sending the authentication request to the alternative access gateway is less than a first time threshold value, executing the operation of sending the authentication request to the alternative access gateway again.
4. The method according to any of claims 1 to 3, wherein after sending the live status data of the live client to each of the target access gateways, the method further comprises:
if it is detected that a handover access gateway meeting a gateway handover condition exists in at least one target access gateway, re-determining at least one target access gateway based on the communication performance index of the handover access gateway and the communication performance index of each access gateway except the at least one target access gateway in the plurality of access gateways;
wherein the gateway handover condition comprises at least one of the following conditions:
the connection between the live client and the target access gateway is interrupted;
and the communication performance index of the target access gateway is smaller than the index threshold value.
5. The method of claim 4, wherein the gateway handover condition comprises: the communication performance index of the target access gateway is smaller than the index threshold value; the re-determining at least one target access gateway comprises:
and if the operation times of the at least one target access gateway which are re-determined based on the gateway switching condition are triggered again to be less than the second time threshold value within a second target time length after the operation of the at least one target access gateway is re-determined based on the gateway switching condition for the first time, re-determining the at least one target access gateway.
6. A method according to any of claims 1 to 3, wherein after determining at least one target access gateway from a plurality of said access gateways, the method further comprises:
and if the number of the central access gateways included in at least one target access gateway is smaller than the number threshold, re-determining at least one target access gateway based on the communication performance index of each access gateway except for at least one target access gateway in the plurality of access gateways.
7. A transmission device of live broadcast status data, which is applied to a live broadcast client, the device comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a gateway list, and the gateway list records an identifier of each access gateway in a plurality of access gateways and an identifier of a machine room to which each access gateway belongs, the plurality of access gateways comprise at least one edge access gateway positioned in an edge machine room and at least one center access gateway positioned in a center machine room, and each edge access gateway and each center access gateway are connected with the center gateway positioned in the center machine room;
the first determining module is used for respectively determining the communication performance index of each access gateway;
a second determining module, configured to determine, from the multiple access gateways, at least one alternative access gateway for which a communication performance indicator is greater than an indicator threshold; sending an authentication request to each alternative access gateway, wherein the authentication request carries an identifier of a live client, and the authentication request is used for indicating the alternative access gateway to authenticate the live client; determining at least one target access gateway based on at least one alternative access gateway which sends an authentication passing message in the alternative access gateways, wherein the communication performance index of each target access gateway is larger than an index threshold value;
the sending module is used for respectively sending the live broadcast state data of the live broadcast client to each target access gateway;
if the alternative access gateways which send the authentication passing message comprise a plurality of identifiers, the second determining module is used for determining a target access gateway from the alternative access gateways which send the authentication passing message if the identifiers of the machine rooms to which the alternative access gateways which send the authentication passing message belong are the same;
and if the identifications of the machine rooms to which the multiple alternative access gateways which send the authentication passing messages belong are different, determining multiple target access gateways with different identifications of the machine rooms from the multiple alternative access gateways which send the authentication passing messages.
8. A transmission device of live broadcast status data, which is applied to a live broadcast client, the device comprises: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method of transmitting live status data as claimed in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to execute a method of transmitting live status data according to any one of claims 1 to 6.
10. A system for transmitting live status data, the system comprising: the system comprises a live broadcast client, a plurality of access gateways and a central gateway;
the access gateways comprise at least one edge access gateway positioned in an edge machine room and at least one center access gateway positioned in a center machine room, and each edge access gateway and each center access gateway are connected with the center gateway positioned in the center machine room;
the live client comprises transmitting means of live status data as claimed in claim 7 or 8.
CN202010049522.6A 2020-01-16 2020-01-16 Method, device and system for sending live broadcast state data and storage medium Active CN111262864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010049522.6A CN111262864B (en) 2020-01-16 2020-01-16 Method, device and system for sending live broadcast state data and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010049522.6A CN111262864B (en) 2020-01-16 2020-01-16 Method, device and system for sending live broadcast state data and storage medium

Publications (2)

Publication Number Publication Date
CN111262864A CN111262864A (en) 2020-06-09
CN111262864B true CN111262864B (en) 2022-07-08

Family

ID=70954228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010049522.6A Active CN111262864B (en) 2020-01-16 2020-01-16 Method, device and system for sending live broadcast state data and storage medium

Country Status (1)

Country Link
CN (1) CN111262864B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7466654B1 (en) * 2005-05-24 2008-12-16 The United States Of America As Represented By The Director, National Security Agency Method of detecting intermediary communication device
CN106209619A (en) * 2016-08-31 2016-12-07 上海地面通信息网络有限公司 A kind of real-time automatic switching control equipment being applied to route interruption and method
CN106936709A (en) * 2017-01-19 2017-07-07 广州华多网络科技有限公司 Remote service access path control method and relevant device
CN107466079A (en) * 2017-08-17 2017-12-12 深圳市盛路物联通讯技术有限公司 Automatic relay switching method and device
CN108768817A (en) * 2018-05-22 2018-11-06 腾讯科技(深圳)有限公司 A kind of virtualization network constructing system, data packet sending method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10268492B2 (en) * 2014-05-20 2019-04-23 Amazon Technologies, Inc. Low latency connections to workspaces in a cloud computing environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7466654B1 (en) * 2005-05-24 2008-12-16 The United States Of America As Represented By The Director, National Security Agency Method of detecting intermediary communication device
CN106209619A (en) * 2016-08-31 2016-12-07 上海地面通信息网络有限公司 A kind of real-time automatic switching control equipment being applied to route interruption and method
CN106936709A (en) * 2017-01-19 2017-07-07 广州华多网络科技有限公司 Remote service access path control method and relevant device
CN107466079A (en) * 2017-08-17 2017-12-12 深圳市盛路物联通讯技术有限公司 Automatic relay switching method and device
CN108768817A (en) * 2018-05-22 2018-11-06 腾讯科技(深圳)有限公司 A kind of virtualization network constructing system, data packet sending method

Also Published As

Publication number Publication date
CN111262864A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN106302434B (en) Server adaptation method, device and system
US20210144120A1 (en) Service resource scheduling method and apparatus
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
JP2018508072A (en) Method and apparatus for pushing messages
CN112217859A (en) Load balancing method, system, mobile terminal and storage medium
CN114338650A (en) File transmission method and device, electronic equipment and readable storage medium
CN112311907A (en) ARP request response method, load balancing equipment and related device
CN110572812A (en) roaming method and device
CN107707939B (en) Video access method, access balance server, central server and system
CN112134775B (en) Switch loop detection method and device
US20180084519A1 (en) Terminal Device Positioning Method, Positioning Server, Access Point, and System
CN111262864B (en) Method, device and system for sending live broadcast state data and storage medium
CN110674096B (en) Node troubleshooting method, device and equipment and computer readable storage medium
US20200287784A1 (en) Priority based selection of time services
CN111093238A (en) Wireless network control method and device, storage medium and electronic equipment
CN107995125B (en) Traffic scheduling method and device
CN107566215B (en) Wireless network cutout detection method, device, storage medium and mobile terminal
EP3407553B1 (en) Pppoe message transmission method and pppoe server
CN111385324A (en) Data communication method, device, equipment and storage medium
US20220141153A1 (en) Server communication method, broadband access server, and system
CN115550978A (en) 5G complaint preprocessing method and system based on big data
CN105163335B (en) A kind of network access management method, server, mobile terminal and system
CN110650135B (en) Node processing method, related equipment and computer readable storage medium
CN113055427A (en) Service-based server cluster access method and device
CN111835534B (en) Method for cluster control, network device, master control node device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant