A data processing method, device, computer equipment and storage medium
By determining the strategy of switching online clients in wireless network devices and combining reporting strategies, adaptive scrolling of online clients is achieved, and the problem of fixed client data and lack of flexibility in the prior art is solved, and the accuracy and reliability of data are improved.
Patent Information
- Application Number
- CN202411927057.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, by simulating the fixed client up and down behavior, the simulated client data is fixed, which lacks flexibility, and is very different from the actual user scenario, reducing the reliability of the data.
By obtaining the reporting policy and total reporting number of each wireless network device in the target management unit in the preset time period, the switching strategy of each wireless network device's switching online client is determined, and the online client reported each time is determined according to the policy during the simulation reporting process, and the traffic information is reported to the management platform.
Adaptive scrolling of online clients is realized, the accuracy and flexibility of reported data are improved, and the simulated client data is closer to the actual scenario.
Smart Images

Figure CN119789133A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, computer equipment and storage medium. Background Art
[0002] With the widespread use of wireless networks in various public places, the number of wireless network devices (such as wireless access points (APs) and wireless routers) has increased dramatically. The massive data generated by wireless networks (especially wireless client data) can provide references for the deployment of wireless network devices. Therefore, it is particularly important to simulate client data that meets actual scenarios.
[0003] In the related art, the online and offline behaviors of fixed clients are usually simulated, so that the simulated client data is relatively fixed, lacks flexibility, deviates greatly from the actual user scenario, and reduces the reliability of the simulated client data. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, apparatus, computer equipment and storage medium to solve the technical problem that by simulating the online and offline behaviors of a fixed client, the simulated client data is relatively fixed, lacks flexibility, deviates greatly from the actual user scenario, and reduces the reliability of the simulated client data.
[0005] In a first aspect, the present application provides a data processing method, comprising:
[0006] Obtaining the reporting strategy of the online clients to be reported and the total number of online clients to be reported for each wireless network device in the target management unit within a preset time period to be simulated;
[0007] Based on the reporting strategy and the total number of reports, determining a switching strategy for switching online clients to be simulated by each wireless network device;
[0008] In the process of each wireless network device simulating reporting of an online client, determining the online client reported each time according to the switching strategy and the reporting strategy;
[0009] The determined traffic information of the online client reported each time is reported to the management platform where the target management unit is located.
[0010] In a second aspect, the present application provides a data processing device, including:
[0011] An acquisition module, used for acquiring, for each wireless network device in the target management unit, a reporting strategy of the online client to be simulated and to be reported and a total number of online clients to be reported within a preset time period;
[0012] A first determination module, configured to determine a switching strategy for switching online clients to be simulated by each wireless network device based on the reporting strategy and the total number of reports;
[0013] A second determination module is used to determine the online client reported each time according to the switching strategy and the reporting strategy during the process of each wireless network device simulating reporting of the online client;
[0014] The reporting module is used to report the determined flow information of the online client reported each time to the management platform where the target management unit is located.
[0015] In a third aspect, the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the above-mentioned data processing method when executing the computer program.
[0016] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned data processing method are implemented.
[0017] In a fifth aspect, the present application also provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, is used to execute the steps of the data processing method described in any one of the first aspects above.
[0018] The embodiment of the present application provides a data processing method, device, computer equipment and storage medium. The method obtains the reporting strategy of the online client to be simulated and the total number of online clients to be reported for each wireless network device in the target management unit within a preset time period; determines the switching strategy of the online client to be simulated by each wireless network device based on the reporting strategy and the total number of reports; in the process of each wireless network device simulating the reporting of the online client, determines the online client to be reported each time according to the switching strategy and the reporting strategy; reports the traffic information of the online client reported each time to the management platform where the target management unit is located. The present application determines the switching strategy of the online client to be simulated by each wireless network device, switches the current online client to a new online client, and then changes the online client, and combines the reporting strategy to adaptively change the online client, and then realizes the adaptive scrolling of the online client, thereby improving the accuracy and flexibility of the reported online client and the reported traffic information of the online client. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] in:
[0021] Figure 1 A schematic diagram of an application scenario of a data processing method in an embodiment;
[0022] Figure 2 is a flow chart of a data processing method in one embodiment;
[0023] Figure 3 A flowchart of determining a switching frequency of a wireless network device switching an online client in one embodiment;
[0024] Figure 4 A flowchart of determining an online client for this report in an embodiment;
[0025] Figure 5 is a structural block diagram of a data processing device in one embodiment;
[0026] Figure 6 FIG. 4 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] like Figure 1 As shown, it is a schematic diagram of an application scenario of the data processing method provided in an embodiment of the present application. The data processing method is applied to a simulation device, which includes a wireless network device, and is used to simulate the wireless network device to report relevant data of an online client to a management platform, so as to improve the accuracy of the relevant data of the online client reported to the management platform. The management platform can be a cloud platform, which is used to perform big data analysis or testing on the simulation data reported by the simulation device.
[0029] like Figure 2 As shown, in one embodiment, a flowchart of a data processing method is provided.
[0030] Step 102: acquiring the reporting strategy of the online clients to be reported and the total number of online clients to be reported to be simulated for each wireless network device in the target management unit within a preset time period.
[0031] The target management unit is a management unit in the management platform that needs to simulate the online client related data on the wireless network device. Each management unit in the management platform has multiple wireless network devices.
[0032] The preset time period may be a time period set according to a specific scenario, for example, within one month. The reporting strategy of the online client to be simulated refers to the reporting strategy of the online client to be simulated, for example, the reporting frequency of the online client-related data.
[0033] Specifically, according to the scenario to be simulated, a reporting strategy for the online clients to be reported and the total number of online clients to be reported to be simulated within a preset time period can be constructed for each wireless network device in the target management unit, so that adaptive scrolling of the online clients can be achieved based on the reporting strategy and the total number of online clients to improve the simulation effect of the online clients.
[0034] In a specific implementation, the reporting strategy includes the reporting frequency of the online client to be reported to be simulated and the number of online clients carried in each report; in step 102, the reporting strategy of the online client to be reported to be simulated and the total number of online clients to be reported for each wireless network device in the target management unit within a preset time period is obtained, as follows:
[0035] Step 102A, constructing a test data set of wireless network devices based on the scenario to be simulated, wherein the test data set includes the number of wireless network devices under the target management unit;
[0036] Step 102B, determining the reporting frequency of the online clients to be reported and the number of online clients to be reported each time according to the scenario to be simulated;
[0037] Step 102C, constructing a corresponding relationship between the number of wireless network devices under the target management unit and the total number of online clients within a preset time period;
[0038] Step 102D: Determine the total reported quantity according to the corresponding relationship and the number of wireless network devices under the target management unit.
[0039] The scenario to be simulated is a scenario that requires online client simulation of a wireless network device, which can be determined according to user requirements. For example, the scenario to be simulated can be 50 wireless network devices in a shopping mall.
[0040] The test data set of the wireless network device is test data related to the wireless network device for simulating the wireless network device, such as the hardware address (Media Access Control Address, MAC) of the wireless network device, the number of the wireless network device, etc.
[0041] The reporting frequency of the online client to be simulated is the reporting frequency of the online client, that is, the online client is reported once every certain time interval (such as 5 minutes, 10 minutes or longer), and the time interval is set according to the scenario to be simulated.
[0042] The number of clients is the number of online clients carried by the wireless network device each time it reports data. According to the historical data in the actual scenario corresponding to the scenario to be simulated, the number of online clients carried by the wireless network device each time it reports data within the preset time period can be counted, and the average value of the number of online clients is used as the number of clients. Exemplarily, the preset time period is one week, the reporting time interval is 1 day, and the number of online clients carried each time the data is reported from Monday to Sunday is 40, 60, 60, 50, 60, 200, 300 respectively, then the number of clients is 110.
[0043] The correspondence between the number of wireless network devices under the target management unit and the total number of online clients within the preset time period may be the relationship between the number of wireless network devices under the target management unit and the total number of corresponding online clients within the preset time period, for example, within the preset time period, the number of devices: less than x1, the total number of clients: y1, the number of devices: greater than x1 and less than x2, the total number of clients: y2, the number of devices: greater than x2, the total number of clients: y3.
[0044] Specifically, after determining the number of wireless network devices under the target management unit, the total number of online clients corresponding to the number of devices is searched from the corresponding relationship between the number of wireless network devices under the target management unit and the total number of online clients in the preset time period to obtain the total number of reports. It can be understood that in this embodiment, in combination with the scenario to be simulated, the reporting strategy of the online clients to be reported and the total number of online clients to be reported to be simulated for each wireless network device in the target management unit within the preset time period are determined, so that the determined reporting strategy and total number of reports can match the scenario to be simulated, thereby ensuring the accuracy of the subsequent online client data simulation.
[0045] In a specific implementation, a scenario simulating an online client (online customer) in a shopping mall is used as an example for explanation. There are 50 wireless network devices deployed under a target management unit (such as a shopping mall), and its reporting strategy is to report online clients once every 10 minutes within a month, and the number of online clients carried in each report is 10, that is, the reporting frequency is once every 10 minutes, and the number of clients is 10. The total number of online clients to be reported is 200,000.
[0046] It should be noted that in order to improve the timeliness and wide applicability of online client data simulation, in this embodiment, a test data set that is both practical and convenient for testing and verification, supporting both user customization and automatic generation, can be constructed. The test data set needs to contain the necessary information required for the simulation test, such as the relevant information of the wireless network device (MAC, model, etc.) and the corresponding management unit. At the same time, the wireless network devices in the test data set must have been taken over by the management platform. In addition, the data in the test data set needs to have the following characteristics:
[0047] Authenticity: Simulate the data distribution in a real environment, such as the model, quantity, and management unit of wireless network devices;
[0048] Diversity: Ensure that the test dataset contains different models of wireless network devices, different types of online clients, different sizes of management units, etc.
[0049] Security: Ensure that sensitive information is not leaked and follow data protection principles.
[0050] Scalability: When designing data structures, consider fields that may be added in the future (such as the operating status of wireless network devices, traffic statistics, etc.) to facilitate testing of more complex scenarios.
[0051] It should be further explained that, in the test environment, wireless network devices and other related data can be added under the target management unit according to certain rules through automatic laying, and the test environment data can be automatically laid, and a copy of the test environment data can be pulled to form a test data set.
[0052] Step 104: Determine a switching strategy for switching online clients to be simulated by each wireless network device based on the reporting strategy and the total reporting quantity.
[0053] Among them, the switching strategy of the online client to be simulated refers to the strategy for switching the online client to be simulated, so as to change the online client according to a certain rule. For example, the switching frequency, for example, switches the online client once every 3 hours, that is, changes a batch of online clients every 3 hours.
[0054] Specifically, the strategy for switching online clients of the wireless network device can be determined according to the reporting strategy and the total number of online clients that need to be reported. It can be understood that in this embodiment, the switching strategy for switching online clients to be simulated by each wireless network device in the target management unit within a preset time period is combined to determine the switching strategy for each wireless network device to be simulated, so that the current online client can be switched to a new online client according to the switching strategy, and the online client can be adaptively changed.
[0055] In a specific implementation, the reporting strategy includes the reporting frequency of the online client to be reported to be simulated, the number of online clients carried in each report, and the switching strategy includes the switching frequency of the wireless network device switching the online client; in step 104, based on the reporting strategy and the total number of reports, the switching strategy of the online client to be simulated by each wireless network device is determined as follows:
[0056] Step 104A, determining the number of reports of the wireless network device in the target management unit within the preset time period according to the reporting frequency;
[0057] Step 104B, determining the total number of online clients reported by the wireless network devices under the target management unit according to the number of reports and the number of clients;
[0058] Step 104C: determining a switching frequency of the wireless network device switching online clients according to the total reported quantity and the total quantity.
[0059] Specifically, the reporting frequency can be used to calculate the number of reports made by the wireless network devices in the target management unit within a preset time period. Based on the reporting frequency and the number of clients, the total number of online clients reported by the wireless network devices under the target management unit can be calculated. Then, the switching frequency of the wireless network devices switching online clients can be calculated based on the total reporting number and the total number.
[0060] like Figure 3 As shown, it is a flow chart for determining the switching frequency of the wireless network device switching the online client. The simplified model is the corresponding relationship between the number of wireless network devices under the target management unit and the total number of online clients in the preset time period. Based on the simplified model, the number of reports, the number of devices, the total number of reports and the number of clients, the first adaptive algorithm is used to determine the switching frequency.
[0061] Continuing to use the scenario of simulating an online client (online customer) in a shopping mall in step 102A-step 102D as an example for explanation, the reporting frequency is 10 minutes, that is, reporting once every 10 minutes, then the number of reports of 50 wireless network devices in one month is N=6*24*50*30=216000 times, and the number of online clients carried in each report is 10, then the total number S=216000*10=2160000, the number of switching times Q=S / 200000=2160000 / 200000=10.8 times, rounded to 11 times, that is, under the target management unit, each wireless network device reports 11 online clients, and then switches a batch of online clients. Therefore, the switching frequency M=11*10 minutes=110 minutes, that is, the online client is switched every 110 minutes.
[0062] Step 106 , in the process of each wireless network device simulating reporting of online clients, determining the online clients reported each time according to the switching strategy and the reporting strategy.
[0063] The reported online client is an online client determined according to both the reporting strategy and the switching strategy, and may be an online client reported according to the reporting strategy or an online client reported after switching according to the switching strategy.
[0064] Specifically, in the process of simulating the reporting of online clients by each wireless network device, while reporting online clients according to the reporting strategy, the reported online clients are switched according to the switching strategy, thereby determining the online clients reported each time. It can be understood that in this embodiment, the online clients are switched in combination with the reporting strategy, so as to realize adaptive changes to the online clients, thereby realizing adaptive scrolling of the online clients, and improving the accuracy of the reported online clients.
[0065] More specifically, a reporting script can be written to simulate the wireless network device reporting the online client to the management platform. Each wireless network device is an independent thread. The reporting script can simulate the interaction process between the wireless network device and the management platform, such as going online and keeping alive, to ensure normal interaction with the management platform and consistency with the behavior of the real device. In the process of each wireless network device simulating the reporting of the online client, the online client can be flexibly switched according to the switching strategy to ensure adaptive scrolling of the online client.
[0066] In a specific implementation, in step 106, in the process of each wireless network device simulating reporting of an online client, determining the online client reported each time according to the switching strategy and the reporting strategy includes:
[0067] Step 106A, in the process of each wireless network device simulating reporting of the online client, recording the current reporting number of the wireless network device simulating reporting of the online client, and recording the current switching number of the wireless network device switching the online client according to the switching strategy;
[0068] Step 106B: determining the online client that reports each time according to the current number of switching times, the current number of reports and the switching strategy.
[0069] Specifically, in the process of each wireless network device simulating reporting of an online client, the current reporting number of the wireless network device simulating reporting of the online client can be recorded through a timer. When a wireless client is reported once, the count of the timer is increased by 1, and according to the switching strategy, the current switching number of the wireless network device switching the online client is recorded. According to the current switching number, the current reporting number and the switching strategy, it is determined whether the online client information reported this time needs to be adjusted, such as the adjustment of the online client MAC. If adjustment is required, the information of the online client reported this time is adjusted to obtain the online client reported each time, thereby ensuring that the reported online client is not repeated.
[0070] In a specific implementation, in step 106B, the online client reported each time is determined according to the current switching number, the current reporting number and the switching strategy, as follows:
[0071] Step 106B1, determining a number threshold according to the switching strategy;
[0072] Step 106B2: If the current reporting number is 1 or an integer multiple of the number threshold, determine the online client reported this time based on the first hardware address of the wireless network device, the current switching number and the number of the reported online clients.
[0073] The number threshold is a value used to determine whether the current number of reports needs to adopt a switching strategy, which can be calculated by the switching frequency in the switching strategy. For example, in step 104A-step 104C, the number of switching is 11 times, and under the target management unit, each wireless network device switches a batch of online clients every time it reports 11 online clients. The switching frequency is 110 minutes, and the number threshold is 11.
[0074] The first hardware address is the MAC address of the wireless network device. The MAC address is usually composed of 12 hexadecimal digits.
[0075] Specifically, if the current reporting number is 1, it indicates that this is the first time that an online client reports. Therefore, it is necessary to adjust the information of the online client that reports for the first time to ensure that the reported online client is not repeated. If the current reporting number is an integer multiple of the number threshold, it indicates that the switching strategy needs to be executed this time, that is, the online client reported this time needs to be switched. Therefore, for the online client that needs to be switched, it is necessary to adjust the information to ensure that the reported online client is not repeated. Next, for the online client that needs to adjust the information, the first hardware address of the wireless network device, the current switching number, and the number of online clients reported are used to adjust the second adaptive algorithm to obtain the online client reported this time. Figure 4 As shown, it is a flowchart for determining the online client reported this time.
[0076] It can be understood that in this embodiment, for online clients that need to adjust information, the first hardware address of the wireless network device, the current number of switching times, and the number of reported online clients are used for calculation to achieve adjustment of the online client information, ensure that the online clients reported this time are not repeated, and then ensure that non-repetitive traffic information is subsequently generated based on the non-repetitive reported online clients, so that the simulated reported online clients are closer to the real scene, and the reliability of the online clients reported this time is improved.
[0077] In a specific implementation, in step 106B2, if the current reporting number is 1 or an integer multiple of the number threshold, based on the first hardware address of the wireless network device, the current switching number and the number of clients of the reported online clients, the online client reported this time is determined as follows:
[0078] Step 106B21, extracting a hexadecimal number of a first preset number of digits from the first hardware address;
[0079] Step 106B22, determining hexadecimal data of a second preset number of bits according to the current switching times and the number of clients, wherein the sum of the first preset number of bits and the second preset number of bits is 12;
[0080] Step 106B23: Determine the hardware address of the online client reported this time according to the hexadecimal number of the first preset digits and the hexadecimal number of the second preset digits, and obtain the online client reported this time.
[0081] The first preset number of bits and the second preset number of bits may be 6.
[0082] Specifically, a first preset number of hexadecimal digits is intercepted from the first hardware address, and then a second preset number of hexadecimal digits is determined according to the current number of switching times and the number of clients, and the first preset number of hexadecimal digits and the second preset number of hexadecimal digits are combined to obtain the hardware address of the online client reported this time. It can be understood that since the current number of switching times is always accumulated, that is, it is always changing, therefore, the second preset number of hexadecimal digits determined in combination with the current number of switching times and the number of clients are non-repetitive, thereby ensuring that the hardware address of the online client reported this time is non-repetitive.
[0083] More specifically, since the first six digits of the first hardware address of the network hardware device are usually the same, the last six digits of the first hardware address can be intercepted as the first six digits of the second hardware address of the online client reported this time. Then, based on the current number of switching times and the number of clients, the last six digits of the second hardware address of the online client reported this time are determined. Based on the first six digits of the second hardware address and the last six digits of the second hardware address, the second hardware address is determined to obtain the online client reported this time.
[0084] In a specific implementation, the first hardware address of the wireless network device is 000A82DF7220, and the last 6 bits (DF7220) of the wireless network device are intercepted as the first 6 bits of the second hardware address. The last 3 bits of the second hardware address can be generated according to the number of clients. For example, if the number of clients is 10, the last 3 bits of the 10 second hardware addresses are 001, 002...00A, respectively. Bits 7-9 of the second hardware address are determined according to the current number of switching times. For example, for the first switching, bits 7-9 are 001, for the second switching, bits 7-9 are 002..., and the current switching number of the second online client is the 8th switching, and its corresponding second hardware address is DF72200080002.
[0085] Step 108: reporting the determined traffic information of the online client reported each time to the management platform where the target management unit is located.
[0086] The traffic information is the reported traffic of online clients, such as upload traffic and download traffic.
[0087] Specifically, the determined traffic information of each reported online client is reported to the management platform where the target management unit is located, so that the management platform can perform big data analysis based on the reported traffic information of the online client to ensure the reliability of the big data analysis. It can be understood that since the reported online client is rollingly changed, the reported traffic information of the online client is also rollingly changed, thereby simulating reliable data, making the traffic information reported to the management platform closer to reality, and improving the accuracy and flexibility of the reported traffic information of the online client.
[0088] It is worth noting that in this embodiment, online client data on a wireless network device under one management unit can be simulated, and then the simulated data of all management units can be integrated to implement big data testing of the management platform.
[0089] In a specific implementation, in step 108, before reporting the determined traffic information of the online client reported each time to the management platform where the target management unit is located, the following may also be included:
[0090] Step 110, converting the format of the second hardware address of the online client reported each time, and intercepting the converted second hardware address to obtain fixed flow information;
[0091] Step 112, obtaining the change traffic information based on the reporting time of each reported online client;
[0092] Step 114: Determine the flow information based on the fixed flow information and the variable flow information.
[0093] Specifically, after the format of the second hardware address of the online client reported each time is converted, the converted second hardware address is intercepted to obtain fixed traffic information, and the variable traffic information is obtained based on the reporting time of the online client reported each time. The traffic information is determined based on the fixed traffic information and the variable traffic information. It can be understood that since the reporting time is different, determining the variable traffic information in combination with the reporting time can ensure that the variable traffic information is not repeated, thereby ensuring that the traffic information is not repeated.
[0094] In a specific embodiment, the second hardware address can be converted into a decimal number, a part of the converted decimal number is intercepted as fixed flow information, and then a number at a preset position is intercepted from the reporting time as variable flow information. For example, a section of the time is intercepted, such as the reporting time 10:25:08, and 1025 is taken as the variable flow information, and the fixed flow information and the variable flow information are combined to obtain the flow information.
[0095] The above-mentioned data processing method obtains the reporting strategy of the online clients to be reported and the total number of online clients to be reported to be simulated for each wireless network device in the target management unit within a preset time period; determines the switching strategy of the online clients to be simulated for each wireless network device based on the reporting strategy and the total number of reports; determines the online clients to be reported each time according to the switching strategy and the reporting strategy during the process of simulating the reporting of online clients by each wireless network device; and reports the traffic information of the online clients reported each time to the management platform where the target management unit is located. The present application switches the current online client to the new online client by determining the switching strategy of the online clients to be simulated for each wireless network device, thereby realizing the change of the online client, and combines the reporting strategy to realize the adaptive change of the online client, thereby realizing the adaptive scrolling of the online client, thereby improving the accuracy and flexibility of the reported online clients and the traffic information of the reported online clients.
[0096] like Figure 5 As shown, in one embodiment, a data processing device is provided, and the data processing device 200 includes:
[0097] The acquisition module 202 is used to acquire the reporting strategy of the online clients to be reported and the total number of online clients to be reported for each wireless network device in the target management unit within a preset time period;
[0098] A first determination module 204 is used to determine a switching strategy for switching online clients to be simulated by each wireless network device based on the reporting strategy and the total number of reports;
[0099] A second determination module 206 is used to determine the online client reported each time according to the switching strategy and the reporting strategy in the process of each wireless network device simulating reporting of the online client;
[0100] The reporting module 208 is used to report the determined traffic information of the online client reported each time to the management platform where the target management unit is located.
[0101] In one embodiment, the reporting strategy includes the reporting frequency of the online clients to be reported and the number of online clients carried in each report; the acquisition module 202 is specifically used for:
[0102] Based on the scenario to be simulated, construct a test data set for the wireless network device, wherein the test data set includes the number of wireless network devices under the target management unit;
[0103] According to the scenario to be simulated, determine the reporting frequency of the online clients to be reported and the number of online clients carried in each report to be simulated;
[0104] Establishing a corresponding relationship between the number of wireless network devices under the target management unit and the total number of online clients within a preset time period;
[0105] The total reported quantity is determined according to the corresponding relationship and the number of wireless network devices under the target management unit.
[0106] In one embodiment, the reporting strategy includes the reporting frequency of the online clients to be reported to be simulated, the number of online clients carried in each report, and the switching strategy includes the switching frequency of the wireless network device switching online clients; the first determination module 204 is specifically used to:
[0107] The step of determining a switching strategy for switching online clients to be simulated by each wireless network device based on the reporting strategy and the total number of reports includes:
[0108] Determine the number of reports of the wireless network device in the target management unit within the preset time period according to the reporting frequency;
[0109] Determine the total number of online clients reported by the wireless network devices under the target management unit according to the number of reports and the number of clients;
[0110] The switching frequency of the wireless network device switching online clients is determined according to the total reported quantity and the total quantity.
[0111] In one embodiment, the second determining module 206 is specifically configured to:
[0112] In the process of each wireless network device simulating reporting of the online client, recording the current reporting times of the wireless network device simulating reporting of the online client, and recording the current switching times of the wireless network device switching the online client according to the switching strategy;
[0113] An online client that reports each time is determined according to the current number of switching times, the current number of reports, and the switching strategy.
[0114] In one embodiment, the second determining module 206 is further configured to:
[0115] Determine a number threshold according to the switching strategy;
[0116] If the current reporting number is 1 or an integer multiple of the number threshold, the online client reported this time is determined based on the first hardware address of the wireless network device, the current switching number and the number of clients of the reported online clients.
[0117] In one embodiment, the second determining module 206 is further configured to:
[0118] Extracting a hexadecimal number of a first preset number of digits from the first hardware address;
[0119] Determine hexadecimal data of a second preset number of bits according to the current switching number and the number of clients, where the sum of the first preset number of bits and the second preset number of bits is 12;
[0120] The hardware address of the online client reported this time is determined according to the hexadecimal number of the first preset digits and the hexadecimal number of the second preset digits, so as to obtain the online client reported this time.
[0121] In one embodiment, the data processing device further includes:
[0122] A first acquisition module is used to convert the format of the second hardware address of the online client reported each time, and intercept the converted second hardware address to obtain fixed flow information;
[0123] A second acquisition module is used to obtain the change traffic information based on the reporting time of the online client reported each time;
[0124] The third determination module is used to determine the flow information based on the fixed flow information and the variable flow information.
[0125] Figure 6 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a server, including but not limited to a high-performance computer and a high-performance computer cluster. Figure 6 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the data processing method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the data processing method. Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0126] In one embodiment, the data processing method provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 6 The computer device shown in the figure can be a simulation device, which includes a wireless network device. The memory of the computer device can store various program templates constituting the data processing device. For example, the acquisition module 202, the first determination module 204, the second determination module 206, and the reporting module 208.
[0127] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the above data processing method when executing the computer program.
[0128] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above data processing method are implemented.
[0129] The embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, is used to execute the steps of any data processing method provided in the embodiment of the application.
[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0131] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0132] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data processing method, characterized in that: include: Obtaining the reporting strategy of the online clients to be reported and the total number of online clients to be reported for each wireless network device in the target management unit within a preset time period to be simulated; Based on the reporting strategy and the total number of reports, determining a switching strategy for switching online clients to be simulated by each wireless network device; In the process of each wireless network device simulating reporting of an online client, determining the online client reported each time according to the switching strategy and the reporting strategy; The determined traffic information of the online client reported each time is reported to the management platform where the target management unit is located.
2. The data processing method according to claim 1, characterized in that: The reporting strategy includes the reporting frequency of the online clients to be reported to be simulated and the number of online clients carried in each report; the reporting strategy of the online clients to be reported to be simulated and the total number of online clients to be reported for each wireless network device in the target management unit within a preset time period includes: Based on the scenario to be simulated, construct a test data set for the wireless network device, wherein the test data set includes the number of wireless network devices under the target management unit; According to the scenario to be simulated, determine the reporting frequency of the online clients to be reported and the number of online clients carried in each report to be simulated; Establishing a corresponding relationship between the number of wireless network devices under the target management unit and the total number of online clients within a preset time period; The total reported quantity is determined according to the corresponding relationship and the number of wireless network devices under the target management unit.
3. The data processing method according to claim 1, characterized in that: The reporting strategy includes the reporting frequency of the online clients to be reported to be simulated and the number of online clients carried in each report, and the switching strategy includes the switching frequency of the wireless network device switching online clients; The step of determining a switching strategy for switching online clients to be simulated by each wireless network device based on the reporting strategy and the total number of reports includes: Determine the number of reports of the wireless network device in the target management unit within the preset time period according to the reporting frequency; Determine the total number of online clients reported by the wireless network devices under the target management unit according to the number of reports and the number of clients; The switching frequency of the wireless network device switching online clients is determined according to the total reported quantity and the total quantity.
4. The data processing method according to claim 1, characterized in that: In the process of simulating reporting of online clients by each wireless network device, determining the online clients reported each time according to the switching strategy and the reporting strategy includes: In the process of each wireless network device simulating reporting of the online client, recording the current reporting times of the wireless network device simulating reporting of the online client, and recording the current switching times of the wireless network device switching the online client according to the switching strategy; An online client that reports each time is determined according to the current number of switching times, the current number of reports, and the switching strategy.
5. The data processing method according to claim 4, characterized in that: The determining, according to the current number of switching times, the current number of reports and the switching strategy, an online client that reports each time includes: Determine a number threshold according to the switching strategy; If the current reporting number is 1 or an integer multiple of the number threshold, the online client reported this time is determined based on the first hardware address of the wireless network device, the current switching number and the number of clients of the reported online clients.
6. The data processing method according to claim 5, characterized in that: If the current reporting number is 1 or an integer multiple of the number threshold, determining the online client reported this time based on the first hardware address of the wireless network device, the current switching number, and the number of clients of the reported online clients, includes: Extracting a hexadecimal number of a first preset number of digits from the first hardware address; Determine hexadecimal data of a second preset number of bits according to the current switching number and the number of clients, where the sum of the first preset number of bits and the second preset number of bits is 12; The hardware address of the online client reported this time is determined according to the hexadecimal number of the first preset digits and the hexadecimal number of the second preset digits, so as to obtain the online client reported this time.
7. The data processing method according to claim 6, characterized in that: Before reporting the determined traffic information of the online client reported each time to the management platform where the target management unit is located, the method further includes: After converting the format of the second hardware address of the online client reported each time, the converted second hardware address is intercepted to obtain fixed flow information; Based on the reporting time of each reported online client, the changed traffic information is obtained; The flow information is determined based on the fixed flow information and the variable flow information.
8. A data processing device, characterized in that: The data processing device comprises: An acquisition module, used for acquiring, for each wireless network device in the target management unit, a reporting strategy of the online client to be simulated and to be reported and a total number of online clients to be reported within a preset time period; A first determination module, configured to determine a switching strategy for switching online clients to be simulated by each wireless network device based on the reporting strategy and the total number of reports; A second determination module is used to determine the online client reported each time according to the switching strategy and the reporting strategy during the process of each wireless network device simulating reporting of the online client; The reporting module is used to report the determined flow information of the online client reported each time to the management platform where the target management unit is located.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the data processing method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 7 are implemented.