WO2023151415A1 - 数据处理方法及装置 - Google Patents

数据处理方法及装置 Download PDF

Info

Publication number
WO2023151415A1
WO2023151415A1 PCT/CN2022/143525 CN2022143525W WO2023151415A1 WO 2023151415 A1 WO2023151415 A1 WO 2023151415A1 CN 2022143525 W CN2022143525 W CN 2022143525W WO 2023151415 A1 WO2023151415 A1 WO 2023151415A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
user
encrypted
verified
heartbeat data
Prior art date
Application number
PCT/CN2022/143525
Other languages
English (en)
French (fr)
Inventor
孙袁袁
周威
Original Assignee
上海哔哩哔哩科技有限公司
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 上海哔哩哔哩科技有限公司 filed Critical 上海哔哩哔哩科技有限公司
Publication of WO2023151415A1 publication Critical patent/WO2023151415A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • H04N21/2351Processing of additional data, e.g. scrambling of additional data or processing content descriptors involving encryption of additional data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of computer technology, in particular to a data processing method.
  • the present application also relates to a data processing device, a data processing system, a computing device, and a computer-readable storage medium.
  • user identity fields are usually added when generating heartbeat data to ensure the authenticity of heartbeat data; however, this method is easy to be cracked, and illegal users can randomly obtain real user identity fields to generate heartbeat data; If the authenticity of the user identity field in each piece of heartbeat data is verified, it is easy to bring greater query pressure to the server, which will cause the server to freeze, thereby affecting the viewing experience of the user.
  • the embodiment of the present application provides a data processing method.
  • the present application also relates to a data processing device, a computing device, and a computer-readable storage medium, so as to solve the problem in the prior art that the authenticity of the number of viewers in the live broadcast room is low and affects the ecology of the live broadcast platform.
  • a data processing method applied to a heartbeat server including:
  • Target heartbeat data wherein the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification
  • the attribute information of the target heartbeat data is determined based on the comparison result.
  • a scheduling server including:
  • a data processing device including:
  • the first receiving module is configured to receive target heartbeat data, wherein the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification;
  • the first encryption module is configured to encrypt the user ID to be verified based on a preset encryption algorithm to obtain an encrypted ID to be verified;
  • a comparison module configured to compare the encrypted identifier to be verified with the encrypted user identifier to obtain a comparison result
  • a determination module configured to determine attribute information of the target heartbeat data based on the comparison result.
  • another data processing device including:
  • the second receiving module is configured to receive a playback address acquisition request, wherein the playback address acquisition request includes a target user identifier;
  • the second encryption module is configured to encrypt the target user ID based on a preset encryption algorithm to obtain an encrypted user ID
  • the generation module is configured to obtain the playback address corresponding to the target user ID, generate a target playback address based on the encrypted user ID and the playback address, and send the target playback address to the target client.
  • a data processing system including a heartbeat server, a scheduling server, and a target client, wherein:
  • the target client is configured to obtain a target user identifier, generate a broadcast address acquisition request based on the target user identifier, and send the broadcast address acquisition request to the scheduling server;
  • the scheduling server is configured to receive the playback address acquisition request, wherein the playback address acquisition request includes the target user ID; encrypt the target user ID based on a preset encryption algorithm to obtain an encrypted user ID; Acquiring the playback address corresponding to the target user ID, generating a target playback address based on the playback address and the encrypted user ID, and sending the target playback address to the target client;
  • the target client is further configured to receive the target playback address, wherein the target playback address includes the encrypted user ID; generate target heartbeat data based on the user ID to be verified and the target playback address, and send The target heartbeat data is sent to the heartbeat server;
  • the heartbeat server is configured to receive the target heartbeat data, wherein the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification; based on the preset encryption algorithm Encrypting the user ID to be verified to obtain an encrypted ID to be verified; comparing the encrypted ID to be verified with the encrypted user ID to obtain a comparison result; determining the target heartbeat data based on the comparison result attribute information.
  • a computing device including a memory, a processor, and computer instructions stored in the memory and operable on the processor.
  • the processor executes the computer instructions, the computer instructions are implemented. The steps of the data processing method described above.
  • a computer-readable storage medium which stores computer instructions, and implements the steps of the data processing method when the computer instructions are executed by a processor.
  • the data processing method provided by this application is to receive target heartbeat data, wherein the target heartbeat data includes the user identification to be verified and the target broadcast address carrying the encrypted user identification; based on a preset encryption algorithm, the user identification to be verified is processed Encrypt to obtain an encrypted identifier to be verified; compare the encrypted identifier to be verified with the encrypted user identifier to obtain a comparison result; determine the attribute information of the target heartbeat data based on the comparison result.
  • An embodiment of the present application realizes that by receiving the target heartbeat data containing the user ID to be verified and the target playback address carrying the encrypted user ID, the user ID to be verified is encrypted based on a preset encryption algorithm to obtain the encrypted ID to be verified; The encrypted identification to be verified is compared with the encrypted user identification to obtain a comparison result, thereby determining whether the user identification to be verified is consistent with the user identification in the playback address, that is, determining whether the user identification to be verified is obtained randomly by an illegal user , so as to facilitate the determination of the validity of the target heartbeat data.
  • Fig. 1 is a flow chart of a data processing method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of another data processing method provided by an embodiment of the present application.
  • Fig. 3 is a schematic diagram of the processing flow of a data processing method applied to count the number of viewers in the live broadcast room A provided by an embodiment of the present application;
  • Fig. 4 is a schematic structural diagram of a data processing system provided by an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a data processing device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another data processing device provided by an embodiment of the present application.
  • Fig. 7 is a structural block diagram of a computing device provided by an embodiment of the present application.
  • first, second, etc. may be used to describe various information in one or more embodiments of the present application, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second, and similarly, second may also be referred to as first, without departing from the scope of one or more embodiments of the present application. Depending on the context, the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination.”
  • Live stream The transmission of live audio and video data, which can be transmitted as a stable and continuous stream to viewers over the network.
  • Live streaming The anchor obtains the streaming address from the live streaming cloud platform through the business server, and pushes the collected streaming media to the live streaming cloud receiving end in real time through the streaming address.
  • Live Streaming refers to the process of pulling live streams from the source site specified by the user through the live cloud platform.
  • Number of Live Broadcasters The real number of people watching the live broadcast room in real time.
  • Swapping volume By simulating normal user visits, a large number of false viewings are generated.
  • Heartbeat data It refers to the data that regularly notifies the other party of its own status between the client and the server, and is sent at a certain time interval, similar to heartbeat, so it is called heartbeat data.
  • Heartbeat server refers to the server that receives the heartbeat data sent by the client.
  • the heartbeat server can count the current number of viewers in the live broadcast room based on the received heartbeat data.
  • Swipe volume By simulating normal user visits, a large number of false viewings are generated, that is, simulating watching live broadcast rooms through illegal means.
  • the specific process of generating heartbeat data can be as follows: the client receives the live room viewing request sent by the user; based on the live room viewing request, the live room playback address acquisition request is generated and sent to the scheduling server, and the scheduling server obtains it based on the playback address The request returns the playback address to the client; the client periodically generates heartbeat data based on the playback address and reports it to the heartbeat server; the heartbeat server can determine whether a transmission connection has been established between the client and the server through the regularly received heartbeat data, such as , whether the client is playing the content of the target live room, and the heartbeat server can count the number of users currently watching the target live room based on the received heartbeat data.
  • UID User Identification
  • the client reports the heartbeat data to the heartbeat server, and judge whether it is a logged-in user by judging whether the UID field exists; If the proportion of logged-in users in the total number of viewing users is high, it is determined that there may be brushing behavior in the live broadcast room; however, this method is still easy to be cracked by illegal users, that is, illegal users randomly generate UIDs, and then generate heartbeat data based on UIDs; if To verify the authenticity of the UID in each heartbeat data, when the number of viewers in the live broadcast room is large, the server query pressure is greater; and illegal users can also randomly crack the UID of real users to generate heartbeat data corresponding to non-real users watching.
  • UID User Identification
  • the client when the client sends the broadcast address acquisition request to the scheduling server, the user identity field of the user watching the live broadcast room is added in the playback address acquisition request; after the scheduling server receives the playback address acquisition request, Encrypt the user identity field in the broadcast address; return the live broadcast address containing the encrypted user identity field to the client; the client periodically generates heartbeat data based on the broadcast address returned by the scheduling service and the corresponding user identity field, and reports it to the heartbeat Server; the heartbeat server encrypts the user identity field in the heartbeat data and compares it with the encrypted user field identifier in the playback address. If the comparison is inconsistent, it can be determined that the heartbeat data may be generated by an illegal user If the heartbeat data is invalid, the heartbeat data can be discarded when the heartbeat server summarizes the heartbeat data.
  • a data processing method is provided.
  • the present application also relates to a data processing device, a data processing system, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
  • Fig. 1 shows a flow chart of a data processing method provided according to an embodiment of the present application, which is applied to a heartbeat server, and specifically includes the following steps:
  • Step 102 Receive target heartbeat data.
  • the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification.
  • the live broadcast rooms are usually ranked based on the number of viewers in the live broadcast room; the method of counting the number of viewers in the live broadcast room is usually:
  • the server reports the heartbeat data.
  • the reported heartbeat data includes the live broadcast room identifier and the broadcast address of the live broadcast room watched by the user; after receiving the heartbeat data, the heartbeat server can summarize the heartbeat data based on the live broadcast room identifier and calculate the current The number of viewers of each live room, and then the live rooms can be sorted based on the number of viewers.
  • the target heartbeat data refers to the data that regularly notifies the other party of the current device status between the client and the server, and the transmission link that is continuously established between the client and the server can be determined by regularly sending the heartbeat data to the heartbeat server;
  • the heartbeat data can be used to count the number of viewers watching the target live room, that is, after the heartbeat server receives the heartbeat data, it can count the current number of viewers in the live room based on the live room identifier in the heartbeat data;
  • the target The heartbeat data can be the heartbeat data generated by real users watching the live broadcast room, that is, the heartbeat data reported by the target client to the heartbeat server at regular intervals; for example, viewer a watches the live broadcast based on client A, and the client obtains the target live room broadcast address, and regularly report heartbeat data to the heartbeat server according to the broadcast address, so that the heartbeat server can determine that the current viewer a is watching the target live broadcast room;
  • the target heartbeat data can also be the heartbeat data generated by the illegal user based on the real playback address or by other methods.
  • the illegal user intercepts the playback address returned to the client, and generates simulated heartbeat data based on the playback address, for example,
  • the scheduling server returns to the playback address of client A where audience a is located, and generates simulated heartbeat data based on the playback address, that is, the heartbeat data is obtained by swiping the amount, resulting in subsequent heartbeat data based on the heartbeat data.
  • the number of people in the live room obtained when counting the number of people in the live room is not true; in order to prevent the occurrence of the above-mentioned spam, it is necessary to verify the authenticity of the heartbeat data, so as to prevent spam.
  • the target heartbeat data is real heartbeat data
  • the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification
  • the target heartbeat data is simulated heartbeat data generated by an illegal user
  • the simulated heartbeat data may not contain the user ID to be verified and/or the target playback address carrying the encrypted user ID. Therefore, after the heartbeat server receives the heartbeat data, it can first determine whether the heartbeat data contains the user ID to be verified. If the heartbeat data is included, it can be determined that the heartbeat data is simulated heartbeat data; however, if an illegal user cracks the data structure of the heartbeat data containing the user ID to be verified, further identification of the target heartbeat data is required in subsequent steps.
  • the user ID to be verified refers to the user identity field used to generate heartbeat data, for example, user ID, user number, etc.
  • the encrypted user ID refers to the field or character string obtained by encrypting the user ID based on an encryption algorithm
  • the target playback address refers to the playback address that carries the encrypted user ID returned by the scheduling server.
  • the way to obtain the target heartbeat data containing the user ID to be verified and the target playback address carrying the encrypted user ID can be:
  • the client receives the playback request, generates a playback address acquisition request based on the playback request and the user ID corresponding to the playback request; sends the playback address acquisition request to the scheduling server, and the scheduling server calls the playback address corresponding to the live broadcast room ID, and performs user identification.
  • Encrypt to obtain the encrypted user ID add the encrypted user ID to the playback address, obtain the target playback address, and return the target playback address to the client; after the client receives the target playback address, it based on the user ID to be verified corresponding to the target playback address Generate target heartbeat data and send it to the heartbeat server.
  • the above method of obtaining the target heartbeat data is the heartbeat data generated when the target heartbeat data is watched by real users while watching the live broadcast, and the process of generating the target heartbeat data by illegal users is not limited in this application.
  • the heartbeat server receives the target heartbeat data containing the target playback address carrying the encrypted user ID, so that the authenticity of the target heartbeat data can be judged based on the encrypted user ID, and the encrypted user ID is sent to the heartbeat server along with the target playback address, so that It is not easy for illegal users to crack this anti-swipe method, thereby further preventing illegal users from obtaining heartbeat data through swiping, affecting the authenticity of heartbeat data.
  • the heartbeat server B receives the heartbeat data a, wherein the heartbeat data a includes the user ID "123" and the playback address 1 including the encrypted character string.
  • the heartbeat server receives the target playback address sent by the client, including the user ID to be verified and the target broadcast address carrying the encrypted user ID, so that the validity of the target heartbeat data can be judged based on the user ID to be verified and the target playback address carrying the encrypted user ID , so as to facilitate subsequent counting of the number of people in the live broadcast room based on effective heartbeat data, thereby improving the authenticity of the statistics of the number of viewers in the live broadcast room.
  • Step 104 Encrypt the user ID to be verified based on a preset encryption algorithm to obtain an encrypted ID to be verified.
  • the preset encryption algorithm refers to the algorithm for encrypting the user ID to be verified, such as Hash encryption algorithm, DES encryption algorithm, etc.
  • This application does not make specific limitations, and any algorithm that can realize the encryption of the user ID to be verified can be used;
  • the authentication encryption ID refers to the field or character string obtained by encrypting the ID of the user to be authenticated.
  • the encryption algorithm used to obtain the encrypted ID to be verified and the encrypted user ID in this application can be the same encryption algorithm.
  • the encryption algorithms used to obtain the encrypted ID to be verified and the encrypted user ID are both Hash encryption algorithms; by using the same The encryption algorithm is convenient for subsequent comparison between the encrypted ID to be verified and the encrypted user ID.
  • analyze the target playback address d to obtain the user ID "qwe123456" to be verified in the target playback address d; encrypt the user ID "qwe123456” to be verified according to the MD5 encryption algorithm, and obtain the encrypted ID "2569d419bfea999ff13fd1f7f4498b89" to be verified.
  • the user ID to be verified is encrypted based on a preset encryption algorithm, so that the encrypted ID to be verified is compared with the encrypted user ID in the target playback address, so as to determine whether the heartbeat data is generated by a real user watching a live broadcast.
  • Step 106 Compare the encrypted ID to be verified with the encrypted user ID to obtain a comparison result.
  • the target heartbeat data is generated by an illegal user who randomly obtains a user ID, that is, the target heartbeat data is invalid.
  • the method for obtaining the comparison result includes:
  • the comparison result is a successful comparison
  • the success of the comparison means that the encrypted ID to be verified is consistent with the encrypted user ID; the comparison failure means that the encrypted ID to be verified is inconsistent with the encrypted user ID.
  • a preset string matching algorithm can be used to realize the comparison between the encrypted ID to be verified and the encrypted user ID, wherein the preset self-string matching algorithm can be BM (Boyer-Moore) algorithm, KMP (Knuth -Morris-Pratt Algorithm) algorithm and the like, which are not specifically limited in this application.
  • the encrypted identifier "ccdcb2e80ee2cbf2520844498e4169b0" to be verified is compared with the encrypted user identifier "2569d419bfea999ff13fd1f7f4498b89", and the encrypted identifier "ccdcb2e80ee2cbf2520844498e4169b0" to be verified is determined There is a character mismatch with the encrypted userid '2569d419bfea999ff13fd1f7f4498b89', That is, if the matching fails, it is determined that the comparison result is a comparison failure.
  • Step 108 Determine attribute information of the target heartbeat data based on the comparison result.
  • the attribute information refers to a valid attribute or an invalid attribute
  • the attribute information of the target heartbeat data is determined based on a comparison result between the encrypted identifier to be verified and the encrypted user identifier.
  • the specific method for determining the attribute information of the target heartbeat data based on the comparison result includes:
  • the comparison result is a comparison failure, it is determined that the attribute information of the target heartbeat data is invalid.
  • the comparison result of the encrypted identifier to be verified and the encrypted user identifier is a successful comparison, it indicates that the target heartbeat data is generated by the target client based on the playback address and the user identifier to be verified, that is, the target heartbeat data is Valid data can be used to count the number of viewers in the live broadcast room; if the comparison result of the encrypted ID to be verified and the encrypted user ID is a comparison failure, it indicates whether the target heartbeat data is illegal. The user randomly obtains the user ID and generates the playback address Yes, that is, the target heartbeat data is invalid. When counting the number of viewers in the live broadcast room based on the heartbeat data, the target heartbeat data needs to be discarded to ensure the authenticity of the number of viewers.
  • the attribute information of the heartbeat data b is set to be valid
  • the attribute information of the heartbeat data b is set as invalid.
  • the target heartbeat data contains the live room identifier, and in the case that the comparison result is a successful comparison, determining that the attribute information of the target heartbeat data is an effective method includes:
  • the target unlogged-in user weight is within the unlogged-in user weight interval, it is determined that the attribute information of the target heartbeat data is valid.
  • the preset identifier refers to a field with a special meaning. For example, if the preset identifier is 0, it means that the user is not logged in to the live broadcast viewing platform; the weight of the target unlogged user refers to the total viewing The proportion of the number of people; the preset unlogged-in user weight interval refers to the ratio interval determined based on the unlogged-in user weight of the platform and the preset ratio.
  • the preset ratio is 10%, which is 0.1
  • the unlogged-in user The weight is 3:4, that is, 0.75
  • the weight range of logged-in users is that the weight of logged-in users does not exceed 10%, that is, the upper limit of the range of 0.85 is obtained by adding 0.1 to 0.75, and the upper limit of the range is obtained by subtracting 0.1 from 0.75
  • the lower limit of the range is 0.65
  • the weight range of unlogged-in users is finally determined to be 0.65-0.85.
  • the encrypted identifier to be verified is consistent with the encrypted user identifier, and it is determined that the encrypted identifier to be verified or the encrypted user identifier is consistent with the preset identifier, it is necessary to obtain the weight interval of the user who is not logged in; determine the target live broadcast room according to the identifier of the live broadcast room, And obtain the weight of the target unlogged-in user in the target live broadcast room; if it is determined that the target unlogged-in weight is in the weight interval of the unlogged-in user, then set the attribute information of the target heartbeat data to be valid; that is, in practical applications, the unlogged-in user of the live broadcast platform There is a small difference between the ratio of logged-in users and the ratio of unlogged-in users to logged-in users in each live broadcast room on the platform.
  • the target unlogged-in weight is within the weight range of unlogged-in users, it means that there are no logged-in users in the current target live broadcast room
  • the ratio to the logged-in users is in a stable state, and the risk of brushing in the target live broadcast room is small.
  • the heartbeat data of the target who is not logged in can be used to count the number of viewers in the live broadcast room.
  • the method further includes:
  • the target unlogged-in user weight is outside the unlogged-in user weight interval, it is determined that the attribute information of the target heartbeat data is invalid.
  • the attribute information of the target heartbeat data needs to be set to invalid.
  • the encrypted identity to be verified and the encrypted user identity are compared successfully, in addition to the above-mentioned situation where the encrypted identity to be verified or the encrypted user identity is a preset identity, there are also encrypted identity to be verified or encrypted user identity and preset If the identification does not match, for example, the encrypted user identification randomly obtained by the illegal user matches the encrypted user identification in the playback address, then further judgment on the authenticity of the target heartbeat data is required.
  • the method for determining that the attribute information of the target heartbeat data is valid includes:
  • the target live broadcast room determines the target live broadcast room based on the live broadcast room identifier, and obtain the total number of logged-in terminals of the user identifier to be verified in the target live broadcast room;
  • the total number of logged-in terminals refers to the total number of devices when the user watches the target live broadcast room on different devices based on the same account.
  • the total number of logged-in terminals in room d is 2;
  • the preset total number of terminals refers to the upper limit of the total number of devices that can be logged in with the same account. For example, user A's account can log in to 5 devices at most at the same time.
  • the target live room is determined based on the live room ID, and the user ID to be verified is obtained in the target live room.
  • the total number of logged-in terminals when the total number of logged-in terminals is less than or equal to the preset total number of terminals, the risk of the user being a brush user is relatively small, so the attribute information of the target heartbeat data is set to valid at this time.
  • the method also includes:
  • the attribute information of the target heartbeat data needs to be set as invalid at this time.
  • the number of viewers in the target live broadcast room can be counted according to the attribute information of the target heartbeat data.
  • the number of online users in the target live broadcast room is counted based on the attribute information of the target heartbeat data.
  • the heartbeat server will receive multiple pieces of target heartbeat data, and each target heartbeat data contains the identifier of the target live broadcast room. According to the attribute information of the target live broadcast room identifier and the target heartbeat data, it can be used to count the number of online users watching the target live broadcast room .
  • the heartbeat server classifies the target heartbeat data based on the live room identifier in the target heartbeat data, determines the target heartbeat data of the target live room; Count the number of online viewers in the target live broadcast room.
  • the number of viewers in the target live room can be counted based on the target heartbeat data, so that a more realistic number of viewers in the live room can be obtained, which is convenient for follow-up based on the live room
  • the number of viewers recommends live broadcast rooms for users.
  • This application is applied to the data processing method of the heartbeat server.
  • the user ID to be verified is encrypted based on a preset encryption algorithm to obtain the encrypted user ID to be verified.
  • Identification compare the encrypted identification to be verified with the encrypted user identification to obtain a comparison result, and determine the attribute information of the target heartbeat data based on the comparison result.
  • the encrypted identification to be verified is obtained; by combining the encrypted identification to be verified with The encrypted user ID is compared to obtain a comparison result, thereby determining whether the user ID to be verified is consistent with the user ID in the broadcast address, that is, determining whether the user ID to be verified is randomly obtained by an illegal user, and then it is convenient to determine the target heartbeat Data Validity.
  • FIG. 2 shows a flow chart of another data processing method provided according to an embodiment of the present application, which is applied to a scheduling server, and specifically includes the following steps:
  • Step 202 Receive a playback address acquisition request.
  • the playback address acquisition request includes the target user identifier.
  • the playback address acquisition request refers to the request to obtain the playback address of the target live broadcast room; in practical applications, the client generates a playback address acquisition request based on the user's demand for watching the live broadcast room, and then sends the playback address acquisition request to the scheduling server; the target user
  • the identification refers to a user identity field that identifies the viewing target user, such as user ID, user number, and so on.
  • the client generates a playback address acquisition request according to the operation triggered by the user to watch the live broadcast room, wherein the playback address acquisition request includes the target user ID of the user watching the target live broadcast room; and sends the playback address acquisition request including the target user ID to Scheduling server; the scheduling server receives the playback address acquisition request.
  • the target client A generates a broadcast address acquisition request for the live broadcast room h based on the user identifier f, and sends the broadcast address acquisition request to the scheduling server; the scheduling server receives the playback address acquisition request.
  • Step 204 Encrypt the target user ID based on a preset encryption algorithm to obtain an encrypted user ID.
  • the preset encryption algorithm refers to the algorithm for encrypting the target user ID, such as the Hash encryption algorithm, the DES encryption algorithm, etc., which are not specifically limited in this application;
  • the encrypted user ID refers to the encryption of the target user ID based on the preset encryption algorithm The resulting field or string.
  • the scheduling server parses the playback address acquisition request to obtain the target user ID; determines a preset encryption algorithm, and encrypts the target user ID based on the preset encryption algorithm to obtain an encrypted user ID.
  • the scheduling server receives the playback address acquisition request m, parses the playback address acquisition request m, and obtains the user ID n; encrypts the user ID n based on the preset DES encryption algorithm in the scheduling server to obtain the encrypted user ID n1.
  • an encrypted user ID is obtained, which facilitates subsequent generation of a playback address including the encrypted user ID.
  • Step 206 Obtain the playback address corresponding to the target user ID, generate a target playback address based on the encrypted user ID and the playback address, and send the target playback address to the target client.
  • the playback address corresponding to the target user ID refers to the address of the live broadcast room watched by the target user; the target playback address refers to the playback address including the encrypted user ID; the target client refers to the client that sends the playback address acquisition request.
  • the broadcast address corresponding to the live broadcast room identifier is determined in the scheduling server; the target broadcast address is generated according to the determined broadcast address and the encrypted user identifier; the generated target broadcast address can be returned to the target client, so that subsequent target clients can generate heartbeat data based on the target playback address containing the encrypted user ID.
  • client i sends an acquisition request to the scheduling server to obtain the play address of live room A; the scheduling server determines the play address of live room A according to the live room ID corresponding to the user ID in the request, and generates Target playback address; return the target playback address to client i.
  • the heartbeat server that receives the heartbeat data can determine the attribute information of the heartbeat data based on the encrypted user ID.
  • the present application is applied to a data processing method of a scheduling server, receiving a request for obtaining a playback address, wherein the request for obtaining a playback address includes a target user ID; encrypting the target user ID based on a preset encryption algorithm to obtain an encrypted user ID; obtaining The target user identifies the corresponding playback address, generates the target playback address based on the encrypted user ID and the playback address, and sends the target playback address to the target client.
  • the encrypted user ID is obtained, which is convenient for generating the target playback address according to the encrypted user ID; the target playback address is sent to the target client, so that the subsequent target client can generate a heartbeat based on the target playback address data, so that the heartbeat server can determine the attribute information of the heartbeat data based on the encrypted user identifier in the heartbeat data.
  • FIG. 3 shows a schematic processing flow diagram of a data processing method applied to count the number of viewers in the live broadcast room A provided by an embodiment of the present application, which specifically includes the following steps:
  • Step 302 The target client generates a playback address acquisition request for acquiring the playback address of live room A based on the target user identifier.
  • Step 304 The target client sends a playback address acquisition request to the scheduling server.
  • Step 306 The scheduling server encrypts the target user ID based on a preset encryption algorithm to obtain an encrypted user ID.
  • Step 308 The scheduling server determines the playback address of the live room A, and generates a target playback address based on the playback address and the encrypted user ID.
  • Step 310 the scheduling server returns the target playback address to the target client.
  • Step 312 The target client generates target heartbeat data based on the user ID to be verified and the target playback address.
  • Step 314 the target client sends the target heartbeat data to the heartbeat server.
  • Step 316 The heartbeat server encrypts the user ID to be verified in the target heartbeat data based on preset encryption rules to obtain the encrypted ID to be verified.
  • Step 318 The heartbeat server compares the encrypted identifier to be verified with the encrypted user, obtains the comparison result, and determines the attribute information of the target heartbeat data based on the comparison result.
  • Step 320 The heartbeat server counts the number of viewing users in live room A based on the attribute information of the target heartbeat data.
  • the user ID to be verified is encrypted based on a preset encryption algorithm to obtain the encrypted ID to be verified;
  • the encrypted identification to be verified is compared with the encrypted user identification to obtain a comparison result, thereby determining whether the user identification to be verified is consistent with the user identification in the playback address, that is, determining whether the user identification to be verified is obtained randomly by an illegal user , which in turn facilitates the determination of the validity of the target heartbeat data.
  • Fig. 4 shows a schematic structural diagram of a data processing system provided by an embodiment of the present application.
  • the system includes a heartbeat server 406, a scheduling server 404 and a target client 402, wherein:
  • the target client 402 is configured to acquire a target user identifier, generate a broadcast address acquisition request based on the target user identifier, and send the broadcast address acquisition request to the scheduling server;
  • the scheduling server 404 is configured to receive the playback address acquisition request, wherein the playback address acquisition request includes the target user ID; encrypt the target user ID based on a preset encryption algorithm to obtain an encrypted user ID ; Obtain the playback address corresponding to the target user ID, and generate a target playback address based on the playback address and the encrypted user ID, and send the target playback address to the target client;
  • the target client 402 is further configured to receive the target playback address, wherein the target playback address includes the encrypted user ID; generate target heartbeat data based on the user ID to be verified and the target playback address, and sending the target heartbeat data to the heartbeat server;
  • the heartbeat server 406 is configured to receive the target heartbeat data, wherein the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification; based on the preset encryption
  • the algorithm encrypts the user ID to be verified to obtain an encrypted ID to be verified; compares the encrypted ID to be verified with the encrypted user ID to obtain a comparison result; and determines the target heartbeat data based on the comparison result attribute information.
  • the target user ID is carried in the playback address acquisition request; the scheduling server encrypts the target user ID to obtain an encrypted user ID, and generates an encrypted ID containing the user.
  • the target playback address increases the difficulty for illegal users to intercept the playback address, and reduces the risk of being intercepted by illegal users when the scheduling server returns the playback address to the client; the client generates heartbeat data based on the encrypted user ID and the user ID to be verified. Send to the heartbeat server; the heartbeat server encrypts the encrypted identifier to be verified to obtain the encrypted identifier to be verified.
  • the attribute information of the heartbeat data is determined, so that the heartbeat data based on valid attribute information can be counted live The number of people in the room, thereby increasing the authenticity and effectiveness of user information in the live room.
  • FIG. 5 shows a schematic structural diagram of a data processing device provided by an embodiment of the present application. As shown in Figure 5, the device includes:
  • the first receiving module 502 is configured to receive target heartbeat data, wherein the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification;
  • the first encryption module 504 is configured to encrypt the user identification to be verified based on a preset encryption algorithm to obtain an encrypted identification to be verified;
  • the comparison module 506 is configured to compare the encrypted identification to be verified with the encrypted user identification to obtain a comparison result
  • the determination module 508 is configured to determine attribute information of the target heartbeat data based on the comparison result.
  • the device further includes a statistical module configured to:
  • the number of online users in the target live broadcast room is counted based on the attribute information of the target heartbeat data.
  • the comparison module 506 is further configured to:
  • the comparison result is a successful comparison
  • the determining module 508 is further configured to:
  • the comparison result is a comparison failure, it is determined that the attribute information of the target heartbeat data is invalid.
  • the determining module 508 is further configured to:
  • the target unlogged-in user weight is within the unlogged-in user weight interval, it is determined that the attribute information of the target heartbeat data is valid.
  • the determining module 508 is further configured to:
  • the target unlogged-in user weight is outside the unlogged-in user weight interval, it is determined that the attribute information of the target heartbeat data is invalid.
  • the determining module 508 is further configured to:
  • the target live broadcast room determines the target live broadcast room based on the live broadcast room identifier, and obtain the total number of logged-in terminals of the user identifier to be verified in the target live broadcast room;
  • the device also includes a determination submodule configured to:
  • the first receiving module receives the target heartbeat data, wherein the target heartbeat data includes the user identification to be verified and the target playback address carrying the encrypted user identification; the first encryption module, Encrypt the user ID to be verified based on a preset encryption algorithm to obtain an encrypted ID to be verified; the comparison module compares the encrypted ID to be verified with the encrypted user ID to obtain a comparison result; the determination module is based on The comparison result determines the attribute information of the target heartbeat data.
  • the encrypted identification to be verified is obtained; by combining the encrypted identification to be verified with The encrypted user ID is compared to obtain a comparison result, thereby determining whether the user ID to be verified is consistent with the user ID in the broadcast address, that is, determining whether the user ID to be verified is randomly obtained by an illegal user, and then it is convenient to determine the target heartbeat Data Validity.
  • FIG. 6 shows a schematic structural diagram of another data processing device provided by an embodiment of the present application. As shown in Figure 6, the device includes:
  • the second receiving module 602 is configured to receive a playback address acquisition request, wherein the playback address acquisition request includes a target user identifier;
  • the second encryption module 604 is configured to encrypt the target user ID based on a preset encryption algorithm to obtain an encrypted user ID;
  • the generating module 606 is configured to obtain the playback address corresponding to the target user ID, generate a target playback address based on the encrypted user ID and the playback address, and send the target playback address to the target client.
  • This application is applied to the data processing device of the scheduling server, and the second receiving module receives the playback address acquisition request, wherein the playback address acquisition request includes the target user identification; the second encryption module, based on the preset encryption algorithm, encrypts the target The user ID is encrypted to obtain an encrypted user ID; the generation module obtains the playback address corresponding to the target user ID, and generates a target playback address based on the encrypted user ID and the playback address, and sends the target playback address to the target client.
  • the encrypted user ID is obtained, which is convenient for generating the target playback address according to the encrypted user ID; the target playback address is sent to the target client, so that the subsequent target client can generate a heartbeat based on the target playback address data, so that the heartbeat server can determine the attribute information of the heartbeat data based on the encrypted user identifier in the heartbeat data.
  • FIG. 7 shows a structural block diagram of a computing device 700 provided according to an embodiment of the present application.
  • Components of the computing device 700 include, but are not limited to, memory 710 and processor 720 .
  • the processor 720 is connected to the memory 710 through the bus 730, and the database 750 is used for saving data.
  • Computing device 700 also includes an access device 740 that enables computing device 700 to communicate via one or more networks 760 .
  • networks include the Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or a combination of communication networks such as the Internet.
  • Access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)), wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, Worldwide Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, etc.
  • NIC network interface card
  • the above-mentioned components of the computing device 700 and other components not shown in FIG. 7 may also be connected to each other, for example, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 7 is only for the purpose of illustration, rather than limiting the scope of the application. Those skilled in the art can add or replace other components as needed.
  • Computing device 700 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile telephones (e.g., smartphones), ), wearable computing devices (eg, smart watches, smart glasses, etc.), or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • mobile computers or mobile computing devices e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.
  • mobile telephones e.g., smartphones
  • wearable computing devices eg, smart watches, smart glasses, etc.
  • desktop computers or PCs e.g., desktop computers or PCs.
  • Computing device 700 may also be a mobile or stationary server.
  • the processor 720 implements the steps of the data processing method when executing the computer instructions.
  • An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions, and implements the steps of the aforementioned data processing method when the computer instructions are executed by a processor.
  • the computer instructions include computer program code, which may be in source code form, object code form, executable file or some intermediate form or the like.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signal telecommunication signal and software distribution medium, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本申请提供数据处理方法及装置,其中所述数据处理方法包括:接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;基于所述比对结果确定所述目标心跳数据的属性信息。通过确定目标心跳数据的属性信息,以便后续可以基于属性信息确定目标心跳数据是否有效。

Description

数据处理方法及装置
本申请要求于2022年02月10日提交中国专利局、申请号为202210124070.2、发明名称为“数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别涉及数据处理方法。本申请同时涉及数据处理装置,数据处理系统,一种计算设备,以及一种计算机可读存储介质。
背景技术
随着直播技术的不断发展,越来越多的用户将观看直播作为一种娱乐方式;在现有直播体系中,人气(即直播间的观看人数)是用于直播平台直播间排名的重要指标;一般而言,人气越高,排名越靠前,主播越有可能被用户观看。但目前会存在直播观看人数刷量的问题,即非法用户随机生成虚拟的心跳数据增加直播间的观看人数,影响了直播平台生态。
为解决上述问题,目前通常会在生成心跳数据时添加用户身份字段,确保心跳数据的真实性;然而,这种方式很容易被破解,非法用户随机获取真实的用户身份字段生成心跳数据即可;若对每条心跳数据中用户身份字段的真实性进行核实,则容易给服务器带来较大的查询压力,从而导致服务器的卡顿,进而影响用户的观看体验。
因此,如何在保证用户体验的情况下,提升心跳数据的真实性成为本领域技术人员亟待解决的技术问题。
发明内容
有鉴于此,本申请实施例提供了数据处理方法。本申请同时涉及数据处理装置,一种计算设备,以及一种计算机可读存储介质,以解决现有技术中存在的直播间观看人数真实性低,影响直播平台生态的问题。
根据本申请实施例的第一方面,提供了一种数据处理方法,应用于心跳服务器,包括:
接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;
基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;
将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;
基于所述比对结果确定所述目标心跳数据的属性信息。
根据本申请实施例的第二方面,提供了另一种数据处理方法,应用于调度服务器,包括:
接收播放地址获取请求,其中,所述播放地址获取请求中包含目标用户标识;
基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;
获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
根据本申请实施例的第三方面,提供了一种数据处理装置,包括:
第一接收模块,被配置为接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携 带有加密用户标识的目标播放地址;
第一加密模块,被配置为基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;
比对模块,被配置为将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;
确定模块,被配置为基于所述比对结果确定所述目标心跳数据的属性信息。
根据本申请实施例的第四方面,提供了另一种数据处理装置,包括:
第二接收模块,被配置为接收播放地址获取请求,其中,所述播放地址获取请求中包含目标用户标识;
第二加密模块,被配置为基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;
生成模块,被配置为获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
根据本申请实施例的第五方面,提供了一种数据处理系统,包括心跳服务器、调度服务器和目标客户端,其中:
所述目标客户端,被配置为获取目标用户标识,基于所述目标用户标识生成播放地址获取请求,并将所述播放地址获取请求发送至所述调度服务器;
所述调度服务器,被配置为接收所述播放地址获取请求,其中,所述播放地址获取请求中包含所述目标用户标识;基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;获取所述目标用户标识对应的播放地址,并基于所述播放地址和所述加密用户标识生成目标播放地址,并将所述目标播放地址发送至所述目标客户端;
所述目标客户端,进一步被配置为接收所述目标播放地址,其中,所述目标播放地址中包含所述加密用户标识;基于待验证用户标识和所述目标播放地址生成目标心跳数据,并将所述目标心跳数据发送至所述心跳服务器;
所述心跳服务器,被配置为接收所述目标心跳数据,其中,所述目标心跳数据中包含所述待验证用户标识和携带有所述加密用户标识的目标播放地址;基于所述预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;基于所述比对结果确定所述目标心跳数据的属性信息。
根据本申请实施例的第六方面,提供了一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,所述处理器执行所述计算机指令时实现所述数据处理方法的步骤。
根据本申请实施例的七方面,提供了一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现所述数据处理方法的步骤。
本申请提供的数据处理方法,接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;基于所述比对结果确定所述目标心跳数据的属性信息。
本申请一实施例实现了通过接收包含待验证用户标识和携带有加密用户标识的目标播放地址的目标心跳数据,以便基于预设加密算法对待验证用户标识进行加密,得到待验证加密标识;通过将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果,从而确定待验证用户标识是否与播放地址 中的用户标识是否一致,即确定待验证用户标识是否为非法用户随机获取,进而便于确定目标心跳数据的有效性。
附图说明
图1是本申请一实施例提供的一种数据处理方法的流程图;
图2是本申请一实施例提供的另一种数据处理方法的流程图;
图3是本申请一实施例提供的一种应用于统计直播间A观看人数的数据处理方法的处理流程示意图;
图4是本申请一实施例提供的一种数据处理系统的结构示意图;
图5是本申请一实施例提供的一种数据处理装置的结构示意图;
图6是本申请一实施例提供的另一种数据处理装置的结构示意图;
图7是本申请一实施例提供的一种计算设备的结构框图。
具体实施方式
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
首先,对本申请一个或多个实施例涉及的名词术语进行解释。
直播流:直播音视频数据的传输,能够被作为一个稳定和连续的流通过网络传输给观众观看。
直播推流:主播通过业务服务端从直播云平台获取到推流地址,将采集的流媒体通过推流地址实时的推流至直播云接收端。
直播拉流:拉流是指通过直播云平台到用户指定的源站拉取直播流的过程。
直播人数:实时观看直播间的真实人数。
刷量:通过模拟正常用户访问,产生大量虚假观看的情况。
心跳数据:是指在客户端与服务器之间定时通知对方自己状态的数据,按照一定的时间间隔发送,类似于心跳,故被称为心跳数据。
心跳服务器:是指接收客户端发送的心跳数据的服务器,在直播场景下,心跳服务器可以基于接收的心跳数据统计观看直播间的当前观看人数。
刷量:通过模拟正常用户访问,产生大量虚假观看的情况,即通过非法手段模拟观看直播间。
在当前直播场景中,生成心跳数据的具体过程可以是:客户端接收用户发送的直播间观看请求;基于直播间观看请求生成直播间播放地址获取请求发送至调度服务器,由调度服务器基于播放地址获取请求返回播放地址至客户端;客户端定时基于播放地址生成心跳数据,并将其上报至心跳服务器;心跳服务器可以通过定时接收到的心跳数据确定客户端与服务器之间是否建立了传输连接,如,客户端是否在播放目标直播间的内容,并且,心跳服务器可以基于接收到的心跳数据统计当前观看目标直播间的用户的数量。
然而,除了上述生成心跳数据的方法外,一些非法用户为了增加直播间的观看人数,进而使直播间可以处于靠前的排名,往往会截取由调度服务器返回至客户端的播放地址,再基于截取的播放地址生成虚拟心跳数据,即采用各种刷量的方式增加直播间的观看人数。非法用户采用上述增加直播间观看人数的刷量方法,影响了直播平台生态,使直播平台无法确定直播间真实的观看人数,进而无法将真正优质的直播间推荐给用户观看,影响了观看直播间用户的体验。
为解决上述问题,许多直播平台设置了在客户端向心跳服务器上报心跳数据时,在心跳数据中增加UID(User Identification)字段,通过判断UID字段是否存在,判断是否为登录用户;若直播间未登录用户在观看用户总数中的比例较高,则确定直播间可能存在刷量行为;然而,此方法仍容易被非法用户破解,即非法用户随机生成UID,再基于UID生成心跳数据即可;若对每个心跳数据中的UID真实性进行验证,则在直播间观看人数较多时,服务器查询压力较大;并且非法用户还可随机破解真实用户的UID生成非真实用户观看对应的心跳数据。
因此,本申请的数据处理方法,在客户端向调度服务器发送播放地址获取请求时,在播放地址获取请求中增加了观看直播间用户的用户身份字段;调度服务器在接收到播放地址获取请求后,对播放地址中的用户身份字段进行加密;将包含加密后用户身份字段的直播播放地址返回至客户端;客户端定时基于调度服务返回的播放地址以及对应的用户身份字段生成心跳数据,上报至心跳服务器;心跳服务器对心跳数据中的用户身份字段进行加密,并与播放地址中加密后的用户字段标识进行比对,在比对不一致的情况下,即可确定心跳数据可以是由非法用户生成的无效心跳数据,则在心跳服务器对心跳数据进行汇总时可丢弃此条心跳数据。
在本申请中,提供了数据处理方法,本申请同时涉及数据处理装置,数据处理系统,一种计算设备,以及一种计算机可读存储介质,在下面的实施例中逐一进行详细说明。
图1示出了根据本申请一实施例提供的一种数据处理方法的流程图,应用于心跳服务器,具体包括以下步骤:
步骤102:接收目标心跳数据。其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址。
在实际应用中,为了将优质的直播间推荐给用户,提升用户观看体验,通常会基于直播间的观看人数对直播间进行排名;而统计直播间观看人数的方法通常为:客户端定时向心跳服务器上报心跳数据,一般上报的心跳数据中包含用户观看的直播间的直播间标识以及直播间的播放地址;心跳服务器接收到心跳数据后,可以基于直播间标识对心跳数据进行汇总,计算当前每个直播间的观看人数,进而可以基于观看人数对直播间进行排序。
其中,目标心跳数据是指是指在客户端与服务器之间定时通知对方当前设备状态的数据,通过定时向心跳服务器发送心跳数据可以确定客户端与服务器之间持续建立的传输链接;在本实施例中,心跳数 据可以用于统计观看目标直播间的观众人数,即心跳服务器在接收到心跳数据后,可以基于心跳数据中的直播间标识统计直播间当前的观看人数;在实际应用中,目标心跳数据可以是真实用户观看直播间产生的心跳数据,即目标客户端定时向心跳服务器上报的心跳数据;例如,观众a基于客户端A观看直播,客户端基于用户的直播观看请求获取目标直播间的播放地址,并定时根据播放地址向心跳服务器上报心跳数据,从而使心跳服务器可以确定当前观众a正在观看目标直播间;
目标心跳数据还可以是非法用户基于真实的播放地址生成的心跳数据或采用其他方式生成的心跳数据,具体的,非法用户截取返回至客户端的播放地址,并基于播放地址生成模拟心跳数据,例如,非法用户截取到观众a在观看目标直播间时,调度服务器返回至观众a所在客户端A的播放地址,基于播放地址生成模拟心跳数据,即采用刷量的方式得到心跳数据,导致后续基于心跳数据统计直播间人数时得到的直播间人数不真实;为了防止上述刷量情况的发生,故需要对心跳数据的真实性进行验证,从而实现防刷。
本实施例中,若目标心跳数据为真实的心跳数据,则目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;若目标心跳数据为非法用户生成的模拟心跳数据,则模拟心跳数据中可能不包含待验证用户标识和/或携带有加密用户标识的目标播放地址,故在心跳服务器接收到心跳数据后,可以先通过判断心跳数据中是否包含待验证用户标识,在不包含的情况下即可确定心跳数据为模拟心跳数据;然而,若非法用户破解了包含待验证用户标识的心跳数据的数据结构,则需要后续步骤对目标心跳数据做进一步的判别。
具体的,待验证用户标识是指用于生成心跳数据的用户身份字段,例如,用户身份ID、用户编号等等;加密用户标识是指基于加密算法对用户标识进行加密得到的字段或字符串;目标播放地址是指由调度服务器返回的携带有加密用户标识的播放地址。
在实际应用中,获得包含有待验证用户标识和携带有加密用户标识的目标播放地址的目标心跳数据的方式可以是:
客户端接收播放请求,基于播放请求和播放请求对应的用户标识生成播放地址获取请求;将播放地址获取请求发送至调度服务器,调度服务器调取与直播间标识对应的播放地址,并对用户标识进行加密获得加密用户标识,将加密用户标识添加至播放地址中,得到目标播放地址,并将目标播放地址返回至客户端;客户端接收到目标播放地址后,基于目标播放地址对应的待验证用户标识生成目标心跳数据,并发送至心跳服务器。
需要注意的是,上述获得目标心跳数据的方式,是在目标心跳数据为真实用户观看直播间生成的心跳数据,而对于非法用户生成目标心跳数据的过程本申请不做限定。本申请由心跳服务器接收包含携带有加密用户标识的目标播放地址的目标心跳数据,以便后续基于加密用户标识判断目标心跳数据的真实性,并且加密用户标识随着目标播放地址发送至心跳服务器,使得非法用户不易破解这种防刷方式,从而进一步防止非法用户通过刷量得到心跳数据,影响心跳数据的真实性。
在本申请一具体实施方式中,以心跳服务器B为例,心跳服务器B接收心跳数据a,其中,心跳数据a中包含用户ID“123”以及包含有加密字符串的播放地址1。
通过由心跳服务器接收客户端发送的,包含待验证用户标识以及携带有加密用户标识的目标播放地址,便于后续基于待验证用户标识以及携带有加密用户标识的目标播放地址判断目标心跳数据的有效性,进而便于后续基于有效的心跳数据统计直播间人数,从而提升直播间观看人数统计的真实性。
步骤104:基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识。
其中,预设加密算法是指对待验证用户标识进行加密的算法,例如,Hash加密算法、DES加密算法等等,本申请不做具体限定,可实现对待验证用户标识进行加密的算法均可;待验证加密标识是指对待验证用户标识进行加密得到的字段或字符串。
需要注意的是,本申请中得到待验证加密标识和加密用户标识的加密算法可以为同一加密算法,例如,得到待验证加密标识和加密用户标识的加密算法均为Hash加密算法;通过使用相同的加密算法,便于后续对待验证加密标识和加密用户标识进行比对。
例如,解析目标播放地址d,获得目标播放地址d中待验证用户标识“qwe123456”;根据MD5加密算法对待验证用户标识“qwe123456”进行加密,得到待验证加密标识“2569d419bfea999ff13fd1f7f4498b89”。
通过基于预设加密算法对待验证用户标识进行加密,以便后续将待验证加密标识与目标播放地址中的加密用户标识进行比对,从而确定心跳数据是否为真实用户观看直播生成的。
步骤106:将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果。
具体的,在确定了待加密标识和加密用户标识后,将待加密标识与加密用户标识基于预设匹配算法进行匹配,如字符串匹配算法,判断待加密标识和加密用户标识是否一致;若不一致,则表明目标心跳数据是否非法用户随机获取用户标识生成的,即目标心跳数据无效。
在实际应用中,将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果的方法包括:
在所述待验证加密标识与所述加密用户标识比对一致的情况下,确定比对结果为比对成功;
在所述待验证加密标识与所述加密用户标识比对不一致的情况下,确定比对结果为比对失败。
其中,比对成功是指待验证加密标识与加密用户标识一致;比对失败是指待验证加密标识与加密用户标识不一致。在实际应用中,可采用预设字符串匹配算法实现待验证加密标识与加密用户标识之间的比对,其中,预设自字符串匹配算法可以是BM(Boyer-Moore)算法、KMP(Knuth-Morris-PrattAlgorithm)算法等等,本申请不做具体限定。
例如,基于预设字符串匹配算法A对待验证加密标识“2569d419bfea999ff13fd1f7f4498b89”与加密用户标识“2569d419bfea999ff13fd1f7f4498b89”进行比对,确定待验证加密标识“2569d419bfea999ff13fd1f7f4498b89”与加密用户标识“2569d419bfea999ff13fd1f7f4498b89”中的每个字符均匹配,则确定比对结果为比对成功。
再如,基于预设字符串匹配算法B对待验证加密标识“ccdcb2e80ee2cbf2520844498e4169b0”与加密用户标识“2569d419bfea999ff13fd1f7f4498b89”进行比对,确定待验证加密标识“ccdcb2e80ee2cbf2520844498e4169b0”与加密用户标识“2569d419bfea999ff13fd1f7f4498b89”存在不匹配的字符,即匹配失败,则确定比对结果为比对失败。
通过将待验证加密标识与加密用户标识进行比对,获得比对结果,以便后续基于比对结果确定目标播放地址的属性信息。
步骤108:基于所述比对结果确定所述目标心跳数据的属性信息。
其中,属性信息是指有效属性或无效属性;目标心跳数据的属性信息基于待验证加密标识与加密用户标识的比对结果确定。
在实际应用中,基于所述比对结果确定所述目标心跳数据的属性信息的具体方法包括:
在所述比对结果为比对成功的情况下,确定所述目标心跳数据的属性信息为有效;
在所述比对结果为比对失败的情况下,确定所述目标心跳数据的属性信息为无效。
具体的,在待验证加密标识与加密用户标识的比对结果为比对成功的情况下,则表明目标心跳数据是由目标客户端基于播放地址和待验证用户标识生成的,即目标心跳数据为有效数据,可以用于直播间观看人数的统计;在待验证加密标识与加密用户标识的比对结果为比对失败的情况下,则表明目标心跳数据是否非法用户随机获取用户标识以及播放地址生成的,即目标心跳数据为无效数据,在基于心跳数据统计直播间观看人数时需要丢弃目标心跳数据,保证观看人数的真实性。
例如,在获取到比对结果为比对成功的情况下,将心跳数据b的属性信息设置为有效;
再如,在获取到比对结果为比对失败的情况下,将心跳数据b的属性信息设置为无效。
通过基于获取到的比对结果设置心跳数据的属性信息,以便后续基于心跳数据的属性信息确定是否将目标心跳数据用户直播间观看人数的统计。
实际应用中,在待验证标识与加密用户标识比对成功的情况下,若待验证标识与加密用户标识均为预设标识,则需要进一步确定目标心跳数据的真实性。
目标心跳数据中包含直播间标识,在所述比对结果为比对成功的情况下,确定所述目标心跳数据的属性信息为有效的方法包括:
在所述待验证加密标识与预设标识一致的情况下,获取未登录用户权重区间;
基于所述直播间标识确定目标直播间,并获取所述目标直播间的目标未登录用户权重;
在所述目标未登录用户权重位于所述未登录用户权重区间内的情况下,确定所述目标心跳数据的属性信息为有效。
其中,预设标识是指表示特殊含义的字段,例如,预设标识为0,表示用户处于未登录直播观看平台的状态;目标未登录用户权重是指目标直播间的未登录观看用户在总观看人数中的占比;预设未登录用户权重区间是指基于平台的未登录用户权重和预设比值确定的比值区间,例如,预设比值为百分之十,即0.1,直播平台未登录用户权重为3:4,即0.75,则未登录用户权重区间为未登录用户权重上下浮动不超过百分之十,即由0.75加上0.1得到0.85的区间上限值、以及由0.75减去0.1得到0.65的区间下限值,最终确定未登录用户权重区间为0.65-0.85。
具体的,在待验证加密标识与加密用户标识一致的情况下,确定待验证加密标识或加密用户标识与预设标识一致,则需要获取未登录用户权重区间;根据直播间标识确定目标直播间,并获取目标直播间的目标未登录用户权重;若确定目标未登录权重在未登录用户权重区间中,则将目标心跳数据的属性信息设置为有效;即在实际应用中,直播平台未登录用户与登录用户的比值,和平台中每个直播间中未登录用户与登录用户的比值之间存在较小差异,若确定目标未登录权重在未登录用户权重区间中,则表明当前目标直播间未登录用户与登录用户之比处于稳定状态,目标直播间存在刷量情况的风险较小,可以将处于未登录状态的目标心跳数据用于直播间观看人数的统计。
若目标未登录用户权重位于所述未登录用户权重区间外的情况下,所述方法还包括:
在所述目标未登录用户权重位于所述未登录用户权重区间外的情况下,确定所述目标心跳数据的属性信息为无效。
具体的,获取到目标直播间的目标未登录用户权重,在未登录用户权重区间之外的情况下,表明目标直播间存在较高的刷量风险,则此时需要将目标心跳数据的属性信息设置为无效。
此外,在待验证加密标识与加密用户标识处于比对成功的状态下,除上述待验证加密标识或加密用户标识为预设标识的情况外,还存在待验证加密标识或加密用户标识与预设标识不匹配的情况出现,如,非法用户随机获取的用户标识加密后与播放地址中的加密用户标识匹配,则此时需要进一步对目标心跳数据的真实性进行判断。
在所述比对结果为比对成功的情况下,确定所述目标心跳数据的属性信息为有效的方法包括:
在所述待验证加密标识与预设标识不一致的情况下,基于所述直播间标识确定目标直播间,并获取所述待验证用户标识在所述目标直播间的已登录终端总数;
在所述已登录终端总数小于等于预设终端总数的情况下,确定所述目标心跳数据的属性信息为有效。
其中,已登录终端总数是指用户基于同一账户在不同设备观看目标直播间时的设备总数,例如,用户A用同一账号同时登录手机设备和电脑设备观看直播间d的内容,则用户A在直播间d的已登录终端总数为2;预设终端总数是指同一账号可登录设备总数的上限值,例如,用户A的账号最多可同时登录5个设备。
具体的,在比对结果为比对成功的基础上,待验证加密标识或加密用户标识与预设标识不一致,则基于直播间标识确定目标直播间,并获取待验证用户标识在目标直播间的已登录终端总数;在已登录终端总数小于等于预设终端总数的情况下,用户为刷量用户的风险较小,故此时将目标心跳数据的属性信息设置为有效。
若已登录终端总数大于预设终端总数,所述方法还包括:
在所述已登录终端总数大于预设终端总数的情况下,确定所述目标心跳数据的属性信息为无效。
具体的,由于已登录终端总数大于预设终端总数,即用户登录的终端总数超过了上限,表明并非真实用户的登录,则此时需要将目标心跳数据的属性信息设置为无效。
通过将用户的已登录终端总数与预设终端总数进行对比,在已登录终端总数大于预设终端总数的情况下,确定目标心跳数据的属性信息为无效,便于后续对目标直播间观看人数的真实统计。
在确定目标心跳数据的属性信息后,即可根据目标心跳数据的属性信息统计目标直播间的观看人数。
在实际应用中,基于所述比对结果确定所述目标心跳数据的属性信息之后,还包括:
根据所述直播间标识确定目标直播间;
基于所述目标心跳数据的属性信息统计所述目标直播间的在线用户数量。
具体的,心跳服务器会接收到多条目标心跳数据,每个目标心跳数据中包含目标直播间标识,根据目标直播间标识和目标心跳数据的属性信息确定可用于统计观看目标直播间的在线用户数量。
例如,心跳服务器基于目标心跳数据中的直播间标识对目标心跳数据进行分类,确定目标直播间的目标心跳数据;获取目标直播间的目标心跳数据的属性信息,基于属性信息为有效的目标心跳数据统计目标直播间的在线观看用户数量。
通过确定目标心跳数据的属性信息,在目标心跳数据的属性信息为有效的情况下,基于目标心跳数据统计目标直播间的观看人数,从而可以得到更真实的直播间观看人数,便于后续基于直播间观看人数为用户推荐直播间。
本申请应用于心跳服务器的数据处理方法,接收到包含待验证用户标识和携带有加密用户标识的目标播放地址的目标心跳数据后,基于预设加密算法对待验证用户标识进行加密,获得待验证加密标识;将待验证加密标识与加密用户标识进行比对,获得比对结果,并基于比对结果确定目标心跳数据的属性信息。
通过接收包含待验证用户标识和携带有加密用户标识的目标播放地址的目标心跳数据,以便基于预设加密算法对待验证用户标识进行加密,得到待验证加密标识;通过将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果,从而确定待验证用户标识是否与播放地址中的用户标识是否一致,即确定待验证用户标识是否为非法用户随机获取的,进而便于确定目标心跳数据的有效性。
图2示出了根据本申请一实施例提供的另一种数据处理方法的流程图,应用于调度服务器,具体包括以下步骤:
步骤202:接收播放地址获取请求。其中,所述播放地址获取请求中包含目标用户标识。
其中,播放地址获取请求是指获取目标直播间播放地址的请求;在实际应用中,客户端基于用户观看直播间的需求生成播放地址获取请求,再将播放地址获取请求发送至调度服务器;目标用户标识是指标识观看目标用户的用户身份字段,如,用户ID、用户编号等等。
具体的,客户端根据用户触发观看直播间的操作生成播放地址获取请求,其中,播放地址获取请求中包含观看目标直播间的用户的目标用户标识;将包含目标用户标识的播放地址获取请求发送至调度服务器;由调度服务器接收播放地址获取请求。
例如,目标客户端A基于用户标识f生成播放直播间h的播放地址获取请求,并将播放地址获取请求发送至调度服务器;由调度服务器接收播放地址获取请求。
通过接收包含目标用户标识的播放地址,便于后续将包含用户标识的播放地址返回至目标客户端。
步骤204:基于预设加密算法对所述目标用户标识进行加密获得加密用户标识。
其中,预设加密算法是指对目标用户标识进行加密的算法,Hash加密算法、DES加密算法等等,本申请不做具体限定;加密用户标识是指基于预设加密算法对目标用户标识进行加密得到的字段或字符串。
具体的,调度服务器接收到播放地址获取请求后,对播放地址获取请求进行解析,获得目标用户标识;确定预设加密算法,并基于预设加密算法对目标用户标识进行加密,获得加密用户标识。
例如,调度服务器接收到播放地址获取请求m,对播放地址获取请求m进行解析,得到用户标识n;基于调度服务器中预设的DES加密算法对用户标识n进行加密获得加密用户标识n1。
通过确定播放地址获取请求中的目标用户标识,并基于预设加密算法对目标用户标识进行加密,得到加密用户标识,便于后续生成包含加密用户标识的播放地址。
步骤206:获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
其中,目标用户标识对应的播放地址是指目标用户所观看直播间的直播间地址;目标播放地址是指包含加密用户标识的播放地址;目标客户端是指发送播放地址获取请求的客户端。
具体的,根据目标用户标识对应的直播间标识,在调度服务器中确定与直播间标识对应的播放地址;根据确定的播放地址以及加密用户标识生成目标播放地址;生成的目标播放地址可返回至目标客户端, 以便后续目标客户端可基于包含加密用户标识的目标播放地址生成心跳数据。
例如,客户端i向调度服务器发送获取直播间A的播放地址的获取请求;调度服务器根据获取请求中用户标识对应的直播间标识确定直播间A的播放地址,并根据加密用户标识和播放地址生成目标播放地址;将目标播放地址返回的至客户端i。
通过将包含加密用户标识的目标播放地址返回至目标客户端,便于后续目标客户端基于目标播放地址生成心跳数据,进而使得接收到心跳数据的心跳服务器可以基于加密用户标识确定心跳数据的属性信息。
本申请应用于调度服务器的数据处理方法,接收播放地址获取请求,其中,所述播放地址获取请求中包含目标用户标识;基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
通过对播放地址获取请求中的目标用户标识进行加密,得到加密用户标识,便于根据加密用户标识生成目标播放地址;将目标播放地址发送至目标客户端,便于后续目标客户端基于目标播放地址生成心跳数据,进而使得心跳服务器可以基于心跳数据中的加密用户标识确定心跳数据的属性信息。
下述结合附图3,以本申请提供的数据处理方法在统计直播间A观看人数的应用为例,对所述数据处理方法进行进一步说明。其中,图3示出了本申请一实施例提供的一种应用于统计直播间A观看人数的数据处理方法的处理流程示意图,具体包括以下步骤:
步骤302:目标客户端基于目标用户标识生成获取直播间A播放地址的播放地址获取请求。
步骤304:目标客户端将播放地址获取请求发送至调度服务器。
步骤306:调度服务器基于预设加密算法对目标用户标识进行加密,获得加密用户标识。
步骤308:调度服务器确定直播间A的播放地址,并基于播放地址和加密用户标识生成目标播放地址。
步骤310:调度服务器将目标播放地址返回至目标客户端。
步骤312:目标客户端基于待验证用户标识和目标播放地址生成目标心跳数据。
步骤314:目标客户端将目标心跳数据发送至心跳服务器。
步骤316:心跳服务器基于预设加密规则对目标心跳数据中的待验证用户标识进行加密,获得待验证加密标识。
步骤318:心跳服务器将待验证加密标识与加密用户进行比对,获得比对结果,并基于比对结果确定目标心跳数据的属性信息。
步骤320:心跳服务器基于目标心跳数据的属性信息统计直播间A的观看用户数量。
本申请的数据处理方法,通过接收包含待验证用户标识和携带有加密用户标识的目标播放地址的目标心跳数据,以便基于预设加密算法对待验证用户标识进行加密,得到待验证加密标识;通过将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果,从而确定待验证用户标识是否与播放地址中的用户标识是否一致,即确定待验证用户标识是否为非法用户随机获取的,进而便于确定目标心跳数据的有效性。
与上述方法实施例相对应,本申请还提供了数据处理系统实施例,图4示出了本申请一实施例提供 的一种数据处理系统的结构示意图。如图4所示,该系统包括心跳服务器406、调度服务器404和目标客户端402,其中:
所述目标客户端402,被配置为获取目标用户标识,基于所述目标用户标识生成播放地址获取请求,并将所述播放地址获取请求发送至所述调度服务器;
所述调度服务器404,被配置为接收所述播放地址获取请求,其中,所述播放地址获取请求中包含所述目标用户标识;基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;获取所述目标用户标识对应的播放地址,并基于所述播放地址和所述加密用户标识生成目标播放地址,并将所述目标播放地址发送至所述目标客户端;
所述目标客户端402,进一步被配置为接收所述目标播放地址,其中,所述目标播放地址中包含所述加密用户标识;基于待验证用户标识和所述目标播放地址生成目标心跳数据,并将所述目标心跳数据发送至所述心跳服务器;
所述心跳服务器406,被配置为接收所述目标心跳数据,其中,所述目标心跳数据中包含所述待验证用户标识和携带有所述加密用户标识的目标播放地址;基于所述预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;基于所述比对结果确定所述目标心跳数据的属性信息。
本申请的数据处理系统,在客户端向调度服务器发送播放地址获取请求时,在播放地址获取请求中携带目标用户标识;调度服务器对目标用户标识进行加密得到加密用户标识,并生成包含用户加密标识的目标播放地址,增加了非法用户截取播放地址的难度,降低了调度服务器向客户端返回播放地址时,被非法用户截取的风险;客户端基于包含加密用户标识和待验证用户标识生成心跳数据,发送至心跳服务器;心跳服务器对待验证加密标识进行加密得到待验证加密标识,通过将加密用户标识与待验证加密标识进行比对,确定心跳数据的属性信息,以便基于有效属性信息的心跳数据统计直播间人数,从而增加直播间用户信息的真实性和有效性。
与上述方法实施例相对应,本申请还提供了数据处理装置实施例,图5示出了本申请一实施例提供的一种数据处理装置的结构示意图。如图5所示,该装置包括:
第一接收模块502,被配置为接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;
第一加密模块504,被配置为基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;
比对模块506,被配置为将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;
确定模块508,被配置为基于所述比对结果确定所述目标心跳数据的属性信息。
在本申请一具体实施方式中,所述装置还包括,统计模块,被配置为:
根据所述直播间标识确定目标直播间;
基于所述目标心跳数据的属性信息统计所述目标直播间的在线用户数量。
所述比对模块506,进一步被配置为:
在所述待验证加密标识与所述加密用户标识比对一致的情况下,确定比对结果为比对成功;
在所述待验证加密标识与所述加密用户标识比对不一致的情况下,确定比对结果为比对失败。
所述确定模块508,进一步被配置为:
在所述比对结果为比对成功的情况下,确定所述目标心跳数据的属性信息为有效;
在所述比对结果为比对失败的情况下,确定所述目标心跳数据的属性信息为无效。
所述确定模块508,进一步被配置为:
在所述待验证加密标识与预设标识一致的情况下,获取未登录用户权重区间;
基于所述直播间标识确定目标直播间,并获取所述目标直播间的目标未登录用户权重;
在所述目标未登录用户权重位于所述未登录用户权重区间内的情况下,确定所述目标心跳数据的属性信息为有效。
所述确定模块508,进一步被配置为:
在所述目标未登录用户权重位于所述未登录用户权重区间外的情况下,确定所述目标心跳数据的属性信息为无效。
所述确定模块508,进一步被配置为:
在所述待验证加密标识与预设标识不一致的情况下,基于所述直播间标识确定目标直播间,并获取所述待验证用户标识在所述目标直播间的已登录终端总数;
在所述已登录终端总数小于等于预设终端总数的情况下,确定所述目标心跳数据的属性信息为有效。
所述装置还包括,确定子模块,被配置为:
在所述已登录终端总数大于预设终端总数的情况下,确定所述目标心跳数据的属性信息为无效。
本申请应用于心跳服务器的数据处理装置,第一接收模块,接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;第一加密模块,基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;比对模块,将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;确定模块,基于所述比对结果确定所述目标心跳数据的属性信息。
通过接收包含待验证用户标识和携带有加密用户标识的目标播放地址的目标心跳数据,以便基于预设加密算法对待验证用户标识进行加密,得到待验证加密标识;通过将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果,从而确定待验证用户标识是否与播放地址中的用户标识是否一致,即确定待验证用户标识是否为非法用户随机获取的,进而便于确定目标心跳数据的有效性。
上述为本实施例的一种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的一种数据处理方法的技术方案属于同一构思,数据处理装置的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
与上述方法实施例相对应,本申请还提供了数据处理装置实施例,图6示出了本申请一实施例提供的另一种数据处理装置的结构示意图。如图6所示,该装置包括:
第二接收模块602,被配置为接收播放地址获取请求,其中,所述播放地址获取请求中包含目标用户标识;
第二加密模块604,被配置为基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;
生成模块606,被配置为获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
本申请应用于调度服务器的数据处理装置,第二接收模块,接收播放地址获取请求,其中,所述播放地址获取请求中包含目标用户标识;第二加密模块,基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;生成模块,获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
通过对播放地址获取请求中的目标用户标识进行加密,得到加密用户标识,便于根据加密用户标识生成目标播放地址;将目标播放地址发送至目标客户端,便于后续目标客户端基于目标播放地址生成心跳数据,进而使得心跳服务器可以基于心跳数据中的加密用户标识确定心跳数据的属性信息。
上述为本实施例的另一种数据处理装置的示意性方案。需要说明的是,该数据处理装置的技术方案与上述的另一种数据处理方法的技术方案属于同一构思,数据处理装置的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
图7示出了根据本申请一实施例提供的一种计算设备700的结构框图。该计算设备700的部件包括但不限于存储器710和处理器720。处理器720与存储器710通过总线730相连接,数据库750用于保存数据。
计算设备700还包括接入设备740,接入设备740使得计算设备700能够经由一个或多个网络760通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。
在本申请的一个实施例中,计算设备700的上述部件以及图7中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图7所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。
计算设备700可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备700还可以是移动式或静止式的服务器。
其中,处理器720执行所述计算机指令时实现所述的数据处理方法的步骤。
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
本申请一实施例还提供一种计算机可读存储介质,其存储有计算机指令,该计算机指令被处理器执行时实现如前所述数据处理方法的步骤。
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的数据处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。
上述对本申请特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。 另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。
以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。

Claims (14)

  1. 一种数据处理方法,其特征在于,应用于心跳服务器,包括:
    接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;
    基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;
    将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;
    基于所述比对结果确定所述目标心跳数据的属性信息。
  2. 如权利要求1所述的数据处理方法,其特征在于,所述目标心跳数据中包含直播间标识;
    基于所述比对结果确定所述目标心跳数据的属性信息之后,还包括:
    根据所述直播间标识确定目标直播间;
    基于所述目标心跳数据的属性信息统计所述目标直播间的在线用户数量。
  3. 如权利要求1所述的数据处理方法,其特征在于,将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果,包括:
    在所述待验证加密标识与所述加密用户标识比对一致的情况下,确定比对结果为比对成功;
    在所述待验证加密标识与所述加密用户标识比对不一致的情况下,确定比对结果为比对失败。
  4. 如权利要求3所述的数据处理方法,其特征在于,基于所述比对结果确定所述目标心跳数据的属性信息,包括:
    在所述比对结果为比对成功的情况下,确定所述目标心跳数据的属性信息为有效;
    在所述比对结果为比对失败的情况下,确定所述目标心跳数据的属性信息为无效。
  5. 如权利要求4所述的数据处理方法,其特征在于,所述目标心跳数据中包含直播间标识;
    在所述比对结果为比对成功的情况下,确定所述目标心跳数据的属性信息为有效,包括:
    在所述待验证加密标识与预设标识一致的情况下,获取未登录用户权重区间;
    基于所述直播间标识确定目标直播间,并获取所述目标直播间的目标未登录用户权重;
    在所述目标未登录用户权重位于所述未登录用户权重区间内的情况下,确定所述目标心跳数据的属性信息为有效。
  6. 如权利要求5所述的数据处理方法,其特征在于,所述方法还包括:
    在所述目标未登录用户权重位于所述未登录用户权重区间外的情况下,确定所述目标心跳数据的属性信息为无效。
  7. 如权利要求4所述的数据处理方法,其特征在于,所述目标心跳数据中包含直播间标识;
    在所述比对结果为比对成功的情况下,确定所述目标心跳数据的属性信息为有效,包括:
    在所述待验证加密标识与预设标识不一致的情况下,基于所述直播间标识确定目标直播间,并获取所述待验证用户标识在所述目标直播间的已登录终端总数;
    在所述已登录终端总数小于等于预设终端总数的情况下,确定所述目标心跳数据的属性信息为有效。
  8. 如权利要求7所述的数据处理方法,其特征在于,所述方法还包括:
    在所述已登录终端总数大于预设终端总数的情况下,确定所述目标心跳数据的属性信息为无效。
  9. 一种数据处理方法,其特征在于,应用于调度服务器,包括:
    接收播放地址获取请求,其中,所述播放地址获取请求中包含目标用户标识;
    基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;
    获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
  10. 一种数据处理系统,其特征在于,包括心跳服务器、调度服务器和目标客户端,其中:
    所述目标客户端,被配置为获取目标用户标识,基于所述目标用户标识生成播放地址获取请求,并将所述播放地址获取请求发送至所述调度服务器;
    所述调度服务器,被配置为接收所述播放地址获取请求,其中,所述播放地址获取请求中包含所述目标用户标识;基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;获取所述目标用户标识对应的播放地址,并基于所述播放地址和所述加密用户标识生成目标播放地址,并将所述目标播放地址发送至所述目标客户端;
    所述目标客户端,进一步被配置为接收所述目标播放地址,其中,所述目标播放地址中包含所述加密用户标识;基于待验证用户标识和所述目标播放地址生成目标心跳数据,并将所述目标心跳数据发送至所述心跳服务器;
    所述心跳服务器,被配置为接收所述目标心跳数据,其中,所述目标心跳数据中包含所述待验证用户标识和携带有所述加密用户标识的目标播放地址;基于所述预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;基于所述比对结果确定所述目标心跳数据的属性信息。
  11. 一种数据处理装置,其特征在于,应用于心跳服务器,包括:
    第一接收模块,被配置为接收目标心跳数据,其中,所述目标心跳数据中包含待验证用户标识和携带有加密用户标识的目标播放地址;
    第一加密模块,被配置为基于预设加密算法对所述待验证用户标识进行加密获得待验证加密标识;
    比对模块,被配置为将所述待验证加密标识与所述加密用户标识进行比对,获得比对结果;
    确定模块,被配置为基于所述比对结果确定所述目标心跳数据的属性信息。
  12. 一种数据处理装置,其特征在于,应用于调度服务器,包括:
    第二接收模块,被配置为接收播放地址获取请求,其中,所述播放地址获取请求中包含目标用户标识;
    第二加密模块,被配置为基于预设加密算法对所述目标用户标识进行加密获得加密用户标识;
    生成模块,被配置为获取所述目标用户标识对应的播放地址,并基于所述加密用户标识以及所述播放地址生成目标播放地址,并将所述目标播放地址发送至目标客户端。
  13. 一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机指令,其特征在于,所述处理器执行所述计算机指令时实现权利要求1-9任意一项所述方法的步骤。
  14. 一种计算机可读存储介质,其存储有计算机指令,其特征在于,该计算机指令被处理器执行时实 现权利要求1-9任意一项所述方法的步骤。
