CN109787818B - Interface configuration adjusting method and device and electronic equipment - Google Patents

Interface configuration adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN109787818B
CN109787818B CN201811629279.4A CN201811629279A CN109787818B CN 109787818 B CN109787818 B CN 109787818B CN 201811629279 A CN201811629279 A CN 201811629279A CN 109787818 B CN109787818 B CN 109787818B
Authority
CN
China
Prior art keywords
network card
network
interface
electronic equipment
network bandwidth
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.)
Active
Application number
CN201811629279.4A
Other languages
Chinese (zh)
Other versions
CN109787818A (en
Inventor
郭小伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811629279.4A priority Critical patent/CN109787818B/en
Publication of CN109787818A publication Critical patent/CN109787818A/en
Application granted granted Critical
Publication of CN109787818B publication Critical patent/CN109787818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an interface configuration adjusting method, which comprises the following steps: monitoring a task carried by a network card interface of the electronic equipment, and determining a network bandwidth matched with the network card interface of the electronic equipment, wherein the network card interface of the electronic equipment is connected with the network equipment through an interface configuration adjusting device; and adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment. The invention also discloses an interface configuration adjusting device and electronic equipment.

Description

Interface configuration adjusting method and device and electronic equipment
Technical Field
The present invention relates to an interface configuration adjustment technology for electronic devices, and in particular, to an interface configuration adjustment method and apparatus and an electronic device.
Background
In the use process of the existing electronic equipment, if the network bandwidth is increased, in order to adapt to the new network bandwidth, a user often needs to upgrade the network card of the electronic equipment to be able to use all the network bandwidths to complete corresponding tasks, so that the cost of the user is increased, and the upgraded network card of the electronic equipment needs to be reconfigured according to the network characteristic parameters, which is tedious to operate.
Disclosure of Invention
The embodiment of the invention provides an interface configuration adjusting method, which can adjust the configuration of a network card interface of an electronic device based on a network bandwidth matched with the network card interface of the electronic device, so that the adjusted corresponding interface of the network card of the electronic device can bear corresponding tasks.
The technical scheme of the embodiment of the invention is realized as follows:
the invention provides an interface configuration adjusting method, which comprises the following steps:
monitoring a task carried by a network card interface of the electronic equipment, and determining a network bandwidth matched with the network card interface of the electronic equipment, wherein the network card interface of the electronic equipment is connected with the network equipment through an interface configuration adjusting device;
and adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment.
In the foregoing solution, the adjusting the configuration of the network card interface of the electronic device based on the determined network bandwidth matched with the network card interface of the electronic device includes:
when the network bandwidth matched with the network card interface of the electronic equipment is changed from a first network bandwidth to a second network bandwidth, closing at least one interface in the network card interface of the electronic equipment;
the first network bandwidth is less than the second network bandwidth.
In the foregoing solution, the adjusting the configuration of the network card interface of the electronic device based on the determined network bandwidth matched with the network card interface of the electronic device includes:
when the network bandwidth matched with the network card interface of the electronic equipment is changed from a second network bandwidth to a third network bandwidth, starting at least one interface in the network card interface of the electronic equipment;
the third network bandwidth is less than the second network bandwidth.
In the above scheme, the method further comprises:
when monitoring that the network bandwidth matched with at least two network card interfaces in the network card interfaces of the electronic equipment changes, adjusting the configuration of the network card interfaces of the electronic equipment based on the priority of the corresponding network card interfaces.
In the above scheme, the method further comprises:
and when monitoring that the network bandwidth matched with at least two network card interfaces in the network card interfaces of the electronic equipment changes, adjusting the configuration of the network card interfaces of the electronic equipment based on the adjustment history of the corresponding network card interfaces.
In the foregoing solution, the adjusting the configuration of the network card interface of the electronic device based on the adjustment history of the corresponding network card interface includes:
inquiring an adjustment record corresponding to the change of the network bandwidth matched with the at least two network card interfaces in an adjustment record table of the network card interfaces of the electronic equipment;
and adjusting the configuration of a network card interface of the electronic equipment based on the adjustment record so as to realize matching with the adjustment record.
The invention also provides an interface configuration adjusting device, comprising:
the monitoring module is used for monitoring tasks carried by a network card interface of the electronic equipment and determining a network bandwidth matched with the network card interface of the electronic equipment, and the network card interface of the electronic equipment is connected with the network equipment through the interface configuration adjusting device;
and the adjusting module is used for adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment.
In the above-mentioned scheme, the first step of the method,
the adjusting module is used for closing at least one interface in the network card interfaces of the electronic equipment when the network bandwidth matched with the network card interfaces of the electronic equipment is changed from a first network bandwidth to a second network bandwidth;
the first network bandwidth is less than the second network bandwidth.
In the above-mentioned scheme, the first step of the method,
the adjusting module is used for starting at least one of the network card interfaces of the electronic equipment when the network bandwidth matched with the network card interface of the electronic equipment is changed from a second network bandwidth to a third network bandwidth;
the third network bandwidth is less than the second network bandwidth.
The invention also provides electronic equipment, the number of the network card interfaces of the electronic equipment is at least two, and the electronic equipment comprises a preorder interface configuration adjusting device.
In the embodiment of the invention, the network bandwidth matched with the network card interface of the electronic equipment is determined by monitoring the task carried by the network card interface of the electronic equipment; adjusting the configuration of the network card interface of the electronic device based on the determined network bandwidth matched with the network card interface of the electronic device, so that the adjusted network card of the electronic device can carry corresponding tasks, such as; when the corresponding task carried by the corresponding interface of the network card of the electronic equipment needs to occupy all network bandwidth, the configuration adjustment of the interface can be quickly carried out to adapt to the corresponding task, so that the situation that the network card of the electronic equipment is upgraded and the corresponding task can be completed by using all network bandwidth is avoided, the cost of a user is saved, and the configuration time is saved.
Drawings
Fig. 1 is an alternative flow chart of a method for interface configuration adjustment according to an embodiment of the present invention;
fig. 2 is an alternative structural schematic diagram of an interface configuration adjustment apparatus 200 according to an embodiment of the present invention;
fig. 3 is an alternative flow chart of an interface configuration adjustment method according to an embodiment of the present invention;
fig. 4 is an alternative structural schematic diagram of an interface configuration adjustment apparatus according to an embodiment of the present invention;
fig. 5 is an alternative structural schematic diagram of an interface configuration adjustment apparatus according to an embodiment of the present invention;
fig. 6 is an alternative structural schematic diagram of an interface configuration adjustment apparatus according to an embodiment of the present invention;
fig. 7 is an alternative structural schematic diagram of an interface configuration adjustment apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) Network Bandwidth (Network Bandwidth), which refers to the amount of data that can be transmitted in a unit of time (typically 1 second), is expressed in units of b/S (bits per second) or G/S.
2) Network equipment, the fingers are connected to physical entities in the network, such as: hubs, switches, bridges, routers, gateways, Network Interface Cards (NICs), Wireless Access Points (WAPs).
3) The network card, a network component working at a link layer, is an interface for connecting a computer and a transmission medium in a local area network, not only can realize physical connection and electric signal matching with the transmission medium of the local area network, but also relates to the functions of frame sending and receiving, frame packaging and unpacking, medium access control, data encoding and decoding and data caching.
Fig. 1 is an alternative flow chart of an interface configuration adjustment method according to an embodiment of the present invention; as shown in fig. 1, an optional flowchart of the interface configuration adjustment method according to the embodiment of the present invention is provided to describe the illustrated steps. The method shown in fig. 1 is applied to an interface configuration adjusting device, and a network card interface of an electronic device is connected to a network device through the interface configuration adjusting device.
Step 101: and monitoring the tasks carried by the network card interface of the electronic equipment, and determining the network bandwidth matched with the network card interface of the electronic equipment.
Step 102: judging whether the network bandwidth matched with the network card interface of the electronic equipment changes, if so, executing step 103, otherwise, returning to execute step 101;
step 103: and adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment.
Therefore, the number of the available interfaces of the network card of the electronic equipment can be adjusted.
In an embodiment of the present invention, the adjusting the configuration of the network card interface of the electronic device based on the determined network bandwidth matching the network card interface of the electronic device includes:
when the network bandwidth matched with the network card interface of the electronic equipment is changed from a first network bandwidth to a second network bandwidth, closing at least one interface in the network card interface of the electronic equipment; the first network bandwidth is less than the second network bandwidth. Through the technical solution shown in this embodiment, when the network bandwidth matched with the network card interface of the electronic device is converted into a larger second network bandwidth, at least one of the network card interfaces of the electronic device needs to be closed to meet the requirement of the second network bandwidth, for example, when the total network bandwidth is 100G/S, and when the network bandwidths required by the first interface and the second interface in the network card of the electronic device are both 50G/S, the first interface and the second interface of the network card of the electronic device can work simultaneously, and when the network bandwidth required by the first interface in the network card of the electronic device is 100G/S, through the technical solution shown in this embodiment, the second interface of the network card in the electronic device can be closed to ensure the normal work of the first interface, and meanwhile, a user does not need to upgrade the network card of the electronic device, the cost to the user is reduced.
In an embodiment of the present invention, the adjusting the configuration of the network card interface of the electronic device based on the determined network bandwidth matching the network card interface of the electronic device includes:
when the network bandwidth matched with the network card interface of the electronic equipment is changed from a second network bandwidth to a third network bandwidth, starting at least one interface in the network card interface of the electronic equipment; the third network bandwidth is less than the second network bandwidth. Through the technical scheme shown in this embodiment, when the network bandwidth matched with the network card interface of the electronic device is converted into a smaller third network bandwidth, at least one of the network card interfaces of the electronic device may be turned on to meet the requirement of the third network bandwidth, for example, when the total network bandwidth is 100G/S and the network bandwidth required by the first interface in the network card of the electronic device is 100G/S to 50G/S, the second interface of the network card of the electronic device may be turned on through the technical scheme shown in this embodiment, at this time, the first interface and the second interface of the network card of the electronic device may work simultaneously, an interface for parallel task processing of the electronic device is added, and at the same time, a user does not need to adjust the network card of the electronic device, but only needs to adjust the configuration of the interface.
In one embodiment of the invention, the method further comprises:
when monitoring that the network bandwidth matched with at least two network card interfaces in the network card interfaces of the electronic equipment changes, adjusting the configuration of the network card interfaces of the electronic equipment based on the priority of the corresponding network card interfaces. Specifically, the network card interface adjustment sequence of the electronic device may be determined based on the priority of the corresponding network card interface; and adjusting the configuration of the network card interface of the electronic equipment based on the determined network card interface adjusting sequence of the electronic equipment. Through the technical scheme shown in this embodiment, priorities of network card interfaces carrying different tasks in the electronic device can be distinguished, and when it is monitored that network bandwidths matched with at least two network card interfaces in the network card interfaces of the electronic device change, the network card interface with a higher priority is adjusted first to ensure that services carried by the corresponding network card interface with a high priority are executed smoothly.
In one embodiment of the invention, the method further comprises:
and when monitoring that the network bandwidth matched with at least two network card interfaces in the network card interfaces of the electronic equipment changes, adjusting the configuration of the network card interfaces of the electronic equipment based on the adjustment history of the corresponding network card interfaces. After the network card interface of the electronic device is adjusted once, the corresponding adjustment process may be recorded in the adjustment record table, as shown in table 1, the number of the changed network card interface, the change condition of the network bandwidth matching with the corresponding network card interface, and the adjustment result (closed or opened) may be recorded in the adjustment record table. Through the technical scheme shown in this embodiment, when the network bandwidth matched with any one of the network card interfaces of the electronic device changes, the configuration of the network card interface of the electronic device can be quickly adjusted according to the query result of table 1, so as to adjust the number of available interfaces of the network card of the electronic device, and save the waiting time of a user.
In an embodiment of the present invention, as shown in table 1-1, the number of the network card interfaces of the electronic device is four, which are numbered from No. 1 to No. 4, respectively, and the total network bandwidth provided by the network device is 100G/S; at the initial moment, the network bandwidths required by the tasks carried by the No. 1-No. 4 network card interfaces are all 20G/S, so that the network bandwidths distributed by the No. 1-No. 4 network card interfaces are all 25G/S, and the tasks carried by all the network card interfaces can be met. Case (1): when the network bandwidth required by the task carried by the network card interface No. 1 is changed from 20G/S in the initial state to 100G/S, the network card interfaces No. 2, No. 3 and No. 4 need to be closed so as to ensure that the task carried by the network card interface No. 1 is normally executed. Case (2): when the network bandwidth required by the task carried by the No. 1 network card interface is changed from 20G/S in the initial state to 80G/S, the priority of the No. 2 network card interface is higher than that of the No. 3 network card interface and the No. 4 network card interface, the opening state of the No. 2 network card interface is kept, and the No. 3 network card interface and the No. 4 network card interface are closed. Case (3): when the network bandwidth required by the task carried by the No. 2 network card interface is changed from 20G/S in the initial state to 90G/S, although the total network bandwidth is still rich, the residual network bandwidth is not enough to support the work of the residual network card interfaces, so that the No. 1 network card interface, the No. 3 network card interface and the No. 4 network card interface are closed. Because the tasks carried by the network card interfaces have the periodic characteristic, when the network bandwidth matched with any one of the network card interfaces of the electronic equipment changes, the configuration of the network card interfaces of the electronic equipment can be quickly adjusted according to the query result shown in the table 1-1, so that the number of the available interfaces of the network card of the electronic equipment can be adjusted, and the waiting time of a user is saved.
Changed network card interface number Change of network bandwidth Adjustment result
TABLE 1
Figure BDA0001928631280000071
TABLE 1-1
In one embodiment of the invention, the method further comprises:
and when monitoring that the network bandwidth matched with at least two network card interfaces in the network card interfaces of the electronic equipment changes, adjusting the configuration of the network card interfaces of the electronic equipment based on the adjustment history of the corresponding network card interfaces. After the network card interface of the electronic device is adjusted once, a corresponding adjustment process may be recorded in the adjustment record table, as shown in table 2, a change condition of the network bandwidth and different adjustment schemes corresponding to the bandwidth change (different adjustment schemes may all be suitable for the change of the network bandwidth) may be recorded in the adjustment record table, and when the network bandwidth matching any one of the network card interfaces of the electronic device changes, the configuration of the network card interface of the electronic device may be quickly adjusted according to the query result of table 2, so as to adjust the number of available interfaces of the network card of the electronic device, and save the waiting time of the user.
Change of network bandwidth Adjustment scheme 1 Adjustment scheme 2
TABLE 2
In an embodiment of the present invention, as shown in table 2-1, the number of the network card interfaces of the electronic device is four, which are numbered from No. 1 to No. 4, respectively, and the total network bandwidth provided by the network device is 100G/S; at the initial moment, the network bandwidths required by the tasks carried by the No. 1-No. 4 network card interfaces are all 20G/S, so that the network bandwidths distributed by the No. 1-No. 4 network card interfaces are all 25G/S, and the tasks carried by all the network card interfaces can be met. Case (1): when the network bandwidth required by the task carried by the No. 1 network card interface is changed from 20G/S in the initial state to 80G/S, and the priorities of the No. 2, No. 3 and No. 4 network card interfaces are the same, the normal work of the No. 1 network card interface can be ensured only by closing any 2 interfaces of the No. 2, No. 3 and No. 4 network card interfaces, so as to ensure that the task carried by the No. 1 network card interface is normally executed. Case (2): when the network bandwidth required by the task carried by the No. 1 network card interface is changed from 20G/S in the initial state to 60G/S, the priority of the No. 2 network card interface is higher than that of the No. 3 network card interface and the No. 4 network card interface, the priority of the No. 3 network card interface is the same as that of the No. 4 network card interface, the opening state of the No. 2 network card interface is kept, and any one of the No. 3 network card interface and the No. 4 network card interface is closed. Case (3): when the network bandwidth required by the task carried by the No. 2 network card interface is changed from 20G/S in the initial state to 50G/S, only any one of the No. 1 network card interface, the No. 3 network card interface and the No. 4 network card interface needs to be closed. When the network bandwidth matched with any one of the network card interfaces of the electronic equipment changes, the configuration of the network card interface of the electronic equipment can be quickly adjusted according to the query result of the table 2-1, so that the number of available interfaces of the network card of the electronic equipment can be adjusted, and the waiting time of a user is saved.
Figure BDA0001928631280000091
TABLE 2-1
Fig. 2 is an alternative structural schematic diagram of an interface configuration adjustment apparatus 200 according to an embodiment of the present invention; as shown in fig. 2, an interface configuration adjusting apparatus provided in an embodiment of the present invention includes:
a monitoring module 201, configured to monitor a task carried by a network card interface of the electronic device, and determine a network bandwidth matched with the network card interface of the electronic device, where the network card interface of the electronic device is connected to a network device through the interface configuration adjustment device;
an adjusting module 202, configured to adjust a configuration of a network card interface of the electronic device based on the determined network bandwidth matched with the network card interface of the electronic device.
Therefore, the number of the available interfaces of the network card of the electronic equipment can be adjusted.
In an embodiment of the present invention, the adjusting module 202 is configured to close at least one of the network card interfaces of the electronic device when a network bandwidth matched with the network card interface of the electronic device is changed from a first network bandwidth to a second network bandwidth; wherein the first network bandwidth is less than the second network bandwidth. Through the technical solution shown in this embodiment, when the network bandwidth matched with the network card interface of the electronic device is converted into a larger second network bandwidth, at least one of the network card interfaces of the electronic device needs to be closed to meet the requirement of the second network bandwidth, for example, when the total network bandwidth is 100G/S, and when the network bandwidths required by the first interface and the second interface in the network card of the electronic device are both 50G/S, the first interface and the second interface of the network card of the electronic device can work simultaneously, and when the network bandwidth required by the first interface in the network card of the electronic device is 100G/S, through the technical solution shown in this embodiment, the second interface of the network card in the electronic device can be closed to ensure the normal work of the first interface, and meanwhile, a user does not need to upgrade the network card of the electronic device, the cost to the user is reduced.
In an embodiment of the present invention, the adjusting module 202 is configured to start at least one of the network card interfaces of the electronic device when the network bandwidth matched with the network card interface of the electronic device is changed from the second network bandwidth to a third network bandwidth; wherein the third network bandwidth is less than the second network bandwidth. Through the technical scheme shown in this embodiment, when the network bandwidth matched with the network card interface of the electronic device is converted into a smaller third network bandwidth, at least one of the network card interfaces of the electronic device may be turned on to meet the requirement of the third network bandwidth, for example, when the total network bandwidth is 100G/S and the network bandwidth required by the first interface in the network card of the electronic device is 100G/S to 50G/S, the second interface of the network card of the electronic device may be turned on through the technical scheme shown in this embodiment, at this time, the first interface and the second interface of the network card of the electronic device may work simultaneously, an interface for parallel task processing of the electronic device is added, and at the same time, a user does not need to adjust the network card of the electronic device, but only needs to adjust the configuration of the interface.
In an embodiment of the present invention, the adjusting module 202 is configured to, when it is monitored that a network bandwidth matching at least two network card interfaces of the electronic device changes, adjust the configuration of the network card interfaces of the electronic device based on the priority of the corresponding network card interfaces. Specifically, the network card interface adjustment sequence of the electronic device may be determined based on the priority of the corresponding network card interface; and adjusting the configuration of the network card interface of the electronic equipment based on the determined network card interface adjusting sequence of the electronic equipment. Through the technical scheme shown in this embodiment, priorities of network card interfaces carrying different tasks in the electronic device can be distinguished, and when it is monitored that network bandwidths matched with at least two network card interfaces in the network card interfaces of the electronic device change, the network card interface with a higher priority is adjusted first to ensure that services carried by the corresponding network card interface with a high priority are executed smoothly.
In an embodiment of the present invention, the adjusting module 202 is configured to, when it is monitored that a network bandwidth matching at least two network card interfaces of the electronic device changes, adjust the configuration of the network card interfaces of the electronic device based on an adjustment history of the corresponding network card interfaces. After the network card interface of the electronic device is adjusted once, the corresponding adjustment process may be recorded in the adjustment record table, as shown in table 1 in the preamble, the number of the changed network card interface, the change condition of the network bandwidth matching with the corresponding network card interface, and the adjustment result (closed or opened) may be recorded in the adjustment record table. With the technical solution shown in this embodiment, when the network bandwidth matching any one of the network card interfaces of the electronic device changes, the configuration of the network card interface of the electronic device can be quickly adjusted according to the query result of the pre-ordered table 1, so as to adjust the number of available interfaces of the network card of the electronic device, and save the waiting time of the user.
In an embodiment of the present invention, the adjusting module 202 is configured to query, in an adjustment record table of network card interfaces of the electronic device, an adjustment record corresponding to a change in network bandwidth that matches the at least two monitored network card interfaces; the adjusting module 202 is configured to adjust the configuration of the network card interface of the electronic device based on the adjustment record, so as to implement matching with the adjustment record. Specifically, after the network card interface of the electronic device is adjusted once, a corresponding adjustment process may be recorded in the adjustment record table, as shown in the foregoing table 2, a change condition of the network bandwidth may be recorded in the adjustment record table, and different adjustment schemes corresponding to the bandwidth change (different adjustment schemes may all be suitable for the change of the network bandwidth) may be recorded in the adjustment record table, and when the network bandwidth matching with any one of the network card interfaces of the electronic device changes, the configuration of the network card interface of the electronic device may be quickly adjusted according to a query result of the foregoing table 2, so as to adjust the number of available interfaces of the network card of the electronic device, and save the waiting time of a user.
Fig. 3 is an alternative flow chart of an interface configuration adjustment method according to an embodiment of the present invention; as shown in fig. 3, an optional flowchart of the interface configuration adjustment method according to the embodiment of the present invention is provided to describe the illustrated steps. The method shown in fig. 3 is applied to the interface configuration adjusting apparatus, the network card interface of the electronic device is connected to the network device through the interface configuration adjusting apparatus, and the total network bandwidth that the network device can provide is 100G/S.
Step 301: and monitoring the tasks carried by the network card interface of the electronic equipment, and determining the network bandwidth matched with the network card interface of the electronic equipment.
Step 302: judging whether the network bandwidth matched with the network card interface of the electronic equipment changes, if so, executing step 303, otherwise, returning to execute step 301;
step 303: judging whether the network bandwidth is converted from a first network bandwidth to a second network bandwidth; if so, go to step 304, otherwise, go to step 305;
step 304: and closing at least one interface in the network card interfaces of the electronic equipment.
Optionally, the first network bandwidth may be 40G/S, and the second network bandwidth is 100G/S; at this time, the interface configuration adjusting device shown in fig. 4 may close one of the two interfaces of the network card of the electronic device, so as to ensure that the other interface completes the carried task.
Step 305: judging whether the network bandwidth is converted from the second network bandwidth to a third network bandwidth; if yes, go to step 306, otherwise, go to step 307;
step 306: and starting at least one interface in the network card interfaces of the electronic equipment.
Optionally, the third network bandwidth may be 50G/S, and the second network bandwidth is 100G/S; at this time, the interface configuration adjusting device shown in fig. 4 may start one of the network card interfaces of the electronic device in an idle state, so as to increase the number of the network card parallel processing tasks of the electronic device, and a user does not need to adjust the network card of the electronic device, and only needs to adjust the configuration of the interface, thereby reducing the cost of the user.
Step 307: the listening state is maintained.
Fig. 4 is an alternative structural schematic diagram of an interface configuration adjustment apparatus according to an embodiment of the present invention; as shown in fig. 4, an interface configuration adjusting apparatus provided in an embodiment of the present invention includes:
the network interface of the electronic device is connected to the network device through the first interface 401 and the second interface 402 of the interface configuration adjusting device, which can be implemented by the interface configuration adjusting device shown in fig. 4, and monitors a task carried by the network interface of the electronic device, determines a network bandwidth matched with the network interface of the electronic device, and adjusts the configuration of the network interface of the electronic device based on the determined network bandwidth matched with the network interface of the electronic device, so as to adjust the number of available interfaces of the network interface of the electronic device.
Fig. 5 is an alternative structural schematic diagram of an interface configuration adjustment apparatus according to an embodiment of the present invention; as shown in fig. 5, the functions implemented by the interface configuration adjusting device are fixed in the dual-port network card, and the interface configuration adjusting device provided in the embodiment of the present invention includes:
a first interface 501 and a second interface 502, wherein a network card interface of the electronic device is connected to the network device through the first interface 501 and the second interface 502 of the interface configuration adjusting device, and the functions cured by the interface configuration adjusting device shown in fig. 5 can implement: monitoring a task carried by a network card interface of the electronic equipment, determining a network bandwidth matched with the network card interface of the electronic equipment, and adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment.
In an embodiment of the present invention, when the network bandwidth matched with the network card interface of the electronic device is changed from the first network bandwidth to the second network bandwidth, the interface 501 in the network card interface of the electronic device is closed; when the network bandwidth matched with the network card interface of the electronic device is changed from the second network bandwidth to a third network bandwidth, starting an interface 501 in the network card interface of the electronic device; wherein the first network bandwidth is less than the second network bandwidth, and the third network bandwidth is less than the second network bandwidth.
Fig. 6 is an alternative structural schematic diagram of an interface configuration adjustment apparatus according to an embodiment of the present invention; as shown in fig. 6, the functions implemented by the interface configuration adjusting device are fixed in the multi-port network card, and the interface configuration adjusting device provided in the embodiment of the present invention includes:
the network card interface of the electronic device is connected to the network device through the first interface 601, the second interface 602, the third interface 603, and the fourth interface 604 of the interface configuration adjusting device, and the functions cured by the interface configuration adjusting device shown in fig. 6 can implement: monitoring a task carried by a network card interface of the electronic equipment, determining a network bandwidth matched with the network card interface of the electronic equipment, and adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment.
In an embodiment of the present invention, when the network bandwidth matched with the network card interface of the electronic device is changed from the first network bandwidth to the second network bandwidth, at least one of the interfaces 601 to 603 in the network card interface of the electronic device is closed, so as to ensure that the task carried by the interface 604 is normally executed; when the network bandwidth matched with the network card interface of the electronic equipment is changed from a second network bandwidth to a third network bandwidth, starting at least one interface from the interfaces 601 to 603 in the network card interface of the electronic equipment to realize that the multi-port network card processes a plurality of tasks in parallel, so that a user does not need to replace the network card of the electronic equipment, only needs to adjust the configuration of the interfaces, and the cost of the user is reduced; wherein the first network bandwidth is less than the second network bandwidth, and the third network bandwidth is less than the second network bandwidth.
Fig. 7 is an alternative structure diagram of the interface configuration adjusting apparatus according to the embodiment of the present invention, and as shown in fig. 7, the interface configuration adjusting apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. with a connection function, and the network card interface of the electronic device is connected to the network device through the interface configuration adjusting apparatus. The interface configuration adjustment apparatus 700 shown in fig. 7 includes: at least one processor 701, a memory 702, at least one network interface 704, and a user interface 703. The various components in the interface configuration adjustment apparatus 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Wherein, the nonvolatile Memory can be Read Only Memory (ROM), PROM, EPROM, EEPROM, FRAM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; the magnetic surface storage may be disk storage or tape storage. Volatile memory can be RAM, which acts as external cache memory. By way of example but not limitation, many forms of RAM are available, such as SRAM, SSRAM, DRAM, SDRAM, DDRSDRAM, ESDRAM, SLDRAM, DRRAM. The memory 702 described in connection with the embodiments of the invention is intended to comprise these and any other suitable types of memory.
Memory 702 in embodiments of the present invention includes, but is not limited to: the ternary content addressable memory and the static random access memory can store various data such as network card interface labels, network bandwidth variation conditions and the like so as to support the operation of the interface configuration adjusting device 700. Examples of such data include: any computer program for operating on the interface configuration adjustment apparatus 700, such as an operating system 7021 and application programs 7022, state information, connection relationships, received adjustment information, and the like. The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 may include various applications, such as a client with interface configuration adjustment function, or an application, and the like, for implementing operations including: monitoring a task carried by a network card interface of the electronic equipment, and determining a network bandwidth matched with the network card interface of the electronic equipment; and adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment. A program for implementing the method for adjusting interface configuration according to the embodiment of the present invention may be included in the application program 7022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or operations in the form of software in the processor 701. The processor 701 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 702, and the processor 701 may read the information in the memory 702 and perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the interface configuration adjustment apparatus 700 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components for performing the method of interface configuration adjustment.
In an exemplary embodiment, the embodiment of the present invention further provides a computer readable storage medium, for example, a memory 702 including a computer program, which is executable by a processor 701 of the interface configuration adjusting apparatus 700 to perform the steps of the foregoing method. The computer readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flashmemory, magnetic surface memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs:
monitoring a task carried by a network card interface of the electronic equipment, and determining a network bandwidth matched with the network card interface of the electronic equipment, wherein the network card interface of the electronic equipment is connected with the network equipment through an interface configuration adjusting device;
and adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including magnetic disk storage, optical storage, and the like) having computer-usable program code embodied in the medium.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program operations. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the operations performed by the processor of the computer or other programmable data processing apparatus produce means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program operations may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the operations stored in the computer-readable memory produce an article of manufacture including operating means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program operations may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the operations executed on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (8)

