CN104426798A - Data processing method and electronic device - Google Patents
Data processing method and electronic device Download PDFInfo
- Publication number
- CN104426798A CN104426798A CN201310392117.4A CN201310392117A CN104426798A CN 104426798 A CN104426798 A CN 104426798A CN 201310392117 A CN201310392117 A CN 201310392117A CN 104426798 A CN104426798 A CN 104426798A
- Authority
- CN
- China
- Prior art keywords
- data communication
- terminal
- communication request
- request information
- electronic device
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 37
- 230000006854 communication Effects 0.000 claims abstract description 340
- 238000004891 communication Methods 0.000 claims abstract description 339
- 238000000034 method Methods 0.000 claims abstract description 24
- 230000005540 biological transmission Effects 0.000 description 27
- 230000006870 function Effects 0.000 description 18
- 108010001267 Protein Subunits Proteins 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 239000002699 waste material Substances 0.000 description 5
- 238000013486 operation strategy Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a data processing method, which is applied to an electronic device which is in data communication with at least one terminal. The method comprises the steps of setting a data communication threshold of each terminal, wherein the threshold is the minimum communication bandwidth allocated to each terminal; when the electronic device receives a data communication request transmitted by the at least one terminal, comparing the information of the data communication request with the corresponding threshold, and executing the operation of the data communication request according to the comparison result. The invention further discloses an electronic device. By adopting the technical scheme provided by the invention, on one hand, data bandwidth resources in the electronic device are fully utilized and are not wasted, and on the other hand, the minimum bandwidth demands of users are guaranteed, the data communication quality of the users is guaranteed and the user experience is greatly improved.
Description
Technical Field
The present invention relates to data processing technologies, and in particular, to a data processing method and an electronic device.
Background
In the data communication process between the electronic device and a plurality of terminals, usually only the maximum bandwidth corresponding to each terminal for data transmission is set, but in the actual data transmission process, the data transmission corresponding to each terminal often does not reach the maximum bandwidth, so that the data bandwidth resources are not fully utilized, and the data bandwidth resources are seriously wasted.
Disclosure of Invention
In view of the above, the present invention provides a data processing method and an electronic device, which can not only fully utilize data bandwidth resources in the electronic device, but also ensure the minimum bandwidth requirement of a user, and improve the user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a data processing method is applied to electronic equipment, and the electronic equipment is in data communication with at least one terminal; characterized in that the method comprises: setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal; when the electronic equipment receives a data communication request sent by at least one terminal, comparing the data communication request information of the at least one terminal with the threshold corresponding to the terminal, and executing the operation of the data communication request according to the comparison result.
According to the data processing method and the electronic equipment provided by the embodiment of the invention, the threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives a data communication request sent by at least one terminal, the data communication request information is compared with a corresponding threshold value, and the operation of the data communication request is executed according to the comparison result. By adopting the technical scheme of the embodiment of the invention, on one hand, the full utilization of data bandwidth resources in the electronic equipment is met without waste, and on the other hand, the minimum bandwidth requirement of a user is ensured, so that the data communication quality of the user is ensured, and the user experience is greatly improved.
Drawings
Fig. 1 is a schematic flow chart of a data processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data processing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a data processing method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating a data processing method according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart illustrating a data processing method according to a fifth embodiment of the present invention;
FIG. 6 is a flowchart illustrating a data processing method according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a first embodiment of the invention;
fig. 8 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The data processing method provided by the embodiment of the invention is applied to electronic equipment, wherein the electronic equipment is in data communication with at least one terminal; fig. 1 is a schematic flow chart of a data processing method according to a first embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101: setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal.
In this embodiment, the terminal may be a virtual machine, where the virtual machine may include at least one virtual block device, and the virtual block device may be a virtual block device in the form of a block device, or a virtual block device in the form of an image file; for each virtual machine, the electronic device has a set of data transmission parameters communicated with each virtual machine, including current data transmission rate, read-write operation times per second, used bandwidth and the like, and is used for representing the data transmission quality of the electronic device and the corresponding virtual machine; the threshold is the lowest data communication bandwidth allocated to each terminal by the electronic device, so that the lowest communication requirement of the terminal can be ensured.
For example, the bandwidth of data communication of the electronic device is 100M, the electronic device performs data communication with three virtual machines, and the lowest data communication bandwidth corresponding to each virtual machine is set in the electronic device, for example, the lowest data communication bandwidth of the first virtual machine is 10M, the lowest data communication bandwidth of the second virtual machine is 20M, and the lowest data communication bandwidth of the third virtual machine is 30M, so that the lowest data communication bandwidth of each virtual machine can be ensured, and when a certain virtual machine suddenly increases due to an unexpected event data transmission amount, the electronic device can ensure that the data communication bandwidths of other virtual machines are not affected, and ensure the data communication quality of the electronic device.
Step 102: when the electronic equipment receives a data communication request sent by at least one terminal, the data communication request information is compared with a corresponding threshold value, and the operation of the data communication request is executed according to the comparison result.
In this embodiment, the data communication request information is a data communication bandwidth used by the electronic device for data communication with the terminal; the threshold is the lowest data communication bandwidth allocated to each terminal; and comparing the used data communication bandwidth and the lowest data communication bandwidth of each terminal to obtain a comparison result, and executing a preset operation strategy according to the comparison result.
Wherein the preset operation policy comprises: when the data communication request information is less than or equal to the corresponding threshold value, immediately processing the data communication request; when the data communication request information is larger than the corresponding threshold value, obtaining a comparison result between the data communication request information of other terminals except the at least one terminal and the corresponding threshold value, and adding the data communication request into a buffer queue when the data communication request information of the terminals except the at least one terminal is determined to be smaller than or equal to the corresponding threshold value; and when determining that the data communication request information of all the terminals except the at least one terminal is larger than the corresponding threshold value, immediately processing the data communication request of the terminal.
According to the data processing method provided by the embodiment of the invention, the threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives a data communication request sent by a terminal, comparing the data communication request information of the terminal with a corresponding threshold value, and executing the operation of the data communication request according to a comparison result, so that on one hand, the full utilization of data bandwidth resources in the electronic equipment is met without waste, on the other hand, the minimum bandwidth requirement of a user is ensured, the data communication quality of the user is ensured, and the user experience is greatly improved.
Fig. 2 is a schematic flowchart of a data processing method according to a second embodiment of the present invention, where the data processing method in this embodiment is applied to an electronic device, and the electronic device is in data communication with at least one terminal; as shown in fig. 2, the method comprises the following steps:
step 201: setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal;
in this embodiment, the terminal may be a virtual machine, where the virtual machine may include at least one virtual block device, and the virtual block device may be a virtual block device in the form of a block device, or a virtual block device in the form of an image file; for each virtual machine, the electronic device has a set of data transmission parameters communicated with each virtual machine, including current data transmission rate, read-write operation times per second, used bandwidth and the like, and is used for representing the data transmission quality of the electronic device and the corresponding virtual machine; the threshold is the lowest data communication bandwidth allocated to each terminal by the electronic device, so that the lowest data communication bandwidth of each virtual machine can be ensured, when the data transmission amount of a certain virtual machine is increased sharply due to an emergency event, the electronic device can ensure that the data communication bandwidth of other virtual machines is not affected, and the data communication quality of the electronic device is ensured.
Step 202: when receiving a data communication request sent by at least one terminal, the electronic equipment compares the data communication request information with a corresponding threshold value, and immediately processes the data communication request when the comparison result shows that the data communication request information is less than or equal to the corresponding threshold value.
In this embodiment, the data communication request information is a data communication bandwidth used by the electronic device for performing data communication with each terminal; the threshold is the lowest data communication bandwidth allocated to each terminal. And when the comparison result is that the data communication request information of the at least one terminal is less than or equal to the corresponding threshold value, immediately processing the data communication request according to the preset operation strategy in the step 102 so as to meet the requirement that the data bandwidth resource in the electronic equipment is fully utilized.
According to the data processing method provided by the embodiment of the invention, the threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives a data communication request sent by a terminal, comparing the data communication request information of the terminal with a corresponding threshold value, and when the comparison result is that the data communication request information is less than or equal to the corresponding threshold value, immediately processing the data communication request.
Fig. 3 is a schematic flowchart of a data processing method according to a third embodiment of the present invention, where the data processing method in this embodiment is applied to an electronic device, and the electronic device is in data communication with at least one terminal; as shown in fig. 3, the method comprises the following steps:
step 301: setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal.
In this embodiment, the terminal may be a virtual machine, where the virtual machine may include at least one virtual block device, and the virtual block device may be a virtual block device in the form of a block device, or a virtual block device in the form of an image file; for each virtual machine, the electronic device has a set of data transmission parameters communicated with each virtual machine, including current data transmission rate, read-write operation times per second, used bandwidth and the like, and is used for representing the data transmission quality of the electronic device and the corresponding virtual machine; the threshold is the lowest data communication bandwidth allocated to each terminal by the electronic device, so that the lowest data communication bandwidth of each virtual machine can be ensured, when the data transmission amount of a certain virtual machine is increased sharply due to an emergency event, the electronic device can ensure that the data communication bandwidth of other virtual machines is not affected, and the data communication quality of the electronic device is ensured.
Step 302: when the electronic equipment receives a data communication request sent by at least one terminal, comparing the data communication request information with a corresponding threshold value, and when the comparison result is that the data communication request information is greater than the corresponding threshold value, acquiring the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value.
In this embodiment, the data communication request information is a data communication bandwidth used by the electronic device for performing data communication with each terminal; the threshold is the lowest data communication bandwidth allocated to each terminal. When the comparison result is that the data communication request information is greater than the corresponding threshold, the comparison result between the data communication request information of the terminal other than the terminal and the corresponding threshold is obtained according to the preset operation policy in step 102, and the corresponding policy is executed according to the comparison result between the data communication request information of the terminal other than the terminal and the corresponding threshold.
Step 303: and when determining that the data communication request information of the terminals except the at least one terminal is smaller than or equal to the corresponding threshold value, adding the data communication request into a buffer queue.
In this embodiment, when the comparison result of the at least one terminal is that the data communication request information is greater than the corresponding threshold, the electronic device determines the comparison result of the other terminals except the at least one terminal, and determines that the data communication request information of the other terminals is less than or equal to the corresponding threshold, that is, the other terminals do not reach the corresponding lowest communication bandwidth, and adds the data communication request of the at least one terminal to respective buffer queues.
According to the data processing method provided by the embodiment of the invention, the threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives a data communication request sent by a terminal, comparing the data communication request information of the terminal with a corresponding threshold value, and when the comparison result is that the data communication request information is smaller than or equal to the corresponding threshold value, obtaining the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value, and determining that the data communication request information of the terminals except the terminal is smaller than or equal to the corresponding threshold value, adding the data communication request into a buffer queue.
Fig. 4 is a schematic flowchart of a data processing method according to a fourth embodiment of the present invention, where the data processing method in this embodiment is applied to an electronic device, and the electronic device is in data communication with at least one terminal; as shown in fig. 4, the method comprises the following steps:
step 401: setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal;
in this embodiment, the terminal may be a virtual machine, where the virtual machine may include at least one virtual block device, and the virtual block device may be a virtual block device in the form of a block device, or a virtual block device in the form of an image file; for each virtual machine, the electronic device has a set of data transmission parameters communicated with each virtual machine, including current data transmission rate, read-write operation times per second, used bandwidth and the like, and is used for representing the data transmission quality of the electronic device and the corresponding virtual machine; the threshold is the lowest data communication bandwidth allocated to each terminal by the electronic device, so that the lowest data communication bandwidth of each virtual machine can be ensured, when the data transmission amount of a certain virtual machine is increased sharply due to an emergency event, the electronic device can ensure that the data communication bandwidth of other virtual machines is not affected, and the data communication quality of the electronic device is ensured.
Step 402: when the electronic equipment receives a data communication request sent by at least one terminal, comparing the data communication request information with a corresponding threshold value, and when the comparison result is that the data communication request information is greater than the corresponding threshold value, acquiring the comparison result of the data communication request information of the terminals except the at least one terminal and the corresponding threshold value.
In this embodiment, the data communication request information is a data communication bandwidth used by the electronic device for performing data communication with each terminal; the threshold is the lowest data communication bandwidth allocated to each terminal. And when the comparison result is that the data communication request information of the terminal is greater than the corresponding threshold value, acquiring the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value according to the preset operation strategy in the step 102, and executing the corresponding strategy according to the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value.
Step 403: and when determining that the data communication request information of all the terminals except the at least one terminal is larger than the corresponding threshold value, immediately processing the data communication request of the terminal.
In this embodiment, when the comparison result of the at least one terminal is that the data communication request information is greater than the corresponding threshold, the electronic device determines the comparison result of the other terminals except the at least one terminal, and determines that the data communication request information of the other terminals is greater than the corresponding threshold, that is, when the other terminals all reach the corresponding lowest communication bandwidth, the electronic device immediately processes the data communication request of the terminal.
According to the data processing method provided by the embodiment of the invention, the threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives a data communication request sent by a terminal, comparing the data communication request information of the terminal with a corresponding threshold value, and when the comparison result is that the data communication request information is smaller than or equal to the corresponding threshold value, obtaining the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value, and determining that the data communication request information of all the terminals except the terminal is larger than the corresponding threshold value, the electronic equipment immediately processes the data communication request of the terminal.
Fig. 5 is a schematic flowchart of a data processing method according to a fifth embodiment of the present invention, where the data processing method in this embodiment is applied to an electronic device, and the electronic device is in data communication with at least one terminal; as shown in fig. 5, the method comprises the following steps:
step 501: setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal.
In this embodiment, the terminal may be a virtual machine, where the virtual machine may include at least one virtual block device, and the virtual block device may be a virtual block device in the form of a block device, or a virtual block device in the form of an image file; for each virtual machine, the electronic device has a set of data transmission parameters communicated with each virtual machine, including current data transmission rate, read-write operation times per second, used bandwidth and the like, and is used for representing the data transmission quality of the electronic device and the corresponding virtual machine; the threshold is the lowest data communication bandwidth allocated to each terminal by the electronic device, so that the lowest data communication bandwidth of each virtual machine can be ensured, when the data transmission amount of a certain virtual machine is increased sharply due to an emergency event, the electronic device can ensure that the data communication bandwidth of other virtual machines is not affected, and the data communication quality of the electronic device is ensured.
Step 502: a timer is set for data communication of each terminal.
Step 503: when the electronic equipment receives a data communication request sent by at least one terminal, comparing the data communication request information with a corresponding threshold value, and when the comparison result is that the data communication request information is greater than the corresponding threshold value, acquiring the comparison result of the data communication request information of the terminals except the at least one terminal and the corresponding threshold value.
In this embodiment, the data communication request information is a data communication bandwidth used by the electronic device for performing data communication with each terminal; the threshold is the lowest data communication bandwidth allocated to each terminal. And when the comparison result is that the data communication request information of the terminal is greater than the corresponding threshold value, acquiring the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value according to the preset operation strategy in the step 102, and executing the corresponding strategy according to the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value.
Step 504: and when determining that the data communication request information of the terminals except the at least one terminal is smaller than or equal to the corresponding threshold value, adding the data communication request into a buffer queue, and starting a timer corresponding to the terminal.
Step 505: and after the timer is overtime, the data communication request information of the terminal is compared with the corresponding threshold value again, and the operation of the data communication request is executed according to the comparison result.
In this embodiment, after the timer expires, the electronic device compares the data communication request information of the at least one terminal with the corresponding threshold again to obtain a comparison result, and executes the preset operation policy in step 102 according to the comparison result.
According to the data processing method provided by the embodiment of the invention, the threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; setting a timer corresponding to the data communication of each terminal; when the electronic equipment receives a data communication request sent by a terminal, comparing the data communication request information of the terminal with a corresponding threshold value, when the comparison result is that the data communication request information is less than or equal to the corresponding threshold value, obtaining the comparison result of the data communication request information of the terminals except the terminal and the corresponding threshold value, adding the data communication request into a buffer queue and starting a timer when the data communication request information of the terminals except the terminal is determined to be less than or equal to the corresponding threshold value, after the timer is overtime, re-comparing the data communication request information of the terminal with the corresponding threshold value, and executing the operation of the data communication request according to the comparison result, so that the full utilization of data bandwidth resources in the electronic equipment is met without waste on one hand, and the minimum bandwidth requirement of a user is ensured on the other hand, the data communication quality of the user is guaranteed, and the user experience is greatly improved.
Fig. 6 is a schematic flowchart of a data processing method according to a sixth embodiment of the present invention, where the data processing method in this embodiment is applied to an electronic device, and the electronic device is in data communication with at least one terminal; as shown in fig. 6, the method comprises the following steps:
step 601: setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal.
In this embodiment, the terminal may be a virtual machine, where the virtual machine may include at least one virtual block device, and the virtual block device may be a virtual block device in the form of a block device, or a virtual block device in the form of an image file; for each virtual machine, the electronic device has a set of data transmission parameters communicated with each virtual machine, including current data transmission rate, read-write operation times per second, used bandwidth and the like, and is used for representing the data transmission quality of the electronic device and the corresponding virtual machine; the threshold is the lowest data communication bandwidth allocated to each terminal by the electronic device, so that the lowest data communication bandwidth of each virtual machine can be ensured, when the data transmission amount of a certain virtual machine is increased sharply due to an emergency event, the electronic device can ensure that the data communication bandwidth of other virtual machines is not affected, and the data communication quality of the electronic device is ensured.
Step 602: the electronic equipment receives a data communication request sent by at least one terminal.
Step 603: and comparing the data communication request information of the at least one terminal with the corresponding threshold value, and distributing the residual data communication resources to the at least one terminal according to a preset rule when the comparison result shows that the data communication request information of all the terminals is greater than the corresponding threshold value.
In this embodiment, the data communication request information is a data communication bandwidth used by the electronic device for performing data communication with each terminal; the threshold is the lowest data communication bandwidth allocated to each terminal. When the comparison result shows that the data communication request information of all the terminals is larger than the corresponding threshold value, namely the used data communication bandwidth of all the terminals reaches the corresponding lowest data communication bandwidth, distributing the residual data communication resources to the at least one terminal according to a preset rule; the preset rule may be that the remaining data communication resources are allocated to the first terminals with priority ranking according to a priority rule of data service, or the remaining data communication resources are allocated to the first terminals sending the data communication requests according to a time sequence rule of the received data communication requests, and so on.
In the technical scheme provided by the embodiment of the invention, a threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives a data communication request sent by at least one terminal, comparing the data communication request information of the at least one terminal with a corresponding threshold value, and when the comparison result shows that the data communication request information of all the terminals is greater than the corresponding threshold value, acquiring the residual data communication resources of the electronic equipment, and distributing the residual data communication resources to the at least one terminal according to a preset rule.
The embodiment of the invention describes electronic equipment, wherein the electronic equipment is in data communication with at least one terminal; fig. 7 is a schematic structural diagram of an electronic device according to a first embodiment of the present invention, and as shown in fig. 7, the electronic device includes: a setting unit 71, a receiving unit 72, and a first processing unit 73; wherein,
the setting unit 71 is configured to set a threshold value for each terminal data communication; the threshold is the lowest communication bandwidth allocated to each terminal;
the receiving unit 72 is configured to receive a data communication request sent by at least one terminal;
the first processing unit 73 is configured to compare the data communication request information of the at least one terminal with a corresponding threshold to obtain a comparison result, and execute an operation on the data communication request according to the comparison result.
In the present embodiment, the setting unit 71 includes at least one setting subunit;
the setting unit allocates a corresponding setting subunit to the at least one terminal;
the setting subunit sets and stores the threshold value of the terminal corresponding to the setting subunit.
For example, if the electronic device performs data communication with three terminals, the setting unit includes at least three setting sub-units, which are used to set and store the lowest data bandwidths of the corresponding terminals respectively; the setting subunits correspond to the terminals one by one.
The setting subunit acquires data communication request information of a terminal corresponding to the setting subunit in real time and stores the data communication request information.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
An electronic device according to a second embodiment of the present invention is an electronic device that communicates with at least one terminal, and a configuration of the electronic device according to the second embodiment of the present invention is shown in fig. 7, where the electronic device includes: a setting unit 71, a receiving unit 72, and a first processing unit 73; wherein,
the setting unit 71 is configured to set a threshold value for each terminal data communication; the threshold is the lowest communication bandwidth allocated to each terminal;
the receiving unit 72 is configured to receive a data communication request sent by at least one terminal;
the first processing unit 73 is configured to compare the data communication request information of the at least one terminal with a corresponding threshold to obtain a comparison result, and immediately process the data communication request when the comparison result indicates that the data communication request information is smaller than or equal to the corresponding threshold.
In the present embodiment, the setting unit 71 includes at least one setting subunit;
the setting unit allocates a corresponding setting subunit to the at least one terminal;
the setting subunit sets and stores the threshold value of the terminal corresponding to the setting subunit.
For example, if the electronic device performs data communication with three terminals, the setting unit includes at least three setting sub-units, which are used to set and store the lowest data bandwidths of the corresponding terminals respectively; the setting subunits correspond to the terminals one by one.
The setting subunit acquires data communication request information of a terminal corresponding to the setting subunit in real time and stores the data communication request information.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
The embodiment of the invention also discloses electronic equipment, which is in data communication with at least one terminal; fig. 8 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention, and as shown in fig. 8, the electronic device includes: a setting unit 71, a receiving unit 72, a first processing unit 73, and a judging unit 74; wherein,
the setting unit 71 is configured to set a threshold value for each terminal data communication; the threshold is the lowest communication bandwidth allocated to each terminal;
the receiving unit 72 is configured to receive a data communication request sent by at least one terminal;
the first processing unit 73 is configured to compare the data communication request information of the at least one terminal with a corresponding threshold to obtain a comparison result, and add the data communication request to the buffer queue when the comparison result indicates that the data communication request information is greater than the corresponding threshold, and the determination result of the determining unit 74 indicates that the data communication request information of the terminals other than the at least one terminal is less than or equal to the corresponding threshold.
The judging unit 74 is configured to obtain a comparison result between the data communication request information of the terminal other than the at least one terminal and the corresponding threshold, and judge whether the data communication request information of the terminal other than the at least one terminal is equal to or less than the corresponding threshold.
In the present embodiment, the setting unit 71 includes at least one setting subunit;
the setting unit allocates a corresponding setting subunit to the at least one terminal;
the setting subunit sets and stores the threshold value of the terminal corresponding to the setting subunit.
For example, if the electronic device performs data communication with three terminals, the setting unit includes at least three setting sub-units, which are used to set and store the lowest data bandwidths of the corresponding terminals respectively; the setting subunits correspond to the terminals one by one.
The setting subunit acquires data communication request information of a terminal corresponding to the setting subunit in real time and stores the data communication request information.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
A fourth embodiment of the present invention describes an electronic device, where the electronic device is in data communication with at least one terminal, and a composition structure of the electronic device of the fourth embodiment of the present invention is shown in fig. 8, where the electronic device includes: a setting unit 71, a receiving unit 72, a first processing unit 73, and a judging unit 74; wherein,
the setting unit 71 is configured to set a threshold value for each terminal data communication; the threshold is the lowest communication bandwidth allocated to each terminal;
the receiving unit 72 is configured to receive a data communication request sent by at least one terminal;
the first processing unit 73 is configured to compare the data communication request information of the at least one terminal with a corresponding threshold to obtain a comparison result, and when the comparison result indicates that the data communication request information is greater than the corresponding threshold, and the determination result of the determining unit 74 indicates that the data communication request information of all terminals other than the at least one terminal is greater than the corresponding threshold, immediately process the data communication request.
The judging unit 74 is configured to obtain a comparison result between the data communication request information of the terminal other than the at least one terminal and the corresponding threshold, and judge whether the data communication request information of the terminal other than the at least one terminal is equal to or less than the corresponding threshold.
In the present embodiment, the setting unit 71 includes at least one setting subunit;
the setting unit allocates a corresponding setting subunit to the at least one terminal;
the setting subunit sets and stores the threshold value of the terminal corresponding to the setting subunit.
For example, if the electronic device performs data communication with three terminals, the setting unit includes at least three setting sub-units, which are used to set and store the lowest data bandwidths of the corresponding terminals respectively; the setting subunits correspond to the terminals one by one.
The setting subunit acquires data communication request information of a terminal corresponding to the setting subunit in real time and stores the data communication request information.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
The embodiment of the invention also discloses electronic equipment, which is in data communication with at least one terminal; fig. 9 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention, and as shown in fig. 9, the electronic device includes: a setting unit 71, a receiving unit 72, a first processing unit 73, a judging unit 74, and a timer 75; wherein,
the setting unit 71 is configured to set a threshold value for each terminal data communication; the threshold is the lowest communication bandwidth allocated to each terminal;
the timer 75 is used for setting time;
the receiving unit 72 is configured to receive a data communication request sent by at least one terminal;
the first processing unit 73 is configured to compare the data communication request information of the at least one terminal with a corresponding threshold to obtain a comparison result, and when the comparison result is that the data communication request information is greater than the corresponding threshold, and the determination result of the determining unit 74 is that the data communication request information of the terminals other than the at least one terminal is smaller than or equal to the corresponding threshold, add the data communication request to a buffer queue and trigger to start a timer; and the timer is also used for comparing the data communication request information of the terminal with the corresponding threshold value again after the timer is overtime, and executing the operation of the data communication request according to the comparison result.
The judging unit 74 is configured to obtain a comparison result between the data communication request information of the terminal other than the at least one terminal and the corresponding threshold, and judge whether the data communication request information of the terminal other than the at least one terminal is equal to or less than the corresponding threshold.
In the present embodiment, the setting unit 71 includes at least one setting subunit;
the setting unit allocates a corresponding setting subunit to the at least one terminal;
the setting subunit sets and stores the threshold value of the terminal corresponding to the setting subunit.
For example, if the electronic device performs data communication with three terminals, the setting unit includes at least three setting sub-units, which are used to set and store the lowest data bandwidths of the corresponding terminals respectively; the setting subunits correspond to the terminals one by one.
The setting subunit acquires data communication request information of a terminal corresponding to the setting subunit in real time and stores the data communication request information.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
An embodiment of the present invention further describes an electronic device, where the electronic device is in data communication with at least one terminal, and a composition structure of the electronic device according to a sixth embodiment of the present invention is shown in fig. 7, where the electronic device includes: a setting unit 71, a receiving unit 72, and a first processing unit 73; wherein,
the setting unit 71 is configured to set a threshold value for each terminal data communication; the threshold is the lowest communication bandwidth allocated to each terminal;
the receiving unit 72 is configured to receive a data communication request sent by at least one terminal;
the first processing unit 73 is configured to compare the data communication request information of the at least one terminal with a corresponding threshold to obtain a comparison result, and when the comparison result indicates that the data communication request information of the at least one terminal is greater than the corresponding threshold, allocate the remaining communication resources to the at least one terminal according to a preset rule.
In the present embodiment, the setting unit 71 includes at least one setting subunit;
the setting unit allocates a corresponding setting subunit to the at least one terminal;
the setting subunit sets and stores the threshold value of the terminal corresponding to the setting subunit.
For example, if the electronic device performs data communication with three terminals, the setting unit includes at least three setting sub-units, which are used to set and store the lowest data bandwidths of the corresponding terminals respectively; the setting subunits correspond to the terminals one by one.
The setting subunit acquires data communication request information of a terminal corresponding to the setting subunit in real time and stores the data communication request information.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the foregoing data processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
In practical applications, the setting Unit 71, the first Processing Unit 73, and the determining Unit 74 may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or a Programmable logic Array (FPGA) in an electronic device; the receiving unit 72 may be implemented by a receiver or a receiving antenna in practical applications.
In the technical scheme provided by the embodiment of the invention, a threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives the data communication request sent by the terminal, the data communication request information of the terminal is compared with the corresponding threshold value, and the operation of the data communication request is executed according to the comparison result, so that on one hand, the full utilization of data bandwidth resources in the electronic equipment is met, the waste is avoided, on the other hand, the minimum bandwidth requirement of a user is ensured, the data communication quality of the user is ensured, and the user experience is greatly improved.
In the technical scheme provided by the embodiment of the invention, a threshold value of each terminal data communication is set in the electronic equipment; the threshold is the lowest communication bandwidth corresponding to each terminal; when the electronic equipment receives the data communication request sent by the terminal, the data communication request information of the terminal is compared with the corresponding threshold value, and the operation of the data communication request is executed according to the comparison result, so that on one hand, the full utilization of data bandwidth resources in the electronic equipment is met, the waste is avoided, on the other hand, the minimum bandwidth requirement of a user is ensured, the data communication quality of the user is ensured, and the user experience is greatly improved.
In the embodiments provided in the present invention, it should be understood that the disclosed method and electronic device can be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit according to the embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (14)
1. A data processing method is applied to electronic equipment, and the electronic equipment is in data communication with at least one terminal; characterized in that the method comprises:
setting a threshold value of data communication of each terminal; the threshold is the lowest communication bandwidth allocated to each terminal;
when the electronic equipment receives a data communication request sent by at least one terminal, comparing the data communication request information of the at least one terminal with the threshold corresponding to the terminal, and executing the operation of the data communication request according to the comparison result.
2. The method of claim 1, wherein performing the operation on the data communication request according to the comparison comprises:
and when the comparison result shows that the data communication request information of the at least one terminal is less than or equal to the corresponding threshold value, immediately processing the data communication request.
3. The method of claim 1, wherein performing the operation on the data communication request according to the comparison comprises:
and when the comparison result is that the data communication request information of the at least one terminal is larger than the corresponding threshold value, acquiring the data communication request information of the terminals except the at least one terminal and the comparison result corresponding to the threshold value, and adding the data communication request into a buffer queue when the data communication request information of the terminals except the at least one terminal is determined to be smaller than or equal to the corresponding threshold value.
4. The method of claim 3, further comprising:
and when the data communication request information of all the terminals except the at least one terminal is greater than the corresponding threshold value, immediately processing the data communication request of the terminal.
5. The method according to claim 3, wherein the electronic device sets a timer for data communication of each terminal; the adding the data communication request to the buffer queue comprises the following steps:
and starting a timer, re-comparing the data communication request information of the at least one terminal with the corresponding threshold value after the timer is overtime, and executing the operation of the data communication request of the at least one terminal according to the comparison result.
6. The method of claim 1, further comprising: and when the data communication request information of the at least one terminal is larger than the corresponding threshold value, the electronic equipment allocates the residual communication resources to the at least one terminal according to a preset rule.
7. An electronic device, characterized in that the electronic device comprises: the device comprises a setting unit, a receiving unit and a first processing unit; wherein,
the setting unit is used for setting a threshold value of each terminal data communication; the threshold is the lowest communication bandwidth allocated to each terminal;
the receiving unit is used for receiving a data communication request sent by at least one terminal;
the first processing unit is configured to compare the data communication request information of the at least one terminal with a corresponding threshold to obtain a comparison result, and execute an operation on the data communication request according to the comparison result.
8. The electronic device according to claim 7, wherein the first processing unit is configured to immediately process the data communication request when the comparison result indicates that the data communication request information is equal to or less than the threshold corresponding to the data communication request information.
9. The electronic device according to claim 7, further comprising a determination unit;
the judging unit is used for acquiring the comparison result of the data communication request information of the terminals except the at least one terminal and the corresponding threshold value, and judging whether the data communication request information of the terminals except the at least one terminal is smaller than or equal to the corresponding threshold value;
the first processing unit is configured to add the data communication request to a buffer queue when the comparison result indicates that the data communication request information is greater than the corresponding threshold, and the determination result of the determining unit indicates that the data communication request information of the terminal other than the at least one terminal is less than or equal to the corresponding threshold.
10. The electronic device according to claim 9, wherein the first processing unit is further configured to immediately process the data communication request when the comparison result indicates that the data communication request information is greater than the threshold corresponding to the data communication request information, and the determination result of the determining unit indicates that the data communication request information of all the terminals except the at least one terminal is greater than the threshold corresponding to the data communication request information.
11. The electronic device of claim 9, further comprising a timer for setting a time;
the first processing unit is used for triggering a starting timer when the data communication request is added into a buffer queue; and the timer is also used for comparing the data communication request information of the terminal with the corresponding threshold value again after the timer is overtime, and executing the operation of the data communication request according to the comparison result.
12. The electronic device according to claim 7, wherein the first processing unit is configured to, when the comparison result indicates that the data communication request information of the at least one terminal is greater than the corresponding threshold, allocate remaining communication resources to the at least one terminal according to a preset rule.
13. The electronic device according to any one of claims 7 to 12, wherein the setting unit comprises at least one setting subunit;
the setting unit allocates a corresponding setting subunit to the at least one terminal;
the setting subunit sets and stores the threshold value of the terminal corresponding to the setting subunit.
14. The electronic device of claim 13,
and the setting subunit acquires the data communication request information of the corresponding terminal in real time and stores the data communication request information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310392117.4A CN104426798B (en) | 2013-09-02 | 2013-09-02 | A kind of data processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310392117.4A CN104426798B (en) | 2013-09-02 | 2013-09-02 | A kind of data processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104426798A true CN104426798A (en) | 2015-03-18 |
CN104426798B CN104426798B (en) | 2018-02-27 |
Family
ID=52974772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310392117.4A Active CN104426798B (en) | 2013-09-02 | 2013-09-02 | A kind of data processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104426798B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106507436A (en) * | 2016-12-30 | 2017-03-15 | 努比亚技术有限公司 | A kind of band width control method and terminal |
CN107918613A (en) * | 2016-10-08 | 2018-04-17 | 上海宝存信息科技有限公司 | Solid state hard disc access method in response to service quality and the device using this method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1272295A (en) * | 1997-09-29 | 2000-11-01 | 诺基亚网络有限公司 | Allocation of data transmission sources between different networks |
CN101064640A (en) * | 2006-04-30 | 2007-10-31 | 华为技术有限公司 | Method, system and node for transmitting data in distributed non-collaboration grid network |
CN101159699A (en) * | 2007-11-27 | 2008-04-09 | 杭州华三通信技术有限公司 | Distributed equipment switch network bandwidth dynamic assignment method and apparatus |
US20110044332A1 (en) * | 2009-08-19 | 2011-02-24 | Fujitsu Limited | Communication apparatus, communication system, and communication method |
CN102946432A (en) * | 2012-11-16 | 2013-02-27 | 深信服网络科技(深圳)有限公司 | Bandwidth occupancy rate control method and bandwidth occupancy rate control device |
CN103139099A (en) * | 2012-12-31 | 2013-06-05 | 北京北大众志微系统科技有限责任公司 | Self-adapting method and device for bandwidth regulation |
-
2013
- 2013-09-02 CN CN201310392117.4A patent/CN104426798B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1272295A (en) * | 1997-09-29 | 2000-11-01 | 诺基亚网络有限公司 | Allocation of data transmission sources between different networks |
CN101064640A (en) * | 2006-04-30 | 2007-10-31 | 华为技术有限公司 | Method, system and node for transmitting data in distributed non-collaboration grid network |
CN101159699A (en) * | 2007-11-27 | 2008-04-09 | 杭州华三通信技术有限公司 | Distributed equipment switch network bandwidth dynamic assignment method and apparatus |
US20110044332A1 (en) * | 2009-08-19 | 2011-02-24 | Fujitsu Limited | Communication apparatus, communication system, and communication method |
CN102946432A (en) * | 2012-11-16 | 2013-02-27 | 深信服网络科技(深圳)有限公司 | Bandwidth occupancy rate control method and bandwidth occupancy rate control device |
CN103139099A (en) * | 2012-12-31 | 2013-06-05 | 北京北大众志微系统科技有限责任公司 | Self-adapting method and device for bandwidth regulation |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107918613A (en) * | 2016-10-08 | 2018-04-17 | 上海宝存信息科技有限公司 | Solid state hard disc access method in response to service quality and the device using this method |
CN107918613B (en) * | 2016-10-08 | 2022-01-21 | 上海宝存信息科技有限公司 | Solid state disk access method according to service quality and device using same |
CN106507436A (en) * | 2016-12-30 | 2017-03-15 | 努比亚技术有限公司 | A kind of band width control method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104426798B (en) | 2018-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11166330B2 (en) | Data-stream allocation method for link aggregation and related devices | |
CN104243405B (en) | A kind of request processing method, apparatus and system | |
CN105791254B (en) | Network request processing method and device and terminal | |
WO2017000673A1 (en) | Shared cache allocation method and apparatus and computer storage medium | |
CN111030945B (en) | Disaster recovery method, disaster recovery gateway, storage medium, device and system | |
CN108650667B (en) | Terminal scheduling method and device | |
US20190159073A1 (en) | Method for transmitting information, network device and terminal device | |
CN111538572B (en) | Task processing method, device, scheduling server and medium | |
CN104980472A (en) | Network traffic control method and device | |
CN105677451A (en) | Load balancing method and equipment used for multiple processes | |
CN104869229A (en) | Task allocation method | |
EP3310093A1 (en) | Traffic control method and apparatus | |
CN112996112B (en) | Frequency domain resource allocation method, device, electronic equipment and storage medium | |
CN105430028A (en) | Service calling method, service providing method, and node | |
CN106792923B (en) | Method and device for configuring QoS strategy | |
CN104426798B (en) | A kind of data processing method and electronic equipment | |
CN110365598B (en) | Heartbeat message sending method, device, server, terminal and storage medium | |
CN112260962B (en) | Bandwidth control method and device | |
CN102638403B (en) | Method and device for processing messages | |
CN104572193A (en) | Control method among multiple apparatuses and electronic apparatus thereof | |
CN112311689B (en) | Burst traffic distribution method, computer device and readable storage medium | |
CN103795856A (en) | Information processing method and electronic device | |
CN104010353B (en) | A kind of information processing method and electronic equipment | |
CN108347579B (en) | Bandwidth control method and device | |
CN104541537B (en) | A kind of method that end message reports and relevant device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |