CN115348322A - Data processing method, networking device and computer readable storage medium - Google Patents

Data processing method, networking device and computer readable storage medium Download PDF

Info

Publication number
CN115348322A
CN115348322A CN202210812240.6A CN202210812240A CN115348322A CN 115348322 A CN115348322 A CN 115348322A CN 202210812240 A CN202210812240 A CN 202210812240A CN 115348322 A CN115348322 A CN 115348322A
Authority
CN
China
Prior art keywords
value
networking
target
occupied resource
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210812240.6A
Other languages
Chinese (zh)
Other versions
CN115348322B (en
Inventor
王祥红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN202210812240.6A priority Critical patent/CN115348322B/en
Publication of CN115348322A publication Critical patent/CN115348322A/en
Application granted granted Critical
Publication of CN115348322B publication Critical patent/CN115348322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1014Server selection for load balancing based on the content of a request
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data processing method, networking equipment and a computer readable storage medium, wherein the data processing method is applied to main equipment in each networking equipment of a networking system, and comprises the following steps: when a scheduling request sent by equipment to be scheduled is received, determining first target equipment from each networking equipment; and sending the device information of the first target device to the device to be scheduled, so that the device to be scheduled sends the received first service data to the first target device according to the device information, and the first target device sends the first processing result to the device to be scheduled after processing the first service data to obtain the first processing result. The invention realizes the balanced consumption of the computing resources of each networking device of the networking system, thereby improving the stability of the networking system.

Description

Data processing method, networking device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing control technologies, and in particular, to a data processing method, a networking device, and a computer-readable storage medium.
Background
With the development of technology, the construction of network construction technology that can meet the requirements of various complex environments and projects is widely used. In a networking system processing the same service type, the amount of service data processed by each networking device is different, so that the computational resource consumption of each device in the networking system is different. The quantity of service data received by part of networking equipment in the networking system is small, and the computational resources consumed by the networking equipment are small; and a part of networking equipment receives a large amount of service data, and computing resources of the networking equipment are consumed in a large amount, so that the networking equipment can overload and process data, and the computing resources can be exhausted, thereby causing the networking system to be unstable.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a data processing method, networking equipment and a computer readable storage medium, and aims to solve the technical problem of unbalanced computational resource consumption of the networking equipment in a networking system.
In order to achieve the above object, the present invention provides a data processing method, where the data processing method is applied to a master device in each networking device of a networking system, and the data processing method includes the following steps:
when a scheduling request sent by a device to be scheduled is received, determining a first target device from each networking device, wherein the occupied resource value of the first target device is smaller than a preset first threshold value or is the minimum value of the occupied resource values of each networking device in the networking system, and the device to be scheduled is a slave device of which the occupied resource value is larger than a preset second threshold value in each networking device in the networking system;
and sending the device information of the first target device to the device to be scheduled, so that the device to be scheduled sends the received first service data to the first target device according to the device information, and the first target device sends the first processing result to the device to be scheduled after processing the first service data to obtain a first processing result.
Optionally, the data processing method further includes:
when the occupied resource value of the master device is larger than the second threshold value, determining a second target device from each networking device, wherein the occupied resource value of the second target device is smaller than the first threshold value or is the minimum value of the occupied resource values of each networking device in the networking system;
and sending the received second service data to the second target equipment, so that the second target equipment processes the second service data to obtain a second processing result, and then sending the second processing result to the main equipment.
Optionally, before the step of determining the second target device from each networking device, the method further includes:
detecting whether the occupied resource value of the master device is greater than the second threshold value;
when the occupied resource value of the main equipment is determined not to be larger than the second threshold value, processing the second service data;
when it is determined that the occupied resource value of the master device is greater than the second threshold, the step of determining a second target device from each of the networking devices is performed.
Optionally, before the step of determining the first target device from each networking device, the method further includes:
calculating the occupied resource value of the master equipment, and acquiring the occupied resource value of the slave equipment;
after the step of determining the first target device from each of the networking devices, the method further includes:
and adjusting the occupied resource value of the first target device to be the maximum value of the occupied resource values of each networking device in the networking system.
Optionally, the step of calculating the occupied resource value of the master device includes:
acquiring the average time delay, the packet loss rate, the signal strength value and a preset first weight group corresponding to the service type of the networking system of the main equipment;
using each first weight value contained in the first weight value group to the average time delay carrying out weighted summation processing on the packet loss rate and the signal strength value to obtain a communication link quality value of the main equipment;
acquiring the memory utilization rate, the input/output resource utilization rate, the processor resource utilization rate of the main equipment and a second weight group preset corresponding to the service type;
and performing weighted summation processing on the memory utilization rate, the input and output resource utilization rate, the processor resource utilization rate and the communication link quality value by using each second weight value contained in the second weight value group to obtain an occupied resource value of the main equipment.
In order to achieve the above object, the present invention further provides a data processing method, where the data processing method is applied to any target slave device in each networking device of a networking system, and the data processing method includes the following steps:
when the occupied resource value of the target slave device is determined to be larger than a preset first threshold value, sending a scheduling request to a master device in each networking device, so that the master device determines a target device from each networking device after receiving the scheduling request, and sends device information of the target device to the target slave device, wherein the occupied resource value of the target device is smaller than a preset second threshold value or is the minimum value of the occupied resource values of each networking device in the networking system;
when the device information is received, sending the received to-be-processed service data to the target device according to the device information, so that the target device processes the to-be-processed service data to obtain a service processing result, and then sending the service processing result to the target slave device.
Optionally, before the step of sending the scheduling request to the master device in each networking device, the method further includes:
detecting whether the occupied resource value of the target slave device is greater than the first threshold value;
when the occupied resource value of the target slave equipment is determined to be not greater than the first threshold value, processing the received to-be-processed service data;
and when the occupied resource value of the target slave equipment is determined to be larger than the first threshold value, executing the step of sending the scheduling request to the master equipment in each networking equipment.
Optionally, before the step of sending the scheduling request to the master device in each networking device, the method further includes:
calculating an occupied resource value of the target slave device;
and sending the occupied resource value of the target slave equipment to the master equipment.
In order to achieve the above object, the present invention also provides a data processing apparatus, comprising:
a determining module 10, configured to determine, when receiving a scheduling request sent by a device to be scheduled, a first target device from each networking device, where an occupied resource value of the first target device is smaller than a preset first threshold or is a minimum value of the occupied resource values of each networking device in the networking system, and the device to be scheduled is a slave device whose occupied resource value is greater than a preset second threshold in each networking device in the networking system;
a sending module 20, configured to send the device information of the first target device to the device to be scheduled, so that the device to be scheduled sends the received first service data to the first target device according to the device information, so that the first target device processes the first service data to obtain a first processing result, and then sends the first processing result to the device to be scheduled.
In order to achieve the above object, the present invention further provides a networking device, including: a memory, a processor and a data processing program stored on the memory and executable on the processor, the data processing program, when executed by the processor, implementing the steps of the data processing method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium, on which a data processing program is stored, the data processing program implementing the steps of the data processing method as described above when being executed by a processor.
In the invention, when a master device receives a scheduling request sent by a device to be scheduled, a first target device is determined from each networking device, wherein the occupied resource value of the first target device is smaller than a preset first threshold value or is the minimum value of the occupied resource values of each networking device in a networking system, the device to be scheduled is a slave device of which the occupied resource value is larger than a preset second threshold value in each networking device of the networking system, the master device sends device information of the first target device to the device to be scheduled, the device to be scheduled sends received first service data to the first target device according to the device information, and the first target device sends a first processing result to the device to be scheduled after processing the first service data to obtain the first processing result. The invention realizes the balanced consumption of the computing resources of each networking device of the networking system, thereby improving the stability of the networking system.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a data processing method according to a first embodiment of the present invention;
FIG. 2 is a timing diagram illustrating an embodiment of a data processing method according to the present invention;
FIG. 3 is a timing diagram illustrating an embodiment of a data processing method according to the present invention;
FIG. 4 is a functional block diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a networking device in a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
An embodiment of the present invention provides a data processing method, and referring to fig. 1, fig. 1 is a schematic flow diagram of a first embodiment of a data processing method according to the present invention. It should be noted that, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein. In this embodiment, the data processing method is applied to a master device in each networking device of a networking system, where the master device may be a personal computer, a smart phone, a server, or the like, and is not limited in this embodiment, and the data processing method includes:
step S10, when a scheduling request sent by a device to be scheduled is received, determining a first target device from each networking device, wherein the occupied resource value of the first target device is smaller than a preset first threshold value or is the minimum value of the occupied resource values of each networking device in the networking system, and the device to be scheduled is a slave device of which the occupied resource value is larger than a preset second threshold value in each networking device in the networking system;
networking technology, that is, network building technology, can build different devices in the same network, and hereinafter, a networking system obtained by networking is referred to as a networking system, and each networking device is referred to as a networking device. The networking system may be a variety of systems such as internet of things networking, neural network networking, and the like, and is not limited herein. For example, WI-FI (WIreless-FIdelity) may be networked by WIreless bridging or easy Mesh, and bluetooth may be networked by Mesh, which is not limited herein.
The networking device connected to each networking device and connected to the network or the cloud is referred to as a master device (also referred to as a parent device or a gateway device) of the networking system. The master device may be configured in advance by a technician in the networking process, or may be obtained according to a networking structure or a networking mode in the networking process, and is not limited herein. Each networking device connected to the master device in the networking system is referred to as a slave device (also referred to as a sub-device), and it is understood that the master device and the slave device may be devices such as a personal computer, a smart phone, a server, and the like, which is not limited herein.
In the networking system, the amount of service data received by each networking device is different, and therefore, resources (hereinafter, referred to as computational resources for convenience of description) consumed by the networking devices for processing the service data are also different. The amount of service data received by part of networking equipment is small, and computing resources consumed by the networking equipment are small; and a part of networking equipment receives a large amount of service data, and the networking equipment consumes a large amount of computing resources, so that the networking equipment can overload and process the service data, and the computing resources of the networking equipment can be exhausted, thereby causing the networking system to be unstable.
In this embodiment, a data processing method is provided, in which a master device schedules service data of slave devices, so that each slave device can process the service data, and computing resources of each slave device are consumed in a balanced manner, thereby improving stability of a networking system.
Specifically, in this embodiment, the computation resource value used by each networking device is referred to as an occupied resource value. The method includes the steps that a threshold value (hereinafter referred to as a first threshold value for distinguishing) of an occupied resource value of networking equipment is preset, and when the occupied resource value of the networking equipment is smaller than the first threshold value, it is determined that computing resources of the networking equipment are less in consumption.
The method includes the steps of presetting a threshold value of an occupied resource value of networking equipment (hereinafter referred to as a second threshold value for indicating distinction), and determining that computing resources of the networking equipment are consumed more when the occupied resource value of the networking equipment is larger than the second threshold value.
In a specific embodiment, the first threshold and the second threshold may be determined according to the experience of a technician, or may be obtained through testing, and are not limited herein. In a specific embodiment, the values of the first threshold and the second threshold may be the same or different. Further, in an embodiment, in the process of operating the networking system, values of the first threshold and the second threshold may be adjusted according to actual requirements.
When receiving a scheduling request sent by a device to be scheduled, a master device determines a networking device for scheduling (hereinafter referred to as a first target device for distinction) from the networking devices. In a specific embodiment, the first target device may be a networking device that occupies a minimum resource value in the networking system, or may be any networking device that occupies a resource value smaller than a first threshold, which is not limited herein.
Step S20, sending the device information of the first target device to the device to be scheduled, so that the device to be scheduled sends the received first service data to the first target device according to the device information, so that the first target device sends the first processing result to the device to be scheduled after processing the first service data to obtain the first processing result.
And after the main equipment determines the first target equipment, the equipment information of the first target equipment is sent to the equipment to be scheduled.
After receiving the device information, the device to be scheduled sends the received service data (hereinafter referred to as first service data for distinction) to the first target device according to the device information. After receiving the first service data, the first target device processes the first service data to obtain a processing result (hereinafter referred to as a first processing result to indicate differentiation), and sends the first processing result to the device to be scheduled.
Specifically, in an embodiment, the device to be scheduled may send the scheduling request after receiving the first service data each time, the main device determines the first target device after receiving the scheduling request, and the device to be scheduled sends the first service data to the first target device, in other words, for each group of first service data received by the device to be scheduled, the main device determines one first target device correspondingly, and the first target devices corresponding to the first service data received by the device to be scheduled at different times may be the same or different; in another embodiment, the device to be scheduled may send a scheduling application to the master device after determining that the occupied resource value of the device to be scheduled is greater than the second threshold, the master device determines the first target device after receiving the scheduling request, and the device to be scheduled sends the first service data to the first target device. The setting can be specifically performed according to actual requirements, and is not limited herein.
Further, in a specific embodiment, when the device to be scheduled sends the scheduling application to the master device after determining that the occupied resource value of the device to be scheduled is greater than the second threshold, the scheduling device may resend the scheduling request to replace the first target device. In this embodiment, the device to be scheduled may send the scheduling request according to a certain period, or after acquiring the occupied resource value of the first target device, determine whether to send the scheduling request according to the occupied resource value of the first target device, so that the master device may determine the first target device again; or the master device may send an instruction to the device to be scheduled according to the resource value occupied by each networking device, and the scheduling device sends the scheduling request again after receiving the instruction, which is not limited herein.
Further, after receiving the first processing result, the device to be scheduled sends the first processing result to the service data end that sends the first service data.
In this embodiment, when a master device receives a scheduling request sent by a device to be scheduled, a first target device is determined from each networking device, where an occupied resource value of the first target device is smaller than a preset first threshold or is a minimum value of the occupied resource values of each networking device in a networking system, the device to be scheduled is a slave device whose occupied resource value is greater than a preset second threshold in each networking device of the networking system, the master device sends device information of the first target device to the device to be scheduled, the device to be scheduled sends received first service data to the first target device according to the device information, and the first target device processes the first service data to obtain a first processing result and then sends the first processing result to the device to be scheduled. According to the embodiment, the first service data received by the slave equipment with high computational resource consumption is sent to the first target equipment with low computational resource consumption for processing, so that the computational resources of each networking equipment are consumed in a balanced manner, the computational resources of the networking equipment are prevented from being exhausted, and the stability of the networking system is improved.
Further, based on the first embodiment, a second embodiment of the data processing method according to the present invention is provided, where in this embodiment, before the step S10, the method further includes:
step S30, calculating the occupied resource value of the master device, and acquiring the occupied resource value of the slave device;
in this embodiment, the master device obtains the occupied resource value of each networking device, so that the master device can determine the first target device.
Specifically, in this embodiment, the master device obtains the occupied resource value of the master device through calculation, and obtains the occupied resource value of each slave device.
In a specific embodiment, the occupied resource value of the slave device may be calculated by the slave device, and the master device obtains the calculation result; or after the master device obtains the relevant data for calculating the occupied resource value of the slave device, the master device calculates to obtain the occupied resource value of the slave device.
Specifically, in an embodiment, the master device may actively obtain related data that will calculate the occupied resource value or the occupied resource value of the slave device, for example, the master device may query the occupied resource value of the slave device according to a certain period; in another embodiment, the slave device may also send the data related to calculating the occupied resource value or the occupied resource value of the slave device, for example, when the slave device receives the first service data, the data for calculating the occupied resource value is sent to the master device, which is not limited herein.
Further, after acquiring the occupied resource value of each networking device, the master device records the occupied resource value of each networking device, and the specific form of the record is not limited.
Further, in an embodiment, after the master device obtains the occupied resource value of each networking device, the master device may record the occupied resource value of the networking device in a form of a queue. Further, in the specific embodiment, the occupied resource values in the queue may be arranged in a certain order, for example, the occupied resource values of the networking devices may be arranged from small to large.
After step S10, the method further includes:
step S40, adjusting the occupied resource value of the first target device to a maximum value among the occupied resource values of each networking device in the networking system.
In this embodiment, after the first target device is determined, based on the occupied resource value of each networking device recorded by the master device, the occupied resource value of the first target device is adjusted to the maximum value among the occupied resource values of each networking device in the networking system. When the main device carries out next scheduling, the first target device used for scheduling is determined according to the occupied resource value of each networking device recorded by the adjusted main device, the condition that the computing resources of the first target device are exhausted due to the fact that the first target device is selected for scheduling for multiple times is avoided, and therefore the stability of the computing system is improved.
Further, in an embodiment, the step of calculating the occupied resource value of the master device in step S30 includes:
step S301, obtaining an average time delay, a packet loss ratio, a signal strength value of the master device and a first weight group preset corresponding to a service type of the networking system;
in this embodiment, the occupied resource value of the main device may be calculated according to the communication link quality value, the memory utilization rate, the input/output utilization rate, and the processor resource utilization rate of the main device.
And obtaining the average time delay, the packet loss rate and the signal strength value of the main equipment. The average time delay is the average value of the time delay of the equipment accessing the network, and the packet loss rate is the ratio of the number of lost data packets in the data transmission process to the sent data. In a specific embodiment, the average time delay and the Packet loss rate may be obtained by a certain number of network packets of PING (Packet Internet Groper), and the signal strength value may be obtained by a measurement program test configured in the device, which is not described herein in detail.
A set of weights (hereinafter referred to as a first set of weights to indicate differentiation) for calculating a communication link quality value preset corresponding to a traffic type of the networking system is obtained. The first weight group includes three weights (hereinafter referred to as first weights for distinction), and each of the first weights corresponds to the average delay, the packet loss rate, and the signal strength value of the master device one to one.
In a specific embodiment, each first weight in the first weight group may be adjusted according to actual requirements. For example, when the networking system is a wired network domain, the weight corresponding to the signal strength value may be set to 0; when the networking system is a wireless network domain, different weights can be set correspondingly according to different service types, and no limitation is made here.
Step S302, performing weighted summation on the average delay, the packet loss rate, and the signal strength value by using each first weight value included in the first weight value group to obtain a communication link quality value of the master device;
and carrying out weighted summation on the average time delay, the packet loss rate and the signal strength value of the main equipment by using each first weight value contained in the first weight value group to obtain the communication link quality value of the main equipment.
It can be understood that, when the master device processes the same first service data, the larger the quality value of the communication link is, the worse the signal quality is; the smaller the communication link quality value, the better the signal quality.
Further, in the specific embodiment, since the order of magnitude difference between the packet loss rate value, the average delay value, and the signal strength value is large, the average delay value may be divided by 1000, and the signal strength value may be divided by 100 and then subjected to weighted summation processing, so that the obtained result of the quality value of the communication link is more accurate.
Step S303, acquiring the memory utilization rate, the input/output resource utilization rate, the processor resource utilization rate of the main device and a preset second weight group corresponding to the service type;
and acquiring the memory utilization rate, the input and output resource utilization rate and the processor resource utilization rate of the main equipment. Memory utilization is the ratio of the space already used by the memory in the device to the total space. Processor resource utilization is the ratio of used processor resources to total processor resources. The input and output resource utilization rate is the ratio of the resources used in the process of writing data into the device and outputting the data to the total resources. In a specific embodiment, the memory utilization rate, the input/output resource utilization rate, and the processor resource utilization rate may be obtained through a test of a measurement program configured in the main device, which is not described herein again.
And acquiring a weight group (hereinafter referred to as a second weight group to indicate distinction) corresponding to the service type and used for calculating an occupied resource value of the networking equipment, wherein the second weight group comprises four weights (hereinafter referred to as a second weight group to indicate distinction), and the second weights contained in the second weight group are respectively in one-to-one correspondence with the memory utilization rate, the input and output resource utilization rate, the processor resource utilization rate and the communication link quality value.
In a specific embodiment, the second weight sets corresponding to different service types are different, for example, when the networking system is used for processing the storage service, compared with the networking system that processes other service types, the second weight corresponding to the memory occupancy rate in the second weight set is higher, and the second weight corresponding to the communication link quality value is lower. Specifically, the setting may be performed according to actually processed services, and is not limited herein. Further, in an embodiment, in a working process of each networking device of the networking system, each second weight included in the second weight group may be adjusted according to actual requirements.
Step S304, performing a weighted summation on the memory utilization rate, the input/output resource utilization rate, the processor resource utilization rate, and the communication link quality value by using each second weight value included in the second weight value set, so as to obtain an occupied resource value of the master device.
Specifically, the occupied resource value of the master device is obtained by performing weighted summation processing on the memory utilization rate, the input/output resource utilization rate, the processor resource utilization rate and the communication link quality value by using each second weight value included in the second weight value group.
Further, in an embodiment, when the networking system is a wired network, at this time, the signal strength indication of the master device has a small influence on the transmission rate, and at this time, the weight corresponding to the signal strength indication may be adjusted to 0 or the signal strength value is not used for calculation. The setting can be specifically performed according to actual requirements, and is not limited herein.
In this embodiment, the master device obtains the occupied resource value of each networking device, so as to determine the first target device from each networking device. After the first target device is determined, the first device occupied resource value of the first target device is adjusted to the maximum value of the occupied resource values of all the networking devices, so that the first target device cannot be selected for scheduling when the main device performs scheduling next time, the phenomenon that computing resources of the first target device are exhausted due to the fact that the first target device is selected for processing first service data for multiple times is avoided, and the stability of a computing system is improved.
Further, based on the first embodiment, a third embodiment of the data processing method of the present invention is provided, in this embodiment, the data processing method further includes:
step S50, when determining that the occupied resource value of the master device is greater than the second threshold, determining a second target device from each networking device, wherein the occupied resource value of the second target device is the first threshold or the minimum value of the occupied resource values of each networking device in the networking system;
in this embodiment, when it is determined that the occupied resource value of the master device is greater than the second threshold, it is determined that the computational resource of the master device is consumed more, and at this time, the master device may schedule the received service data (hereinafter, referred to as second service data to indicate differentiation) to other networking devices, so that the computational resource of the master device is prevented from being exhausted due to the fact that the master device processes the service data in an overload manner, and thus the stability of the networking system is improved.
Specifically, in this embodiment, when it is determined that the occupied resource value of the master device is greater than the second threshold, the master device determines a networking device (hereinafter referred to as a second target device for distinction) for processing the second service data from each networking device. In a specific embodiment, the second target device may be a networking device that occupies a minimum resource value in the networking system, or may be any networking device that occupies a resource value smaller than the first threshold, which is not limited herein. Specifically, reference may be made to step S10 in the first embodiment, which is not described herein again.
Step S60, sending the received second service data to the second target device, so that the second target device processes the second service data to obtain a second processing result, and then sends the second processing result to the master device.
And after the second target equipment is determined, the main equipment sends the received second service data to the second target equipment. After receiving the second service data, the second target device processes the second service data to obtain a processing result (hereinafter referred to as a second processing result to indicate differentiation), and sends the second processing result to the master device.
Specifically, in an embodiment, the master device may determine the second target device after receiving the second service data, and in this embodiment, the master device may be the same as or different from the second target device corresponding to the received second service data; in another embodiment, the master device may also determine the second target device after determining that the resource occupied by the master device is greater than the second threshold, and in this embodiment, the corresponding first target devices may be the same for multiple sets of first service data received by the master device at different times. And are not particularly limited herein.
Further, in particular embodiments, the second target device may be replaced when the master device determines the second target device after determining that its occupied resource value is greater than the second threshold value. In this embodiment, the master device may re-determine the second target device according to a certain period; or determining whether the second target device needs to be re-determined according to the resource occupation value of each networking device, which is not limited herein.
Further, after receiving the second processing result, the master device sends the second processing result to a service data sending end that sends the second service data.
It should be noted that, when it is determined that the occupied resource value of the master device is greater than the second threshold, the master device determines the second target device from each networking device, and sends the received second data service to the second target device, so that the exhaustion of computational resources of the master device due to the fact that the master device processes service data in an overload manner can be avoided, and the stability of the networking system is improved.
Further, in an embodiment, before step S30, the method further includes:
step S70, detecting whether the occupied resource value of the main equipment is larger than the second threshold value;
in this embodiment, it is detected whether the occupied resource value of the master device is greater than the second threshold, so as to determine whether the master device needs to schedule the received second service data.
Step S80, when the occupied resource value of the main equipment is not larger than the second threshold value, processing the second service data;
and when the occupied resource value of the main equipment is determined to be not greater than the second threshold value, determining that the computational resource consumption of the main equipment is less, and processing the second service data by the main equipment at the moment. Further, the master device sends a processing result obtained by processing the second service data to a service data sending end for sending the second service data.
In a specific embodiment, when the occupied resource value of the master device is not greater than the second threshold, the second service data received by the master device may be service data sent by a device to be scheduled, or may be service data sent by a device outside the networking system, which is not limited herein.
Step S90, when it is determined that the occupied resource value of the master device is greater than the second threshold, executing the step of determining a second target device from each of the networking devices.
When it is determined that the occupied resource value of the master device is greater than the second threshold, it is determined that the computational resource consumption of the master device is high, at this time, the master device may determine a second target device from each networking device, and schedule the second service data to the second target device, and the specific scheduling process may refer to step S50 to step S60, which is not described herein again.
Further, in an embodiment, before the master device determines the second target device from the respective networking devices, the master device calculates occupied resource values of the master device, and obtains occupied resource values of the respective slave devices. And the main equipment records the occupied resource values of the equipment, and after the second target equipment is determined, the occupied resource values of the second target equipment are adjusted to the maximum value in the occupied resource values of the networking equipment. The main device carries out next scheduling according to the adjusted occupied resource values of the networking devices, so that the main device cannot select the second target device when carrying out next scheduling, exhaustion of computing resources of the second target device caused by the fact that the second target device is selected for processing the service data for multiple times is avoided, and stability of the computing system is improved. For a specific implementation, reference may be made to the second embodiment, which is not described herein.
Further, in an embodiment, referring to fig. 2, a specific process of data processing may be:
the master device calculates its own occupied resource value (i.e., the occupied resource value of the master device).
The master device periodically queries the occupied resource value of the slave device, and the specific process may be: the method comprises the steps that a master device end starts a service application program for inquiring occupied resource values, a slave device starts a client application program for the occupied resource values, the master device initiates a request for inquiring the occupied resource values to all slave devices on the network, the slave devices calculate the occupied resource values (namely the occupied resource values of the slave devices), the occupied resource values are sent to the master device through the client application program, after receiving the occupied resource values of all the slave devices, the master device sorts the occupied resource values of all the slave devices in a descending order, and the master device maintains a sorting queue of the occupied resource values. (i.e. the master device obtains the occupied resource value of the slave device, and maintaining a queue in which the occupied resource values of the networking devices are sorted in the order from small to large)
The master device sets the value of the resource occupied by node 2 to the maximum value. (i.e. the master device adjusts the occupied resource value of the second target device to the maximum value among the occupied resource values of the networking devices of the networking system)
When the master device receives the service data, if the occupied resource value of the master device exceeds the threshold value, the master device is overloaded, and the service data needs to be balanced to other networking devices for processing. And the master device selects the slave device 2 with the minimum value from the resource value occupied sequencing queue for scheduling. The master device adjusts the occupied resource value of the slave device 2 to the maximum value in the occupied resource value sorting queue. (i.e., when the occupied resource value of the master device is greater than the second threshold, the master device determines a second target device from the respective networking devices)
The slave device 2 receives the service data, processes the service data to obtain a service data processing result, and the slave device 2 sends the service data processing result to the master device. (namely, the second target device processes the received second service data to obtain a second service result and sends the second service result to the main device)
In this embodiment, when it is determined that the occupied resource value of the master device is greater than the second threshold, the master device determines a second target device from each networking device, and sends the second data service to the second target device, so that exhaustion of computational resources of the master device due to overload processing of service data by the master device is avoided, and stability of the networking system is improved.
Further, based on the first, second, and third embodiments, a fourth embodiment of the data processing method of the present invention is provided, in this embodiment, the data processing method is applied to any target slave device in each networking device of a networking system, where the target slave device may be a device such as a personal computer, a smart phone, and a server, and in this embodiment, the data processing method is not limited, and includes:
step A10, when determining that the occupied resource value of the target slave device is greater than a preset first threshold, sending a scheduling request to a master device in each networking device, so that after receiving the scheduling request, the master device determines a target device from each networking device and sends device information of the target device to the target slave device, wherein the occupied resource value of the target device is less than a preset second threshold or is the minimum value of the occupied resource values of each networking device in the networking system;
in this embodiment, a first threshold and a second threshold of an occupied resource value of a networking device are preset, and in a specific implementation, specific values of the first threshold and the second threshold may refer to step S10 in the first embodiment, which is not described herein again.
When the occupied resource value of the target slave device is greater than a preset first threshold value, it is determined that the computational resource consumption of the target slave device is high, and at this time, a scheduling request may be sent to the master device to request the master device to schedule service data (hereinafter, to be referred to as to-be-processed service data to indicate differentiation) received by the target slave device.
After receiving the scheduling request, the master device determines networking devices (hereinafter referred to as target devices for distinction) for processing the service data to be processed from each networking device, and the master device sends device information of the target devices to the devices to be scheduled. In a specific embodiment, the target device may be a networking device that occupies a minimum resource value in the networking system, or may be any networking device that occupies a resource value smaller than the second threshold, which is not limited herein. Specifically, reference may be made to step S10 in the first embodiment, which is not described herein again.
Step A20, when the device information is received, sending the received to-be-processed service data to the target device according to the device information, so that the target device processes the to-be-processed service data to obtain a service processing result, and then sending the service processing result to the target slave device.
And when the target slave equipment receives the equipment information sent by the master equipment, sending the service data to be processed to the target equipment according to the equipment information.
After receiving the service data to be processed, the target device processes the service data to be processed to obtain a processing result (hereinafter referred to as a service processing result for distinction). And the target equipment sends the service processing result to the target slave equipment.
In a specific embodiment, the target slave device may send the scheduling request after receiving the to-be-processed service data, or send the scheduling request after determining that the occupied resource value of the target slave device is greater than the first threshold, which may specifically refer to step S10 to step S20 in the first embodiment, and is not described herein again.
Further, after receiving the service processing result, the target slave device sends the service processing result to a service data sending end for sending the service data to be processed.
Further, in an embodiment, before step a10, the method further includes
Step A30, detecting whether the occupied resource value of the target slave device is greater than the first threshold value;
in this embodiment, whether the resource occupied value of the target slave device is greater than the first threshold is detected, and it is determined whether the scheduling request master device needs to be sent, so as to request the master device to schedule the to-be-processed service data.
Step A40, when determining that the occupied resource value of the target slave device is not greater than the first threshold value, processing the received to-be-processed service data;
and when the occupied resource value of the target slave equipment is determined to be not larger than the first threshold value and the power resource consumption of the target slave equipment is determined to be less, the target slave equipment processes the received to-be-processed service data. Further, the target slave device sends the result obtained by the processing to a service data sending end for sending the service data to be processed.
In a specific embodiment, when the occupied resource value of the target slave device is not greater than the first threshold, the to-be-processed service data received by the target slave device may be service data sent by a to-be-scheduled device (i.e., a networking device whose occupied resource value is greater than the second threshold), or may be service data sent by a device outside the networking system, which is not limited herein.
Step a50, when it is determined that the occupied resource value of the target slave device is greater than the first threshold, executing the step of sending the scheduling request to the master device in each networking device.
When the occupied resource value of the target slave device is determined to be larger than the second threshold, the computing resource consumption of the target slave device is determined to be high, and the target slave device can send a scheduling request to the master device at the moment. For a specific process, reference may be made to steps a10 to a20 in this embodiment, which are not described herein again.
Further, in an embodiment, before the step a30, the method further includes:
step A60, calculating the occupied resource value of the target slave device;
step A70, sending the occupied resource value of the target slave device to the master device.
The target slave device may send data for calculating the occupied resource value to the master device, and the master device calculates the occupied resource value of the target slave device according to the received data; or the target slave device calculates the occupied resource value of itself and sends the occupied resource value of the target slave device to the master device.
Specifically, in this embodiment, after the target slave device calculates its occupied resource value, the target slave device sends the occupied resource value of the target slave device to the master device.
In a specific embodiment, calculating the occupied resource value of the target slave device may be after receiving the pending service data; or according to a certain period; the occupied resource value of the target slave device may also be calculated after the master device performs inquiry, which is not particularly limited in this embodiment and may be set according to actual requirements. The specific calculation manner may refer to steps S301 to S304 in the second embodiment, which is not described herein.
In a specific embodiment, the sending of the occupied resource value of the target slave device to the master device may be sending the occupied resource value of the target slave device when the master device queries; or sending the occupied resource value of the target slave device to the master device after calculating the occupied resource value of the target slave device each time, which is not limited herein.
Further, in an embodiment, the target slave device may send data for calculating the occupied resource value to the master device for the master device to calculate the occupied resource value of the target slave device.
Specifically, in this embodiment, the target slave device acquires a first data group used for calculating the communication link quality value, where the first data group includes an average delay, a packet loss rate, and a signal strength value of the target slave device. Specifically, reference may be made to step S301 in the second embodiment, which is not described herein again.
The target slave device sends the first data group to the master device. And after receiving the first data group, the master device acquires a first weight group which is preset corresponding to the service type of the networking system and used for calculating the quality value of the communication link. The first weight group includes three weights (hereinafter referred to as first weights for distinction), and each of the first weights corresponds to the average delay, the packet loss rate, and the signal strength value one to one. And the master device performs weighted summation processing on each data (namely average time delay, packet loss rate and signal strength value) in the first data group by using each first weight contained in the first weight group to obtain the communication link quality value of the target slave device. Specifically, reference may be made to step S301 to step S302 in the second embodiment, which are not described herein again.
The target slave device obtains a second data group used for calculating the occupied resource value, where the second data group includes a memory utilization rate, an input/output resource utilization rate, and a processor resource utilization rate of the target slave device, and reference may be specifically made to step S303 in the second embodiment, which is not described herein again.
The target slave device transmits the second data group to the master device. And after receiving the second data group, the master device acquires a second weight group which is preset corresponding to the service type and used for calculating the occupied resource value, wherein the second weight group comprises four weights (hereinafter referred to as second weights for distinguishing), and each second weight corresponds to the memory utilization rate, the input and output resource utilization rate, the processor resource utilization rate and the communication link quality value one by one. And the master device uses each second weight value contained in the second weight value group to perform weighted summation processing on each data (namely memory utilization rate, input/output resource utilization rate and processor resource utilization rate) contained in the second data group and the communication link quality value to obtain the occupied resource value of the target slave device. The specific process may refer to steps S303 to S304 in the second embodiment, which are not described herein.
Further, in an embodiment, after the target slave device calculates its own occupied resource value, the target slave device sends the occupied resource value of the target slave device to the master device, and referring to fig. 3, a specific process of data processing may be:
the master device calculates its own occupied resource value (i.e., the occupied resource value of the master device).
The master device periodically queries the occupied resource value of the slave device, and the specific process may be: the method comprises the steps that a master device side starts a service application program for inquiring the occupied resource value, a slave device starts an occupied resource value client application program, the master device initiates a request for inquiring the occupied resource value to all slave devices on the network, the slave devices calculate the occupied resource value, and the occupied resource value is sent to the master device through the client application program. (i.e., the target slave calculates its own occupied resource value and sends the occupied resource value of the target slave to the master)
After receiving the occupied resource values of all the slave devices, the master device sorts the occupied resource values of all the slave devices in a descending order, and maintains the occupied resource value sorting queue. (i.e. the main device sorts the occupied resource values of the network devices in the order from small to large)
When the slave device 1 receives the service data, if the occupied resource value of the slave device 1 exceeds the threshold value, it indicates that the slave device 1 is overloaded, and the service data needs to be balanced to other networking devices for processing. The slave device 1 sends a scheduling request to the master device, and the master device selects the slave device 2 with the minimum value from the resource value occupied sequencing queue for scheduling. The master device adjusts the occupied resource value of the slave device 2 to the maximum value in the occupied resource value ordering queue. ( Namely, when the occupied resource value of the target slave device is greater than the first threshold value, the scheduling request is sent to the master device. The master device determines the target device from each networking device )
The master device sets the value of the resource occupied by node 2 to the maximum value. (i.e. the master device adjusts the occupied resource value of the target device to the maximum value among the occupied resource values of the networking devices of the networking system)
And the slave device 2 receives the service data, processes the service data to obtain a service data processing result, and sends the service data processing result to the slave device 1. (namely, the target device processes the received service data to be processed to obtain a service processing result and sends the service result to the target slave device)
In this embodiment, when it is determined that the occupied resource value of the target slave device is greater than the preset first threshold, the target slave device sends a scheduling request to the master device in each networking device, so that the master device determines the target device from each networking device after receiving the scheduling request, sends device information of the target device to the target slave device, and when the target slave device receives the device information, sends the received to-be-processed service data to the target device according to the device information, so that the target device processes the to-be-processed service data to obtain a service processing result, and sends the service processing result to the target slave device. The embodiment realizes that the to-be-processed service data received by the target slave equipment with high computational resource consumption is sent to the target equipment with low computational resource consumption for processing, so that the computational resources of each networking equipment are consumed in a balanced manner, thereby avoiding the exhaustion of the computational resources of the slave equipment and improving the stability of the networking system.
The present invention also provides a data processing apparatus, and referring to fig. 4, the data processing apparatus includes:
a determining module 10, configured to determine, when a scheduling request sent by a device to be scheduled is received, a first target device from each networking device, where an occupied resource value of the first target device is smaller than a preset first threshold or is a minimum value of the occupied resource values of each networking device in the networking system, and the device to be scheduled is a slave device whose occupied resource value is larger than a preset second threshold in each networking device in the networking system;
a sending module 20, configured to send device information of the first target device to the device to be scheduled, so that the device to be scheduled sends the received first service data to the first target device according to the device information, so that the first target device sends the first processing result to the device to be scheduled after processing the first service data to obtain a first processing result.
Further, the determining module 10 is further configured to:
when the occupied resource value of the master device is larger than the second threshold value, determining a second target device from each networking device, wherein the occupied resource value of the second target device is smaller than the first threshold value or is the minimum value of the occupied resource values of each networking device in the networking system;
the sending module 20 is further configured to send the received second service data to the second target device, so that the second target device processes the second service data to obtain a second processing result, and then sends the second processing result to the master device.
Further, the data processing apparatus further comprises a detection module, wherein the detection module is configured to:
detecting whether the occupied resource value of the master device is greater than the second threshold value;
the data processing device further comprises a processing module for
When the occupied resource value of the main equipment is determined to be not greater than the second threshold value, processing the second service data;
when it is determined that the occupied resource value of the master device is greater than the second threshold, the step of determining a second target device from each of the networking devices is performed.
Further, the data processing apparatus further comprises an obtaining module, where the obtaining module is configured to:
calculating the occupied resource value of the master equipment, and acquiring the occupied resource value of the slave equipment;
the data processing apparatus further comprises an adjustment module configured to:
and adjusting the occupied resource value of the first target device to be the maximum value of the occupied resource values of each networking device in the networking system.
Further, the obtaining module is further configured to:
acquiring the average time delay, the packet loss rate, the signal strength value and a preset first weight group corresponding to the service type of the networking system of the main equipment;
carrying out weighted summation processing on the average time delay, the packet loss rate and the signal strength value by using each first weight value contained in the first weight value group to obtain a communication link quality value of the main device;
acquiring the memory utilization rate, the input and output resource utilization rate, the processor resource utilization rate and a preset second weight group corresponding to the service type of the main equipment;
and performing weighted summation processing on the memory utilization rate, the input and output resource utilization rate, the processor resource utilization rate and the communication link quality value by using each second weight value contained in the second weight value group to obtain an occupied resource value of the main equipment.
Further, the determining module 10 is further configured to:
when the occupied resource value of the target slave device is determined to be larger than a preset first threshold value, sending a scheduling request to a master device in each networking device, so that the master device determines a target device from each networking device after receiving the scheduling request, and sends device information of the target device to the target slave device, wherein the occupied resource value of the target device is smaller than a preset second threshold value or is the minimum value of the occupied resource values of each networking device in the networking system;
the sending module 20 is further configured to:
when the device information is received, sending the received to-be-processed service data to the target device according to the device information, so that the target device processes the to-be-processed service data to obtain a service processing result, and then sending the service processing result to the target slave device.
Further, the detection module is further configured to:
detecting whether an occupied resource value of the target slave device is greater than the first threshold;
the processing module is further configured to:
when the occupied resource value of the target slave equipment is determined to be not greater than the first threshold value, processing the received to-be-processed service data;
and when the occupied resource value of the target slave equipment is determined to be larger than the first threshold value, executing the step of sending the scheduling request to the master equipment in each networking equipment.
Further, the obtaining module is further configured to:
calculating an occupied resource value of the target slave device;
the sending module 20 is further configured to:
and sending the occupied resource value of the target slave equipment to the master equipment.
For each embodiment of the data processing apparatus of the present invention, reference may be made to each embodiment of the data processing method of the present invention, and details are not described herein again.
An embodiment of the present invention provides a networking device, and referring to fig. 5, the networking device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not limiting to networking devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 5, the memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a data processing program.
In the networking device shown in fig. 5, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the networking device of the present invention may be disposed in the networking device, and the networking device calls the data processing program stored in the memory 1005 through the processor 1001 and executes the steps of the data processing method provided in the embodiment of the present invention.
The embodiments of the networking device of the present invention may refer to the embodiments of the data processing method of the present invention, and are not described herein again.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, on which a data processing program is stored, and the data processing program, when executed by a processor, implements the steps of the data processing method as described above.
For the embodiments of the computer-readable storage medium of the present invention, reference may be made to the embodiments of the data processing method of the present invention, and details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. A data processing method is characterized in that the data processing method is applied to a master device in each networking device of a networking system, and the data processing method comprises the following steps:
when a scheduling request sent by a device to be scheduled is received, determining a first target device from each networking device, wherein the occupied resource value of the first target device is smaller than a preset first threshold value or is the minimum value of the occupied resource values of each networking device in the networking system, and the device to be scheduled is a slave device of which the occupied resource value is larger than a preset second threshold value in each networking device in the networking system;
and sending the device information of the first target device to the device to be scheduled, so that the device to be scheduled sends the received first service data to the first target device according to the device information, and the first target device sends the first processing result to the device to be scheduled after processing the first service data to obtain a first processing result.
2. The data processing method of claim 1, wherein the data processing method further comprises:
when the occupied resource value of the master device is larger than the second threshold value, determining a second target device from each networking device, wherein the occupied resource value of the second target device is smaller than the first threshold value or is the minimum value of the occupied resource values of each networking device in the networking system;
and sending the received second service data to the second target equipment, so that the second target equipment processes the second service data to obtain a second processing result, and then sending the second processing result to the main equipment.
3. The data processing method of claim 2, wherein the step of determining the second target device from among the networking devices is preceded by the step of:
detecting whether the occupied resource value of the master device is greater than the second threshold value;
when the occupied resource value of the main equipment is determined to be not greater than the second threshold value, processing the second service data;
when it is determined that the occupied resource value of the master device is greater than the second threshold, the step of determining a second target device from each of the networking devices is performed.
4. The data processing method of claim 1, wherein said step of determining a first target device from among said networking devices is preceded by the step of:
calculating the occupied resource value of the master equipment, and acquiring the occupied resource value of the slave equipment;
after the step of determining the first target device from each of the networking devices, the method further includes:
and adjusting the occupied resource value of the first target device to be the maximum value of the occupied resource values of all the networking devices in the networking system.
5. The data processing method of claim 4, wherein the step of calculating the occupied resource value of the master device comprises:
acquiring the average time delay, the packet loss rate, the signal strength value and a first weight set preset corresponding to the service type of the networking system of the main device;
carrying out weighted summation processing on the average time delay, the packet loss rate and the signal strength value by using each first weight value contained in the first weight value group to obtain a communication link quality value of the main device;
acquiring the memory utilization rate, the input and output resource utilization rate, the processor resource utilization rate and a preset second weight group corresponding to the service type of the main equipment;
and performing weighted summation processing on the memory utilization rate, the input and output resource utilization rate, the processor resource utilization rate and the communication link quality value by using each second weight value contained in the second weight value group to obtain an occupied resource value of the main equipment.
6. A data processing method is characterized in that the data processing method is applied to any target slave device in each networking device of a networking system, and comprises the following steps:
when the occupied resource value of the target slave device is determined to be larger than a preset first threshold value, sending a scheduling request to a master device in each networking device, so that the master device determines a target device from each networking device after receiving the scheduling request, and sends device information of the target device to the target slave device, wherein the occupied resource value of the target device is smaller than a preset second threshold value or is the minimum value of the occupied resource values of each networking device in the networking system;
when the device information is received, sending the received to-be-processed service data to the target device according to the device information, so that the target device processes the to-be-processed service data to obtain a service processing result, and then sending the service processing result to the target slave device.
7. The data processing method of claim 6, wherein the step of sending a scheduling request to the master device in each of the networking devices is preceded by the step of:
detecting whether an occupied resource value of the target slave device is greater than the first threshold;
when the occupied resource value of the target slave equipment is determined to be not greater than the first threshold value, processing the received to-be-processed service data;
and when the occupied resource value of the target slave equipment is determined to be larger than the first threshold value, executing the step of sending the scheduling request to the master equipment in each networking equipment.
8. The data processing method of claim 6 or 7, wherein the step of sending a scheduling request to the master device in each of the networking devices is preceded by the step of:
calculating an occupied resource value of the target slave device;
and sending the occupied resource value of the target slave equipment to the master equipment.
9. A networking device, the networking device comprising: memory, a processor and a data processing program stored on the memory and executable on the processor, the data processing program being configured to implement the steps of the data processing method according to any of claims 1 to 8.
10. A computer-readable storage medium, characterized in that a data processing program is stored on the computer-readable storage medium, which data processing program, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 8.
CN202210812240.6A 2022-07-11 2022-07-11 Data processing method, networking equipment and computer readable storage medium Active CN115348322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210812240.6A CN115348322B (en) 2022-07-11 2022-07-11 Data processing method, networking equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210812240.6A CN115348322B (en) 2022-07-11 2022-07-11 Data processing method, networking equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115348322A true CN115348322A (en) 2022-11-15
CN115348322B CN115348322B (en) 2023-07-18

Family

ID=83948493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210812240.6A Active CN115348322B (en) 2022-07-11 2022-07-11 Data processing method, networking equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115348322B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101287279A (en) * 2007-04-12 2008-10-15 中兴通讯股份有限公司 VoIP scheduling group distributing method for wireless communication system
JP2013222221A (en) * 2012-04-12 2013-10-28 Hitachi Ltd Distributed data management system and data movement management method
WO2015062492A1 (en) * 2013-10-29 2015-05-07 华为技术有限公司 Service processing method, system and device
US20170180371A1 (en) * 2015-12-16 2017-06-22 Avaya Inc. Authorizing deployable resources based on personal information obtained from wearable devices
CN111221793A (en) * 2019-12-31 2020-06-02 新华网股份有限公司 Data mining method, platform, computer equipment and storage medium
CN111522652A (en) * 2013-08-13 2020-08-11 英特尔公司 Power balancing for increased load density and improved energy efficiency
CN111954199A (en) * 2020-08-20 2020-11-17 深圳传音控股股份有限公司 Wireless network access method, mobile terminal and readable storage medium
CN113822485A (en) * 2021-09-27 2021-12-21 国网山东省电力公司泗水县供电公司 Power distribution network scheduling task optimization method and system
CN114364042A (en) * 2022-03-17 2022-04-15 北京国电通网络技术有限公司 Communication resource scheduling method, device, electronic equipment and computer readable medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101287279A (en) * 2007-04-12 2008-10-15 中兴通讯股份有限公司 VoIP scheduling group distributing method for wireless communication system
JP2013222221A (en) * 2012-04-12 2013-10-28 Hitachi Ltd Distributed data management system and data movement management method
CN111522652A (en) * 2013-08-13 2020-08-11 英特尔公司 Power balancing for increased load density and improved energy efficiency
WO2015062492A1 (en) * 2013-10-29 2015-05-07 华为技术有限公司 Service processing method, system and device
US20170180371A1 (en) * 2015-12-16 2017-06-22 Avaya Inc. Authorizing deployable resources based on personal information obtained from wearable devices
CN111221793A (en) * 2019-12-31 2020-06-02 新华网股份有限公司 Data mining method, platform, computer equipment and storage medium
CN111954199A (en) * 2020-08-20 2020-11-17 深圳传音控股股份有限公司 Wireless network access method, mobile terminal and readable storage medium
CN113822485A (en) * 2021-09-27 2021-12-21 国网山东省电力公司泗水县供电公司 Power distribution network scheduling task optimization method and system
CN114364042A (en) * 2022-03-17 2022-04-15 北京国电通网络技术有限公司 Communication resource scheduling method, device, electronic equipment and computer readable medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
RONGBO LIANG ET.AL: "Smart grid scheduling and control based on master–slave game", 《SYSTEMS SCIENCE & CONTROL ENGINEERING 》, pages 162 - 168 *
S. SAHNI: "Scheduling master-slave multiprocessor systems", 《IEEE TRANSACTIONS ON COMPUTERS》, vol. 45, no. 10, XP000635543, DOI: 10.1109/12.543712 *
褚豆豆: "高精度时钟同步分布式测振系统设计与实现", 《中国优秀硕士学位论文全文数据库》, no. 01 *

Also Published As

Publication number Publication date
CN115348322B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN109032801B (en) Request scheduling method, system, electronic equipment and storage medium
US6813244B1 (en) Available bandwidth measurement with variable speed probing and zoom-in/zoom-out technique
US20150222515A1 (en) Management and orchestration server
CN112311628B (en) Network speed measuring method, system, network equipment and storage medium
CN103401665B (en) The optimization method and device of retransmission timeout timer in cluster storage system
CN108667882B (en) Load balancing method and device based on dynamic weight adjustment and electronic equipment
EP3200546A1 (en) Carrier resource processing method and device for unlicensed carriers, and transmission node
WO2023115829A1 (en) Edge computing resource allocation method, apparatus and device, and storage medium
CN110061924B (en) Message forwarding method and device and related product
CN111865817A (en) Load balancing control method, device and equipment for remote measuring collector and storage medium
CN111966556A (en) Performance pressure measurement method and device, server and computer readable storage medium
CN114302429A (en) NWDAF network element determination method, device, equipment and storage medium
CN112311585A (en) Method and device for selecting management node, equipment and storage medium thereof
JP4411296B2 (en) Request restriction device, server device, request restriction method, request restriction program
CN115348322B (en) Data processing method, networking equipment and computer readable storage medium
CN110995802A (en) Task processing method and device, storage medium and electronic device
US10104571B1 (en) System for distributing data using a designated device
CN115842828A (en) Gateway load balancing control method, device, equipment and readable storage medium
CN114612037A (en) Warehouse information management method and system
CN113630327A (en) Flow control method and device, electronic equipment and computer readable medium
CN113971118A (en) Performance test method, device, equipment and computer readable storage medium
CN113867946A (en) Method, device, storage medium and electronic equipment for accessing resources
CN113055305A (en) Message processing method and device
JP6554011B2 (en) Timeout time setting device and timeout time setting method
CN112911643A (en) Load balancing method, device, storage medium and network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant