A network bandwidth control method, device and medium
By determining the bandwidth adjustment step size in response to user touch operations in the bandwidth setting interface and setting the broadband data of the target device based on the step size, the problem of poor flexibility caused by fixed bandwidth adjustment step size in the prior art is solved, and more efficient and accurate network bandwidth control is achieved.
Patent Information
- Application Number
- CN202411388773.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-10-08
AI Technical Summary
In the prior art, the bandwidth adjustment step of the network bandwidth is fixed, resulting in poor flexibility in the bandwidth setting process.
By displaying the bandwidth setting interface, in response to touch operations of the bandwidth adjustment area or bandwidth adjustment control in the bandwidth setting interface, the bandwidth adjustment step is determined, and the broadband data of the target device is set based on the step.
It realizes interactive adjustment of bandwidth adjustment step size, improves the flexibility and accuracy of bandwidth data settings, and improves the efficiency of network bandwidth control.
Smart Images

Figure CN118890279B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a network bandwidth control method, device and medium. Background Art
[0002] As a way to transmit data in the network, network routing technology plays a vital role in the field of network technology. Through the high-speed processing capability and high-bandwidth transmission of the router, large-scale data can be efficiently transmitted to meet the needs of various applications. Users usually need to set the bandwidth of the terminal connected to the router to reasonably allocate network resources and ensure the smooth operation of network traffic.
[0003] At present, the existing technology usually adopts user interaction to control the network bandwidth. The user needs to enter the bandwidth setting interface corresponding to the access device, and adjust the bandwidth upper limit and bandwidth lower limit of the corresponding access device according to the set bandwidth adjustment step by dragging a drag bar or control key through gestures.
[0004] However, in the prior art, the bandwidth adjustment step of the network broadband is fixed, resulting in poor flexibility in the bandwidth setting process. Summary of the invention
[0005] The present invention provides a network bandwidth control method, device and medium to solve the problem of interactive adjustment of bandwidth adjustment step length and improve the flexibility and boundary of bandwidth data setting.
[0006] According to one aspect of the present invention, a network bandwidth control method is provided, comprising:
[0007] Displaying a bandwidth setting interface, wherein the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control;
[0008] In response to a touch operation on a bandwidth adjustment area or a bandwidth adjustment control in a bandwidth setting interface, determining a bandwidth adjustment step size;
[0009] The bandwidth data of the target device is set based on the bandwidth adjustment step size.
[0010] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0011] at least one processor; and
[0012] a memory communicatively connected to at least one processor; wherein,
[0013] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the network bandwidth control method of any embodiment of the present invention.
[0014] According to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network bandwidth control method of any embodiment of the present invention when executed.
[0015] The technical solution of this embodiment, by displaying a bandwidth setting interface, the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control; in response to a touch operation on the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface, the bandwidth adjustment step is determined; based on the bandwidth adjustment step setting target device's broadband data, the bandwidth adjustment step can be adjusted in an interactive manner, thereby solving the problem of interactive adjustment of the bandwidth adjustment step, improving the flexibility of the bandwidth adjustment step, and improving the accuracy and efficiency of network bandwidth control.
[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 is a flow chart of a network bandwidth control method provided by Embodiment 1 of the present invention;
[0019] Figure 2 This is a schematic diagram of a bandwidth setting interface provided by Embodiment 1 of the present invention;
[0020] Figure 3 This is a schematic diagram of a bandwidth setting interface provided by Embodiment 1 of the present invention;
[0021] Figure 4 This is a schematic diagram of a bandwidth setting interface provided by Embodiment 1 of the present invention;
[0022] Figure 5 This is a schematic diagram of bandwidth step adjustment provided by Embodiment 1 of the present invention;
[0023] Figure 6 This is a schematic diagram of bandwidth step adjustment provided by Embodiment 1 of the present invention;
[0024] Figure 7 This is a schematic diagram of bandwidth step adjustment provided by Embodiment 1 of the present invention;
[0025] Figure 8 This is a schematic diagram of bandwidth step adjustment provided by Embodiment 1 of the present invention;
[0026] Fig. 9 is a flow chart of a network bandwidth control method provided by Embodiment 2 of the present invention;
[0027] Fig.10 This is a schematic diagram of a bandwidth setting interface provided by Embodiment 2 of the present invention;
[0028] Fig.11 It is a structural schematic diagram of an electronic device for implementing the network bandwidth control method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment 1
[0032] Figure 1 This is a flow chart of a network bandwidth control method provided in the first embodiment of the present invention. This embodiment is applicable to the case where the network bandwidth of the target device is set through a touch-controlled terminal. The method can be applied to a touch-controlled terminal.
[0033] In this embodiment, the touch-control terminal is a terminal that can be operated by touching the screen. For example, the touch-control terminal can be a mobile terminal such as a mobile phone, a tablet computer, and a watch. The target device is a device with a network bandwidth control requirement, for example, an IoT device that requires network bandwidth control when starting for the first time, restoring factory settings, or updating the network environment, including but not limited to smart speakers, smart air conditioners, robots, etc.
[0034] In some embodiments, a network route is configured in the edge device, the target device is connected to the network route of the edge device, and the touch terminal can be connected to the edge device for communication. Optionally, when the target device is connected to the network of the edge device for the first time, the bandwidth of the target device is set. Optionally, during the operation of the target device, the bandwidth of the target device is detected. If the bandwidth data occupied by the target device exceeds the bandwidth upper limit of the target device, the bandwidth of the target device is set. Optionally, when a new device is connected to the network of the edge device, the bandwidth of the connected device (i.e., the target device) is set to ensure that the connected device can operate normally.
[0035] Optionally, the touch-screen terminal is equipped with a client of the edge device, and the network information of the target device connected to the network, such as the bandwidth data occupied by the target device, can be displayed through the client. The desktop of the touch-screen terminal can display the client of the edge device, and the device management page of the edge device can be displayed by clicking the client of the edge device. The device management page includes multiple device identifiers connected to the network. By touching any device identifier in the device management page, the bandwidth setting interface of the target device can be entered to implement the bandwidth setting of the target device.
[0036] The touch-controlled terminal generates a bandwidth setting instruction according to the identifier of the target device and the corresponding bandwidth data, and sends the bandwidth setting instruction to the edge device so that the edge device updates the available bandwidth data of the target device.
[0037] like Figure 1 As shown, the method includes:
[0038] S110: Display a bandwidth setting interface, where the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control.
[0039] In this embodiment, the bandwidth setting interface is an interface for setting bandwidth, which is displayed on the touch screen of the touch-control terminal and can be accessed through a browser or a bandwidth setting application, and this embodiment does not limit this. The user can set the bandwidth of different target devices as needed to ensure the reasonable allocation and efficient use of network resources. The bandwidth setting interface can be displayed in response to a trigger operation of the identification of the target device.
[0040] Specifically, the bandwidth adjustment area is an area in the bandwidth setting interface for adjusting the bandwidth, and can display the real-time bandwidth. In some embodiments, the bandwidth setting interface may include the bandwidth adjustment area, and the user inputs a touch gesture in the bandwidth adjustment area so that the touch-enabled terminal determines the bandwidth data set for the target device by identifying the touch gesture in the bandwidth adjustment area. Figure 2 Schematic diagram of a bandwidth setting interface provided by the first embodiment of the present invention. Figure 2 As shown, the bandwidth adjustment area in the bandwidth setting interface uses bandwidth as the ordinate and time as the abscissa. The bandwidth adjustment area directly displays the real-time bandwidth. There is a bandwidth indicator line in the bandwidth adjustment area. The bandwidth indicator line is a dotted line parallel to the abscissa axis and intersecting the ordinate axis. The intersection of the bandwidth indicator line and the ordinate axis is the set bandwidth. The bandwidth corresponding to the bandwidth indicator line can be adjusted by sliding up or down in the bandwidth adjustment area to achieve the bandwidth setting of the target device. It should be noted that in this embodiment, Figure 2 For example, the words “before adjustment” and “after adjustment” in the accompanying drawings are used to illustrate the changes before and after the touch operation, and the values of “before adjustment” and “after adjustment” are only an example.
[0041] The bandwidth adjustment control is a control in the bandwidth setting interface for adjusting the bandwidth, and may be located inside the bandwidth adjustment area. In some embodiments, the bandwidth setting interface may include a bandwidth adjustment area and a bandwidth adjustment control, and the user may perform a touch gesture on the bandwidth adjustment control so that the touch-controlled terminal may identify the touch gesture on the bandwidth adjustment control and determine the bandwidth data set for the target device. Figure 3 Schematic diagram of a bandwidth setting interface provided by the first embodiment of the present invention. Figure 3 As shown, the bandwidth adjustment control is set at the rightmost end of the bandwidth indicator line and forms an integral part with the bandwidth indicator line. The user can drag the bandwidth adjustment control to drive the movement of the bandwidth indicator line to adjust the bandwidth of the target device.
[0042] The download bandwidth and upload bandwidth of the target device are the transmission rates when the target device downloads and uploads data. Optionally, the bandwidth setting interface also includes a download bandwidth setting control and an upload bandwidth setting control.
[0043] In this embodiment, the download bandwidth setting control is a control for displaying the download bandwidth setting interface, wherein the download bandwidth setting interface is a bandwidth setting interface for setting the download bandwidth; the upload bandwidth setting control is a control for displaying the upload bandwidth setting interface, wherein the upload bandwidth setting interface is a bandwidth setting interface for setting the upload bandwidth. Based on the download bandwidth setting control and the upload bandwidth setting control, the download bandwidth and the upload bandwidth can be adjusted respectively, thereby improving the stability and reliability of the network connection.
[0044] Specifically, a trigger operation on the download bandwidth setting control is detected, and the download bandwidth setting interface is displayed, so that the download bandwidth setting instruction is determined by identifying the user's touch operation on the bandwidth adjustment area and / or the bandwidth adjustment control in the download bandwidth setting interface. A trigger operation on the upload bandwidth setting control is detected, and the upload bandwidth setting interface is displayed, so that the upload bandwidth setting instruction is determined by identifying the user's touch operation on the bandwidth adjustment area and / or the bandwidth adjustment control in the upload bandwidth setting interface. Exemplary, Figure 4 Schematic diagram of a bandwidth setting interface provided by the first embodiment of the present invention. Figure 4 As shown, the middle position of the bandwidth setting interface includes a download bandwidth setting control and an upload bandwidth setting control.
[0045] The bandwidth data of the target device is usually a value between the upper bandwidth and the lower bandwidth. Optionally, the bandwidth setting interface also includes an upper bandwidth setting control and a lower bandwidth setting control.
[0046] In this embodiment, the upper bandwidth setting control is a control for setting the upper bandwidth, which includes the upper bandwidth for downloading and the upper bandwidth for uploading; the lower bandwidth setting control is a control for setting the minimum transmission rate, which includes the lower bandwidth for downloading and the lower bandwidth for uploading. For example, the upper bandwidth setting control and the lower bandwidth setting control can be a text box control or a sliding control outside the bandwidth adjustment area in the bandwidth setting interface, or can be a bandwidth adjustment control within the bandwidth adjustment area in the bandwidth setting interface, and this embodiment does not limit this.
[0047] The technical solution of this embodiment can set the upper and lower bandwidths of the target device respectively based on the upper and lower bandwidth setting controls, thereby ensuring sufficient bandwidth to meet the network requirements of the target device while avoiding network congestion or abuse of bandwidth resources.
[0048] In some embodiments, since the access device of the edge device can be multiple different devices, different devices may have different bandwidth demand periods. For example, different devices have different operating time periods. Accordingly, the bandwidth demand for any target device in different time periods may be different. Optionally, the bandwidth setting interface also includes a setting control for the bandwidth corresponding to the time period. The setting control for the bandwidth corresponding to the time period is a control for selecting the time period. For example, the setting control for the time period includes but is not limited to a text box control, a drop-down box control, a sliding control, etc. During the setting process of the upload bandwidth or download bandwidth of the target device, and / or during the setting process of the upper and lower bandwidth limits, the time corresponding to the bandwidth is input or selected based on the setting control for the bandwidth corresponding to the time period.
[0049] Specifically, in response to the user's touch operation on the setting control of the bandwidth corresponding to the time period, a corresponding time period is specified for the bandwidth adjusted in the bandwidth setting interface, and the bandwidth of the target device is set in the time period to obtain the bandwidth data of the target device in the time period.
[0050] The technical solution of this embodiment specifies the bandwidth corresponding time period through the setting control of the bandwidth corresponding time period, and can set the corresponding bandwidth for one or more time periods in advance to ensure that the bandwidth is reasonably allocated in one or more time periods.
[0051] In one embodiment, by triggering the download bandwidth setting control or the upload bandwidth setting control, the setting mode of the download bandwidth or the upload bandwidth is selected, that is, the download bandwidth setting interface or the upload bandwidth setting interface is entered; the download bandwidth setting interface or the upload bandwidth setting interface includes an upper bandwidth setting control and a lower bandwidth setting control, and by triggering the upper bandwidth setting control or the lower bandwidth setting control, the setting mode of the upper bandwidth or the lower bandwidth is selected. In the setting mode of the download bandwidth or the upload bandwidth, and in the setting mode of the upper bandwidth or the lower bandwidth, by triggering the setting control of the bandwidth corresponding time period, the bandwidth setting time period is selected, and the bandwidth data of the target object is adjusted under the bandwidth setting time period.
[0052] S120: Determine a bandwidth adjustment step in response to a touch operation on a bandwidth adjustment area or a bandwidth adjustment control in a bandwidth setting interface.
[0053] In this embodiment, the bandwidth adjustment step is the step for adjusting the bandwidth during the bandwidth setting process, that is, the unit adjustment value of the bandwidth.
[0054] Specifically, the touch operation can be a setting operation of the bandwidth adjustment step, and in response to the touch operation, the bandwidth adjustment step is adjusted and the adjusted bandwidth adjustment step is determined. The touch operation can be a touch operation on the bandwidth adjustment area or a touch operation on the bandwidth adjustment control.
[0055] In some embodiments, optionally, in response to a first preset touch operation in the bandwidth adjustment area, the bandwidth adjustment step is determined. The first preset touch operation includes a step increase operation and a step decrease operation, which are used to increase the bandwidth adjustment step or decrease the bandwidth adjustment step.
[0056] When the first preset touch operation is the third preset touch operation, the bandwidth adjustment step is increased; when the first preset touch operation is the fourth preset touch operation, the bandwidth adjustment step is decreased. Here, the third preset touch operation and the fourth preset touch operation can be different touch operations and can be preset according to user needs.
[0057] The third preset touch operation may be a step increase operation, such as a zoom gesture touch operation. For example, the third preset touch operation may be a sliding touch operation in which two touch points on the touch screen move away from each other in opposite directions. The fourth preset touch operation may be a pinch gesture touch operation, for example, it may be a sliding touch operation in which two touch points on the touch screen move together.
[0058] Specifically, when the touch operation in the bandwidth adjustment area is identified as the third preset touch operation, the bandwidth adjustment step is increased. For example, Figure 5 Schematic diagram of bandwidth step adjustment provided by the first embodiment of the present invention. Figure 5 As shown, the bandwidth step size is increased from 0.05 Mbyte / s to 0.30 Mbyte / s. When the touch operation in the bandwidth adjustment area is identified as the fourth preset touch operation, the bandwidth adjustment step size is reduced. For example, Figure 6 Schematic diagram of bandwidth step adjustment provided by the first embodiment of the present invention. Figure 6 As shown, the bandwidth step size adjustment is reduced from 0.30 Mbyte / sec to 0.05 Mbyte / sec.
[0059] Optionally, the adjustment value of the bandwidth adjustment step increase or decrease may be determined based on the sliding distance of the third preset touch operation or the fourth preset touch operation, and the adjustment value may be positively correlated with the sliding distance of the third preset touch operation or the fourth preset touch operation.
[0060] In some embodiments, the bandwidth adjustment step may be displayed in the bandwidth setting interface. During the touch operation of the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface, the updated bandwidth adjustment step is displayed in real time to facilitate accurate adjustment of the bandwidth adjustment step.
[0061] According to the technical solution of this embodiment, the user can perform a first preset touch operation in any area of the bandwidth adjustment area to adjust the bandwidth adjustment step based on a zoom-in gesture touch operation or a pinch-out gesture touch operation, thereby simplifying the setting process of the bandwidth adjustment step.
[0062] In some embodiments, optionally, in response to a second preset touch operation on the bandwidth adjustment control, the bandwidth adjustment step length is determined. The second preset touch operation includes a step length increase operation and a step length decrease operation, which are used to increase the bandwidth adjustment step length or decrease the bandwidth adjustment step length.
[0063] When the second preset touch operation is the fifth preset touch operation, the bandwidth adjustment step is increased; when the second preset touch operation is the sixth preset touch operation, the bandwidth adjustment step is decreased. Here, the fifth preset touch operation and the sixth preset touch operation can be different touch operations and can be preset according to user needs.
[0064] In this embodiment, the fifth preset touch operation is a step-increasing operation, such as a long press operation, which can be a long press operation on any position in the bandwidth adjustment area or the bandwidth adjustment control, and the pressing time is greater than the preset time, wherein the preset time is the duration from the beginning to the end of the pressing state, for example, the preset time is 2 seconds. The pressing time of the long press operation can be positively correlated with the size of the adjustment value of the bandwidth adjustment step. The sixth preset touch operation is a step-reducing operation, such as a double-click operation, which can be a double-click operation on any position in the bandwidth adjustment area or the bandwidth adjustment control. Wherein, when a double-click operation is detected, the bandwidth adjustment step is reduced by a preset value, and the size of the bandwidth adjustment step is adjusted by inputting the number of double-click operations.
[0065] Specifically, when the touch operation in the bandwidth adjustment area is identified as the fifth preset touch operation, the bandwidth adjustment step is increased; when the touch operation in the bandwidth adjustment area is identified as the sixth preset touch operation, the bandwidth adjustment step is decreased. For example, Figure 7 Schematic diagram of bandwidth step adjustment provided by the first embodiment of the present invention. Figure 7 As shown, the user performs a long press gesture touch operation on the bandwidth adjustment control, and in response to the sixth preset touch operation on the bandwidth adjustment control, the bandwidth step size is adjusted to decrease from 0.05 Mbyte / s to 0.30 Mbyte / s.
[0066] According to the technical solution of this embodiment, the user can perform a second preset touch operation at any point in the width adjustment area or the bandwidth adjustment control to adjust the bandwidth adjustment step based on a long press gesture touch operation or a double-click gesture touch operation, thereby improving the user experience.
[0067] In some embodiments, the fifth preset touch operation may also be a left swipe operation on the bandwidth adjustment control, for example, a touch operation of pressing and holding the bandwidth adjustment control and sliding the bandwidth adjustment control to the left; the sixth preset touch operation is a right swipe operation on the bandwidth adjustment control, for example, a touch operation of pressing and holding the bandwidth adjustment control and sliding the bandwidth adjustment control to the right.
[0068] For example, Figure 8 Schematic diagram of bandwidth step adjustment provided by the first embodiment of the present invention. Figure 8 As shown, the user performs a left-slide gesture touch operation on the bandwidth adjustment control. In response to the left-slide operation on the bandwidth adjustment control, the bandwidth step size is adjusted from 0.05 Mbytes / second to 0.30 Mbytes / second.
[0069] According to the technical solution of this embodiment, the user can perform a touch operation at any point in the bandwidth adjustment area or the bandwidth adjustment control to adjust the bandwidth adjustment step size based on a left-swipe touch operation or a right-swipe touch operation, thereby improving the user experience.
[0070] S130: Setting the broadband data of the target device based on the bandwidth adjustment step.
[0071] Specifically, the bandwidth data is the broadband data calculated based on the initial bandwidth data, the bandwidth adjustment direction, the bandwidth adjustment step length and the number of bandwidth adjustment steps, wherein the initial bandwidth data is the bandwidth data automatically allocated when the target device accesses the network. The bandwidth adjustment direction includes the bandwidth increase direction and the bandwidth decrease direction; the bandwidth adjustment step number is the number of steps the user adjusts the bandwidth, and the broadband data is the sum of the product of the bandwidth adjustment step length and the bandwidth adjustment step number and the initial bandwidth data.
[0072] For example, assuming that the initial bandwidth data is 100 megabytes / second, the bandwidth adjustment direction is the bandwidth increase direction, the bandwidth adjustment step is 10 megabytes / second, and the number of bandwidth adjustment steps is 3, then the broadband data is 130 megabytes / second. The bandwidth adjustment direction and the number of bandwidth adjustment steps may be determined by a bandwidth setting operation, for example, the bandwidth setting operation may be a sliding operation, the direction of the sliding operation determines the bandwidth adjustment direction, and the sliding distance of the sliding operation determines the number of bandwidth adjustment steps.
[0073] In the process of setting broadband data, the bandwidth adjustment step can be adjusted in the manner of step S120 to flexibly set the bandwidth adjustment step. For example, in the initial stage of setting the bandwidth data, the bandwidth adjustment step can be increased to quickly adjust the bandwidth data to the target interval. After being in the target interval, the bandwidth adjustment step can be reduced to perform fine-grained setting of the bandwidth data, thereby achieving high-precision setting of the bandwidth data and taking into account both the efficiency and accuracy of bandwidth data setting.
[0074] The technical solution of this embodiment, by displaying a bandwidth setting interface, the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control; in response to a touch operation on the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface, a bandwidth adjustment step is determined; based on the bandwidth adjustment step setting of the target device's broadband data, the bandwidth adjustment step can be adjusted in an interactive manner, thereby solving the problem of interactive adjustment of the bandwidth adjustment step and improving the accuracy and efficiency of network bandwidth control.
[0075] Embodiment 2
[0076] Fig. 9 It is a flow chart of a network bandwidth control method provided in the second embodiment of the present invention. The technical solution of the embodiment of the present invention is further optimized based on any of the above embodiments.
[0077] In this embodiment, optionally, the bandwidth adjustment area includes a bandwidth adjustment control and a bandwidth value to be selected; the bandwidth sliding setting operation includes a sliding operation on the bandwidth adjustment control, and the bandwidth value to be selected corresponding to the bandwidth adjustment control is the current bandwidth data.
[0078] In this embodiment, the bandwidth adjustment control is a control for adjusting the bandwidth in the bandwidth setting interface, and is located inside the bandwidth adjustment area. The bandwidth value to be selected is the bandwidth value that can be selected during the bandwidth adjustment process, for example, it can be Figure 2 The vertical axis data of the bandwidth adjustment area in the middle. The bandwidth sliding setting operation is, for example, a sliding operation in the bandwidth adjustment area or a dragging and sliding operation of the bandwidth adjustment control. The current bandwidth data is the real-time bandwidth data during the sliding operation of the bandwidth adjustment control. By identifying the real-time corresponding candidate bandwidth value of the bandwidth adjustment control during the sliding operation, the candidate bandwidth data is determined as the current bandwidth data.
[0079] The technical solution of this embodiment can display multiple bandwidth data adjacent to the current bandwidth data, so that the user can quickly determine the direction and amplitude of the sliding operation, thereby improving the efficiency of network bandwidth control.
[0080] In some embodiments, optionally, a local candidate bandwidth value is displayed in the bandwidth adjustment area; when the bandwidth adjustment control is located at the edge of the bandwidth adjustment area, the candidate bandwidth value in the bandwidth adjustment area is scrolled and updated, and the candidate bandwidth value is updated based on the bandwidth adjustment step.
[0081] In this embodiment, the local bandwidth value to be selected is a plurality of continuous bandwidth values to be selected among all bandwidth values to be selected. If the bandwidth adjustment control is slid so that the bandwidth adjustment control is located at the edge of the bandwidth adjustment area, the updated bandwidth data is determined based on the bandwidth adjustment step corresponding to the current bandwidth data, the updated bandwidth data is determined as the bandwidth data to be selected and displayed in the bandwidth adjustment area, and the data volume of the bandwidth data to be selected displayed in the bandwidth adjustment area is kept the same, so as to realize rolling update of the bandwidth values to be selected in the bandwidth adjustment area.
[0082] For example, Fig.10 is a schematic diagram of a bandwidth setting interface provided by the second embodiment of the present invention, such as Fig.10 As shown, when the bandwidth adjustment control is located at the upper edge of the bandwidth adjustment area, updated bandwidth data 0.30 Mbyte / s and 0.35 Mbyte / s are determined based on the bandwidth adjustment step of 0.05 Mbyte / s, and the bandwidth value to be selected is rolled updated based on the two updated bandwidth data.
[0083] The technical solution of this embodiment performs rolling updates on the candidate bandwidth values in the bandwidth adjustment area based on the bandwidth adjustment step, and can gradually update the candidate bandwidth values without causing sudden and substantial changes in the candidate bandwidth values, thereby helping to improve the stability and performance of network bandwidth control.
[0084] In some embodiments, optionally, the bandwidth adjustment area includes a bandwidth data indication mark and a bandwidth value to be selected; the bandwidth sliding setting operation includes a sliding operation on the bandwidth value to be selected, and the bandwidth value to be selected corresponding to the bandwidth data indication mark is the current bandwidth data.
[0085] In this embodiment, the bandwidth data indicator is an immovable indicator in the bandwidth setting interface for indicating the current bandwidth data, for example, a dotted line or a solid line perpendicular to the coordinate axis where the bandwidth value to be selected is located. By performing a sliding operation on any point in the bandwidth adjustment area, a sliding operation on the bandwidth value to be selected is implemented, and the bandwidth value to be selected corresponding to the bandwidth data indicator in real time is determined as the current bandwidth data. For example, Figure 2 As shown, the bandwidth indicator line in the form of a dotted line is a bandwidth data indicator mark, and the bandwidth data indicator mark is located in the middle of the bandwidth adjustment area and cannot be moved.
[0086] The technical solution of this embodiment facilitates the user to quickly determine the current bandwidth data by setting the candidate bandwidth value corresponding to the bandwidth data indicator as the current bandwidth data.
[0087] like Fig. 9 As shown, the method includes:
[0088] S210: Display a bandwidth setting interface, where the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control.
[0089] S220: In response to a bandwidth sliding setting operation in the bandwidth adjustment area, determine current bandwidth data corresponding to the bandwidth sliding setting operation, and determine a bandwidth adjustment step size based on a data range corresponding to the current bandwidth data.
[0090] Specifically, when a bandwidth sliding setting operation is identified in the bandwidth adjustment area, the current bandwidth data of the target device is obtained. By comparing the current bandwidth data with the preset bandwidth data threshold, the data range corresponding to the current bandwidth data is determined, wherein the preset bandwidth data threshold is pre-set and used to determine the data range of the current bandwidth data. The data range has a corresponding relationship with the bandwidth adjustment step. When the data range corresponding to the current bandwidth data is determined, the bandwidth adjustment step corresponding to the data range is determined based on the above correspondence. Optionally, the bandwidth adjustment step is the decimal unit data corresponding to the data range of the current bandwidth data. For example, if the data range of the current bandwidth data is 1 megabyte / second to 10 megabytes / second, the bandwidth adjustment step is 1 megabyte / second. If the data range of the current bandwidth data is 10 megabytes / second-100 megabytes / second, the bandwidth adjustment step is 10 megabytes / second.
[0091] Exemplarily, the preset bandwidth data threshold includes a first preset bandwidth data threshold and a second preset bandwidth data threshold, wherein the first preset bandwidth data threshold is less than the second preset bandwidth data threshold, and when the current bandwidth data is less than the first preset bandwidth data threshold, it is determined that the current bandwidth data belongs to the first numerical range, and the current bandwidth data corresponds to the first bandwidth adjustment step; when the current bandwidth data is greater than or equal to the first preset bandwidth data threshold, and less than the second preset bandwidth data threshold, it is determined that the current bandwidth data belongs to the second numerical range, and the current bandwidth data corresponds to the second bandwidth adjustment step; when the current bandwidth data is greater than or equal to the first preset bandwidth data threshold, it is determined that the current bandwidth data belongs to the third numerical range, and the current bandwidth data corresponds to the third bandwidth adjustment step. Wherein, the first bandwidth adjustment step is less than the second bandwidth adjustment step, and the second bandwidth adjustment step is less than the third bandwidth adjustment step. Assuming that the first preset bandwidth data threshold is 1 megabyte / second, the second preset bandwidth data threshold is 10 megabytes / second, the first bandwidth adjustment step is 0.1 megabyte / second, the second bandwidth adjustment step is 1 megabyte / second, and the third bandwidth adjustment step is 10 megabytes / second.
[0092] S230: Setting the broadband data of the target device based on the bandwidth adjustment step.
[0093] The technical solution of this embodiment is to display a bandwidth setting interface, wherein the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control; in response to a bandwidth sliding setting operation in the bandwidth adjustment area, determine the current bandwidth data corresponding to the bandwidth sliding setting operation, and determine the bandwidth adjustment step based on a data range corresponding to the current bandwidth data; and set the broadband data of the target device based on the bandwidth adjustment step, so that the bandwidth adjustment step can be automatically and dynamically adjusted so that small bandwidth data corresponds to a small bandwidth adjustment step, and large bandwidth data corresponds to a large bandwidth adjustment step, thereby improving the adjustment accuracy of small bandwidth data and improving the adjustment speed of large bandwidth data, without requiring the user to perform excessive operations, and reducing the complexity of operations.
[0094] On the basis of the above embodiment, the expected bandwidth data of the target device is 750 megabytes / second, and the setting process of the bandwidth data of the target device may be: in response to a bandwidth sliding setting operation in the bandwidth adjustment area, determining the current bandwidth data corresponding to the bandwidth sliding setting operation, and determining the bandwidth adjustment step based on the data range corresponding to the current bandwidth data, for example, in the range of 1 megabyte / second to 10 megabytes / second, the bandwidth adjustment step is 1 megabyte / second; in the range of 10 megabytes / second-100 megabytes / second, the bandwidth adjustment step is 10 megabytes / second, and in the range of 100 megabytes / second-1000 megabytes / second, the bandwidth adjustment step is 100 megabytes / second. The broadband data of the target device is set based on the bandwidth adjustment step, and the bandwidth data is quickly located. When the broadband data of the target device is within the target data range (for example, 700 Mbytes / second to 800 Mbytes / second), the bandwidth adjustment step is reduced through the first preset touch operation or the second preset touch operation, for example, adjusted to 10 Mbytes / second, and the broadband data of the target device is fine-grainedly adjusted based on the reduced bandwidth adjustment step until it is adjusted to 750 Mbytes / second.
[0095] Embodiment 3
[0096] Fig.11 1 is a schematic diagram of the structure of an electronic device that implements the network bandwidth control method of an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0097] like Fig.11 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0098] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0099] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a network bandwidth control method.
[0100] In some embodiments, the network bandwidth control method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the network bandwidth control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the network bandwidth control method in any other appropriate manner (e.g., by means of firmware).
[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0102] The computer program for implementing the network bandwidth control method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0103] Embodiment 4
[0104] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a network bandwidth control method, the method comprising:
[0105] A bandwidth setting interface is displayed, wherein the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control; a bandwidth adjustment step is determined in response to a touch operation on the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface; and broadband data of a target device is set based on the bandwidth adjustment step.
[0106] In the context of the present invention, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or apparatus. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. More specific examples of machine readable storage media may include electrical connections based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0108] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0109] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A network bandwidth control method, characterized in that: include: Displaying a bandwidth setting interface, wherein the bandwidth setting interface includes a bandwidth adjustment area and / or a bandwidth adjustment control; In response to a touch operation on the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface, determining a bandwidth adjustment step size; Setting the broadband data of the target device based on the bandwidth adjustment step size; The step of determining the bandwidth adjustment step in response to a touch operation on the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface includes: determining current bandwidth data corresponding to the bandwidth sliding setting operation in response to a bandwidth sliding setting operation in the bandwidth adjustment area, and determining the bandwidth adjustment step based on a data range corresponding to the current bandwidth data; The bandwidth adjustment area includes a bandwidth adjustment control and a bandwidth value to be selected; the bandwidth sliding setting operation includes a sliding operation on the bandwidth adjustment control, and the bandwidth value to be selected corresponding to the bandwidth adjustment control is the current bandwidth data; or, The bandwidth adjustment area includes a bandwidth data indication mark and a bandwidth value to be selected. The bandwidth sliding setting operation includes a sliding operation on the bandwidth value to be selected. The bandwidth value to be selected corresponding to the bandwidth data indication mark is the current bandwidth data.
2. The method according to claim 1, characterized in that The bandwidth adjustment area displays a local bandwidth value to be selected; In the case where the bandwidth adjustment control is located at the edge of the bandwidth adjustment area, the value of the bandwidth to be selected in the bandwidth adjustment area is updated, and the value of the bandwidth to be selected is updated based on the bandwidth adjustment step.
3. The method according to claim 1, characterized in that The step of determining the bandwidth adjustment step in response to a touch operation on the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface includes: In response to a first preset touch operation in the bandwidth adjustment area, determining the bandwidth adjustment step; the first preset touch operation includes a step increase operation and a step decrease operation; When the first preset touch operation is the third preset touch operation, the bandwidth adjustment step is increased; when the first preset touch operation is the fourth preset touch operation, the bandwidth adjustment step is decreased, and the third preset touch operation and the fourth preset touch operation are different touch operations.
4. The method according to claim 1, characterized in that: The step of determining the bandwidth adjustment step in response to a touch operation on the bandwidth adjustment area or the bandwidth adjustment control in the bandwidth setting interface includes: In response to a second preset touch operation on the bandwidth adjustment control, determining the bandwidth adjustment step; the second preset touch operation includes a step increase operation and a step decrease operation; When the second preset touch operation is the fifth preset touch operation, the bandwidth adjustment step is increased; when the second preset touch operation is the sixth preset touch operation, the bandwidth adjustment step is decreased, and the fifth preset touch operation and the sixth preset touch operation are different touch operations.
5. The method according to any one of claims 1 to 4, characterized in that: The bandwidth setting interface also includes a download bandwidth setting control and an upload bandwidth setting control; and / or, The bandwidth setting interface also includes an upper bandwidth setting control and a lower bandwidth setting control.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network bandwidth control method according to any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network bandwidth control method according to any one of claims 1 to 5 when executed.
Citation Information
Patent Citations
Bandwidth adjustment method and device and storage medium
CN114500288A
Bandwidth control method and device, equipment and storage medium
CN115604124A