1. A method of interface configuration adjustment, the method comprising:
monitoring a task carried by a network card interface of the electronic equipment, and determining a network bandwidth matched with the network card interface of the electronic equipment, wherein the network card interface of the electronic equipment is connected with the network equipment through an interface configuration adjusting device;
adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment;
the adjusting the configuration of the network card interface of the electronic device based on the determined network bandwidth matched with the network card interface of the electronic device includes:
when the network bandwidth matched with the network card interface of the electronic equipment is changed from a first network bandwidth to a second network bandwidth, closing at least one interface in the network card interface of the electronic equipment;
the first network bandwidth is less than the second network bandwidth.
2. The method of claim 1, wherein adjusting the configuration of the network card interface of the electronic device based on the determined network bandwidth matching the network card interface of the electronic device comprises:
when the network bandwidth matched with the network card interface of the electronic equipment is changed from a second network bandwidth to a third network bandwidth, starting at least one interface in the network card interface of the electronic equipment;
the third network bandwidth is less than the second network bandwidth.
3. The method of claim 1, further comprising:
when monitoring that the network bandwidth matched with at least two network card interfaces in the network card interfaces of the electronic equipment changes, adjusting the configuration of the network card interfaces of the electronic equipment based on the priority of the corresponding network card interfaces.
4. The method of claim 1, further comprising:
and when monitoring that the network bandwidth matched with at least two network card interfaces in the network card interfaces of the electronic equipment changes, adjusting the configuration of the network card interfaces of the electronic equipment based on the adjustment history of the corresponding network card interfaces.
5. The method of claim 1, wherein adjusting the configuration of the network card interface of the electronic device based on the adjustment history of the corresponding network card interface comprises:
inquiring an adjustment record corresponding to the change of the network bandwidth matched with the at least two network card interfaces in an adjustment record table of the network card interfaces of the electronic equipment;
and adjusting the configuration of a network card interface of the electronic equipment based on the adjustment record so as to realize matching with the adjustment record.
6. An interface configuration adjustment apparatus, the interface configuration adjustment apparatus comprising:
the monitoring module is used for monitoring tasks carried by a network card interface of the electronic equipment and determining a network bandwidth matched with the network card interface of the electronic equipment, and the network card interface of the electronic equipment is connected with the network equipment through the interface configuration adjusting device;
the adjusting module is used for adjusting the configuration of the network card interface of the electronic equipment based on the determined network bandwidth matched with the network card interface of the electronic equipment so as to adjust the number of available interfaces of the network card of the electronic equipment;
the adjusting module is used for closing at least one interface in the network card interfaces of the electronic equipment when the network bandwidth matched with the network card interfaces of the electronic equipment is changed from a first network bandwidth to a second network bandwidth;
the first network bandwidth is less than the second network bandwidth.
7. The apparatus of claim 6, wherein the first and second electrodes are disposed on opposite sides of the substrate,
the adjusting module is used for starting at least one of the network card interfaces of the electronic equipment when the network bandwidth matched with the network card interface of the electronic equipment is changed from a second network bandwidth to a third network bandwidth;
the third network bandwidth is less than the second network bandwidth.
8. An electronic device, the number of network card interfaces of the electronic device being at least two, the electronic device comprising the interface configuration adjusting apparatus of claim 6 or 7.
CN201811629279.4A 2018-12-28 2018-12-28 Interface configuration adjusting method and device and electronic equipment Active CN109787818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811629279.4A CN109787818B (en) 2018-12-28 2018-12-28 Interface configuration adjusting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811629279.4A CN109787818B (en) 2018-12-28 2018-12-28 Interface configuration adjusting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109787818A CN109787818A (en) 2019-05-21
CN109787818B true CN109787818B (en) 2020-08-25

