CN110417787A - A kind of data processing method, device, client and storage medium - Google Patents

A kind of data processing method, device, client and storage medium Download PDF

Info

Publication number
CN110417787A
CN110417787A CN201910704443.1A CN201910704443A CN110417787A CN 110417787 A CN110417787 A CN 110417787A CN 201910704443 A CN201910704443 A CN 201910704443A CN 110417787 A CN110417787 A CN 110417787A
Authority
CN
China
Prior art keywords
data
broadcast data
client
terminal identity
broadcast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910704443.1A
Other languages
Chinese (zh)
Inventor
朱嘉俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201910704443.1A priority Critical patent/CN110417787A/en
Publication of CN110417787A publication Critical patent/CN110417787A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Abstract

The present invention provides a kind of data processing method, device, client and storage medium, broadcast data packet is received by receiving client, broadcast data packet includes at least the terminal identity mark ID and broadcast data for sending client, then broadcast data packet is parsed, it is verified data, send the terminal identity mark ID and broadcast data of client, whether do not damaged based on the broadcast data in verify data verifying broadcast data packet, if not damaging, the terminal identity mark ID verified in broadcast data packet whether there is in legitimate clients list, legitimate clients list is sent to reception client by server, it include the corresponding terminal identity mark ID of transmission client specified by server in legitimate clients list, if it exists, execute the corresponding business of broadcast data.The above method realizes sender of the client as broadcast data in the case where not needing deployment Cloud Server, and reduces the purpose of the lower deployment cost of Cloud Server.

Description

