CN116684468A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116684468A
CN116684468A CN202310964734.0A CN202310964734A CN116684468A CN 116684468 A CN116684468 A CN 116684468A CN 202310964734 A CN202310964734 A CN 202310964734A CN 116684468 A CN116684468 A CN 116684468A
Authority
CN
China
Prior art keywords
target
server
migration
message
distribution server
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.)
Granted
Application number
CN202310964734.0A
Other languages
Chinese (zh)
Other versions
CN116684468B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310964734.0A priority Critical patent/CN116684468B/en
Publication of CN116684468A publication Critical patent/CN116684468A/en
Application granted granted Critical
Publication of CN116684468B publication Critical patent/CN116684468B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • 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/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: if the distribution server is detected to meet the traffic migration condition, acquiring a migration reason that the distribution server meets the traffic migration condition; determining a target media resource to be migrated from the media resources to be transmitted of the distribution server according to the migration reason; selecting a target server matched with the target media resource from N standby servers stored with the target media resource; n is a positive integer; transmitting a migration request message to a target server; the migration request message is used for indicating the target server to transmit a target flow message carrying target media resources to the terminal; and if the migration confirmation message sent by the target server is received, sending a redirection message to a proxy server of the distribution server. The application can improve the transmission efficiency of the media resource.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
The content delivery network (Content Delivery Network, CDN) is a layer of intelligent virtual network deployed on the existing internet, where the intelligent virtual network includes one or more delivery servers (i.e., content delivery servers), and the intelligent virtual network is configured to allocate the delivery servers for media resource requests of users based on factors such as network delay and load, and the delivery servers are configured to return media resources to terminals corresponding to the users based on the media resource requests. In practice, once the distribution server is abnormal, the media resources to be transmitted in the distribution server cannot be normally transmitted, and the media resources can be continuously transmitted only after the distribution server is required to be recovered to be normal, so that the transmission efficiency of the media resources is lower.
Disclosure of Invention
The embodiment of the application provides a data processing method, a device, equipment and a storage medium, which can improve the transmission efficiency of media resources.
An aspect of an embodiment of the present application provides a data processing method, including:
if the distribution server is detected to meet the traffic migration condition, acquiring a migration reason that the distribution server meets the traffic migration condition;
determining a target media resource to be migrated from the media resources to be transmitted of the distribution server according to the migration reason;
Selecting a target server matched with the target media resource from N standby servers storing the target media resource; n is a positive integer;
transmitting a migration request message to the target server; the migration request message is used for indicating the target server to transmit a target flow message carrying the target media resource to the terminal;
if the migration confirmation message sent by the target server is received, a redirection message is sent to a proxy server of the distribution server; and the redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when receiving the flow confirmation message sent by the terminal, and the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
An aspect of an embodiment of the present application provides a data processing method, including:
receiving a migration request message sent by a distribution server; the migration request message is used for indicating a target server to transmit a target traffic message carrying a target media resource to a terminal, the target server is a standby server matched with the target media resource among N standby servers storing the target media resource, the target media resource is determined from media resources to be transmitted of the distribution server according to a migration reason, the migration reason reflects the reason that the distribution server meets traffic migration conditions, and N is a positive integer;
Transmitting a migration confirmation message to the distribution server according to the migration request message, and generating a target flow message carrying the target media resource according to the migration request message;
the target flow message is sent to the terminal, and a flow confirmation message forwarded by a proxy server of the distribution server based on the redirection message is received; the redirection message is sent to the proxy server when the distribution server receives the migration confirmation message, and the flow confirmation message is sent to the proxy server when the terminal receives the target flow message.
An aspect of an embodiment of the present application provides a data processing apparatus, including:
the acquisition module is used for acquiring migration reasons for the distribution server to meet the traffic migration conditions if the distribution server is detected to meet the traffic migration conditions;
the determining module is used for determining target media resources to be migrated from the media resources to be transmitted of the distribution server according to the migration reasons;
a selection module, configured to select a target server matching the target media resource from N standby servers storing the target media resource; n is a positive integer;
The first sending module is used for sending a migration request message to the target server; the migration request message is used for indicating the target server to transmit a target flow message carrying the target media resource to the terminal;
the second sending module is used for sending a redirection message to the proxy server of the distribution server if the migration confirmation message sent by the target server is received; and the redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when receiving the flow confirmation message sent by the terminal, and the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
An aspect of an embodiment of the present application provides a data processing apparatus, including:
the receiving module is used for receiving the migration request message sent by the distribution server; the migration request message is used for indicating a target server to transmit a target traffic message carrying a target media resource to a terminal, the target server is a standby server matched with the target media resource among N standby servers storing the target media resource, the target media resource is determined from media resources to be transmitted of the distribution server according to a migration reason, the migration reason reflects the reason that the distribution server meets traffic migration conditions, and N is a positive integer;
The first sending module is used for sending a migration confirmation message to the distribution server according to the migration request message and generating a target flow message carrying the target media resource according to the migration request message;
the second sending module is used for sending the target flow message to the terminal, and receiving a flow confirmation message forwarded by the proxy server of the distribution server based on the redirection message; the redirection message is sent to the proxy server when the distribution server receives the migration confirmation message, and the flow confirmation message is sent to the proxy server when the terminal receives the target flow message.
In one aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method when executing the computer program.
In one aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored thereon, the computer program implementing the steps of the method described above when executed by a processor.
In one aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
In the application, when the distribution server meets the flow migration condition, the distribution server negotiates with the target server (namely the standby server) and the proxy server of the distribution server to migrate the media resources to be transmitted in the distribution server to the terminal transmitted by the target server, so that the interruption of the transmission process of the media resources can be avoided, and the transmission efficiency of the media resources is improved. Meanwhile, the whole negotiation process is not needed, namely the terminal does not need to sense the whole migration process, so that the time consumption of the media resource migration process is reduced, the problems of blocking and the like caused by overlong waiting time of the terminal are avoided, the high availability of the transmission service is improved, and the transmission efficiency of the media resource is improved. The target server is selected from the standby servers with target media resources to be migrated, so that the problem that a distribution server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved. In addition, the target server can be located in the same network as the distribution server, and the target server and the distribution server can also be located in different networks, namely the method and the device are not only applicable to media resource migration of the same network, but also applicable to media resource migration across networks, and the application range of the method and the device is improved.
Drawings
In order to more clearly illustrate the embodiments of the application 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 application, 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 schematic diagram of a data processing system provided by the present application;
FIG. 2 is a schematic diagram of an interaction scenario of a data processing method provided by the present application;
FIG. 3 is a schematic diagram of a scenario in which a migration detection component detects a distribution server according to the present application;
FIG. 4 is a flow chart of a data processing method according to the present application;
FIG. 5 is a schematic view of a scenario for obtaining a target media asset to be migrated according to the present application;
FIG. 6 is a schematic view of a scenario in which a target server is obtained according to the present application;
FIG. 7 is a flow chart of yet another data processing method according to the present application;
FIG. 8 is a flow chart of another data processing method according to the present application;
FIG. 9 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a data processing apparatus according to another embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application 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 application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The application mainly relates to Cloud technology, which is a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data. Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by Cloud computing business models, and can form a resource pool, so that the Cloud computing business model is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
For example, the distribution server in the application can be a cloud server, the cloud server can transmit media resources to the terminal equipment according to the requirements of the terminal, and when the cloud server meets the flow migration condition in the process of transmitting the media resources, the cloud server can negotiate with the proxy server of the cloud server and the target server to migrate the media resources to be transmitted in the cloud server to the terminal by the target server, so that the transmission process of the media resources is prevented from being interrupted, and the transmission efficiency of the media resources is improved.
For a clearer understanding of the present application, a data processing system implementing the present application will first be described, as shown in fig. 1, which includes a server cluster and a terminal cluster, where the terminal cluster may include one or more terminals, and the number of terminals will not be limited. As shown in fig. 1, the terminal cluster may specifically include a terminal 1, a terminal 2, a terminal …, and a terminal y; the server cluster may include a plurality of servers, and the number of servers is not limited herein, and as shown in fig. 1, the server cluster specifically includes servers 1, … … and server n. It is understood that each terminal in the terminal cluster can be in network connection with each server in the server cluster, so that data interaction between the terminal and the server can be performed.
It can be understood that the server may be a separate physical server, or may be a server cluster or a distributed system formed by at least two physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, networK services, cloud communication, middleware services, domain name services, security services, content Delivery NetworK (CDN), and basic cloud computing services such as big data and artificial intelligence platforms. The terminal may specifically refer to a vehicle-mounted terminal, a smart phone, a tablet computer, a notebook computer, a desktop computer, an intelligent sound box, a screen sound box, an intelligent television, an intelligent watch, and the like, but is not limited thereto. The terminals and the server may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein.
One or more target applications are installed in the terminal, wherein the target applications can be applications for receiving media resources, for example, the target applications can comprise independent application programs, web page applications, applets in host applications and the like, and the target applications can be game applications, social applications, audio and video playing applications and the like. A server refers to a device that provides a back-end service for a target application in a terminal, and may be used to transmit multimedia resources to the terminal.
The server cluster includes a distributing server and a standby server, where the distributing server may refer to a server currently used for transmitting a traffic message to a terminal, and the standby server may refer to a server used for replacing the distributing server to continue transmitting the traffic message to the terminal when the distributing server satisfies a traffic migration condition. It will be appreciated that roles may be reversed between the distributing server and the standby server in the server set. For example, at time T, the server 1 in the server cluster may be referred to as a distributing server, and the other servers in the server cluster may be referred to as standby servers, when the server 1 transmits a traffic message to the terminal. At time t+1, the server 1 satisfies the traffic migration condition, and may select a standby server from the server cluster to replace the distributing server to continue to transmit the traffic message. If the standby server selected from the server cluster is the server 2, that is, the server 2 takes over the server 1 to continue transmitting the traffic message, the server 2 may be called a distributing server, and when the server 1 returns to normal, the server 1 may be used as the standby server.
It should be noted that, the server cluster in the present application may include a standby server disposed in the same network as the distribution server, and a standby server disposed in a different network from the distribution server. The standby server deployed in the same network as the distribution server may refer to a standby server deployed in the same local area network as the distribution server, for example, the distribution server and the standby server are both located in the same machine room, and by using the standby server deployed in the same network as the distribution server, the migration of media resources in the same machine room can be realized, and the migration efficiency of media resources is improved. The standby server deployed in different networks with the distribution server may refer to a standby server deployed in a different local area network with the distribution server, for example, the distribution server and the standby server are located in different rooms, for example, the distribution server may be located in a room a, the standby server is located in a room b, and the media resource migration across the room can be implemented by the standby server deployed in different networks with the distribution server, so that the problem of interruption in transmission of the media resource caused by abnormality of the servers in the same room can be avoided.
It should be noted that, the traffic message may refer to a message carrying a media resource, that is, the traffic message may be obtained by encapsulating the media resource based on a communication protocol, where the communication protocol may include a transmission control protocol (Transport Control Protocol, TCP), a fast UDP internet connection (Quick UDP Internet Connection, quitc), and the like, and the media resource may refer to one or more of video, audio, and text.
The data processing system in fig. 1 can be used to implement the data processing method in the present application, for example, as shown in fig. 2, the distributing server 20a in fig. 2 may refer to a server currently used for transmitting a traffic message in the server cluster in fig. 1, and the standby servers 1, … … and N in fig. 2 may refer to servers other than the distributing server in the server cluster in fig. 1; the terminals 22a, 23a, 24a, 25a in fig. 2 may belong to the terminal cluster in fig. 1. The distributing server 20a may be connected to a proxy server, where the proxy server is configured to forward a message to the distributing server 20a to a target server when the distributing server 20a meets a traffic migration condition, where the target server may be a standby server selected from N standby servers to take over the traffic message transmitted by the distributing server 20.
Alternatively, the distribution server 20a may include a migration detection component, a session screening component, a target selection component, and a session migration component. The migration detection component is configured to detect whether the distribution server 20a meets a traffic migration condition, where the traffic migration condition includes one or two of a device needing to be restarted and a device resource usage rate being greater than a usage rate threshold, and the traffic message transmission of the distribution server 20a is interrupted due to the device needing to be restarted; if the usage rate of the device resources of the distribution server 20a is greater than the usage rate threshold, the transmission performance index of the distribution server 20a may be reduced, and thus, if the usage rate of the device resources of the distribution server 20a is greater than the usage rate threshold, and/or the distribution server 20a needs to be restarted, it is determined that the distribution server 20a satisfies the traffic migration condition. The transmission performance index may be determined according to one or more of throughput rate, transmission delay, packet loss rate. The reasons for the device to restart include that the applications in the device need to be updated, such as version upgrade, bug repair, security upgrade, etc., and the device resources may include at least one of CUP resources, memory resources, hard disk resources, port resources, etc. The session screening component is configured to screen a target media resource to be migrated, the target selecting component is configured to select a target server for transmitting the target media resource from the N standby servers, and the session migration component is configured to send a migration request message to the target server, so as to query whether the target server agrees to transmit the target media resource instead of the distribution service 20 a. The migration detection component, the session screening component, the target selection component, and the session migration component may refer to hardware modules, or may be software modules, or may be a module formed by combining software and hardware, which is not limited in this application.
In a specific application, the data processing method of the present application may include the following steps S1 to S8:
s1, screening target media resources to be migrated by a distribution server 20 a; specifically, the distribution server 20a invokes the migration detection component to periodically detect whether the distribution server 20a satisfies the traffic migration condition, and the periodicity may refer to every 1min, 1 hour, or the like. For example, as shown in fig. 3, the migration detection component may detect that the CPU, memory, hard disk, port, network card, etc. of the distribution server, and when detecting that the distribution server 20a satisfies one or more of the following conditions, determine that the distribution server 20a satisfies the traffic migration condition: (1) The migration detection component detects that the distribution server 20a needs to be restarted. If it is detected that the application in the distribution server 20a is in an updated state, it is determined that the distribution server 20a needs to be restarted; alternatively, if the distribution server 20a receives a restart instruction sent by the administrator, it is determined that the distribution server 20a needs to be restarted. (2) The migration detection component detects that the usage of the device resources of the distribution server 20a is greater than the usage threshold; the device resources include at least one of a CPU resource, a memory resource, a hard disk resource, a port resource, a network card resource, and the like, and the usage of the device resources refers to a ratio between the amount of used device resources and the total amount of device resources, for example, the usage of the CPU resources refers to a ratio between the amount of used CPU resources in the distribution server 20a and the total amount of CPU resources in the distribution server 20 a. In one embodiment, where the usage of the device resource is greater than the usage threshold may mean that the total usage of all device resources is greater than the usage threshold. In one embodiment, a device resource corresponds to a usage threshold, for example, a cpu resource corresponds to a usage threshold u1, a memory resource corresponds to a usage threshold u2, a hard disk resource corresponds to a usage threshold u3, a port resource corresponds to a usage threshold u4, and a network card resource corresponds to a usage threshold u5; u1, u2, u3, u4, u5 may be configured by an administrator of distribution server 20a, which may default to 0.5. The usage of a device resource being greater than the usage threshold may mean that there is at least one device resource of the plurality of device resources having a usage greater than the usage threshold of the corresponding device resource. For example, the usage of the device resource being greater than the usage threshold may refer to one or more of the following: a. the utilization rate of CPU resources is larger than u1; b. the utilization rate of the memory resource is larger than u2; c. the utilization rate of the hard disk resource is larger than u3; d. the utilization rate of the port resource is larger than u4, e, and the utilization rate of the network card resource is larger than u5. (3) When a traffic migration command is received, such as a traffic migration command sent by an administrator from the distribution server 20a, the receipt of the traffic migration command by the administrator generally indicates that the administrator needs to trigger the restart of the distribution server 20a, and thus, when the traffic migration command is received, the restart of the distribution server 20a is also called.
Further, if it is detected that the distribution server 20a satisfies the traffic migration condition, which indicates that the distribution server 20a satisfies the traffic migration condition, the migration detection component may generate a migration instruction packet based on the traffic migration condition satisfied by the distribution server 20 a. The migration instruction packet reflects a migration reason that the distribution server 20a satisfies the traffic migration condition, and the migration instruction packet may include the number of traffic migration conditions that the distribution server 20a satisfies, and a condition identifier of the traffic migration condition that the distribution server 20 satisfies. For example, assuming that the migration instruction packet is denoted as pkt_ctl_1, the number of traffic migration conditions satisfied by the distribution server 20a is denoted as metrics_current, and the condition identification of the traffic migration conditions includes one or more of metrics_id_1, metrics_id_2, metrics_id_3, metrics_id_4, metrics_id_5, and metrics_id_6. Metrics_ID_1, metrics_ID_2, metrics_ID_3, metrics_ID_4, metrics_ID_5 respectively indicate that the utilization rate of the CUP resource, the memory resource, the hard disk resource, the port resource, and the network card resource of the distribution server 20a is greater than the corresponding utilization rate threshold; metrics_ID_6 reflects that distribution server 20a needs to restart, i.e., the administrator requires that traffic migration be performed. Of course, when the performance index of other devices of the distribution server 20a satisfies the traffic migration condition, the condition identifier of the traffic migration condition satisfied by the other performance index may be added to the metrics_id; the number of metrics_ids in pkt_ctl_1 is equal to metrics_current. Pkt_ctl_1 can be expressed by the following formula (1):
Pkt_ctl_1 = {Metric_amount, Metrics_ID_1, …, Metrics_ID_f} (1)
Wherein, the metrics_id_f in the formula (1) represents the f-th traffic migration condition satisfied by the distribution server 20a, and f is a positive integer.
After the migration detection component generates the migration instruction packet, the migration instruction packet may be sent to the session screening component, and after the session screening component receives the migration instruction packet, if the migration instruction packet includes metrics_id_6, it is determined that the distribution server 20a needs to be restarted, and all media resources to be transmitted in the distribution server 20a may be determined as target media resources to be migrated. All media assets to be transferred include those currently in need of transfer in the distribution server 20a, and those in need of transfer in the following period of time, which may refer to the period of time from after the transfer of the media asset to the target server to when the transfer of the media asset returns to the distribution server 20 a. If the migration instruction packet does not include metrics_id_6, it is determined that the distribution server 20a does not need to be restarted, which indicates that the usage rate of the device resources of the distribution server 20a is greater than the usage rate threshold, and the session screening component may screen a portion of the media resources from all media resources to be transferred in the distribution server 20a as target media resources to be migrated. For example, if the migration instruction packet includes metrics_id_1, which indicates that the usage rate of the CPU resource in the distribution server 20a is greater than the usage rate threshold, the media resource to be transferred, whose occupation amount of the CPU resource in the distribution server 20a is greater than the occupation amount threshold, may be determined as the target media resource to be migrated. The session screening component may then generate a session control message that is sent to the target selection component, the session control message being used to instruct the target selection component to screen the target server for transmitting the target media asset. Alternatively, the session control packet may be denoted as pkt_ctl_2, where the session control packet may include session information, and the session information includes: a) The IP address (ip_dst) of the terminal, which refers to the device for receiving the target media resource mentioned above, in fig. 2, the device for receiving the target media resource includes the terminal 23a, the terminal 24a, and the terminal 25a, which are illustrated as examples; b) Port number of terminal (port_dst); c) Protocol number (Prtl) used for traffic transport; d) The IP address (ip_src) of the distribution server 20 a; e) Port number (port_src) of the distribution server 20 a; f) URL address (URL) of the target media asset (i.e., initial address); g) The offset address trans_offset of the media resource already transmitted in the media resource corresponding to the URL address may also be referred to as the offset address of the target media resource; wherein, when the communication protocol of the interaction between the distributing server 20a and the terminal is TCP, parameters in f) and g) are included in the session control message. h) The maximum message number pkt_num_max of the sent flow message; i) An encryption key (key) of the target media resource, that is, an encryption key used to encrypt the target media resource, the encryption key may be negotiated with the terminal by the distribution server 20 a; j) When the communication protocol in which the distribution server 20a interacts with the terminal is qic, it may further include a connection identifier (cid), an offset Stream identifier (stream_offset), an initial Stream identifier (StreamID), etc. corresponding to the target media resource; the connection identifier is used to mark the link for transmitting the target media resource, and the offset Stream identifier (stream_offset) and the initial Stream identifier (StreamID) are used for the target server to read the target media resource.
S2, the distribution server 20a screens the target servers; specifically, after receiving the session control message, the target selection component may select an alternative server matching the target media resource from the N standby servers storing the target media resource, and use the standby server matching the target media resource as the target server. N standby servers belong to standby server clusters 21a in FIG. 2, N standby servers can belong to different machine rooms, N standby servers and a distribution server can belong to the same machine room, and N standby servers and the distribution server do not belong to the same machine room. The N standby servers may be servers in an idle state before the distribution server is not received, or the N standby servers may be servers in a non-idle state before the distribution server is not received, that is, the standby servers are transmitting other traffic messages, so that the utilization rate of the device may be improved. In fig. 2, the target server is taken as the standby server 1 as an example, for example, the standby server 1 may be the standby server with the best transmission performance index among N standby servers, and the transmission performance index may be one or more of throughput rate, time delay, packet loss rate, and the like. The specific implementation process of selecting the target server matching the target media resource may refer to the following description of step S103, which is not described herein. After the target selection component acquires the target server, equipment attribute information of the target server can be acquired, the equipment attribute information is added to a session control message, and a migration control message is obtained, wherein the migration control message is used for indicating the session migration component to migrate the target media resource to the target server; migrating the target media asset to the target server may refer herein to the target server taking over the delivery server to transmit the target media asset. The device attribute information of the target server here may include an IP address (ip_tar) and a Port number (port_tar), etc. For example, the device attribute information of the target Server is denoted as server_tar, the Session information in the Session control message is denoted as session_info, the migration control message is denoted as pkt_ctl_3, and the information carried in pkt_ctl_3 is shown in formula (2):
Pkt_ctl_3 = {Server_tar, Session_info}(2)
S3, the distribution server 20a sends a migration request message to the target server; specifically, the distribution server 20a may invoke the target selection component to send the migration control packet to the session migration component, and after the session migration component receives the migration control packet, the session migration component may send a migration request packet to the target server, where the migration request packet is used to instruct the target server to send a target traffic packet carrying the target media resource to the terminal. The migration request message may be expressed as pkt_ctl_mig, where the destination IP address included in the migration request message is ip_tar, and the destination Port number is port_tar; the migration request message carries Session information_info.
S4, the target server sends a migration confirmation message to the distribution server 20 a; specifically, after receiving the migration request packet, if the target server agrees to perform the traffic migration operation on the target media resource, the target server may migrate a confirmation packet to the distribution server 20a, where the migration confirmation packet reflects that the target server agrees to perform the traffic migration operation on the target media resource, and may be denoted as pkt_ctl_mig_ack.
S5, the distribution server 20a sends a redirection message to a proxy server of the distribution server 20 a; specifically, if the distribution server 20 does not receive the migration confirmation message sent by the target server, the distribution server 20a may repeatedly execute the steps S2 to S3 until receiving the migration confirmation message. If the distributing server 20a receives the migration confirmation message sent by the target server, a redirect message may be sent to the proxy server of the distributing server 20a, where the redirect message is used to instruct the proxy server to forward the message sent to the distributing server 20a to the target server. Alternatively, the redirect message may be denoted as pkt_ctl_4, where the redirect message carries one or more of an IP address of the terminal (ip_dst), a Port number of the terminal (port_dst), a protocol number used for traffic transmission (Prtl), an IP address of the delivery server 20a (ip_src), a Port number of the CDN server (port_src), and an IP address of the destination server (ip_tar) and a Port number (port_tar).
S6, the target server sends a target flow message to the terminal; the target flow message comprises a target media resource, an IP address and a port of the terminal and the like, namely the target server can generate a target flow message 1, a target flow message 2 and a target flow message 3, and the target flow message 1, the target flow message 2 and the target flow message 3 all comprise the target media resource; the target traffic message 1 includes the IP address and port number of the terminal 23a, and the target traffic message 2 includes the IP address and port of the terminal 24 a; the target traffic message 3 includes the IP address and port number of the terminal 25a, respectively. The target server may send target traffic message 1 to terminal 23a, target traffic message 2 to terminal 24a, and target traffic message 3 to terminal 25a. The specific implementation process of the target server sending the target traffic message to the terminal may refer to the following step S203, which is not described herein.
S7, the terminal sends a flow confirmation message to the proxy server; if the terminal receives the target traffic message, it may send a traffic confirmation message to the proxy server, where the traffic confirmation message may be expressed as pkt_ack, the destination address of the traffic confirmation message is the IP address of the distribution server 20a, and the destination port of the traffic confirmation message is the port of the distribution server 20 a. For example, after receiving the target traffic message 1, the terminal 23a may send a traffic acknowledgement message to the proxy server, and similarly, after receiving the target traffic message 2, the terminal 24a may send a traffic acknowledgement message to the proxy server, and after receiving the target traffic message 3, the terminal 25a may send a traffic acknowledgement message to the proxy server.
S8, the proxy server forwards the flow confirmation message to the target server, and the target server can continue to send the flow message to be sent to the terminal 23a, the terminal 24a and the terminal 25a after receiving the flow confirmation message. In particular, if the media resources to be transmitted with respect to the terminal 22a are not selected to migrate to the target server as in fig. 2, the media resources required by the terminal 22a may be continuously transmitted to the terminal 22a by the distribution server 20 a.
In summary, when the distribution server meets the traffic migration condition, the distribution server negotiates with the target server (i.e. the standby server) and the proxy server of the distribution server to migrate the media resource to be transmitted in the distribution server to the terminal transmitted by the target server, so that the interruption of the transmission process of the media resource can be avoided, and the transmission efficiency of the media resource is improved. Meanwhile, the whole negotiation process is not needed, namely the terminal does not need to sense the whole migration process, so that the time consumption of the media resource migration process is reduced, the problems of blocking and the like caused by overlong waiting time of the terminal are avoided, the high availability of the transmission service is improved, and the transmission efficiency of the media resource is improved. The target server is selected from the standby servers with target media resources to be migrated, so that the problem that a distribution server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved. In addition, the target server can be located in the same network as the distribution server, and the target server and the distribution server can also be located in different networks, namely the method and the device are not only applicable to media resource migration of the same network, but also applicable to media resource migration across networks, and the application range of the method and the device is improved.
Further, please refer to fig. 4, which is a flowchart illustrating a data processing method according to an embodiment of the present application. As shown in fig. 4, the method may be performed by any one of the servers in the server cluster of fig. 1, and a server for performing the data processing method of the present application may be referred to as a distribution server. Wherein, the method can comprise the following steps:
s101, if the distribution server is detected to meet the traffic migration condition, acquiring a migration reason that the distribution server meets the traffic migration condition.
In the application, the distribution server can call the migration component to detect the distribution server so as to detect whether the distribution server meets the flow migration condition in the process of transmitting the flow message, namely, whether the utilization rate of equipment resources of the distribution server is larger than the utilization rate threshold value or not and whether the distribution server needs to be restarted or not. If the usage rate of the device resource of the distribution server is detected to be greater than the usage rate threshold value, and/or the distribution server needs to be restarted, the distribution server is determined to meet the traffic migration condition, that is, the distribution server meets the traffic migration condition. Further, the distribution server may obtain a migration cause for the distribution server to satisfy the traffic migration condition, where the migration cause includes one or more of the following: (1) The migration detection component detecting that the distribution server needs to be restarted, which may refer to one or more of receiving a traffic migration instruction, receiving a restart instruction, and detecting that the application is in an updated state. (2) The migration detection component detects that the utilization rate of the device resources of the distribution server is greater than a utilization rate threshold; the explanation for the fact that the usage rate of the device resource of the distribution server is greater than the usage rate threshold may refer to step S1 in fig. 2, and will not be described herein.
Optionally, step S101 includes: the distribution server may invoke a migration detection component in the distribution server to detect whether the distribution server needs to be restarted, and optionally, if it may be detected whether an application in the distribution server is in an updated state, where the updated state may refer to a code upgrade (i.e. version upgrade), bug repair, security upgrade, etc., and if it is detected that the application is in the updated state, it is determined that the distribution server needs to be restarted; in one embodiment, if the distribution server receives a restart instruction or a traffic migration instruction, it is determined that the distribution server needs to be restarted. If the application is not detected to be in an updated state and a restart instruction and a migration instruction are not received, it is determined that the distribution server does not need to be restarted. If the distribution server does not need to be restarted, acquiring the utilization rate of the equipment resources of the distribution server; if the usage rate of the device resource is greater than the usage rate threshold, determining that the distribution server satisfies a traffic migration condition, and generating a migration cause indicating that the distribution server does not need to be restarted and that the usage rate of the device resource of the distribution server is greater than the usage rate threshold. If the distribution server needs to be restarted, determining that the distribution server meets the traffic migration condition, and generating a migration reason indicating that the distribution server needs to be restarted.
Optionally, when the distribution server needs to be restarted and the usage rate of the device resource is greater than the usage rate threshold, determining that the distribution server meets the traffic migration condition, and generating a migration reason indicating that the distribution server needs to be restarted and the usage rate of the device resource is greater than the usage rate threshold.
S102, determining target media resources to be migrated from the media resources to be transmitted of the distribution server according to the migration reasons.
In the application, the distribution server can determine the target media resource to be migrated from the media resources to be transferred of the distribution server according to the migration reason, namely the target media resource can refer to all the media resources to be transferred in the distribution server, or the target media resource can refer to part of the media resources to be transferred in the distribution server.
In one embodiment, determining the target media resource to be migrated from the media resources to be transferred of the distribution server according to the migration cause includes: if the migration cause indicates that the distribution service needs to be restarted, the distribution server cannot be used for transmitting the traffic message, so that the distribution server can determine all media resources to be transmitted of the distribution server as target media resources to be migrated. If the migration cause indicates that the distribution server does not need to be restarted, and the usage rate of the device resources of the distribution server is greater than the usage rate threshold, which indicates that the distribution server can be used for transmitting the traffic message, but the transmission performance index of the distribution server is reduced, therefore, the distribution server may determine the target media resources to be migrated from the media resources to be transmitted of the distribution server according to the usage rate of the device resources of the distribution server, that is, determine, according to the usage rate of the device resources of the distribution server, a part of the media resources to be transmitted in the distribution server as the target media resources to be migrated, where the remaining media resources in the distribution server are still transmitted by the distribution server, and the remaining media resources may refer to the media resources to be transmitted except the target media resources in the media resources to be transmitted of the distribution server. The target media resources to be migrated are adaptively selected according to the migration reasons, so that the transmission efficiency of the media resources is improved.
In an embodiment, if the migration cause indicates that the distribution server does not need to be restarted and the usage rate of the device resource of the distribution server is greater than the usage rate threshold, determining, according to the usage rate of the device resource of the distribution server, the target media resource to be migrated from the media resources to be transferred of the distribution server includes: if the migration cause indicates that the distribution server does not need to be restarted, the distribution server can determine M device resources with the use rate greater than the use rate threshold value of the corresponding device resources from the migration cause; m is a positive integer. Further, acquiring the occupation amounts of K media resources to be transmitted in the distribution server aiming at the M equipment resources respectively; k is the resource quantity of all media resources to be transmitted in the distribution server; screening the media resources to be transmitted, of which the occupation amount of the ith equipment resource is larger than an occupation amount threshold i, from the K media resources to be transmitted; and i is a positive integer less than or equal to M, and the media resources to be transmitted, which are obtained based on the respective screening of the M equipment resources, are determined to be target media resources to be migrated. In other words, the to-be-transmitted media resources with larger occupation amount of the device resources occupied by the to-be-transmitted media resources are determined as the to-be-migrated target media resources, so that the utilization rate of the device resources of the distribution server is smaller than or equal to the utilization rate threshold value, the transmission performance index of the distribution server is improved, the distribution server can continue to transmit part of the to-be-transmitted media resources, and part of the to-be-transmitted media resources are migrated to the target server, and the transmission efficiency of the media resources can be improved.
For example, as shown in fig. 5, the migration cause indicates that the CPU resource of the distribution server has a usage rate greater than u1, and the port resource of the distribution server has a usage rate greater than u4, where the distribution server includes 5 media resources to be transmitted, and the 5 media resources to be transmitted are respectively a media resource to be transmitted z1, a media resource to be transmitted z2, a media resource to be transmitted z3, a media resource to be transmitted z4, and a media resource to be transmitted z5. The distribution server may obtain the occupation amounts of the CUP resources of the to-be-transmitted media resources z1, z2, z3, z4, and z5, and obtain the occupation amounts of the port resources of the to-be-transmitted media resources z1, z2, z3, z4, and z5, respectively. The occupation amount of the CPU resource of the media resource to be transmitted may be determined according to the data amount of the media resource to be transmitted, and the occupation amount of the port resource of the media resource to be transmitted refers to the number of ports required when the media resource to be transmitted is transmitted. The occupation amounts of CUP resources of the media resources z1, z2, z3, z4 and z5 are respectively the occupation amount d1, d2, d3, d4 and d5, and the occupation amounts of port resources of the media resources z1, z2, z3, z4 and z5 are respectively the occupation amount d6, d7, d8, d9 and d10. The distribution server may sort, according to the order of the occupation amount d1, the occupation amount d2, the occupation amount d3, the occupation amount d4, and the occupation amount d5 from high to low, the media resources z1 to be transmitted, the media resources z2 to be transmitted, the media resources z3 to be transmitted, the media resources z4 to be transmitted, and the media resources z5 to be transmitted, that is, the sorting is: the transmission media resource z3, the transmission media resource z2, the transmission media resource z4, the transmission media resource z5 and the transmission media resource z1, namely the occupied amount d3 of the CPU resource of the transmission media resource z3 is the maximum occupied amount, and the occupied amount d1 of the CPU resource of the transmission media resource z1 is the minimum occupied amount. Similarly, the media resources z1, z2, z3, z4 and z5 to be transmitted are ordered according to the order of the occupation amount d6, the occupation amount d7, the occupation amount d8, the occupation amount d9 and the occupation amount d10 from high to low, namely the ordering is that: the transmission media resource z4, the transmission media resource z3, the transmission media resource z1, the transmission media resource z5 and the transmission media resource z2, namely the occupied d9 of the port resource of the transmission media resource z4 is the maximum occupied, and the occupied d9 of the port resource of the transmission media resource z2 is the minimum occupied. Further, the distribution server may screen the to-be-transmitted media resources with the CPU resource occupation ordering at the front x from among the to-be-transmitted media resources z1, z2, z3, z4 and z5, and the to-be-transmitted media resources with the port resource occupation ordering at the front v, where x and v may be positive integers, and x=v=1 is taken as an example to describe that the distribution server may take the to-be-transmitted media resources z3 and z4 as to-be-migrated target media resources.
In an embodiment, if the migration cause indicates that the distribution server does not need to be restarted and the usage rate of the device resource of the distribution server is greater than the usage rate threshold, determining, according to the usage rate of the device resource of the distribution server, the target media resource to be migrated from the media resources to be transferred of the distribution server includes: if the migration cause indicates that the distribution server does not need to be restarted, and indicates that the total usage rate of the device resources of the distribution server is greater than the usage rate threshold, the distribution server may acquire the total occupied amount of K media resources to be transmitted in the distribution server for all the device resources, and screen out the media resources to be transmitted, the total occupied amount of which is greater than the total threshold, from the K media resources to be transmitted, as target media resources to be migrated. The total utilization rate is the sum of utilization rates corresponding to CUP resources, memory resources, hard disk resources, port resources and network card resources in the distribution server; the total occupied amount may refer to the sum of the occupied amounts of the media resources to be transmitted corresponding to the CUP resources, the memory resources, the hard disk resources, the port resources and the network card resources respectively.
S103, selecting a target server matched with the target media resource from N standby servers storing the target media resource; n is a positive integer.
In the present application, the distribution server may select a backup server matching the target resource from among N backup servers storing the target media resource, and determine the backup server matching the target resource as the target server. In other words, the target server is selected from the standby servers with the target media resources to be migrated, so that the problem that the distributing server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved.
Optionally, selecting the target server matched with the target media resource from the N standby servers storing the target media resource, including: the distribution server may acquire a first network to which the distribution server belongs; the first network may be a network to which the distributing server is connected, and further, N standby servers may be screened from the standby server cluster according to the migration cause and the first network; the standby server cluster includes a standby server storing the target media resource. Then, a target server matching the target media resource may be selected from the N standby servers, e.g., the target server may be the standby server with the best transmission performance index of the N standby servers. The target server is selected based on the first network and the migration reason, so that the target server which is most suitable for transmitting the target media resource can be obtained through screening, and the acquisition accuracy of the target server is improved.
Optionally, the standby server cluster includes a standby server belonging to a first network and a standby server belonging to a second network, where the second network is different from the first network, and generally the networks to which the two standby servers belong are different, which indicates that the two standby servers are deployed in different rooms or different areas.
Optionally, the screening N standby servers from the standby server cluster according to the migration cause and the first network includes: the distribution server can acquire the network to which the standby server in the standby server cluster belongs, and if the migration cause indicates that the distribution server does not need to be restarted and the usage rate of the equipment resource of the distribution server is greater than the usage rate threshold, the N standby servers of which the networks belong to the first network are screened from the standby server cluster, so that the traffic migration of the same network is facilitated. If the migration cause indicates that the distribution service needs to be restarted, the probability that the standby server belonging to the same network as the distribution server needs to be restarted is relatively high, so that N standby servers of which the network belongs to a second network can be screened from the standby server cluster; the second network is different from the first network, thus being beneficial to realizing the flow migration (namely media resource migration) of the cross-network, namely the flow migration of the cross-machine room, and avoiding the problems of media resource transmission interruption, low availability and the like caused by abnormality (such as synchronization downtime or poor transmission performance index) of servers in the same machine room.
Optionally, selecting the target server matched with the target media resource from the N standby servers storing the target media resource, including: the distribution server may obtain resource attribute information of the target media resource, where the resource attribute information of the target media resource may include at least one of url address, name, number, etc. of the target media resource; based on the resource attribute information, a backup server selected for transmitting the target media resource during the historical time period is queried. If the standby server selected for transmitting the target media resource in the history time period is queried, indicating that the target media resource is migrated to the standby server in the history time period, determining the queried standby server as a target server matched with the target media resource; the queried standby server belongs to the N standby servers; further, if the standby server selected for transmitting the target media resource in the history period is not queried, indicating that the target media resource is not migrated to any standby server in the history period, the distribution server may select a target server matching the target media resource according to the device resource usage rates of the N standby servers. In other words, if the target media resource is migrated to a certain standby server in the historical time period, the standby server is directly used as the target server, and analysis of the transmission performance index of the standby server is not needed, so that the acquisition efficiency of the target server can be improved.
Optionally, the querying the standby server selected for transmitting the target media resource in the history period according to the resource attribute information includes: the distribution server can call a query function to perform hash operation on the resource attribute information to obtain a hash value of the resource attribute information, the query function can refer to the hash function, and further, a target index value associated with the hash value of the resource attribute information is queried from an index list; the index list reflects a mapping relationship between hash values and index values, the index values include valid values and invalid values, one valid value is associated with one standby server, the invalid value is not associated with the standby server, if the valid value may be a value other than-1, and the invalid value may refer to-1. Thus, if the target index value is a valid value, the standby server associated with the target index value of the N standby servers is determined as the standby server selected for transmitting the target media resource during the historical time period. If the target index value is an invalid value, it is determined that no backup server selected for transmitting the target media resource within the historical time period is queried.
For example, as shown in fig. 6, the distribution server may include an index list reflecting a mapping relationship between the hash value and the index value, such as a mapping relationship between the hash value h1 and the index value 1, a mapping relationship between the hash value h2 and the index value 2, a mapping relationship between the hash value h3 and the index value 3, and … …. The distribution server further includes a device list reflecting a mapping relationship between the index value and the standby server, for example, a mapping relationship between the index value 1 and the standby server 1, a mapping relationship between the index value 2 and the standby server 2, and a mapping relationship between the index value 3 and the standby server 3, … …. The distribution server may input the url address of the target media resource into a query function, the query function performs hash operation on the url address, outputs a hash value, marks the hash value as a hash value h1, and compares the hash value h1 with the hash value in the index list, detects whether the hash value h1 exists in the index list, and if the hash value h1 is included in the index list, acquires an index value 1 having a mapping relation with the hash value h1, and uses the index value 1 as a target index value. Assuming that the index value 1 is taken as a valid value as an example, the distribution server can read the standby server 1 having a mapping relation with the index value 1 from the device list, and determine the standby server 1 as the target server.
Optionally, selecting the target server matched with the target media resource according to the device resource utilization rates of the N standby servers includes: the distributing server may screen the standby servers with the usage rate of the device resources being less than or equal to the usage rate threshold from the N standby servers, and use the screened standby servers as candidate servers, where in an embodiment, the usage rate of the device resources being less than or equal to the usage rate threshold may refer to the total usage rate of the device resources being less than or equal to the usage rate threshold; in one embodiment, the usage of at least one device resource in the CUP resource, the memory resource, the hard disk resource, the port resource, the network card resource, and the like is less than or equal to the usage threshold of the corresponding device resource. Further, a transmission performance index of the candidate server when transmitting the traffic message to a terminal cluster can be obtained, wherein the terminal cluster comprises a terminal for receiving the target traffic message; and taking the candidate server with the transmission performance index being the maximum transmission performance index as a target server matched with the target media resource. The standby server with the transmission performance index being the maximum transmission performance index is used as the target server, so that the transmission efficiency of the multimedia resource is improved.
For example, the transmission performance index of the standby server may be determined according to the average throughput, the transmission delay rtt, the packet loss rate loss_rate, and the like of the standby server, where the transmission performance index may be expressed as performance, and the transmission performance index of the standby server may be calculated by the following formula (3):
Performance = throughput(1 - loss_rate) / rtt(3)
wherein, if the Performance value of the standby server is larger, the transmission Performance of the standby server is better; conversely, if the Performance value of the standby server is smaller, it indicates that the transmission of the standby server is worse.
S104, sending a migration request message to the target server; the migration request message is used for indicating the target server to transmit a target flow message carrying the target media resource to the terminal.
In the application, the distribution server can send a migration request message to the target server, wherein the migration request message is used for indicating the target server to transmit the target flow message carrying the target media resource to the terminal.
S105, if the migration confirmation message sent by the target server is received, a redirection message is sent to a proxy server of the distribution server; the redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when receiving the flow confirmation message sent by the terminal, and the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
In the application, if the migration confirmation message sent by the target server is received, which indicates that the target server agrees to migrate the target media resource to the target server, the distribution server can send the redirection message to the proxy server of the distribution server. The redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when the proxy server receives the flow confirmation message sent by the terminal, namely, the redirection message is used for indicating the proxy server to forward the message sent to the distribution server to the target server; the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
Optionally, if the migration confirmation message sent by the target server is not received within the preset time period, it indicates that the target server does not agree to migrate the target multimedia resource to the target server, or indicates that there is an abnormality in the target server, so that the distribution server may send the migration request message to the target server again. Further, counting the sending times of the migration request message to the target server, and if the sending times are larger than a time threshold, removing the target server from the N standby servers to obtain N-1 standby servers; where N is an integer greater than 1. And then, reselecting a target server matched with the target media resource from the N standby servers, which is beneficial to sending a migration request to the redetermined target server until receiving the migration confirmation request, and improving the migration effectiveness of the media resource.
In the application, when the distribution server meets the flow migration condition, the distribution server negotiates with the target server (namely the standby server) and the proxy server of the distribution server to migrate the media resources to be transmitted in the distribution server to the terminal transmitted by the target server, so that the interruption of the transmission process of the media resources can be avoided, and the transmission efficiency of the media resources is improved. Meanwhile, the whole negotiation process is not needed, namely the terminal does not need to sense the whole migration process, so that the time consumption of the media resource migration process is reduced, the problems of blocking and the like caused by overlong waiting time of the terminal are avoided, the high availability of the transmission service is improved, and the transmission efficiency of the media resource is improved. The target server is selected from the standby servers with target media resources to be migrated, so that the problem that a distribution server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved. In addition, the target server can be located in the same network as the distribution server, and the target server and the distribution server can also be located in different networks, namely the method and the device are not only applicable to media resource migration of the same network, but also applicable to media resource migration across networks, and the application range of the method and the device is improved.
Further, please refer to fig. 7, which is a flowchart illustrating a data processing method according to an embodiment of the present application. As shown in fig. 7, the method may be performed by any one of the servers in the server cluster of fig. 1, and a server for performing the data processing method of the present application may be referred to as a target server. Wherein, the method can comprise the following steps:
s201, receiving a migration request message sent by a distribution server; the migration request message is used for indicating a target server to transmit a target traffic message carrying a target media resource to a terminal, the target server is a standby server matched with the target media resource among N standby servers storing the target media resource, the target media resource is determined from media resources to be transmitted of the distribution server according to a migration reason, the migration reason reflects the reason that the distribution server meets traffic migration conditions, and N is a positive integer.
S202, a migration confirmation message is sent to a distribution server according to the migration request message, and a target flow message carrying the target media resource is generated according to the migration request message.
In the application, after receiving the migration request message, the target server can verify whether the target server has the authority to transmit the media resource to the terminal according to the equipment attribute information of the terminal in the migration request message, and if the target server has the authority to transmit the media resource to the terminal, the target server can send a migration confirmation message to the distribution server; if the permission of transmitting the media resource to the terminal is not provided, suspending to transmit a migration confirmation request to the distribution server; the rights of the standby server are pre-configured. Further, a target flow message carrying the target media resource may be generated according to the migration request message.
Optionally, generating the target traffic message carrying the target media resource according to the migration request message includes: the target server may determine, according to the migration request packet, a resource identifier of the target media resource, and a packet number corresponding to the target media resource, where the resource identifier may be an identifier for reading the target media resource, and the packet number is used to mark how many traffic packets are sent to the terminal. The target server may read the target media resource from the target server according to the resource identifier, then read the device attribute information of the terminal from the migration request message, and generate a target traffic message according to the device attribute information, the message number and the target media resource, where the device attribute information of the terminal includes the IP address and the port of the terminal.
Optionally, the determining, according to the migration request message, the resource identifier of the target media resource and the message number corresponding to the target media resource includes: if the migration request message is a message based on a first communication protocol, for example, the first communication protocol may be a TCP protocol, then reading an initial address and an offset address of the target media resource from the migration request message; the initial address may refer to a url address and the offset address may refer to an offset of the media asset that has been sent. The target server may sum the initial address and the offset address to obtain a resource identifier of the target media resource, and increase the number of the transmitted message in the migration request message by 1 to obtain a message number corresponding to the target media resource, that is, the message number is the number of the target traffic message.
Optionally, the determining, according to the migration request message, the resource identifier of the target media resource and the message number corresponding to the target media resource includes: if the migration request message is based on the second communication protocol, if the second communication protocol is the qic protocol, the target server may read an initial flow identifier and an offset flow identifier of the target media resource from the migration request message, where the initial flow identifier may refer to an identifier of a data flow where the target multimedia data is located, and the offset flow identifier is used to indicate the multimedia data that has been transmitted in the data flow. Further, the initial stream identifier and the offset stream identifier are summed to obtain a resource identifier of the target media resource; and increasing the number of the transmitted message in the migration request message by 1 to obtain the message number corresponding to the target media resource.
Optionally, the generating a target traffic message according to the device attribute information, the message number, and the target media resource includes: if the migration request message further includes an encryption key, the target server may encrypt the target media resource by using the encryption key to obtain a ciphertext of the target media resource, and encapsulate the device attribute information, the message number and the ciphertext of the target media resource according to a communication protocol to which the migration request message belongs to, to obtain a target traffic message. And encrypting the target multimedia resource through the encryption key, so that the transmission security of the target multimedia resource is improved.
It should be noted that, the communication protocol to which the migration request packet belongs is negotiated in advance by the distribution server and the terminal, that is, the communication protocol may be a communication protocol that can be understood by both the distribution server and the terminal, that is, both the distribution server and the terminal can encapsulate data to obtain a packet based on the communication protocol, and at the same time, the distribution server and the terminal can also perform decapsulation processing on the packet based on the communication protocol to obtain data in the packet. Therefore, the target flow message is generated based on the communication protocol to which the migration request message belongs, so that the target flow message can be unpacked after the terminal receives the target flow message.
S203, the target flow message is sent to the terminal, and a flow confirmation message forwarded by a proxy server of the distribution server based on the redirection message is received; the redirection message is sent to the proxy server when the distribution server receives the migration confirmation message, and the flow confirmation message is sent to the proxy server when the terminal receives the target flow message.
In the application, after receiving the migration request message, the target server can send the target flow message to the terminal and receive the flow confirmation message forwarded by the proxy server of the distribution server.
It should be noted that, if the traffic confirmation message sent by the proxy server is not received after the interval duration, the target server may resend the target traffic message to the terminal until the traffic confirmation message sent by the proxy server is received; the interval duration may refer to a duration after the target server sends the target traffic message to the terminal, for example, the interval duration may be preset, for example, may be 10s or 20s.
In a specific implementation process, as shown in fig. 8, the data processing method in the present application may include the following steps S81 to S91:
s81, the distribution server detects whether the distribution server meets the traffic migration condition; the distributing server may call the migration detection component to detect the CPU, the memory, the hard disk, the port, the network card, etc. of the distributing server, so as to detect whether the distributing server meets the migration condition, and the specific implementation process refers to steps S82 and S83.
S82, transmission performance is deteriorated; the distribution server may call the migration detection component to detect a CPU, a memory, a hard disk, a port, a network card, etc. of the distribution server, obtain the usage rates of the CPU resource, the memory resource, the hard disk resource, and the network card resource, and if at least one of the plurality of device resources has a usage rate greater than the usage rate threshold value of the corresponding device usage rate, determine that the transmission performance of the distribution server is poor, that is, determine that the distribution server satisfies the traffic migration condition, execute step S84; if there is no usage rate of the device resource among the plurality of device resources that is greater than the usage rate threshold value of the corresponding device usage rate, it is determined that the transmission performance of the distribution server is not degraded, step S83 is performed. The various device resources herein include CPU resources, memory resources, hard disk resources, and network card resources.
S83, transferring by an administrator; specifically, the distribution server may invoke the migration detection component to detect whether an application exists in the distribution server in an updated state, and if it is detected that the application exists in the updated state, that is, if the application is detected that the application exists in the updated state, the distribution server is restarted under a high probability of an administrator, so that the distribution server cannot transmit the media resource temporarily, that is, it is determined that the administrator needs to migrate the media resource. Or, the migration detection component is invoked to detect whether a traffic migration instruction about the media resource is received, and if the traffic migration instruction is received, it is determined that the administrator needs to migrate the media resource, and step S84 is performed.
S84, selecting a target media resource to be migrated; the distribution server can select target media resources to be migrated from the media resources to be transferred, and if an administrator needs to migrate the media resources, all the media resources to be transferred can be determined as the target media resources to be migrated; if the transmission performance of the distribution server is reduced, part of the media resources to be transmitted in the distribution server can be determined as target media resources to be migrated.
S85, selecting a target server matched with the target media resource; specifically, the distribution server may select a standby server with a transmission performance index being the maximum transmission performance index from N standby servers storing the target media resource, and determine the selected standby server as the target server matching the target media resource.
S86, transmitting a migration request message; after the target server is obtained, the distribution server may send a migration request packet to the target server, where the migration request packet is used to instruct the target server to transmit the target media resource to the terminal.
S87, receiving a migration confirmation request; after receiving the migration request message, the target server may send a migration confirmation request to the distribution server, where the migration confirmation request is used to reflect that the target server agrees to transmit the target media resource to the terminal.
S88, sending a redirection message to the proxy server. After the distribution server receives the migration confirmation message, a redirection message may be sent to the proxy server, where the redirection message is used to instruct the proxy server to receive the traffic confirmation message sent to the distribution server, and forward the traffic confirmation message to the target server.
S89, the target server sends a target flow message; the target server may send a target traffic message carrying the target media resource to the terminal.
S90, the terminal returns a flow confirmation message; after receiving the target flow message, the terminal may send a flow confirmation message to the proxy server.
S91, forwarding a flow confirmation message by the proxy server; after receiving the traffic confirmation message, the proxy server may forward the traffic confirmation message to the target server.
In the application, when the distribution server meets the flow migration condition, the distribution server negotiates with the target server (namely the standby server) and the proxy server of the distribution server to migrate the media resources to be transmitted in the distribution server to the terminal transmitted by the target server, so that the interruption of the transmission process of the media resources can be avoided, and the transmission efficiency of the media resources is improved. Meanwhile, the whole negotiation process is not needed, namely the terminal does not need to sense the whole migration process, so that the time consumption of the media resource migration process is reduced, the problems of blocking and the like caused by overlong waiting time of the terminal are avoided, the high availability of the transmission service is improved, and the transmission efficiency of the media resource is improved. The target server is selected from the standby servers with target media resources to be migrated, so that the problem that a distribution server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved. In addition, the target server can be located in the same network as the distribution server, and the target server and the distribution server can also be located in different networks, namely the method and the device are not only applicable to media resource migration of the same network, but also applicable to media resource migration across networks, and the application range of the method and the device is improved.
Fig. 9 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 9, the data processing apparatus may include:
an obtaining module 911, configured to obtain a migration reason that the distribution server satisfies the traffic migration condition if it is detected that the distribution server satisfies the traffic migration condition;
a determining module 912, configured to determine, according to the migration cause, a target media resource to be migrated from the media resources to be transferred of the distribution server;
a selecting module 913, configured to select a target server matching the target media resource from N standby servers storing the target media resource; n is a positive integer;
a first sending module 914, configured to send a migration request packet to the target server; the migration request message is used for indicating the target server to transmit a target flow message carrying the target media resource to the terminal;
a second sending module 915, configured to send a redirection message to a proxy server of the distribution server if the migration confirmation message sent by the target server is received; and the redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when receiving the flow confirmation message sent by the terminal, and the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
Optionally, the determining module 912 includes a first determining unit 91a and a second determining unit 92a;
a first determining unit 91a, configured to determine all media resources to be transmitted of the distribution server as target media resources to be migrated if the migration cause indicates that the distribution service needs to be restarted;
and a second determining unit 92a, configured to determine, if the migration cause indicates that the distribution server does not need to be restarted and the usage rate of the device resource of the distribution server is greater than the usage rate threshold, a target media resource to be migrated from the media resources to be transferred of the distribution server according to the usage rate of the device resource of the distribution server.
Optionally, when the migration cause indicates that the distribution server does not need to be restarted, and the usage rate of the device resource of the distribution server is greater than the usage rate threshold, the second determining unit 92a determines, according to the usage rate of the device resource of the distribution server, a target media resource to be migrated from the media resources to be transferred of the distribution server, including:
if the migration cause indicates that the distribution server does not need to be restarted, determining M device resources with the use rate greater than the use rate threshold value of the corresponding device resources from the migration cause; m is a positive integer;
Acquiring the occupation amounts of K media resources to be transmitted in the distribution server aiming at the M equipment resources respectively; k is the resource quantity of all media resources to be transmitted in the distribution server;
screening the media resources to be transmitted, of which the occupation amount of the ith equipment resource is larger than an occupation amount threshold i, from the K media resources to be transmitted; i is a positive integer less than or equal to M;
and determining the media resources to be transmitted, which are obtained based on the M equipment resources through screening respectively, as target media resources to be migrated.
Optionally, the selection module 913 includes a first acquisition unit 93a, a screening unit 94a, and a first selection unit 95a;
a first obtaining unit 93a configured to obtain a first network to which the distribution server belongs;
a screening unit 94a, configured to screen N standby servers from the standby server cluster according to the migration cause and the first network; the standby server cluster comprises standby servers storing the target media resources;
and a selecting unit 95a for selecting a target server matching the target media resource from the N standby servers.
Optionally, the screening unit 94a screens N standby servers from the standby server cluster according to the migration cause and the first network, including:
Acquiring a network to which a standby server in the standby server cluster belongs;
if the migration cause indicates that the distributing server does not need to be restarted, and the utilization rate of the equipment resources of the distributing server is greater than the utilization rate threshold, screening N standby servers of which the affiliated networks are the first network from the standby server cluster;
if the migration cause indicates that the distribution service needs to be restarted, N standby servers of which the network belongs to a second network are screened from the standby server cluster; the second network is different from the first network.
Optionally, the selection module 913 includes a second acquisition unit 93b, a query unit 94b, and a third determination unit 95b, and a second selection unit 96b;
a second obtaining unit 93b, configured to obtain resource attribute information of the target media resource;
a query unit 94b for querying a standby server selected for transmitting the target media resource in a history period according to the resource attribute information;
a third determining unit 95b configured to determine, if a standby server selected for transmitting the target media resource in the history period is queried, the queried standby server as a target server matching the target media resource; the queried standby server belongs to the N standby servers;
And a second selecting unit 96b, configured to select a target server matching the target media resource according to the device resource usage rates of the N standby servers if no standby server selected for transmitting the target media resource in the history period is queried.
Optionally, the querying unit 94b queries, according to the resource attribute information, a standby server selected for transmitting the target media resource in a history period, including:
calling a query function to perform hash operation on the resource attribute information to obtain a hash value of the resource attribute information;
querying a target index value associated with the hash value of the resource attribute information from an index list;
if the target index value is a valid value, determining a standby server associated with the target index value from among the N standby servers as a standby server selected for transmitting the target media resource in the history period;
if the target index value is an invalid value, determining that the standby server selected for transmitting the target media resource in the history period is not queried.
Optionally, the second selecting unit 96b selects, according to the device resource usage rates of the N standby servers, a target server that matches the target media resource, including:
Screening candidate servers with the utilization rate of equipment resources smaller than or equal to the utilization rate threshold value from the N standby servers;
acquiring transmission performance indexes when the candidate server transmits the traffic message to the terminal cluster; the terminal cluster comprises terminals for receiving the target flow message;
and using the candidate server with the transmission performance index being the maximum transmission performance index as a target server matched with the target media resource.
Optionally, an obtaining module 911 is configured to invoke a migration detection component in the distribution server, and detect whether the distribution server needs to be restarted;
if the distribution server does not need to be restarted, acquiring the utilization rate of the equipment resources of the distribution server; if the utilization rate of the equipment resources is greater than the utilization rate threshold, determining that the distribution server meets a traffic migration condition, and generating a migration reason indicating that the distribution server does not need to be restarted and the utilization rate of the equipment resources of the distribution server is greater than the utilization rate threshold;
if the distribution server needs to be restarted, determining that the distribution server meets the flow migration condition, and generating a migration reason indicating that the distribution server needs to be restarted.
Optionally, the selecting module 913 is further configured to, if the migration confirmation message of the target server is not received within a preset period of time, resend the migration request message to the target server; counting the sending times of the migration request message to the target server; if the sending times are greater than the times threshold and the migration confirmation message about the target server is not received, removing the target server from the N standby servers to obtain N-1 standby servers; and reselecting a target server matched with the target media resource from the N standby servers.
In the application, when the distribution server meets the flow migration condition, the distribution server negotiates with the target server (namely the standby server) and the proxy server of the distribution server to migrate the media resources to be transmitted in the distribution server to the terminal transmitted by the target server, so that the interruption of the transmission process of the media resources can be avoided, and the transmission efficiency of the media resources is improved. Meanwhile, the whole negotiation process is not needed, namely the terminal does not need to sense the whole migration process, so that the time consumption of the media resource migration process is reduced, the problems of blocking and the like caused by overlong waiting time of the terminal are avoided, the high availability of the transmission service is improved, and the transmission efficiency of the media resource is improved. The target server is selected from the standby servers with target media resources to be migrated, so that the problem that a distribution server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved. In addition, the target server can be located in the same network as the distribution server, and the target server and the distribution server can also be located in different networks, namely the method and the device are not only applicable to media resource migration of the same network, but also applicable to media resource migration across networks, and the application range of the method and the device is improved.
Fig. 10 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 10, the data processing apparatus may include:
a receiving module 1011, configured to receive a migration request packet sent by a distribution server; the migration request message is used for indicating a target server to transmit a target traffic message carrying a target media resource to a terminal, the target server is a standby server matched with the target media resource among N standby servers storing the target media resource, the target media resource is determined from media resources to be transmitted of the distribution server according to a migration reason, the migration reason reflects the reason that the distribution server meets traffic migration conditions, and N is a positive integer;
a first sending module 1012, configured to send a migration confirmation message to the distribution server according to the migration request message, and generate a target traffic message carrying the target media resource according to the migration request message;
a second sending module 1013, configured to send the target traffic message to the terminal, and receive a traffic confirmation message forwarded by a proxy server of the distribution server based on the redirection message; the redirection message is sent to the proxy server when the distribution server receives the migration confirmation message, and the flow confirmation message is sent to the proxy server when the terminal receives the target flow message.
The first transmission module 1012 includes a determination unit 101a, a reading unit 102a, and a generation unit 103a;
a determining unit 101a, configured to determine, according to the migration request packet, a resource identifier of the target media resource and a packet number corresponding to the target media resource;
a reading unit 102a, configured to read the target media resource from the target server according to the resource identifier;
and a generating unit 103a, configured to read the device attribute information of the terminal from the migration request packet, and generate a target traffic packet according to the device attribute information, the packet number, and the target media resource.
Optionally, the determining unit 101a determines, according to the migration request packet, a resource identifier of the target media resource and a packet number corresponding to the target media resource, including:
if the migration request message is based on a first communication protocol, reading an initial address and an offset address of the target media resource from the migration request message;
summing the initial address and the offset address to obtain a resource identifier of the target media resource;
and increasing the number of the transmitted message in the migration request message by 1 to obtain the message number corresponding to the target media resource.
Optionally, the determining unit 101a determines, according to the migration request packet, a resource identifier of the target media resource and a packet number corresponding to the target media resource, including:
if the migration request message is based on a message of a second communication protocol, reading an initial flow identifier and an offset flow identifier of the target media resource from the migration request message;
summing the initial stream identifier and the offset stream identifier to obtain a resource identifier of the target media resource;
and increasing the number of the transmitted message in the migration request message by 1 to obtain the message number corresponding to the target media resource.
Optionally, the generating unit 103a generates a target traffic message according to the device attribute information, the message number, and the target media resource, including:
if the migration request message also comprises an encryption key, encrypting the target media resource by adopting the encryption key to obtain a ciphertext of the target media resource;
and packaging the equipment attribute information, the message number and the ciphertext of the target media resource according to a communication protocol to which the migration request message belongs to obtain a target flow message.
In the application, when the distribution server meets the flow migration condition, the distribution server negotiates with the target server (namely the standby server) and the proxy server of the distribution server to migrate the media resources to be transmitted in the distribution server to the terminal transmitted by the target server, so that the interruption of the transmission process of the media resources can be avoided, and the transmission efficiency of the media resources is improved. Meanwhile, the whole negotiation process is not needed, namely the terminal does not need to sense the whole migration process, so that the time consumption of the media resource migration process is reduced, the problems of blocking and the like caused by overlong waiting time of the terminal are avoided, the high availability of the transmission service is improved, and the transmission efficiency of the media resource is improved. The target server is selected from the standby servers with target media resources to be migrated, so that the problem that a distribution server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved. In addition, the target server can be located in the same network as the distribution server, and the target server and the distribution server can also be located in different networks, namely the method and the device are not only applicable to media resource migration of the same network, but also applicable to media resource migration across networks, and the application range of the method and the device is improved.
Fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 11, the above-mentioned computer device 1000 may refer to a terminal or a server, including: processor 1001, network interface 1004, and memory 1005, and in addition, the above-described computer device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. In some embodiments, the user interface 1003 may include a DiSPlay (DiSPlay), a Keyboard (keyBoard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface, among others. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The MeMory 1005 may be a high-speed RAM MeMory or a nonvolatile MeMory (non-volatile MeMory), such as at least one magnetic disk MeMory. The memory 1005 may also optionally be at least one storage device remote from the processor 1001. As shown in fig. 11, an operating system, a network communication module, a user interface module, and a computer program may be included in the memory 1005, which is a type of computer-readable storage medium.
In the computer device 1000 shown in FIG. 11, the network interface 1004 may provide network communication functions; while user interface 1003 is primarily used as an interface to provide input; and the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute:
if the distribution server is detected to meet the traffic migration condition, acquiring a migration reason that the distribution server meets the traffic migration condition;
determining a target media resource to be migrated from the media resources to be transmitted of the distribution server according to the migration reason;
selecting a target server matched with the target media resource from N standby servers storing the target media resource; n is a positive integer;
transmitting a migration request message to the target server; the migration request message is used for indicating the target server to transmit a target flow message carrying the target media resource to the terminal;
if the migration confirmation message sent by the target server is received, a redirection message is sent to a proxy server of the distribution server; and the redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when receiving the flow confirmation message sent by the terminal, and the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute determining, according to the migration cause, a target media resource to be migrated from the media resources to be transferred of the distribution server, including:
if the migration cause indicates that the distribution service needs to be restarted, determining all media resources to be transmitted of the distribution server as target media resources to be migrated;
and if the migration reason indicates that the distribution server does not need to be restarted and the use rate of the equipment resources of the distribution server is greater than the use rate threshold, determining the target media resources to be migrated from the media resources to be transmitted of the distribution server according to the use rate of the equipment resources of the distribution server.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute, if the migration cause indicates that the distribution server does not need to be restarted, and the usage rate of the device resource of the distribution server is greater than the usage rate threshold, determining, according to the usage rate of the device resource of the distribution server, a target media resource to be migrated from the media resources to be transferred of the distribution server, including:
If the migration cause indicates that the distribution server does not need to be restarted, determining M device resources with the use rate greater than the use rate threshold value of the corresponding device resources from the migration cause; m is a positive integer;
acquiring the occupation amounts of K media resources to be transmitted in the distribution server aiming at the M equipment resources respectively; k is the resource quantity of all media resources to be transmitted in the distribution server;
screening the media resources to be transmitted, of which the occupation amount of the ith equipment resource is larger than an occupation amount threshold i, from the K media resources to be transmitted; i is a positive integer less than or equal to M;
and determining the media resources to be transmitted, which are obtained based on the M equipment resources through screening respectively, as target media resources to be migrated.
Alternatively, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute selecting a target server matching the target media resource from N standby servers storing the target media resource, including:
acquiring a first network to which the distribution server belongs;
according to the migration reasons and the first network, N standby servers are screened from a standby server cluster; the standby server cluster comprises standby servers storing the target media resources;
And selecting a target server matched with the target media resource from the N standby servers.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute a method for screening N standby servers from the standby server cluster according to the migration cause and the first network, including:
acquiring a network to which a standby server in the standby server cluster belongs;
if the migration cause indicates that the distributing server does not need to be restarted, and the utilization rate of the equipment resources of the distributing server is greater than the utilization rate threshold, screening N standby servers of which the affiliated networks are the first network from the standby server cluster;
if the migration cause indicates that the distribution service needs to be restarted, N standby servers of which the network belongs to a second network are screened from the standby server cluster; the second network is different from the first network.
Alternatively, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute selecting a target server matching the target media resource from N standby servers storing the target media resource, including:
Acquiring resource attribute information of the target media resource;
inquiring a standby server selected for transmitting the target media resource in a history period according to the resource attribute information;
if the standby server selected for transmitting the target media resource in the history period is queried, determining the queried standby server as a target server matched with the target media resource; the queried standby server belongs to the N standby servers;
and if the standby server selected for transmitting the target media resource in the historical time period is not queried, selecting a target server matched with the target media resource according to the equipment resource utilization rates of the N standby servers.
Alternatively, the processor 1001 may be configured to call a computer program stored in the memory 1005 to execute:
invoking a migration detection component in the distribution server to detect whether the distribution server needs to be restarted;
if the distribution server does not need to be restarted, acquiring the utilization rate of the equipment resources of the distribution server; if the utilization rate of the equipment resources is greater than the utilization rate threshold, determining that the distribution server meets a traffic migration condition, and generating a migration reason indicating that the distribution server does not need to be restarted and the utilization rate of the equipment resources of the distribution server is greater than the utilization rate threshold;
If the distribution server needs to be restarted, determining that the distribution server meets the flow migration condition, and generating a migration reason indicating that the distribution server needs to be restarted.
Alternatively, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute a query for a standby server selected for transmitting the target media resource in a historical period according to the resource attribute information, including:
calling a query function to perform hash operation on the resource attribute information to obtain a hash value of the resource attribute information;
querying a target index value associated with the hash value of the resource attribute information from an index list;
if the target index value is a valid value, determining a standby server associated with the target index value from among the N standby servers as a standby server selected for transmitting the target media resource in the history period;
if the target index value is an invalid value, determining that the standby server selected for transmitting the target media resource in the history period is not queried.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to execute selecting a target server matching the target media resource according to the device resource usage rates of the N standby servers, including:
Screening candidate servers with the utilization rate of equipment resources smaller than or equal to the utilization rate threshold value from the N standby servers;
acquiring transmission performance indexes when the candidate server transmits the traffic message to the terminal cluster; the terminal cluster comprises terminals for receiving the target flow message;
and using the candidate server with the transmission performance index being the maximum transmission performance index as a target server matched with the target media resource.
Alternatively, the processor 1001 may be configured to call a computer program stored in the memory 1005 to execute:
if the migration confirmation message of the target server is not received within a preset time period, the migration request message is sent to the target server again;
counting the sending times of the migration request message to the target server;
if the sending times are greater than the times threshold and the migration confirmation message about the target server is not received, removing the target server from the N standby servers to obtain N-1 standby servers;
and reselecting a target server matched with the target media resource from the N standby servers.
Alternatively, the processor 1001 may be configured to call a computer program stored in the memory 1005 to execute:
receiving a migration request message sent by a distribution server; the migration request message is used for indicating a target server to transmit a target traffic message carrying a target media resource to a terminal, the target server is a standby server matched with the target media resource among N standby servers storing the target media resource, the target media resource is determined from media resources to be transmitted of the distribution server according to a migration reason, the migration reason reflects the reason that the distribution server meets traffic migration conditions, and N is a positive integer;
transmitting a migration confirmation message to the distribution server according to the migration request message, and generating a target flow message carrying the target media resource according to the migration request message;
the target flow message is sent to the terminal, and a flow confirmation message forwarded by a proxy server of the distribution server based on the redirection message is received; the redirection message is sent to the proxy server when the distribution server receives the migration confirmation message, and the flow confirmation message is sent to the proxy server when the terminal receives the target flow message.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to generate a target traffic message carrying the target media resource according to the migration request message, including:
determining a resource identifier of the target media resource and a message number corresponding to the target media resource according to the migration request message;
reading the target media resource from the target server according to the resource identifier;
and reading the equipment attribute information of the terminal from the migration request message, and generating a target flow message according to the equipment attribute information, the message number and the target media resource.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to determine, according to the migration request packet, a resource identifier of the target media resource and a packet number corresponding to the target media resource, where the method includes:
if the migration request message is based on a first communication protocol, reading an initial address and an offset address of the target media resource from the migration request message;
summing the initial address and the offset address to obtain a resource identifier of the target media resource;
And increasing the number of the transmitted message in the migration request message by 1 to obtain the message number corresponding to the target media resource.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to determine, according to the migration request packet, a resource identifier of the target media resource and a packet number corresponding to the target media resource, where the method includes:
if the migration request message is based on a message of a second communication protocol, reading an initial flow identifier and an offset flow identifier of the target media resource from the migration request message;
summing the initial stream identifier and the offset stream identifier to obtain a resource identifier of the target media resource;
and increasing the number of the transmitted message in the migration request message by 1 to obtain the message number corresponding to the target media resource.
Optionally, the processor 1001 may be configured to invoke a computer program stored in the memory 1005 to generate a target traffic message according to the device attribute information, the message number, and the target media resource, where the generating includes:
if the migration request message also comprises an encryption key, encrypting the target media resource by adopting the encryption key to obtain a ciphertext of the target media resource;
And packaging the equipment attribute information, the message number and the ciphertext of the target media resource according to a communication protocol to which the migration request message belongs to obtain a target flow message.
In the application, when the distribution server meets the flow migration condition, the distribution server negotiates with the target server (namely the standby server) and the proxy server of the distribution server to migrate the media resources to be transmitted in the distribution server to the terminal transmitted by the target server, so that the interruption of the transmission process of the media resources can be avoided, and the transmission efficiency of the media resources is improved. Meanwhile, the whole negotiation process is not needed, namely the terminal does not need to sense the whole migration process, so that the time consumption of the media resource migration process is reduced, the problems of blocking and the like caused by overlong waiting time of the terminal are avoided, the high availability of the transmission service is improved, and the transmission efficiency of the media resource is improved. The target server is selected from the standby servers with target media resources to be migrated, so that the problem that a distribution server needs to retry for multiple times to select a proper target server can be avoided, and the selection efficiency of the target server is improved. In addition, the target server can be located in the same network as the distribution server, and the target server and the distribution server can also be located in different networks, namely the method and the device are not only applicable to media resource migration of the same network, but also applicable to media resource migration across networks, and the application range of the method and the device is improved.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program executed by the aforementioned data processing apparatus, where the computer program includes program instructions, when executed by the processor, can perform the description of the data processing method in the corresponding embodiment, and therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application.
As an example, the above-described program instructions may be executed on one computer device or at least two computer devices disposed at one site, or alternatively, at least two computer devices distributed at least two sites and interconnected by a communication network, which may constitute a blockchain network.
The computer readable storage medium may be the data processing apparatus provided in any of the foregoing embodiments or a middle storage unit of the foregoing computer device, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a SMart Media Card (SMC), a Secure Digital (SD) card, a flaSh memory card (flashh card), etc. provided on the computer device. Further, the computer-readable storage medium may also include both a central storage unit and an external storage device of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms first, second and the like in the description and in the claims and drawings of embodiments of the application, are used for distinguishing between different media and not necessarily for describing a particular sequential or chronological order. Furthermore, the term "include" and any variations thereof is intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or modules but may, in the alternative, include other steps or modules not listed or inherent to such process, method, apparatus, article, or device.
The relevant data collection and processing in the application can obtain the informed consent or independent consent of the personal information body according to the requirements of relevant national laws and regulations when the example is applied, and develop the subsequent data use and processing behaviors within the authorized range of the laws and regulations and the personal information body.
The embodiment of the present application further provides a computer program product, which includes a computer program, where the computer program when executed by a processor implements the descriptions of the data processing method and the decoding method in the foregoing corresponding embodiments, and therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer program product according to the present application, reference is made to the description of the method embodiments according to the present application.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and related apparatus provided in the embodiments of the present application are described with reference to the flowchart and/or schematic structural diagrams of the method provided in the embodiments of the present application, and each flow and/or block of the flowchart and/or schematic structural diagrams of the method may be implemented by computer program instructions, and combinations of flows and/or blocks in the flowchart and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable network connection device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable network connection device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable network connection device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or structural diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable network connection device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart flow or flows and/or structures.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (19)

1. A method of data processing, comprising:
if the distribution server is detected to meet the traffic migration condition, acquiring a migration reason that the distribution server meets the traffic migration condition;
determining a target media resource to be migrated from the media resources to be transmitted of the distribution server according to the migration reason;
selecting a target server matched with the target media resource from N standby servers storing the target media resource; n is a positive integer;
transmitting a migration request message to the target server; the migration request message is used for indicating the target server to transmit a target flow message carrying the target media resource to a terminal;
if the migration confirmation message sent by the target server is received, a redirection message is sent to a proxy server of the distribution server; the redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when receiving the flow confirmation message sent by the terminal, and the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
2. The method according to claim 1, wherein the determining, according to the migration cause, a target media resource to be migrated from among the media resources to be transferred of the distribution server includes:
if the migration cause indicates that the distribution service needs to be restarted, determining all media resources to be transmitted of the distribution server as target media resources to be migrated;
and if the migration reason indicates that the distribution server does not need to be restarted and the use rate of the equipment resources of the distribution server is larger than the use rate threshold, determining a target media resource to be migrated from the media resources to be transmitted of the distribution server according to the use rate of the equipment resources of the distribution server.
3. The method according to claim 2, wherein if the migration cause indicates that the distribution server does not need to be restarted, and the usage rate of the device resource of the distribution server is greater than the usage rate threshold, determining, from the media resources to be transferred of the distribution server, the target media resource to be migrated according to the usage rate of the device resource of the distribution server, includes:
if the migration cause indicates that the distribution server does not need to be restarted, M equipment resources with the use rate larger than the use rate threshold value of the corresponding equipment resources are determined from the migration cause; m is a positive integer;
Acquiring the occupation amounts of K media resources to be transmitted in the distribution server aiming at the M equipment resources respectively; k is the resource quantity of all media resources to be transmitted in the distribution server;
screening the media resources to be transmitted, of which the occupation amount of the ith equipment resource is larger than an occupation amount threshold i, from the K media resources to be transmitted; i is a positive integer less than or equal to M;
and determining the media resources to be transmitted, which are obtained based on the M equipment resources through screening respectively, as target media resources to be migrated.
4. The method of claim 1, wherein selecting a target server that matches the target media resource from among the N backup servers that store the target media resource comprises:
acquiring a first network to which the distribution server belongs;
according to the migration reasons and the first network, N standby servers are screened from a standby server cluster; the standby server cluster comprises standby servers storing the target media resources;
and selecting a target server matched with the target media resource from the N standby servers.
5. The method of claim 4, wherein said screening N standby servers from a cluster of standby servers based on said migration cause and said first network comprises:
Acquiring a network to which a standby server in the standby server cluster belongs;
if the migration cause indicates that the distribution server does not need to be restarted, and the utilization rate of the equipment resources of the distribution server is greater than a utilization rate threshold, screening N standby servers of which the affiliated networks are first networks from the standby server cluster;
if the migration cause indicates that the distribution service needs to be restarted, N standby servers of which the network belongs to a second network are screened from the standby server cluster; the second network is different from the first network.
6. The method of claim 1, wherein selecting a target server that matches the target media resource from among the N backup servers that store the target media resource comprises:
acquiring resource attribute information of the target media resource;
querying a standby server selected for transmitting the target media resource in a history period according to the resource attribute information;
if the standby server selected for transmitting the target media resource in the history period is queried, determining the queried standby server as a target server matched with the target media resource; the queried standby servers belong to the N standby servers;
And if the standby servers selected for transmitting the target media resources in the historical time period are not queried, selecting a target server matched with the target media resources according to the equipment resource utilization rates of the N standby servers.
7. The method of claim 6, wherein querying the backup server selected for transmission of the target media resource during the historical period of time based on the resource attribute information comprises:
calling a query function to perform hash operation on the resource attribute information to obtain a hash value of the resource attribute information;
querying a target index value associated with the hash value of the resource attribute information from an index list;
if the target index value is a valid value, determining a standby server associated with the target index value from the N standby servers as the standby server selected for transmitting the target media resource in the history period;
if the target index value is an invalid value, determining that the standby server selected for transmitting the target media resource in the history period is not queried.
8. The method of claim 6, wherein selecting a target server that matches the target media resource based on device resource usage of the N standby servers comprises:
Screening candidate servers with the utilization rate of equipment resources smaller than or equal to the utilization rate threshold value from the N standby servers;
acquiring transmission performance indexes when the candidate server transmits the traffic message to the terminal cluster; the terminal cluster comprises terminals for receiving the target flow message;
and taking the candidate server with the transmission performance index being the maximum transmission performance index as a target server matched with the target media resource.
9. The method according to claim 1, wherein if the distribution server is detected to satisfy the traffic migration condition, the step of obtaining a migration cause that the distribution server satisfies the traffic migration condition includes:
invoking a migration detection component in the distribution server to detect whether the distribution server needs to be restarted;
if the distribution server does not need to be restarted, acquiring the utilization rate of the equipment resources of the distribution server; if the utilization rate of the equipment resources is greater than the utilization rate threshold, determining that the distribution server meets a traffic migration condition, and generating a migration reason indicating that the distribution server does not need to be restarted and the utilization rate of the equipment resources of the distribution server is greater than the utilization rate threshold;
If the distribution server needs to be restarted, determining that the distribution server meets the flow migration condition, and generating a migration reason indicating that the distribution server needs to be restarted.
10. The method according to claim 1, wherein the method further comprises:
if the migration confirmation message of the target server is not received within a preset time period, the migration request message is sent to the target server again;
counting the sending times of the migration request message to the target server;
if the sending times are greater than a time threshold and the migration confirmation message about the target server is not received, removing the target server from the N standby servers to obtain N-1 standby servers;
and reselecting a target server matched with the target media resource from the N standby servers.
11. A method of data processing, comprising:
receiving a migration request message sent by a distribution server; the migration request message is used for indicating a target server to transmit a target flow message carrying a target media resource to a terminal, the target server is a standby server matched with the target media resource among N standby servers storing the target media resource, the target media resource is determined from media resources to be transmitted of the distribution server according to a migration reason, the migration reason reflects the reason that the distribution server meets a flow migration condition, and N is a positive integer;
According to the migration request message, a migration confirmation message is sent to the distribution server, and according to the migration request message, a target flow message carrying the target media resource is generated;
the target flow message is sent to the terminal, and a flow confirmation message forwarded by a proxy server of the distribution server based on the redirection message is received; the redirection message is sent to the proxy server when the distribution server receives the migration confirmation message, and the flow confirmation message is sent to the proxy server when the terminal receives the target flow message.
12. The method of claim 11, wherein generating a target traffic message carrying the target media resource according to the migration request message comprises:
determining a resource identifier of the target media resource and a message number corresponding to the target media resource according to the migration request message;
reading the target media resource from the target server according to the resource identifier;
and reading the equipment attribute information of the terminal from the migration request message, and generating a target flow message according to the equipment attribute information, the message number and the target media resource.
13. The method according to claim 12, wherein the determining the resource identifier of the target media resource and the message number corresponding to the target media resource according to the migration request message includes:
if the migration request message is based on a first communication protocol, reading an initial address and an offset address of the target media resource from the migration request message;
summing the initial address and the offset address to obtain a resource identifier of the target media resource;
and increasing the number of the transmitted message in the migration request message by 1 to obtain the message number corresponding to the target media resource.
14. The method according to claim 12, wherein the determining the resource identifier of the target media resource and the message number corresponding to the target media resource according to the migration request message includes:
if the migration request message is based on a second communication protocol, reading an initial flow identifier and an offset flow identifier of the target media resource from the migration request message;
summing the initial stream identifier and the offset stream identifier to obtain a resource identifier of the target media resource;
And increasing the number of the transmitted message in the migration request message by 1 to obtain the message number corresponding to the target media resource.
15. The method of claim 12, wherein generating the target traffic message based on the device attribute information, the message number, and the target media resource comprises:
if the migration request message also comprises an encryption key, encrypting the target media resource by adopting the encryption key to obtain a ciphertext of the target media resource;
and packaging the equipment attribute information, the message number and the ciphertext of the target media resource according to the communication protocol to which the migration request message belongs to obtain a target flow message.
16. A data processing apparatus, comprising:
the acquisition module is used for acquiring migration reasons for the distribution server to meet the traffic migration conditions if the distribution server is detected to meet the traffic migration conditions;
the determining module is used for determining target media resources to be migrated from the media resources to be transmitted of the distribution server according to the migration reasons;
a selection module, configured to select a target server that matches the target media resource from N standby servers that store the target media resource; n is a positive integer;
The first sending module is used for sending a migration request message to the target server; the migration request message is used for indicating the target server to transmit a target flow message carrying the target media resource to a terminal;
the second sending module is used for sending a redirection message to the proxy server of the distribution server if the migration confirmation message sent by the target server is received; the redirection message is used for indicating the proxy server to forward the flow confirmation message to the target server when receiving the flow confirmation message sent by the terminal, and the flow confirmation message is used for reflecting that the terminal receives the target flow message sent by the target server.
17. A data processing apparatus, comprising:
the receiving module is used for receiving the migration request message sent by the distribution server; the migration request message is used for indicating a target server to transmit a target flow message carrying a target media resource to a terminal, the target server is a standby server matched with the target media resource among N standby servers storing the target media resource, the target media resource is determined from media resources to be transmitted of the distribution server according to a migration reason, the migration reason reflects the reason that the distribution server meets a flow migration condition, and N is a positive integer;
The first sending module is used for sending a migration confirmation message to the distribution server according to the migration request message and generating a target flow message carrying the target media resource according to the migration request message;
the second sending module is used for sending the target flow message to the terminal, and receiving a flow confirmation message forwarded by the proxy server of the distribution server based on the redirection message; the redirection message is sent to the proxy server when the distribution server receives the migration confirmation message, and the flow confirmation message is sent to the proxy server when the terminal receives the target flow message.
18. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 15 when the computer program is executed.
19. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 15.
CN202310964734.0A 2023-08-02 2023-08-02 Data processing method, device, equipment and storage medium Active CN116684468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310964734.0A CN116684468B (en) 2023-08-02 2023-08-02 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310964734.0A CN116684468B (en) 2023-08-02 2023-08-02 Data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116684468A true CN116684468A (en) 2023-09-01
CN116684468B CN116684468B (en) 2023-10-20

Family

ID=87781290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310964734.0A Active CN116684468B (en) 2023-08-02 2023-08-02 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116684468B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117579874B (en) * 2024-01-16 2024-04-05 腾讯科技(深圳)有限公司 Audio and video resource transmission method and device, server and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735088A (en) * 2015-04-16 2015-06-24 北京金山安全软件有限公司 Server node adjusting method and device in CDN (content delivery network)
CN111614484A (en) * 2020-04-13 2020-09-01 网宿科技股份有限公司 Node flow calling and recovering method, system and central server
CN111666159A (en) * 2020-06-28 2020-09-15 腾讯科技(深圳)有限公司 Load balancing control method and device, storage medium and electronic equipment
CN111857977A (en) * 2020-09-21 2020-10-30 腾讯科技(深圳)有限公司 Elastic expansion method, device, server and storage medium
CN112491961A (en) * 2020-11-02 2021-03-12 网宿科技股份有限公司 Scheduling system and method and CDN system
CN112688995A (en) * 2020-12-16 2021-04-20 中国联合网络通信集团有限公司 System migration method and device
WO2021143386A1 (en) * 2020-01-17 2021-07-22 北京达佳互联信息技术有限公司 Resource transmission method and terminal
CN113497817A (en) * 2020-03-20 2021-10-12 北京金山云网络技术有限公司 Traffic scheduling method and device, edge node of CDN (content delivery network) and server
CN113849160A (en) * 2021-09-24 2021-12-28 苏州浪潮智能科技有限公司 Dynamic migration method and device for compiling task, electronic equipment and storage medium
CN115190180A (en) * 2022-06-29 2022-10-14 乐视云计算有限公司 Method and device for scheduling network resource request during sudden increase of network resource request
CN115208766A (en) * 2022-07-29 2022-10-18 天翼云科技有限公司 CDN bandwidth scheduling method and related device
CN115225707A (en) * 2021-04-16 2022-10-21 腾讯科技(深圳)有限公司 Resource access method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735088A (en) * 2015-04-16 2015-06-24 北京金山安全软件有限公司 Server node adjusting method and device in CDN (content delivery network)
WO2021143386A1 (en) * 2020-01-17 2021-07-22 北京达佳互联信息技术有限公司 Resource transmission method and terminal
CN113497817A (en) * 2020-03-20 2021-10-12 北京金山云网络技术有限公司 Traffic scheduling method and device, edge node of CDN (content delivery network) and server
CN111614484A (en) * 2020-04-13 2020-09-01 网宿科技股份有限公司 Node flow calling and recovering method, system and central server
CN111666159A (en) * 2020-06-28 2020-09-15 腾讯科技(深圳)有限公司 Load balancing control method and device, storage medium and electronic equipment
CN111857977A (en) * 2020-09-21 2020-10-30 腾讯科技(深圳)有限公司 Elastic expansion method, device, server and storage medium
CN112491961A (en) * 2020-11-02 2021-03-12 网宿科技股份有限公司 Scheduling system and method and CDN system
CN112688995A (en) * 2020-12-16 2021-04-20 中国联合网络通信集团有限公司 System migration method and device
CN115225707A (en) * 2021-04-16 2022-10-21 腾讯科技(深圳)有限公司 Resource access method and device
CN113849160A (en) * 2021-09-24 2021-12-28 苏州浪潮智能科技有限公司 Dynamic migration method and device for compiling task, electronic equipment and storage medium
CN115190180A (en) * 2022-06-29 2022-10-14 乐视云计算有限公司 Method and device for scheduling network resource request during sudden increase of network resource request
CN115208766A (en) * 2022-07-29 2022-10-18 天翼云科技有限公司 CDN bandwidth scheduling method and related device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117579874B (en) * 2024-01-16 2024-04-05 腾讯科技(深圳)有限公司 Audio and video resource transmission method and device, server and storage medium

Also Published As

Publication number Publication date
CN116684468B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
US11824962B2 (en) Methods and apparatus for sharing and arbitration of host stack information with user space communication stacks
US11863460B1 (en) Agent message delivery fairness
KR102566892B1 (en) Blockchain consensus method, device and system
US7257817B2 (en) Virtual network with adaptive dispatcher
EP3095214B1 (en) An entity handle registry to support traffic policy enforcement
Prokhorenko et al. Architectural resilience in cloud, fog and edge systems: A survey
US9350682B1 (en) Compute instance migrations across availability zones of a provider network
US11902130B2 (en) Data packet loss detection
US9591018B1 (en) Aggregation of network traffic source behavior data across network-based endpoints
US11659066B2 (en) Dynamic computation in an information centric network
CN107819891A (en) Data processing method, device, computer equipment and storage medium
CN116684468B (en) Data processing method, device, equipment and storage medium
CN104579905A (en) Message passing method and system, MOM (message oriented middleware) server and receiving terminal
EP4020925B1 (en) Information centric network protocol for federated learning
CN101729491A (en) Method, device and system for enhancing application reliability of script-based business
Iqbal et al. Minimize the delays in software defined network switch controller communication
US11595410B2 (en) Fragmented cross-domain solution
US11595471B1 (en) Method and system for electing a master in a cloud based distributed system using a serverless framework
CN114567678A (en) Resource calling method and device of cloud security service and electronic equipment
CN113419878B (en) Data operation method and device
CN111404979B (en) Method and device for processing service request and computer readable storage medium
CN114244619B (en) Communication method, device, system, electronic equipment and readable storage medium
US11663058B1 (en) Preemptive filtering of events of an event bus with a deterministic filter
WO2022220885A1 (en) Capability discovery in an information centric network
CN116961933A (en) Information processing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40092345

Country of ref document: HK