Family

ID=66498854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811629279.4A Active CN109787818B (en) 2018-12-28 2018-12-28 Interface configuration adjusting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109787818B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941465A (en) * 2022-12-02 2023-04-07 京东科技信息技术有限公司 Network card configuration method and device, electronic equipment and computer readable storage medium
CN118646716A (en) * 2024-08-13 2024-09-13 苏州元脑智能科技有限公司 Transmission control method, network card, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123093A (en) * 2011-03-04 2011-07-13 华中科技大学 Method for ensuring necessary network bandwidth of virtual machine
CN102158391A (en) * 2010-11-12 2011-08-17 华为数字技术有限公司 Method and device for adjusting link bandwidth
CN103260145A (en) * 2013-04-18 2013-08-21 中国科学院计算技术研究所 Mobile management method and system based on PMIPv6 intra-area service flow switching
CN104038968A (en) * 2013-03-08 2014-09-10 中国移动通信集团广东有限公司 Method and apparatus for controlling electronic device to share network bandwidth
CN106550049A (en) * 2016-12-02 2017-03-29 清华大学深圳研究生院 A kind of Middleware portion arranging method, apparatus and system
CN107566299A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 A kind of dynamic link aggregation implementation method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110775A (en) * 2007-07-06 2008-01-23 中兴通讯股份有限公司 Method and system for dynamically regulating load distribution
CN102257849B (en) * 2011-06-08 2014-06-04 华为技术有限公司 Method, system and apparatus for dynamically adjusting link
US9602355B2 (en) * 2013-07-31 2017-03-21 Cisco Technology, Inc. Network interface with adjustable rate
CN106712899B (en) * 2016-11-25 2020-10-16 浙江宇视科技有限公司 Port rate adjusting method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158391A (en) * 2010-11-12 2011-08-17 华为数字技术有限公司 Method and device for adjusting link bandwidth
CN102123093A (en) * 2011-03-04 2011-07-13 华中科技大学 Method for ensuring necessary network bandwidth of virtual machine
CN104038968A (en) * 2013-03-08 2014-09-10 中国移动通信集团广东有限公司 Method and apparatus for controlling electronic device to share network bandwidth
CN103260145A (en) * 2013-04-18 2013-08-21 中国科学院计算技术研究所 Mobile management method and system based on PMIPv6 intra-area service flow switching
CN107566299A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 A kind of dynamic link aggregation implementation method and device
CN106550049A (en) * 2016-12-02 2017-03-29 清华大学深圳研究生院 A kind of Middleware portion arranging method, apparatus and system