A kind of data processing method, device, client and storage medium
Technical field
The invention belongs to fields of communication technology, and in particular to a kind of data processing method, device, client and storage are situated between Matter.
Background technique
With the progress of science and technology, in field of communication technology, information-based degree is higher and higher, between user and user It is more and more frequent by the exchange of network.
In the technical solution that user carries out broadcast transmission by network, user's transmitting terminal is when broadcasting, voice number According to by multiple cloud servers to user receiving end transmitting audio data.
But in the broadcast technology scheme for carrying out transmission data by multiple cloud servers, due to needing multiple clouds Server is held, so that entire Transmission system increases certain cost.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of data processing method, device, client and storage medium, In the case where not needing deployment Cloud Server, the purpose for reducing broadcast data transmission cost is realized.
To achieve the above object, technical solution disclosed by the invention is as follows:
First aspect of the embodiment of the present invention discloses a kind of data processing method, is applied to receive client, the method Include:
Broadcast data packet is received, the broadcast data packet is at least wrapped with Preset Transfer structural transmission, the broadcast data packet Include verify data, the terminal identity mark ID and broadcast data for sending client;
The broadcast data packet is parsed, data, the terminal identity mark ID for sending client and broadcast are verified Data;
Based on the verify data, verify whether the broadcast data in the broadcast data packet does not damage;
If not damaging, the terminal identity mark ID verified in the broadcast data packet whether there is in legitimate clients list In, the legitimate clients list is sent to the reception client by server, include in the legitimate clients list by The corresponding terminal identity of the specified transmission client of server identifies ID;
If it exists, the corresponding business of the broadcast data is executed.
Optionally, the broadcast data packet is parsed, comprising:
The data packet is parsed, obtains the data with Preset Transfer structure, the Preset Transfer structure includes authenticator Section, terminal identity mark id field and broadcast data store field, and the data of the Preset Transfer structure are pressed by transmission client According to Preset Transfer structure by the corresponding verify data of verifying field of serializing processing, the terminal identity of itself identifies ID and broadcast Data obtain after carrying out assembly;
The unserializing processing data with Preset Transfer structure, the verifying field after obtaining unserializing are corresponding Data, terminal identity mark and broadcast data.
Optionally, whether do not damaged, wrapped based on the broadcast data in the verify data, the verifying broadcast data packet It includes:
Verify the broadcast data packet data structure length whether reach Preset Transfer structure needed for data length;
If reaching, the broadcast data packet is parsed, is verified the corresponding data of field, terminal identity mark ID and broadcast Data;
By the format conversion of the corresponding data of the verifying field, terminal identity mark ID and broadcast data at the reception The identifiable data format of client;
Verify whether the corresponding data of the verifying field pass through verification;
If passing through, verifying the terminal identity mark ID whether there is in legitimate clients list;
If it exists, determine that the broadcast data does not damage.
Optionally, the corresponding data of the verifying field include check number evidence and out-of-order verification data, verify the verifying Whether the corresponding data of field pass through verification, comprising:
Verify whether the verification data are tampered;
If it is not, carrying out out-of-order detection based on the out-of-order verification data;
If being detected as not out-of-order, executes and verify the terminal identity mark ID and whether there is in legitimate clients list this One step.
Optionally, the terminal identity mark ID verified whether there is in legitimate clients list, comprising:
Terminal identity mark ID and the server for verifying the transmission client in the broadcast data packet are specified Transmission client terminal identity mark ID it is whether identical;
If it is not, the broadcast data is abandoned;
If so, determining that obtained terminal identity mark ID is present in legitimate clients list.
Second aspect of the embodiment of the present invention discloses a kind of data processing method, is applied to send client, the method Include:
Acquisition executes the operation data generated when business operation;
It treats operation data, terminal identity mark ID and the verify data spliced based on Preset Transfer structure and carries out sequence Columnization, the Preset Transfer structure include verifying field, terminal identity mark id field and broadcast data storage field;
Based on the operation data after Preset Transfer structures to form serializing, verify data and serializing after serializing Terminal identity afterwards identifies ID, obtains broadcast data packet, the operation data after the serializing is stored in institute as broadcast data Broadcast data storage field is stated, the verify data after the serializing is stored in the verifying field, the end after the serializing End identity ID is stored in the terminal identity mark id field;
The broadcast data packet is sent to receiving client.
The third aspect of the embodiment of the present invention discloses a kind of data processing equipment, is applied to receive client, described device Include:
Receiving module, for receiving broadcast data packet, the broadcast data packet is with Preset Transfer structural transmission, the broadcast Data packet includes at least verify data, the terminal identity mark ID and broadcast data for sending client;
Parsing module is verified data, the terminal identity for sending client for parsing the broadcast data packet Identify ID and broadcast data;
First authentication module, for whether based on the verify data, verifying the broadcast data in the broadcast data packet It does not damage, executes the second authentication module if not damaging;
Second authentication module whether there is for verifying the mark of the terminal identity in broadcast data packet ID in conjunction In method client side list, business execution module is executed if it exists, includes being specified by server in the legitimate clients list It sends the corresponding terminal identity of client and identifies ID;
Business execution module, for executing the corresponding business of the broadcast data.
Fourth aspect of the embodiment of the present invention discloses a kind of data processing equipment, is applied to send client, described device Include:
Acquisition module, the operation data generated when executing business operation for acquiring;
Serialization module, for treating the operation data spliced based on Preset Transfer structure, terminal identity mark ID It is serialized with verify data, the Preset Transfer structure includes verifying field, terminal identity mark id field and broadcast number According to storage field;
Splicing module, for based on the operation data after Preset Transfer structures to form serializing, testing after serializing Terminal identity after demonstrate,proving data and serializing identifies ID, obtains broadcast data packet, and the operation data after the serializing is as wide Multicast data is stored in the broadcast data storage field, and the verify data after the serializing is stored in the verifying field, institute Terminal identity mark ID after stating serializing is stored in the terminal identity mark id field;
Sending module, for sending the broadcast data packet to receiving client.
The 5th aspect of the embodiment of the present invention discloses a kind of client, comprising:
Processor and memory;
Wherein, the processor is for executing the program stored in the memory;
The memory is for storing program, and described program is for executing as embodiments of the present invention first aspect discloses Data processing method or execute the data processing method as disclosed in second aspect of the embodiment of the present invention.
The 6th aspect of the embodiment of the present invention discloses a kind of storage medium, and the storage medium includes the program of storage, wherein Data disclosed in equipment where the storage medium is executed such as first aspect of the embodiment of the present invention are controlled in described program operation Processing method, or execute the data processing method as disclosed in second aspect of the embodiment of the present invention.
Compared with prior art, above-mentioned technical proposal provided by the invention has the advantages that
Broadcast data packet is received by receiving client, broadcast data packet includes at least the terminal body for sending client Part mark ID and broadcast data, then parse broadcast data packet, the terminal identity mark ID for being verified data, sending client And broadcast data, whether do not damaged based on the broadcast data in verify data verifying broadcast data packet, if not damaging, verifying broadcast Terminal identity mark ID in data packet whether there is in legitimate clients list, and legitimate clients list is sent by server It include the corresponding terminal identity mark of transmission client specified by server in legitimate clients list to client is received ID, and if it exists, execute the corresponding business of broadcast data.The above method realizes visitor in the case where not needing deployment Cloud Server Sender of the family end as broadcast data, and reduce the lower deployment cost of Cloud Server.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of communication system architecture figure provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of data processing method provided in an embodiment of the present invention;
Fig. 3 is that a kind of server provided in an embodiment of the present invention issues the schematic diagram for sending the terminal identity ID of client;
Fig. 4 is the whether unspoiled process of broadcast data in a kind of verifying broadcast data packet provided in an embodiment of the present invention Figure;
Fig. 5 is a kind of schematic diagram for sending client and generating broadcast data packet provided in an embodiment of the present invention;
Fig. 6 is the process whether a kind of corresponding data of authentication field provided in an embodiment of the present invention pass through verification Figure;
Fig. 7 is that a kind of obtained terminal identity of verifying provided in an embodiment of the present invention identifies ID with the presence or absence of in legitimate client Hold the flow chart in list;
Fig. 8 is that a kind of main broadcaster's client provided in an embodiment of the present invention makes song pause by click plug-in unit or continues, The schematic diagram of audience's client executing corresponding operating;
Fig. 9 is that a kind of main broadcaster's client provided in an embodiment of the present invention makes song pause by click plug-in unit or continues, The flow chart of audience's client executing corresponding operating;
Figure 10 is that a kind of audience's client disclosed by the embodiments of the present invention is made based on main broadcaster's client executing click plug-in unit The display interface figure after operation is suspended or continued to song;
Figure 11 is a kind of structural schematic diagram of data processing equipment provided in an embodiment of the present invention;
Figure 12 is a kind of structural block diagram of client provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of another data processing equipment provided in an embodiment of the present invention;
Figure 14 is a kind of structural block diagram of client provided in an embodiment of the present invention.
Specific embodiment
The present invention provides a kind of data processing method, device, client and storage mediums, broadcast number for realizing reducing According to transmission cost.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, belongs to the scope of the present invention.
As shown in Figure 1, the communication system architecture provided in an embodiment of the present invention including multiple client and pass-through channel 14 Figure.
Wherein, include the transmission client specified by server-side in multiple client, send client complete for receiving The broadcast data of net broadcast is to receive client.The quantity for receiving client is only limited by network carrying ability.
In Fig. 1, sends client and receive client concrete embodiment are as follows: receive client 10, receive client 11, connect It receives client 12 and sends client 13.
Being realized based on the communication system architecture, which reduces broadcast data transmission cost treatment process, includes:
In the specific application process, it sends client 13 and obtains broadcast data in real time, generate broadcast data packet and pass through transparent transmission The broadcast data packet is sent to and receives client 10, receives client 11 and receive client 12 by channel 14, wherein broadcast number ID is identified according to the terminal identity that packet includes at least broadcast data and the transmission client 13.
The communication system architecture figure in conjunction with disclosed in the embodiments of the present invention, as shown in Fig. 2, being provided for the embodiment of the present invention A kind of data processing method flow chart, method includes the following steps:
S201: it receives client and receives broadcast data packet.
In S201, the broadcast data packet is with Preset Transfer structural transmission.It is included at least in broadcast data packet and sends visitor The terminal identity mark ID and broadcast data at family end.
During executing S201, client is sent by broadcast data packet and is based on Preset Transfer structure, it is logical by transparent transmission Road is sent to reception client, then receives client and receives the broadcast data packet.
Optionally, which includes that verifying field, terminal identity mark id field and broadcast data are deposited Store up field.The terminal identity mark ID and broadcast data that the broadcast data packet includes at least verify data, sends client.
Optionally, broadcast data packet are as follows: send the authenticator that client is handled serializing according to Preset Transfer structure The corresponding verify data of section, the terminal identity mark ID and broadcast data of itself are obtained after carrying out assembly.
It should be noted that pass-through channel is served only for transmission data, data are not carried out with any operation.
S202: parsing the broadcast data packet, the terminal identity mark ID and broadcast number for being verified data, sending client According to.
During implementing S202, firstly, parsing the broadcast data packet, obtain that there is Preset Transfer structure Data, the verifying field that the data of the Preset Transfer structure are handled serializing according to Preset Transfer structure by transmission client Corresponding verify data, the terminal identity mark ID and broadcast data of itself are obtained after carrying out assembly.
Then, the unserializing processing data with Preset Transfer structure, the verifying field after obtaining unserializing Corresponding data, terminal identity mark and broadcast data.
S203: whether the broadcast data in verifying broadcast data packet does not damage, if it is not, S203 is executed, if executing S204.
It during executing S202, in order to guarantee the accuracy of data, needs to verify broadcast data packet, determine Whether the broadcast data in broadcast data packet damages.
Optionally, whether verifying is passed through by the verify data in verifying broadcast data packet, determined wide in transmission process Whether multicast data damages.
S204: the terminal identity mark ID in verifying broadcast data packet whether there is in legitimate clients list, if so, S206 is executed, if it is not, executing S205.
It include the corresponding terminal identity of transmission client specified by server in S204, in the legitimate clients list Identify ID.
As shown in Figure 3, it is assumed that the terminal identity mark ID for sending client is 9005, and server can be by the terminal identity mark Know ID to be stored in legitimate clients list, then be handed down to other terminals of the whole network, other terminals is made to trust the terminal identity mark Know the transmission client that ID is 9005.
Determine that receiving the broadcast data in the received broadcast data packet of client does not damage, and is executing executing S203 During S204, optionally, by the way of traversal, legitimate clients list is traversed, verifies the terminal in broadcast data packet Identity ID whether there is in legitimate clients list, and if it exists, then determine the transmission client for sending the broadcast data packet End is legal client.
S205: broadcast data is abandoned.
S206: the corresponding business of broadcast data is executed.
During executing S205, broadcast data packet passes through above-mentioned verification, determines that broadcast data packet is not damaged, while It is that legal transmission client is sent.Therefore, which can be distributed to corresponding upstream business, in order to hold The corresponding business of broadcast data carried in the row broadcast data packet.
The data processing method according to disclosed in the embodiments of the present invention is it is found that receive broadcast data by receiving client Packet, broadcast data packet include at least the terminal identity mark ID and broadcast data for sending client, then verifying broadcast number Whether do not damaged according to the broadcast data in packet, if not damaging, the terminal identity mark ID verified in broadcast data packet whether there is In legitimate clients list, legitimate clients list is sent to reception client by server, wraps in legitimate clients list Include the transmission client specified by server, and if it exists, execute the corresponding business of broadcast data.Client is realized as broadcast The sender of data, and reduce the purpose of the lower deployment cost of Cloud Server.
Based on data processing method disclosed in embodiments of the present invention Fig. 2, Fig. 2 shows S203: verifying broadcast data The whether unspoiled specific implementation process of broadcast data in packet, as shown in figure 4, specifically including that
S401: verify broadcast data packet data structure length whether reach Preset Transfer structure needed for data length, If so, S402 is executed, if it is not, executing S403.
In S401, sending client to the broadcast data packet that client is sent is received is treated using Preset Transfer structure What the broadcast data of transmission was packaged.
As shown in table 1, in Preset Transfer structure in addition to the field of store broadcast data, further includes: check field, current Protocol version number field effectively connects lifetime field, out-of-order check field and identity field.
Table 1:
Data structure int64 ubyte8 int64 int64 int64
Meaning checksum version session seq uid
Position (Byte) [0,8) [8,9) [9,17) [17,25) [25,33)
Wherein, checksum refers to check field, and the checksum occupies as this is pre- in Preset Transfer structure If in transmission structure [0,8) byte, the checksum is to there is the format of the 64 of symbol integer variables to carry out broadcast data Verification.
Version refers to Current protocol version number field, in Preset Transfer structure the version occupy [8,9) word Section, for marking which version Current protocol is.
Session refers to effectively connecting lifetime field, in Preset Transfer structure the session occupy [9,17) Byte, for marking the corresponding primary effective connection life cycle for sending client.
Seq refers to out-of-order check field, in Preset Transfer structure the seq occupy [17,25) byte, for broadcast Data carry out out-of-order verification, guarantee the newest validity of the broadcast data.
Uid refer to send client terminal identity mark ID, in Preset Transfer structure the uid occupy [25,33) Byte, for the terminal identity mark ID for sending client to be stored in corresponding byte.
It should be noted that including but is not limited to check field in Preset Transfer structure, Current protocol version number field, having Effect connection lifetime field, out-of-order check field and identity field, can increase the Preset Transfer knot according to actual needs The function of structure.
As shown in figure 5, for task is sent each time.Sending client acquisition and executing current business operation is the behaviour generated Make data, and serialized, obtains the operation data indicated with byte format.Operation data serializing is assumed as shown in Figure 5 Afterwards are as follows: 1001,0010,1100,0110,1001,0010,1100,0110.By this with byte format instruction operation data according to After preset rules are aligned, ID is identified with the terminal identity after serializing treated verify data, serializing, according to upper Preset Transfer structure shown in table 1 is spliced, and corresponding broadcast data packet is obtained.Then this is sent extensively by pass-through channel again Unicast packets.
Wherein, the operation data after the serializing is stored in the broadcast data storage field, institute as broadcast data Verify data after stating serializing is stored in the verifying field, and the terminal identity mark ID after the serializing is stored in described Terminal identity identifies id field.
During executing S401, the broadcast data packet transmitted from pass-through channel is received when receiving client, to pre- If each field in transmission structure is verified, to determine the broadcast data in broadcast data packet either with or without damage.Namely It says, each field in Preset Transfer structure is verified, for determining that it is complete for receiving the received broadcast data of client 's.
S402: parsing broadcast data packet is verified the corresponding data of field, terminal identity mark ID and broadcast data.
In executing S402, broadcast data packet is parsed, the corresponding data of available each verifying field, terminal identity mark Know ID and broadcast data.
The Preset Transfer structure in conjunction with disclosed in above-mentioned table 1, optionally, available verifying field, Current protocol version number Field effectively connects lifetime field, out-of-order check field and the corresponding data of identity field.
S403: broadcast data is abandoned.
S404: the format conversion of the corresponding data of verifying field, terminal identity mark ID and broadcast data is objective at receiving The identifiable data format in family end.
During executing S404, the data with Preset Transfer structure are converted to itself by reception client be can recognize Data, i.e., by the corresponding data of verifying field, terminal identity mark ID and broadcast data format conversion at receive client Identifiable data format, can be conducive to reception client faster and better can be handled broadcast data.
Such as: when sending before client carries out transmission broadcast data packet by pass-through channel, need by broadcast data packet into Row Data Serialization processing, when reception client receives the broadcast data packet, after needing that Data Serialization processing will be carried out Broadcast data packet carry out the processing of data unserializing, in this way reception client, could identify the broadcast in the broadcast data packet Data could further perform corresponding processing the broadcast data.
S405: whether the corresponding data of authentication field pass through verification, if so, S406 is executed, if it is not, executing S403.
In the concrete realization, S405 is illustrated in the verifying field in conjunction with disclosed in above-mentioned table 1, authentication field Whether corresponding data pass through the specific implementation process of verification, as shown in fig. 6, specifically including that
S601: whether verifying verification data are tampered, if so, S602 is executed, if it is not, executing S603.
In step s 601, the corresponding data of verifying field include check number evidence and out-of-order verification data, are executing S601 During, when will verify data be converted to receive client identifiable data format when, by receiving client to the school It tests data to be verified, judges whether the verification data are tampered, for verifying the verification corrupt data, need to broadcast number According to being abandoned.
It should be noted that if abandoning the broadcast data, then illustrate that the broadcast data has damaged.
S602: broadcast data is abandoned.
S603: out-of-order detection is carried out based on out-of-order verification data, if being detected as random ordering, executes S602, if being detected as not disorderly Sequence executes S406.
During executing S603, out-of-order detection is carried out to broadcast data packet based on out-of-order verification data, when detecting When primary effective connection period in the broadcast data packet is as primary effective connection period of a upper broadcast data packet, then Field seq for random ordering verification needs the field seq for out-of-order verification greater than a upper broadcast data packet, otherwise illustrates Broadcast data in the broadcast data packet is out-of-order, needs to abandon the broadcast data.
It should be noted that if abandoning the data, then illustrate that the broadcast data has damaged.
S406: verifying terminal identity mark ID whether there is in legitimate clients list, if so, S407 is executed, if it is not, Execute S403.
S407: determine that broadcast data does not damage.
If carrying out out-of-order detection based on out-of-order verification data, detect that the broadcast data in broadcast data packet is not out-of-order, then Need to verify the transmission client in broadcast data packet terminal identity mark ID whether there is in legitimate clients list, In, legitimate clients list refers to the set for the transmission client specified by server.
The data processing method according to disclosed in the embodiments of the present invention is it is found that receive broadcast data by receiving client Packet, broadcast data packet include at least the terminal identity mark ID and broadcast data for sending client, then verifying broadcast number Whether do not damaged according to the broadcast data in packet, if not damaging, the terminal identity mark ID verified in broadcast data packet whether there is In legitimate clients list, legitimate clients list is sent to reception client by server, wraps in legitimate clients list Include the transmission client specified by server, and if it exists, execute the corresponding business of broadcast data.Client is realized as broadcast The sender of data, and reduce the purpose of the lower deployment cost of Cloud Server.
It whether there is based on obtained terminal identity mark ID is verified involved in embodiments of the present invention Fig. 2 in legal Process is implemented in client side list, as shown in fig. 7, specifically including that
S701: the transmission visitor that the terminal identity mark ID and server of the transmission client in verifying broadcast data packet are specified Whether the terminal identity mark ID at family end is identical, if it is not, S702 is executed, if so, executing S703.
During executing S701, when determining that the broadcast data in broadcast data packet do not damage, in order to prove the broadcast Data are that the transmission client specified by server is transferred to reception client by pass-through channel.It needs to verify broadcast data packet In transmission client terminal identity mark ID whether with server specify transmissions client terminal identity mark ID phase Together.
Such as: the terminal identity mark ID of the transmission client in broadcast data packet is 1, and the legal visitor that server is specified There are the transmission clients that terminal identity mark ID is 1 in the list of family end, it is determined that sends the transmission client of the broadcast data packet End is legal transmission client.
It should be noted that terminal identity mark ID is set according to the actual situation, it is not discussed here.
S702: broadcast data is abandoned.
S703: determine that obtained terminal identity mark ID is present in legitimate clients list.
The data processing method according to disclosed in the embodiments of the present invention is it is found that verify the transmission client in broadcast data packet Whether the terminal identity mark ID for the transmission client that terminal identity mark ID and the server at end are specified is identical, use can be allowed to connect The client for receiving client knows whether the broadcast data in the broadcast data packet is that the specified transmission client of server is sent Broadcast data improves the experience sense of client if it is not, ignoring by receiving client to the broadcast data.
In order to facilitate understanding, in a particular application, based on the embodiments of the present invention provide data processing method, for Main broadcaster's client makes song suspend or continue by clicking plug-in unit, and the treatment process of audience's client executing corresponding operating is as schemed Shown in 8.
In fig. 8, comprising: main broadcaster's client 801, pass-through channel 802, transport protocol structure 803 and audience's client 804。
Here main broadcaster's client 801 can send client, transport protocol knot for the embodiments of the present invention are disclosed Structure 803 refers to Preset Transfer structure disclosed in the embodiments of the present invention, and audience's client 804 can be the embodiments of the present invention Disclosed reception client.
Based on data processing method disclosed in the embodiments of the present invention, concrete implementation main broadcaster's client is inserted by clicking Part makes song suspend or continue, the process of audience's client executing corresponding operating, as shown in figure 9, including the following steps:
S901: main broadcaster's client is based on transport protocol structure, to number caused by the data that song is suspended or continues According to being packaged, broadcast data packet is generated.
In S901, mistake that main broadcaster's client is packaged data caused by the data that song is suspended or continues Journey specifically:
Firstly, operation data caused by the acquisition song data being suspended or continued, and serialized and right The corresponding verify data of verifying field needed for transport protocol structure is serialized, and is known to the terminal identity of main broadcaster's client Other ID is serialized, then, by the operation data after serializing, the verify data after serializing and the terminal body after serializing Part identification id is spliced according to transport protocol structure, thus the broadcast data packet after being packaged.
S902: the broadcast data packet is sent to audience's client by pass-through channel by main broadcaster's client.
S903: audience's client is based on the transport protocol structure elucidation broadcast data packet, and verifies in the broadcast data packet Broadcast data whether damage, if it is not, execute S704, if so, execute S705.
In S903, audience's client be based on the transport protocol structure elucidation broadcast data packet, available verify data, The terminal identity mark ID and broadcast data of main broadcaster's client.
In S903, verify whether the broadcast data in the broadcast data packet damages based on verify data.
S904: the terminal identity mark ID in audience's client validation broadcast data packet is arranged with the presence or absence of legitimate client In table, if so, S906 is executed, if it is not, executing S905.
S905: data are abandoned.
S906: the pause of the broadcast data instruction in audience's client executing broadcast data packet continues to operate.
The pause of broadcast data instruction in audience's client executing broadcast data packet shown in Figure 10 continues to operate Display interface figure later.
Specific implementation principle in the above-mentioned each step of S901-S906, reference can be made to number disclosed in the embodiments of the present invention According to realization principle corresponding in processing method.
The data processing method according to disclosed in the embodiments of the present invention is it is found that receive broadcast data by receiving client Packet, broadcast data packet include at least the terminal identity mark ID and broadcast data for sending client, then verifying broadcast number Whether do not damaged according to the broadcast data in packet, if not damaging, the terminal identity mark ID verified in broadcast data packet whether there is In legitimate clients list, legitimate clients list is sent to reception client by server, wraps in legitimate clients list Include the corresponding terminal identity mark ID of transmission client specified by server, and if it exists, execute the corresponding business of broadcast data. The above method realizes sender of the client as broadcast data in the case where not needing deployment Cloud Server, and reduces The lower deployment cost of Cloud Server.
Based on a kind of data processing method disclosed in the embodiments of the present invention, the embodiment of the present invention is also corresponding open a kind of Data processing equipment is applied to receive client, is a kind of data processing equipment disclosed by the embodiments of the present invention as shown in figure 11 Structural schematic diagram, specifically include that receiving module 110, parsing module 111, the first authentication module 112, the second authentication module 113 With business execution module 114.
Receiving module 110, for receiving broadcast data packet, the broadcast data packet is described with Preset Transfer structural transmission Broadcast data packet includes at least verify data, the terminal identity mark ID and broadcast data for sending client.
Parsing module 111 is verified data, the terminal for sending client for parsing the broadcast data packet Identity ID and broadcast data.
First authentication module 112, for being based on the verify data, not whether the broadcast data in verifying broadcast data packet Damage executes the second authentication module 113 if not damaging.
Second authentication module 113, is used for, and the terminal identity mark ID verified in broadcast data packet whether there is in legal visitor In the list of family end, and if it exists, execute business execution module 114 and abandon the broadcast data packet if it does not exist.
Business execution module 114, for executing the corresponding business of broadcast data.
The data processing equipment according to disclosed in the embodiments of the present invention is it is found that receive broadcast data by receiving client Packet, broadcast data packet include at least the terminal identity mark ID and broadcast data for sending client, then verifying broadcast number Whether do not damaged according to the broadcast data in packet, if not damaging, the terminal identity mark ID verified in broadcast data packet whether there is In legitimate clients list, legitimate clients list is sent to reception client by server, wraps in legitimate clients list Include the transmission client specified by server, and if it exists, execute the corresponding business of broadcast data.It realizes and does not need deployment cloud Server can carry out data processing to broadcast data, save a large amount of cloud server lower deployment cost.
A kind of alternative construction of the first authentication module 112 in apparatus of the present invention embodiment are as follows: the first authentication module 112 packet Include the first authentication unit, resolution unit, conversion unit, the second authentication unit, third authentication unit and determination unit.
Whether the first authentication unit, the data structure length for verifying broadcast data packet reach needed for Preset Transfer structure Data length, if reaching execution resolution unit.
Resolution unit is verified the corresponding data of field, terminal identity identifies ID and wide for parsing broadcast data packet Multicast data.
Conversion unit, for the corresponding data of verifying field, terminal identity to be identified to the format conversion of ID and broadcast data At the reception identifiable data format of client.
Whether the second authentication unit passes through verification for the corresponding data of authentication field, if being tested by executing third Demonstrate,prove unit.
Specific second authentication unit include: the first verifying subelement, out-of-order detection sub-unit, first abandon subelement and Execute subelement.
First verifying subelement, if so, abandoning broadcast data, executes if not for verifying whether verification data are tampered Out-of-order detection sub-unit.
Out-of-order detection sub-unit, for carrying out out-of-order detection based on out-of-order verification data.
First abandons subelement, if abandoning broadcast data for being detected as random ordering.
Subelement is executed, if not out-of-order for being detected as, executes third authentication unit.
Third authentication unit whether there is in legitimate clients list, if it exists for verifying terminal identity mark ID Execute determination unit.
Specific third authentication unit includes: the second verifying subelement, the second discarding subelement and determines subelement.
Second verifying subelement, the terminal identity for verifying the transmission client in broadcast data packet identify ID and service Whether the terminal identity mark ID of the specified transmission client of device is identical, executes second if not and abandons subelement, if executing true Stator unit;
Second abandons subelement, if for abandoning broadcast data;
Subelement is determined, for determining that obtained terminal identity mark ID is present in legitimate clients list.
Determination unit, for determining that broadcast data does not damage.
The data processing equipment according to disclosed in the embodiments of the present invention is it is found that pass through the broadcast in verifying broadcast data packet Whether data are not damaged, realize whether the broadcast data for guaranteeing to know that transmission comes using the client for receiving client is correct, to mention It rises the good experience sense of client and provides important guarantee.
The embodiment of the present invention also provides a kind of client, as shown in figure 12, shows one kind provided in an embodiment of the present invention The structural block diagram of client, the client 120 include: processor 121 and memory 122.
Processor 121, for executing the program stored in memory 122.
Memory 122, for storing program, which is at least used for: receiving broadcast data packet, broadcast data packet is at least wrapped Include the terminal identity mark ID and broadcast data for sending client;Whether the broadcast data in verifying broadcast data packet does not damage; If not damaging, the terminal identity mark ID verified in broadcast data packet whether there is the legitimate client in legitimate clients list It holds list to be sent to reception client by server, includes the transmission client pair specified by server in legitimate clients list The terminal identity mark ID answered;If it exists, the corresponding business of broadcast data is executed.
On the other hand, the embodiment of the present invention also provides a kind of storage medium, and it is executable that computer is stored in storage medium Instruction, when computer executable instructions are loaded and executed by processor, for realizing visitor is received in any one embodiment as above Data processing method described in the end of family.
The also corresponding open another data processing equipment of the embodiment of the present invention, is applied to send client, as shown in figure 13, For a kind of structural schematic diagram of data processing equipment disclosed by the embodiments of the present invention, specifically include that
Acquisition module 130, the operation data generated when executing business operation for acquiring.
Serialization module 131, for treating operation data, the terminal identity mark spliced based on Preset Transfer structure ID and verify data are serialized, and Preset Transfer structure includes verifying field, terminal identity mark id field and broadcast data Store field.
Splicing module 132, for based on the operation data after the serializing of Preset Transfer structures to form, the verifying after serializing Terminal identity after data and serializing identifies ID, obtains broadcast data packet, the operation data after serializing is as broadcast data It is stored in broadcast data storage field, the verify data after serializing is stored in verifying field, the terminal identity mark after serializing Know ID and is stored in the terminal identity mark id field.
Sending module 133, for sending broadcast data packet to receiving client.
The another kind data processing equipment according to disclosed in the embodiments of the present invention is it is found that by sending client acquisition behaviour Make data, then passes through a series of processing, obtain broadcast data packet, be transmitted to reception client finally by pass-through channel. Guarantee is provided to receive client post-processing broadcast data.
The embodiment of the present invention also provides another client and shows provided in an embodiment of the present invention one as shown in figure 14 The structural block diagram of kind client, which includes: processor 141 and memory 142.
Processor 141, for executing the program stored in memory 142.
Memory 142, for storing program, which is at least used for: acquisition executes the operand generated when business operation According to;Operation data, terminal identity mark ID and the verify data spliced based on Preset Transfer structure is treated to be serialized, Preset Transfer structure includes verifying field, terminal identity mark id field and broadcast data storage field;Based on Preset Transfer knot Operation data after structure splicing serializing, the terminal identity after verify data and serializing after serializing identify ID, obtain wide Unicast packets, and broadcast data packet is sent to receiving client.
On the other hand, the embodiment of the present invention also provides another storage medium, and being stored with computer in storage medium can hold Row instruction, when computer executable instructions are loaded and executed by processor, for realizing being sent in any one embodiment as above Data processing method described in client.
In conclusion the embodiment of the present invention provides a kind of data processing method and device, this method are as follows: pass through and receive client End receives broadcast data packet, and broadcast data packet includes at least the terminal identity mark ID and broadcast data for sending client, Whether the broadcast data then verified in broadcast data packet does not damage, if not damaging, verifies the terminal identity in broadcast data packet Identifying ID whether there is in legitimate clients list, and legitimate clients list is sent to reception client by server, legal It include the transmission client specified by server in client side list, and if it exists, execute the corresponding business of broadcast data.It realizes Deployment cloud server is not needed, data processing can be carried out to broadcast data, save a large amount of cloud server and be deployed to This.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of data processing method, which is characterized in that be applied to receive client, which comprises
Broadcast data packet is received, the broadcast data packet is included at least and tested with Preset Transfer structural transmission, the broadcast data packet Demonstrate,prove data, the terminal identity mark ID and broadcast data for sending client;
The broadcast data packet is parsed, data, the terminal identity mark ID and broadcast data for sending client are verified;
Based on the verify data, verify whether the broadcast data in the broadcast data packet does not damage;
If not damaging, the terminal identity mark ID verified in the broadcast data packet whether there is in legitimate clients list, The legitimate clients list is sent to the reception client by server, includes by servicing in the legitimate clients list The corresponding terminal identity of the specified transmission client of device identifies ID;
If it exists, the corresponding business of the broadcast data is executed.
2. the method according to claim 1, wherein parsing the broadcast data packet, comprising:
The data packet is parsed, the data with Preset Transfer structure are obtained, the Preset Transfer structure includes verifying field, end Identity id field and broadcast data is held to store field, the data of the Preset Transfer structure are by transmission client according to default Transmission structure will serializing processing the corresponding verify data of verifying field, itself terminal identity mark ID and broadcast data into It is obtained after row is assembled;
The unserializing processing data with Preset Transfer structure, the corresponding number of verifying field after obtaining unserializing According to terminal identity mark and broadcast data.
3. the method according to claim 1, wherein based on the verify data, the verifying broadcast data packet In broadcast data whether do not damage, comprising:
Verify the broadcast data packet data structure length whether reach Preset Transfer structure needed for data length;
If reaching, the broadcast data packet is parsed, is verified the corresponding data of field, terminal identity mark ID and broadcast number According to;
By the format conversion of the corresponding data of the verifying field, terminal identity mark ID and broadcast data at the reception client Hold identifiable data format;
Verify whether the corresponding data of the verifying field pass through verification;
If passing through, verifying the terminal identity mark ID whether there is in legitimate clients list;
If it exists, determine that the broadcast data does not damage.
4. according to the method described in claim 3, it is characterized in that, the corresponding data of the verifying field include check number evidence and Random ordering verification data, verify whether the corresponding data of the verifying field pass through verification, comprising:
Verify whether the verification data are tampered;
If it is not, carrying out out-of-order detection based on the out-of-order verification data;
If being detected as not random ordering, executes and verify the terminal identity mark ID with the presence or absence of this step in legitimate clients list Suddenly.
5. the method according to claim 1, wherein the terminal identity mark ID that verifying obtains whether there is In legitimate clients list, comprising:
The hair that the terminal identity mark ID and the server for verifying the transmission client in the broadcast data packet are specified Whether identical the terminal identity of client is sent to identify ID;
If it is not, the broadcast data is abandoned;
If so, determining that obtained terminal identity mark ID is present in legitimate clients list.
6. a kind of data processing method, which is characterized in that be applied to send client, which comprises
Acquisition executes the operation data generated when business operation;
It treats operation data, terminal identity mark ID and the verify data spliced based on Preset Transfer structure and carries out sequence Change, the Preset Transfer structure includes verifying field, terminal identity mark id field and broadcast data storage field;
After the operation data after Preset Transfer structures to form serializing, verify data and serializing after serializing Terminal identity identifies ID, obtains broadcast data packet, and the operation data after the serializing is stored in described wide as broadcast data Multicast data stores field, and the verify data after the serializing is stored in the verifying field, the terminal body after the serializing Part mark ID is stored in the terminal identity mark id field;
The broadcast data packet is sent to receiving client.
7. a kind of data processing equipment, which is characterized in that be applied to receive client, described device includes:
Receiving module, for receiving broadcast data packet, the broadcast data packet is with Preset Transfer structural transmission, the broadcast data Packet includes at least verify data, the terminal identity mark ID and broadcast data for sending client;
Parsing module is verified data, the terminal identity mark for sending client for parsing the broadcast data packet ID and broadcast data;
First authentication module verifies whether the broadcast data in the broadcast data packet does not damage for being based on the verify data It is bad, the second authentication module is executed if not damaging;
Second authentication module whether there is for verifying the mark of the terminal identity in broadcast data packet ID in legal visitor In the list of family end, business execution module is executed if it exists, includes the transmission specified by server in the legitimate clients list The corresponding terminal identity of client identifies ID;
Business execution module, for executing the corresponding business of the broadcast data.
8. a kind of data processing equipment, which is characterized in that be applied to send client, described device includes:
Acquisition module, the operation data generated when executing business operation for acquiring;
Serialization module, for treating the operation data spliced based on Preset Transfer structure, terminal identity mark ID and testing Card data are serialized, and the Preset Transfer structure includes that verifying field, terminal identity mark id field and broadcast data are deposited Store up field;
Splicing module, for based on the operation data after Preset Transfer structures to form serializing, the verifying number after serializing ID is identified according to the terminal identity after serializing, obtains broadcast data packet, the operation data after the serializing is as broadcast number According to the broadcast data storage field is stored in, the verify data after the serializing is stored in the verifying field, the sequence Terminal identity mark ID after columnization is stored in the terminal identity mark id field;
Sending module, for sending the broadcast data packet to receiving client.
9. a kind of client characterized by comprising
Processor and memory;
Wherein, the processor is for executing the program stored in the memory;
The memory is for storing program, and described program is for executing such as data processing as claimed in any one of claims 1 to 5 Method executes data processing method as claimed in claim 6.
10. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment execute such as data processing method as claimed in any one of claims 1 to 5, or execute such as Data processing method as claimed in claim 6.
CN201910704443.1A 2019-07-31 2019-07-31 A kind of data processing method, device, client and storage medium Pending CN110417787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910704443.1A CN110417787A (en) 2019-07-31 2019-07-31 A kind of data processing method, device, client and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910704443.1A CN110417787A (en) 2019-07-31 2019-07-31 A kind of data processing method, device, client and storage medium

