Data delivery method and device, electronic equipment and storage medium
By acquiring terminal device information to calculate traffic ranges, and using MAC address hash calculation and modular arithmetic to select target operational data, the problem of traffic diversion in TV content operation is solved, achieving precise operational data allocation and effect evaluation.
Patent Information
- Application Number
- CN202210967750.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-12
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-08-12
AI Technical Summary
In television content operation, the simultaneous operation of multiple operational plans leads to difficulties in diverting traffic from various entry points, and there is a lack of effective solutions.
By acquiring device information of traffic entry terminals, calculating the traffic range to which they belong, and selecting matching target operational data for distribution based on the range, the range is determined by hash calculation using MAC addresses, and by combining preset hash factors and modulo operations, traffic diversion and operational strategy allocation are achieved.
It enables precise routing of terminal traffic, displays different operational data, and improves the ability to evaluate and optimize operational effectiveness.
Smart Images

Figure CN115550285B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and in particular to a data delivery method and device, electronic equipment and storage medium. BACKGROUND
[0002] In the operation of TV (television) content, there are often multiple operation schemes, and the ideas of each operator are not consistent, so it is necessary to simultaneously operate multiple schemes for comparison effect. At this time, how to distribute the traffic entry is very important.
[0003] In view of the above problems in the related art, no effective solution has been found so far. SUMMARY
[0004] The embodiments of the present application provide a data delivery method and device, electronic equipment and storage medium to solve the technical problem of how to distribute traffic in the related art.
[0005] According to an aspect of the embodiments of the present application, a data delivery method is provided, including: obtaining device information of a traffic entry terminal; calculating a traffic interval to which the terminal belongs according to the device information; selecting matching target operation data from multiple operation data according to the traffic interval, and delivering the target operation data to the terminal, wherein each operation data in the multiple operation data corresponds to an operation strategy.
[0006] Optionally, before obtaining the device information of the traffic entry terminal, the method includes: configuring a traffic strategy, wherein the traffic strategy is used to indicate the traffic distribution proportion of each operation data; and dividing the traffic interval of each operation data according to the distribution proportion.
[0007] Optionally, calculating the traffic interval to which the terminal belongs according to the device information includes: extracting a MAC (Media Access Control) address in the device information; performing hash calculation on the MAC address to obtain a device hash value; and determining the traffic interval to which the terminal belongs according to the device hash value.
[0008] Optionally, performing hash calculation on the MAC address to obtain a device hash value includes: obtaining a preset hash factor; calculating the sum of the MAC address and the hash factor to obtain an intermediate value; and performing hash calculation on the intermediate value to obtain the device hash value.
[0009] Optionally, determining the traffic interval to which the terminal belongs according to the device hash value includes: performing modulo operation on the device hash value to obtain a remainder, wherein N is the same as the length of the traffic interval; and searching for a traffic interval matching the remainder.
[0010] Optionally, after the matching target operation data is selected from the plurality of operation data according to the traffic interval and is delivered to the terminal, the method comprises: receiving feedback information of the terminal on the target operation data; comparing operation effects of each operation data according to the feedback information; and selecting an operation data with the best operation effect from the plurality of operation data.
[0011] Optionally, comparing operation effects of each operation data according to the feedback information comprises: obtaining a total number and an effective number of terminals to which each operation data is delivered; calculating an effective rate of each operation data according to the total number and the effective number; and determining the effective rate as the operation effect of each operation data.
[0012] According to another aspect of the embodiments of the present application, a data delivery device is provided, comprising: an obtaining module, configured to obtain device information of a traffic entry terminal; a calculating module, configured to calculate a traffic interval to which the terminal belongs according to the device information; a matching module, configured to select matching target operation data from a plurality of operation data according to the traffic interval; and a delivering module, configured to deliver the target operation data to the terminal, wherein each operation data in the plurality of operation data corresponds to an operation strategy.
[0013] Optionally, the device further comprises: a configuring module, configured to configure a traffic strategy, wherein the traffic strategy is used to indicate a traffic distribution proportion of each operation data; and a dividing module, configured to divide a traffic interval of each operation data according to the distribution proportion.
[0014] Optionally, the calculating module comprises: an extracting unit, configured to extract a media access control (MAC) address in the device information; a first calculating unit, configured to perform hash calculation on the MAC address to obtain a device hash value; and a first determining unit, configured to determine the traffic interval to which the terminal belongs according to the device hash value.
[0015] Optionally, the first calculating unit comprises: a first obtaining sub-unit, configured to obtain a preset hash factor; and a first calculating sub-unit, configured to calculate a sum of the MAC address and the hash factor to obtain an intermediate value, and perform hash calculation on the intermediate value to obtain the device hash value.
[0016] Optionally, the first determining unit comprises: a second calculating sub-unit, configured to perform modulo operation on the device hash value to obtain a remainder, wherein N is the same as a length of the traffic interval; and a searching sub-unit, configured to search for a traffic interval matching the remainder.
[0017] Optionally, the apparatus further comprises a receiving module configured to receive feedback information of the terminal on the target operation data; a comparing module configured to compare operation effects of each operation data according to the feedback information; and a selecting module configured to select an operation data with the best operation effect from the plurality of operation data.
[0018] Optionally, the comparing module comprises an obtaining unit configured to obtain a total number and an effective number of terminals under each operation data; a second calculating unit configured to calculate an effective rate of each operation data according to the total number and the effective number; and a second determining unit configured to determine the effective rate as the operation effect of each operation data.
[0019] According to another aspect of the embodiments of the present application, a storage medium is provided, which comprises a stored program, wherein the program performs the method steps as described above when running.
[0020] According to another aspect of the embodiments of the present application, an electronic device is provided, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; and the memory is configured to store a computer program; and the processor is configured to perform the method steps as described above by running the program stored in the memory.
[0021] The embodiments of the present application further provide a computer program product comprising instructions which, when executed on a computer, cause the computer to perform the steps of the above method.
[0022] According to the embodiments of the present application, the device information of the traffic portal terminal is obtained; the traffic interval to which the terminal belongs is calculated according to the device information; the target operation data matched in the plurality of operation data is selected according to the traffic interval and is issued to the terminal, and the traffic division of the terminal is realized by calculating the traffic interval to which the terminal belongs according to the device information of the traffic portal terminal, and then the different operation data is displayed to the terminals in different traffic intervals, thereby realizing the shunt display of different operation schemes. BRIEF DESCRIPTION OF DRAWINGS
[0023] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and serve to explain the principles of the application, and do not limit the application. In the drawings:
[0024] Figure 1 is a hardware structure block diagram of a computer according to an embodiment of the present application;
[0025] Figure 2 is a flow chart of a data issuing method according to an embodiment of the present application;
[0026] Figure 3 is a flowchart of an implementation scenario according to an embodiment of the present application;
[0027] Figure 4 is a traffic policy configuration diagram in an implementation scenario according to an embodiment of the present application;
[0028] Figure 5 is a structural block diagram of a data delivery device according to an embodiment of the present application;
[0029] Figure 6 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative work should fall within the protection scope of the present application. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
[0031] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, product, or device that includes a series of steps or units does not necessarily have to include only those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product, or device.
[0032] Embodiment 1
[0033] The method embodiments provided in the embodiments of the present application can be executed in a mobile phone, a computer, a tablet, a server, or similar computing devices. Taking the case of running on a computer, Figure 1 is a hardware structural block diagram of a computer according to an embodiment of the present application. As shown in Figure 1 , the computer can include one or more Figure 1The computer shown in FIG. 1 includes only one processor 102 (the processor 102 can include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data. Optionally, the computer can further include a transmission device 106 for communication function and an input / output device 108. Those skilled in the art can understand that, Figure 1 The structure shown in FIG. 1 is only illustrative and does not limit the structure of the computer. For example, the computer can include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG. 1. Figure 1 Figure 1 The structure shown in FIG. 1 is only illustrative and does not limit the structure of the computer. For example, the computer can include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG. 1.
[0034] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the data delivery method of an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, implements the above-mentioned method. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely arranged with respect to the processor 102, and these remote memories can be connected to the computer through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0035] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network can include a wireless network provided by a communication provider of the computer. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, RF) module which is used to communicate with the Internet in a wireless manner.
[0036] In the present embodiment, a data delivery method is provided, Figure 2 is a flowchart of a data delivery method according to an embodiment of the present application, as shown in FIG. 2, the flow includes the following steps: Figure 2
[0037] S10, obtaining device information of a traffic entry terminal;
[0038] The traffic portal is an entrance for users to obtain content, purchase products or seek services on the Internet, and can be a portal website, a classified chain website, an APP (application) or the like. The traffic portal has huge traffic, and the traffic can be guided by adjusting a display interface of the traffic portal.
[0039] The terminal can be a television, a computer, a set-top box, a mobile phone or the like. The device information of the terminal includes device model, device serial number, MEID (Mobile Equipment Identifier), IMEI (International Mobile Equipment Identity), IMSI (International Mobile Subscriber Identity), MAC (Media Access Control) address or the like, which can represent the identity of the terminal.
[0040] S20, calculating a traffic interval to which the terminal belongs according to the device information.
[0041] In this embodiment, the device information of each terminal of the traffic portal is obtained, and the traffic interval to which the terminal belongs is calculated according to the device information, so as to distribute the device terminals of the traffic portal.
[0042] In an embodiment, the way of calculating the traffic interval to which the terminal belongs according to the device information can be to query a preset device information and traffic interval mapping table, the mapping table having pre-divided device information intervals and the traffic intervals to which the device information intervals belong, different device information intervals corresponding to different traffic intervals, and the traffic interval to which the terminal belongs can be obtained by querying the mapping table according to the obtained device information.
[0043] S30, selecting target operation data matching the traffic interval from a plurality of operation data, and delivering the target operation data to the terminal, wherein each operation data in the plurality of operation data corresponds to an operation strategy.
[0044] The operation data can be an advertisement video, a recommended commodity, a coupon or the like. Different traffic intervals are allocated with different operation data, and each operation data corresponds to an operation strategy. Taking a smart television terminal as an example, when the television content is operated, each television of the traffic portal can be distributed, for example, 20% of the television terminals display an advertisement A, and 80% of the television terminals display an advertisement B, the traffic interval to which the television terminal belongs is determined, and different operation strategies A or B are displayed on the television belonging to different traffic intervals.
[0045] In an example, the matching target operation data can also be selected from the plurality of operation data according to the preset traffic interval and the operation data mapping table according to the traffic interval.
[0046] The embodiment of the application realizes the shunting of the terminal traffic by calculating the traffic interval to which the terminal belongs according to the device information of the traffic entry terminal, and then displays different operation data to the terminals in different traffic intervals, thereby realizing the shunting display of the operation scheme.
[0047] In an embodiment of the embodiment of the application, before the device information of the traffic entry terminal is acquired, the method comprises: configuring a traffic policy, wherein the traffic policy is used to indicate the traffic distribution proportion of each operation data; and dividing the traffic interval of each operation data according to the distribution proportion.
[0048] In the example, the traffic policy is configured in advance, the traffic distribution proportion of each operation data is set, and then the proportion is converted into the interval length form according to the distribution proportion, thereby dividing the traffic interval corresponding to each operation data.
[0049] Referring to Figure 3 , Figure 3 is an embodiment scene flow schematic diagram according to the embodiment of the application, as shown in Figure 3 , the traffic operation personnel configures the traffic in the background, formulates the traffic policy, constructs the data into the openresty process memory, uses the lua-rest-balancer to construct the hash algorithm to support the shunting, after the traffic policy is configured, the television terminal user of the traffic entry requests the openresty, and the operation data corresponding to the strategy scheme is obtained by calculating the device information parameter of the television, wherein the openresty can withstand the high concurrent traffic request.
[0050] Figure 4is a flow policy configuration schematic diagram in an implementation scenario of an embodiment of the present application. In the embodiment of the present application, experimental groups A, B, C and D are divided according to operation needs, 10% of flow entries are respectively allocated 5-yuan coupons, 30% of flow entries are respectively allocated 3-yuan coupons, 20% of flow entries are respectively allocated 10-yuan coupons, and 40% of flow entries are respectively allocated 15-yuan coupons, and then flow intervals of each operation data are divided according to the allocation ratio. Specifically, the total length of the divided flow intervals is 100, and according to the allocation ratio of the flow, the flow interval corresponding to the 5-yuan coupon is 0-9, with a length of 10; the flow interval corresponding to the 3-yuan coupon is 10-39, with a length of 30; the flow interval corresponding to the 10-yuan coupon is 40-59, with a length of 20; and the flow interval corresponding to the 15-yuan coupon is 60-99, with a length of 40. The flow interval to which the terminal belongs is calculated through device information, and if the flow interval to which the terminal belongs is 10-39, the matched target operation data determined and delivered according to the flow interval to which the terminal belongs is the 3-yuan coupon.
[0051] In the embodiment of the present application, the flow policy is configured, the flow allocation ratio of each operation data is indicated, and the flow intervals of each operation data are divided according to the allocation ratio, so that the division of the flow intervals and the operation data is realized.
[0052] In an implementation manner of the embodiment, the flow interval to which the terminal belongs is calculated according to the device information, S10, including:
[0053] S11, a media access control (MAC) address in the device information is extracted;
[0054] In the embodiment, the flow interval to which the terminal belongs is calculated according to the MAC address in the device information.
[0055] S12, a hash value of the device is obtained by performing hash calculation on the MAC address;
[0056] The MAC address is generally represented as a hexadecimal number with a length of 6 bytes, and the hash value of the device is obtained by performing hash calculation on the MAC address in the device information. The hash value is a more compact, unique and non-conflicting numerical value.
[0057] S13, the flow interval to which the terminal belongs is determined according to the hash value of the device.
[0058] The flow interval to which the terminal belongs is then determined according to the obtained hash value, and in an example, the determination manner can be querying a preset hash value and flow interval mapping table to determine.
[0059] In the embodiment of the present application, the hash value of the device is obtained by performing hash calculation on the MAC address of the device, the flow interval to which the device belongs is determined according to the hash value, and the flow interval to which the terminal belongs is determined through the MAC address of the device.
[0060] In an example, the obtaining the device hash value by hashing the MAC address includes: obtaining a preset hash factor; calculating a sum of the MAC address and the hash factor to obtain an intermediate value; and hashing the intermediate value to obtain the device hash value.
[0061] The hash factor can be a preset number or string, and can be set as needed. In the embodiment of the application, the hash factor is preset, and the hash value of the device is obtained by hashing the sum of the MAC address of the device and the preset hash factor.
[0062] In an example, the determining the traffic interval to which the terminal belongs according to the device hash value, S13, includes:
[0063] S131, performing a modulo operation on the device hash value to obtain a remainder, wherein N is the same as the length of the traffic interval;
[0064] The modulo operation represents the remainder of division of two numbers. In the embodiment, the dividend is the hash value of the device, and the divisor is N. The remainder obtained by taking modulo N ranges from 0 to N-1, wherein N is the same as the length of the traffic interval. The length of the traffic interval mentioned herein is the total length of all the divided traffic intervals.
[0065] S132, searching for a traffic interval matching the remainder.
[0066] The obtained remainder is used to determine the traffic interval to which the remainder falls.
[0067] In the above embodiment, the divided traffic intervals are 0-9, 10-39, 40-59 and 60-99, and the total length of the traffic intervals is 100. Therefore, N is 100, the remainder obtained by taking modulo 100 ranges from 0 to 99, and if the hash value of the device is 20, the remainder obtained by performing the modulo 100 operation on the device hash value is 20, which falls within the range of 10-39. Therefore, the operating data allocated to the device is a 3-yuan coupon.
[0068] In an embodiment, the performing the modulo operation on the device hash value includes: hashCode(MAC_A+hash factor) % N, wherein MAC_A represents the MAC address of the device A, hash factor represents the preset hash factor, hashCode represents a hash calculation function, % is a modulo operator, and N is the total length of the traffic interval. The hash value of the device is obtained by hashing the sum of MAC_A and the hash factor, and then the modulo operation is performed on the hash value of the device to obtain a remainder falling within the range of 0 to N-1.
[0069] In the embodiment of the present application, the modulo operation of N is performed on the device hash value, and the remainder is 0 to N-1, which ensures that the obtained remainder falls into the divided traffic interval, and then the traffic interval matched by the remainder of the modulo operation is used to allocate the operation data to the device.
[0070] In the first embodiment of the present application, after the matching target operation data is selected from the plurality of operation data according to the traffic interval and is delivered to the terminal, the method comprises: receiving feedback information of the terminal on the target operation data; comparing operation effects of each operation data according to the feedback information; and selecting the operation data with the best operation effect from the plurality of operation data.
[0071] The feedback information of the terminal on the target operation data includes satisfaction, acceptance, score, suggestion or opinion of the user on the operation data. The operation effects of each operation data are compared by receiving the feedback information of the user on the target operation data, for example, the operation effects of each operation data can be comprehensively evaluated according to the score fed back by the user, so as to improve the operation data.
[0072] In an example, comparing the operation effects of each operation data according to the feedback information comprises: obtaining the total number and the effective number of terminals to which each operation data is delivered; calculating the effective rate of each operation data according to the total number and the effective number; and determining the effective rate as the operation effect of each operation data.
[0073] The effective number is the number of terminals to which the operation data is delivered and which perform effective actions on the operation data. If the operation data is a display interface or a video, the effective number can be the number of terminals that watch the operation data for more than a preset time, for example, 15s, or the effective number can be the number of terminals that click the interface to push the link, and the ineffective number is the number of terminals that directly click to close the page within 15s. If the operation data is a coupon, the effective number can be the number of terminals that use the coupon to purchase goods.
[0074] The quotient obtained by dividing the effective number by the total number is used to calculate the effective rate of each operation data, and the effective rate is determined as the operation effect of each operation data.
[0075] The scheme of the present embodiment can calculate the traffic interval to which the terminal belongs according to the device information of the terminal, allocate the corresponding target operation data to each terminal according to the belonging traffic interval, realize the shunt display of the terminal, and compare the operation effects of a plurality of operation schemes to select the operation data with the best operation effect, thereby providing a reference basis for traffic operation.
[0076] Those skilled in the art can clearly understand that the method according to the above-mentioned embodiments can be realized by means of software and necessary general hardware platform, of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the method described in various embodiments of the present application.
[0077] Embodiment 2
[0078] In this embodiment, a data delivery device is also provided for implementing the above-mentioned embodiments and preferred embodiments, which have been described and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and contemplated.
[0079] Figure 5 is a structural block diagram of a data delivery device according to an embodiment of the present application, as shown in Figure 5 The device includes an acquisition module 100, a calculation module 200, a matching module 300, and a delivery module 400, wherein,
[0080] The acquisition module 100 is configured to acquire device information of a traffic entry terminal.
[0081] The calculation module 200 is configured to calculate a traffic interval to which the terminal belongs according to the device information.
[0082] The matching module 300 is configured to select matching target operation data from a plurality of operation data according to the traffic interval.
[0083] The delivery module 400 is configured to deliver the target operation data to the terminal, wherein each operation data in the plurality of operation data corresponds to an operation strategy.
[0084] Optionally, the device further includes a configuration module configured to configure a traffic strategy, wherein the traffic strategy is used to indicate a traffic distribution ratio of each operation data; and a division module configured to divide the traffic interval of each operation data according to the distribution ratio.
[0085] Optionally, the computing module comprises: an extraction unit configured to extract a media access control (MAC) address in the device information; a first computing unit configured to perform a hash computation on the MAC address to obtain a device hash value; and a first determination unit configured to determine a traffic interval to which the terminal belongs according to the device hash value.
[0086] Optionally, the first computing unit comprises: a first acquisition subunit configured to acquire a preset hash factor; and a first computing subunit configured to compute a sum of the MAC address and the hash factor to obtain an intermediate value, and perform a hash computation on the intermediate value to obtain the device hash value.
[0087] Optionally, the first determination unit comprises: a second computing subunit configured to perform a modulo operation of N on the device hash value to obtain a remainder, wherein N is the same as a length of the traffic interval; and a lookup subunit configured to look up a traffic interval matching the remainder.
[0088] Optionally, the apparatus further comprises: a receiving module configured to receive feedback information of the terminal on the target operation data; a comparing module configured to compare operation effects of the operation data according to the feedback information; and a selecting module configured to select an operation data with the best operation effect from the operation data.
[0089] Optionally, the comparing module comprises: an acquisition unit configured to acquire a total number and an effective number of terminals under each operation data; a second computing unit configured to compute an effective rate of each operation data according to the total number and the effective number; and a second determination unit configured to determine the effective rate as the operation effect of each operation data.
[0090] It should be noted that each of the above modules can be implemented by software or hardware, and for the latter, the following implementation manners can be used, but are not limited thereto: all the above modules are located in the same processor; or the above modules are located in different processors in any combination.
[0091] Embodiment 3
[0092] The embodiment of the present application further provides an electronic device, Figure 6 is a structural diagram of an electronic device according to the embodiment of the present application, as Figure 6 shown, comprising a processor 101, a communication interface 102, a memory 103 and a communication bus 104, wherein the processor 101, the communication interface 102 and the memory 103 complete mutual communication through the communication bus 104, the memory 103 is used for storing a computer program; the processor 101 is used for executing the program stored in the memory 103 to realize the following steps:
[0093] S1, acquiring device information of a traffic entry terminal;
[0094] S2, calculating a traffic interval to which the terminal belongs according to the device information;
[0095] S3, selecting matched target operation data from a plurality of operation data according to the traffic interval, and delivering the target operation data to the terminal, wherein each operation data in the plurality of operation data corresponds to an operation strategy.
[0096] The communication bus of the terminal can be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus and the like. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0097] The communication interface is used for communication between the terminal and other devices.
[0098] The memory can include a Random Access Memory (RAM) and can also include a non-volatile memory such as at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0099] The processor can be a general-purpose processor including a Central Processing Unit (CPU), a Network Processor (NP) and the like; can also be a Digital Signal Processing (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0100] In another embodiment provided by the application, a computer readable storage medium is also provided, and the computer readable storage medium stores instructions, when the instructions are run on a computer, the computer executes the data delivery method in any of the above embodiments.
[0101] In yet another embodiment of the present application, a computer program product containing instructions, which when executed on a computer, cause the computer to perform the data delivery method of any of the above embodiments is also provided.
[0102] In the above embodiments, the entire or part of the embodiments can be implemented through software, hardware, firmware or any combination thereof. When implemented through software, the entire or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into and executed by a computer, the entire or part of the procedures or functions according to the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatuses. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from a website, a computer, a server or a data center to another website, computer, server or data center through wired (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium or a data storage device including one or more available media that is integrated into a server, data center, etc. The available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, Solid State Disk (SSD)), etc.
[0103] The above only describes preferred embodiments of the present application and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0104] The above only describes specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data delivery method, characterized in that, The method comprises the following steps: obtaining device information of a traffic entry terminal; calculating a traffic interval to which the terminal belongs according to the device information; selecting matching target operation data from a plurality of operation data according to the traffic interval, and delivering the target operation data to the terminal, wherein each operation data in the plurality of operation data corresponds to an operation strategy; wherein the calculation of the traffic interval to which the terminal belongs according to the device information comprises: extracting a media access control (MAC) address in the device information; calculating a device hash value by hashing the MAC address; determining the traffic interval to which the terminal belongs according to the device hash value; wherein the calculation of the device hash value by hashing the MAC address comprises: obtaining a preset hash factor; calculating the sum of the MAC address and the hash factor to obtain an intermediate value; hashing the intermediate value to obtain the device hash value; wherein before obtaining the device information of the traffic entry terminal, the method comprises: configuring a traffic strategy, wherein the traffic strategy is used to indicate the traffic distribution ratio of each operation data; dividing the traffic interval of each operation data according to the distribution ratio; wherein after selecting the matching target operation data from the plurality of operation data according to the traffic interval and delivering the target operation data to the terminal, the method comprises: receiving feedback information of the target operation data from the terminal; comparing the operation effects of each operation data according to the feedback information; selecting the operation data with the best operation effect from the plurality of operation data; wherein the comparison of the operation effects of each operation data according to the feedback information comprises: obtaining the total number and the effective number of terminals to which each operation data is delivered; calculating the effective rate of each operation data according to the total number and the effective number; determining the effective rate as the operation effect of each operation data.
2. The data distribution method of claim 1, wherein, determining the traffic interval to which the terminal belongs according to the device hash value comprises: performing modulo operation on the device hash value to obtain a remainder, wherein N is the same as the length of the traffic interval; finding the traffic interval matching the remainder.
3. A data delivery apparatus, characterized by comprising: The method comprises the following steps: an obtaining module for obtaining device information of a traffic entry terminal; a calculating module for calculating a traffic interval to which the terminal belongs according to the device information; a matching module for selecting matching target operation data from a plurality of operation data according to the traffic interval; a delivering module for delivering the target operation data to the terminal, wherein each operation data in the plurality of operation data corresponds to an operation strategy; wherein the calculating module comprises: an extracting unit for extracting a media access control (MAC) address in the device information; a first calculating unit for calculating a device hash value by hashing the MAC address; and a first determining unit for determining the traffic interval to which the terminal belongs according to the device hash value; wherein the first calculating unit comprises: a first obtaining subunit for obtaining a preset hash factor; a first calculating subunit for calculating the sum of the MAC address and the hash factor to obtain an intermediate value; and a hashing unit for hashing the intermediate value to obtain the device hash value. The configuration module is configured to configure a traffic policy, wherein the traffic policy is used to indicate a traffic distribution ratio of each operation data; The division module is configured to divide a traffic interval of each operation data according to the distribution ratio; The receiving module is configured to receive feedback information of the terminal on the target operation data; The comparison module is configured to compare operation effects of each operation data according to the feedback information; The selection module is configured to select an operation data with the best operation effect from the multiple operation data; The obtaining unit is configured to obtain a total number and an effective number of terminals under each operation data; The second calculation unit is configured to calculate an effective rate of each operation data according to the total number and the effective number; The second determination unit is configured to determine the effective rate as the operation effect of each operation data.
4. An electronic device, comprising: The electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program implements the steps of the data distribution method according to any one of claims 1 to 2 when executed by the processor.
5. A storage medium, characterized by The storage medium has a computer program stored thereon, and the computer program implements the steps of the data distribution method according to any one of claims 1 to 2 when executed by the processor.
Citation Information
Patent Citations
Television advertisement obtaining method, television advertisement displaying method and system, advertisement server and television
CN107734397A
Data pushing method and device, terminal and storage medium
CN113448725A