Also Published As

Publication number Publication date
CN109787818A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
US7305569B2 (en) Apparatus, system and method for adjusting a set of actual power states according to a function depending on a set of desired power states
CN109787818B (en) Interface configuration adjusting method and device and electronic equipment
US7802081B2 (en) Exposed sequestered partition apparatus, systems, and methods
JP2009514084A (en) Data processing device with reset device
US20150135181A1 (en) Information processing device and method for protecting data in a call stack
CN101729957A (en) Electronic device and method for eliminating sound volume mutation
US11640319B1 (en) Task processing method and apparatus, electronic device and storage medium
CN111930530A (en) Equipment message processing method, device and medium based on Internet of things
CN104994547A (en) Network access method and user terminal
US20220159082A1 (en) Intelligent persistent mobile device management
US20180121295A1 (en) Backup Optimization Based Dynamic Resource Feedback
CN111258676B (en) Module preloading method, device, equipment and readable storage medium
CN104869617A (en) Terminal control method
US20210389906A1 (en) System and Method for Smart User Polling
US11864116B2 (en) System and method for saving mobile battery and empowering user equipment for incoming communication and paging
CN104954583A (en) Terminal
EP3731556A1 (en) Method for channel monitoring, and communication device
CN110855577A (en) Method for judging unloading of edge computing task, server and storage medium
WO2015047926A1 (en) Power consumption reduction in a computing device
EP4332836A1 (en) Method and system for switching between hardware accelerators for data model training
CN111030856B (en) Cloud-based data access method, electronic device and computer readable medium
CN112434607B (en) Feature processing method, device, electronic equipment and computer readable storage medium
CN116419199A (en) Service quality monitoring method, device, related equipment and storage medium
CN117909341A (en) Multitasking method, apparatus, computer device and storage medium
CN112765081A (en) Interface control method and device and electronic equipment

Legal Events

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