PCT/CN2022/143525 2022-02-10 2022-12-29 数据处理方法及装置 WO2023151415A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210124070.2A CN114466215B (zh) 2022-02-10 2022-02-10 数据处理方法及装置
CN202210124070.2 2022-02-10

Publications (1)

Publication Number Publication Date
WO2023151415A1 true WO2023151415A1 (zh) 2023-08-17

Family

ID=81414093

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/143525 WO2023151415A1 (zh) 2022-02-10 2022-12-29 数据处理方法及装置

Country Status (2)

Country Link
CN (1) CN114466215B (zh)
WO (1) WO2023151415A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466215B (zh) * 2022-02-10 2023-08-01 上海哔哩哔哩科技有限公司 数据处理方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090157891A1 (en) * 2007-12-13 2009-06-18 General Instrument Corporation Method and Apparatus for Inserting Time-Variant Data into a Media Stream
CN106060594A (zh) * 2016-05-25 2016-10-26 武汉斗鱼网络科技有限公司 一种基于播放器心跳的白名单生成系统及方法
WO2019041627A1 (zh) * 2017-08-30 2019-03-07 武汉斗鱼网络科技有限公司 一种视频流地址检测方法、装置、服务器及计算机可读介质
CN110012317A (zh) * 2019-04-15 2019-07-12 北京乐学帮网络技术有限公司 一种视频获取方法及装置、一种视频加密方法及装置
CN113938318A (zh) * 2021-12-01 2022-01-14 上海哔哩哔哩科技有限公司 确定直播间刷量的方法及装置
CN114466215A (zh) * 2022-02-10 2022-05-10 上海哔哩哔哩科技有限公司 数据处理方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072127B (zh) * 2018-01-24 2021-09-24 腾讯科技(深圳)有限公司 媒体流播放处理方法、装置、系统、存储介质和设备
US11652818B2 (en) * 2019-07-18 2023-05-16 Advanced New Technologies Co., Ltd. Method and apparatus for accessing service system
CN110392057B (zh) * 2019-07-30 2021-09-10 秒针信息技术有限公司 监测异常流量、加密监测代码的方法及装置
CN113068052B (zh) * 2021-03-15 2022-04-01 上海哔哩哔哩科技有限公司 确定直播间刷量的方法、直播方法以及数据处理方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090157891A1 (en) * 2007-12-13 2009-06-18 General Instrument Corporation Method and Apparatus for Inserting Time-Variant Data into a Media Stream
CN106060594A (zh) * 2016-05-25 2016-10-26 武汉斗鱼网络科技有限公司 一种基于播放器心跳的白名单生成系统及方法
WO2019041627A1 (zh) * 2017-08-30 2019-03-07 武汉斗鱼网络科技有限公司 一种视频流地址检测方法、装置、服务器及计算机可读介质
CN110012317A (zh) * 2019-04-15 2019-07-12 北京乐学帮网络技术有限公司 一种视频获取方法及装置、一种视频加密方法及装置
CN113938318A (zh) * 2021-12-01 2022-01-14 上海哔哩哔哩科技有限公司 确定直播间刷量的方法及装置
CN114466215A (zh) * 2022-02-10 2022-05-10 上海哔哩哔哩科技有限公司 数据处理方法及装置