Publications (1)

Publication Number Publication Date
CN110417787A true CN110417787A (en) 2019-11-05

Family

ID=68364997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910704443.1A Pending CN110417787A (en) 2019-07-31 2019-07-31 A kind of data processing method, device, client and storage medium

Country Status (1)

Country Link
CN (1) CN110417787A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277602A (en) * 2020-01-23 2020-06-12 奇安信科技集团股份有限公司 Network data packet identification processing method and device, electronic equipment and storage medium
CN112035831A (en) * 2020-08-14 2020-12-04 深信服科技股份有限公司 Data processing method, device, server and storage medium
CN115996260A (en) * 2021-10-19 2023-04-21 中移(杭州)信息技术有限公司 Cloud broadcasting method and device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217295A (en) * 2011-06-23 2011-10-12 华为终端有限公司 Management method of voice message and device thereof
CN102946261A (en) * 2012-11-14 2013-02-27 田军 Low-delay many-to-many control method based on wireless communication technology
WO2014169844A1 (en) * 2013-10-17 2014-10-23 中兴通讯股份有限公司 Method and device for realizing terminal wifi talkback
CN106211036A (en) * 2016-06-30 2016-12-07 珠海市魅族科技有限公司 A kind of method and apparatus connecting equipment
CN108322443A (en) * 2017-12-30 2018-07-24 京信通信系统(中国)有限公司 Equipment interactive communication method, apparatus, storage medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217295A (en) * 2011-06-23 2011-10-12 华为终端有限公司 Management method of voice message and device thereof
CN102946261A (en) * 2012-11-14 2013-02-27 田军 Low-delay many-to-many control method based on wireless communication technology
WO2014169844A1 (en) * 2013-10-17 2014-10-23 中兴通讯股份有限公司 Method and device for realizing terminal wifi talkback
CN106211036A (en) * 2016-06-30 2016-12-07 珠海市魅族科技有限公司 A kind of method and apparatus connecting equipment
CN108322443A (en) * 2017-12-30 2018-07-24 京信通信系统(中国)有限公司 Equipment interactive communication method, apparatus, storage medium and computer equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277602A (en) * 2020-01-23 2020-06-12 奇安信科技集团股份有限公司 Network data packet identification processing method and device, electronic equipment and storage medium
CN112035831A (en) * 2020-08-14 2020-12-04 深信服科技股份有限公司 Data processing method, device, server and storage medium
CN115996260A (en) * 2021-10-19 2023-04-21 中移(杭州)信息技术有限公司 Cloud broadcasting method and device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110417787A (en) A kind of data processing method, device, client and storage medium
US7702917B2 (en) Data transfer using hyper-text transfer protocol (HTTP) query strings
CN103139303B (en) A kind of for keeping the heart beating method, the Apparatus and system that connect
CN104199654B (en) The call method and device of open platform
CN105119722B (en) A kind of auth method, equipment and system
CN105100067B (en) A kind of high in the clouds Activiation method and system
CN106354634A (en) Interface testing method and device
CN107172081B (en) A kind of method and apparatus of data check
EP1990972A1 (en) Method for testing safety access protocol conformity to identification service entity and system thereof
CN105208108B (en) File upload/method for down loading and system, server, client under Web environment
CN106412975B (en) A kind of test method and device of content charging loophole
CN103888449A (en) Method and device for packet reassembly
US8880108B2 (en) Short message processing method and apparatus
Bauer et al. ECDSA on things: IoT integrity protection in practise
TW200807955A (en) Method and apparatus for enabling FLO device certification
CN107395559A (en) Data processing method and equipment based on redis
CN104050054B (en) Processing method for installation package installation failure and cause determining method and device
CN109547172A (en) Data transmission method, system and data transmitting equipment, data receiver
CN110417905B (en) Contract issuing method, device, equipment and union chain system
CN109040255A (en) Internet of things equipment cut-in method, device, equipment and storage medium
CN110401669B (en) Identity verification method and related equipment
CN109710535B (en) Service verification method and system for voice conversation platform
CN106230702A (en) Identity information verification method, Apparatus and system
CN103746868B (en) A kind of method, device and test equipment for sending and receiving test packet
CN106921629A (en) Application program login method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20210114

Address after: 510000 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 28th floor, block B1, Wanda Plaza, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20191105

RJ01 Rejection of invention patent application after publication