Also Published As

Publication number Publication date
CN114466215A (zh) 2022-05-10
CN114466215B (zh) 2023-08-01

Similar Documents

Publication Publication Date Title
CN110521172B (zh) 用于处理短暂内容消息的方法和系统
CN107454441B (zh) 一种检测直播间刷人气行为的方法、直播平台服务器及计算机可读存储介质
CN113068052B (zh) 确定直播间刷量的方法、直播方法以及数据处理方法
US9686329B2 (en) Method and apparatus for displaying webcast rooms
US20170302645A1 (en) Authentication Mechanism
US11252479B2 (en) Methods, systems, and media for recommending media content based on attribute grouped viewing sessions
US11936934B2 (en) Method and system for preventing a fraudulent video relay
CN112995689B (zh) 确定直播间刷量的方法及装置
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
CN106559787B (zh) 网络接入方法、装置及系统
CN113067808B (zh) 数据处理方法、直播方法、鉴权服务器及直播数据服务器
CN109495378B (zh) 检测异常帐号的方法、装置、服务器及存储介质
WO2023151415A1 (zh) 数据处理方法及装置
CN112672098B (zh) 一种云视频会议加密方法、装置及系统
WO2021017526A1 (zh) 突发流量处理方法、计算机设备及可读存储介质
JP2023041702A (ja) 複数の暗号学的デジタル署名を使用したコンテンツアクセスおよびコンテンツ配信の認可の分離
CN111131127B (zh) 一种基于直播平台的通信方法及相关装置
CN112753031A (zh) 媒体内容控制
US10887634B2 (en) Video resource file acquisition method and management system
WO2019071857A1 (zh) 一种直播平台中防止刷礼物的方法及装置
WO2023179162A1 (zh) 数据处理方法及装置
CN114945097B (zh) 视频流处理方法及装置
CN112995686B (zh) 数据处理方法、直播方法、鉴权服务器及直播数据服务器
WO2017197817A1 (zh) 一种数据处理方法、装置、电子设备及服务器
KR102615305B1 (ko) Vmi 화면공유 방법 및 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22925764

Country of ref document: EP

Kind code of ref document: A1