CN106027304A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN106027304A
CN106027304A CN201610350251.1A CN201610350251A CN106027304A CN 106027304 A CN106027304 A CN 106027304A CN 201610350251 A CN201610350251 A CN 201610350251A CN 106027304 A CN106027304 A CN 106027304A
Authority
CN
China
Prior art keywords
bandwidth
network interface
demand amount
server
interface card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610350251.1A
Other languages
Chinese (zh)
Other versions
CN106027304B (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 CN201610350251.1A priority Critical patent/CN106027304B/en
Publication of CN106027304A publication Critical patent/CN106027304A/en
Application granted granted Critical
Publication of CN106027304B publication Critical patent/CN106027304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/78Architectures of resource allocation

Abstract

The invention discloses an information processing method and an electronic device. The method is applied to the electronic device. The electronic device is connected with at least one server and a switch. The method comprises the steps of obtaining bandwidth demands of the at least one server; and providing bandwidths corresponding to the bandwidth demands for one or multi-network card combination in the at least one network card arranged in the electronic device according to the bandwidth demands, thereby enabling the at least one server to carry out data transmission with the switch through the at least one network cards. According to the method and the electronic device, the technical problem that in the prior art, the resource utilization rate of the network card is low due to the fact that the network card provided for the server is fixed is solved.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of information processing method and electronic equipment.
Background technology
Network interface card is Connection Service device and the interface of switch in LAN, can not only realize being situated between with local network transport Physical connection between matter and the function of signal of telecommunication coupling.
In prior art, in advance to the server-assignment network interface card being connected, it is possible to realize server and interconnection The linkage function of net.
But present inventor during inventive technique scheme, finds above-mentioned in realizing the embodiment of the present application At least there is following technical problem in technology: owing in prior art, network interface card to server-assignment is fixing, The bandwidth causing network interface card to provide takies waste for no reason;The bandwidth causing network interface card to provide is not enough.Always Prior art exist because of the network interface card that server is provided be fixing, cause the skill that network interface card resource utilization is low Art problem.
Summary of the invention
The application provides a kind of information processing method and electronic equipment, solves in prior art because carrying server The network interface card of confession is fixing, causes the technical problem that network interface card resource utilization is low.
A kind of method that on the one hand the embodiment of the present application provides information processing, is applied to an electronic equipment, institute Stating electronic equipment to be connected with at least one server and switch respectively, described method includes:
Obtain the bandwidth demand amount of at least one server described;
According to one at least one network interface card that described bandwidth demand amount will be arranged in described electronic equipment Or the combination of multiple network interface card, it is provided that the bandwidth corresponding with described bandwidth demand amount so that at least one service described Device can be carried out data transmission with described switch by least one network interface card described.
Optionally, the bandwidth demand amount of at least one server described in described acquisition, specifically include:
Detection is the bandwidth usage amount of at least one server described in obtaining preset time period, based on described bandwidth Usage amount obtains described bandwidth demand amount.
Optionally, described at least one net being arranged in described electronic equipment according to described bandwidth demand amount One or more network interface cards combination in card, it is provided that the bandwidth corresponding with described bandwidth demand amount, specifically includes:
Detection obtains the current bandwidth summation of at least one network interface card described;
Judge that whether the summation of described bandwidth demand amount is less than described current bandwidth summation;
When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;
Based on described amount of bandwidth available, the one or more network interface cards at least one network interface card described are combined, carries For the bandwidth corresponding with described bandwidth demand amount.
Optionally, the described summation judging described bandwidth demand amount whether less than described current bandwidth summation it After, also include:
When the summation of described bandwidth demand amount is more than described current bandwidth summation, by least one server described In the bandwidth demand amount of each server account for the pro rate of bandwidth demand amount summation.
Optionally, described at least one net being arranged in described electronic equipment according to described bandwidth demand amount One or more network interface cards combination in card, it is provided that the bandwidth corresponding with described bandwidth demand amount, specifically includes:
When the available bandwidth of at least one network interface card described is identical, based on described bandwidth demand amount, it is thus achieved that with described The number of the connecting line that bandwidth demand amount is corresponding;
Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is used for connecting At least one server described and described processor.
On the other hand the embodiment of the present application provides a kind of electronic equipment, and this electronic equipment takes with at least one respectively Business device is connected with switch, and described electronic equipment includes:
Housing;
At least one network interface card, is arranged in described housing;
Processor, is arranged in described housing, is connected with at least one network interface card described, be used for obtaining described in extremely The bandwidth demand amount of a few server;To be arranged in described electronic equipment according to described bandwidth demand amount One or more network interface cards combination at least one network interface card, it is provided that the bandwidth corresponding with described bandwidth demand amount, Make at least one server described can carry out data by least one network interface card described and described switch Transmission.
Optionally, described processor is additionally operable to:
Detection is the bandwidth usage amount of at least one server described in obtaining preset time period, based on described bandwidth Usage amount obtains described bandwidth demand amount.
Optionally, described processor is additionally operable to:
Detection obtains the current bandwidth summation of at least one network interface card described;
Judge that whether the summation of described bandwidth demand amount is less than described current bandwidth summation;
When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;
Based on described amount of bandwidth available, the one or more network interface cards at least one network interface card described are combined, carries For the bandwidth corresponding with described bandwidth demand amount.
Optionally, described processor is additionally operable to:
After whether the described summation judging described bandwidth demand amount is less than described current bandwidth summation, described band When the summation of wide demand is more than described current bandwidth summation, by each service at least one server described The bandwidth demand amount of device accounts for the pro rate of bandwidth demand amount summation.
Optionally, described processor is additionally operable to:
When the available bandwidth of at least one network interface card described is identical, based on described bandwidth demand amount, it is thus achieved that with described The number of the connecting line that bandwidth demand amount is corresponding;
Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is used for connecting At least one server described and described processor.
Said one in the embodiment of the present application or multiple technical scheme, at least have one or more skills following Art effect:
One, owing to, in technical scheme in the embodiment of the present application, have employed acquisition at least one service described The bandwidth demand amount of device;At least one net being arranged in described electronic equipment according to described bandwidth demand amount In card one or more network interface cards combination, it is provided that the bandwidth corresponding with described bandwidth demand amount so that described extremely The technology that a few server can be carried out data transmission with described switch by least one network interface card described Means.So, when the bandwidth of server is not enough, can be by other network interface card in electronic equipment to this Server provides bandwidth, so there is no need to again change network interface card, it is achieved that improves electronic equipment and uses just Victory, improves the technique effect of the resource utilization of network interface card.
Two, owing to, in technical scheme in the embodiment of the present application, have employed detection and obtaining in preset time period The bandwidth usage amount of at least one server described, obtains described bandwidth demand amount based on described bandwidth usage amount Technological means.As such, it is possible to obtain the bandwidth demand amount of each server, and according to each server Bandwidth demand amount distribution network interface card, it is achieved that according to the demand assignment network interface card of user, be effectively improved the utilization of network interface card The technique effect of rate.
Three, owing to, in technical scheme in the embodiment of the present application, have employed at least one described in detection acquisition The current bandwidth summation of network interface card;Judge that the summation of described bandwidth demand amount is the most total less than described current bandwidth With;When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;Based on described amount of bandwidth available, by least one network interface card described In one or more network interface cards combination, it is provided that the technological means of the bandwidth corresponding with described bandwidth demand amount.This Sample, when the bandwidth summation that the bandwidth demand amount of server provides less than electronic equipment, can by one or Multiple network interface cards combine, and close the network interface card not used, it is achieved that reduce the technique effect of electronic device energy consumption.
Four, due in technical scheme in the embodiment of the present application, have employed at least one network interface card described can With bandwidth identical time, based on described bandwidth demand amount, it is thus achieved that the connecting line corresponding with described bandwidth demand amount Number;Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is for even Connect at least one server described and the technological means of described processor.So, according to the bandwidth need of server The amount of asking, determines the number of connecting line corresponding to demand, turns on the connecting line corresponding with number, it is achieved that Quickly distribute the technique effect of bandwidth demand amount.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present application or prior art, below to reality Execute the required accompanying drawing used during example describes to be briefly described, it should be apparent that, the accompanying drawing in describing below It is only some embodiments of the application.
The flow chart of the Fig. 1 a kind of information processing method for providing in the embodiment of the present application one;
The structure chart of the Fig. 2 a kind of electronic equipment for providing in the embodiment of the present application two.
Detailed description of the invention
The embodiment of the present application provides a kind of information processing method and electronic equipment, be used for solving in prior art because of The network interface card providing server is fixing, causes the technical problem that network interface card resource utilization is low.
Technical scheme in the embodiment of the present application is to solve above-mentioned technical problem, and general thought is as follows:
Obtain the bandwidth demand amount of at least one server being connected with electronic equipment;
According to one at least one network interface card that described bandwidth demand amount will be arranged in described electronic equipment Or the combination of multiple network interface card, it is provided that the bandwidth corresponding with described bandwidth demand amount so that at least one service described Device can be carried out data transmission by least one network interface card described and the switch being connected with described electronic equipment.
Owing to, in technical scheme in the embodiment of the present application, have employed the bandwidth obtaining at least one server Demand, and or many will arranged at least one network interface card in the electronic device according to bandwidth demand amount Individual network interface card combines, it is provided that the technological means of the bandwidth corresponding with described bandwidth demand amount.So, it is achieved that carry The technique effect of high network interface card resource utilization.
Below in conjunction with the accompanying drawings the embodiment of the present application technical scheme main is realized principle, detailed description of the invention and The beneficial effect that should be able to reach is explained in detail by it.
Embodiment one
Refer to Fig. 1, the embodiment of the present application provides a kind of information processing method, is applied to an electronic equipment, Described electronic equipment is connected with at least one server and switch respectively, and described method includes:
S101: obtain the bandwidth demand amount of at least one server described;
In the embodiment of the present application, electronic equipment is connected with at least one server and switch respectively, and electronics sets For being internally provided with processor and at least one network interface card, the processor of electronic equipment can be according to each processor Bandwidth demand amount, control each server connect network interface card so that server by described electronic equipment with Switch carries out data exchange, connects the Internet.
In the following manner is had to may determine that the bandwidth demand amount of at least one server:
The first: detection is the bandwidth usage amount of at least one server described in obtaining preset time period, based on Described bandwidth usage amount obtains described bandwidth demand amount.
In the embodiment of the present application, it is thus achieved that each processor bandwidth usage amount in preset time period, Jing Guotong After meter is analyzed, it is thus achieved that each processor bandwidth usage amount in preset time period, then it is obtained with Server bandwidth usage amount in this preset time period.
In a particular embodiment, include with at least one server: server A, server B, server As a example by C and server D.If electronic equipment detected between 8 o'clock to 9 o'clock every night, The bandwidth usage amount of server A is 50M, and the bandwidth usage amount of server B is 100M, server C Bandwidth usage amount be 150M, the bandwidth usage amount of server D is 200M.Thus may determine that The when of 8 o'clock to 9 o'clock every day, the bandwidth usage amount of server A is 50M, and the bandwidth of server B makes Consumption is 100M, and the bandwidth usage amount of server C is 150M, and the bandwidth usage amount of server D is 200M。
The second: in judging preset time period, whether the bandwidth usage amount of at least one server described is equal to The bandwidth of at least one server-assignment described;If it is, the bandwidth increasing at least one server described needs The amount of asking.
In the embodiment of the present application, electronic equipment be the bandwidth of server-assignment be certain, so working as server Bandwidth usage amount always equal to distribution bandwidth, then show that server is likely to occur the feelings that bandwidth is not enough Condition, the bandwidth of distribution can not meet the bandwidth demand amount of server.At this moment, bandwidth demand amount is increased, increase Add as the bandwidth of server-assignment.After increasing bandwidth demand amount, if be detected that preset time period is taken orally The bandwidth usage amount of business device then represents less than the amount of bandwidth of distribution, and current amount of bandwidth allocation meets server Demand, it is not necessary to increase the network interface card to server-assignment;If be detected that the band of preset time period server Wide usage amount is still equal to the amount of bandwidth of distribution, then it represents that current amount of bandwidth allocation is still unsatisfactory for the need of server Ask, then continue to increase bandwidth demand amount, increase to the bandwidth of server-assignment, increase and to server-assignment Network interface card.
The third: obtain the type of the currently processed task of each server at least one server described;
Type based on described currently processed task, determines the bandwidth demand amount of at least one server described.
In the embodiment of the present application, because the task of server process is different, required amount of bandwidth is different, If server is browsing webpage, the bandwidth that may need is less, if server under at film, Then bandwidth demand amount is bigger.So the type of server process task can be united with bandwidth demand amount Meter, foundation processes the corresponding relation of task type and bandwidth demand amount, is so determining that server is currently located After the type of reason task, it is possible to determine corresponding with the type of currently processed task according to corresponding relation Bandwidth demand amount.
Concrete, include with at least one server: server A, server B, server C and service Device D, corresponding relation includes " browsing webpage-20M ", " listening music-30M ", " lower film-100M " and As a example by the corresponding relation of " play games-50M ".When server carries out data biography by electronic equipment and switch Time defeated, electronic equipment is obtained with the type of the task that server is processing.If server A is Browsing webpage, server B is listening music, server C descending film, server D playing trip Play.Then processing the type of task according to each server, determining that the bandwidth demand amount of server A is 20M, the bandwidth demand amount of server B is 30M, and the bandwidth demand amount of server C is 100M, service The bandwidth demand amount of device D is 50M.
S102: according at least one network interface card that described bandwidth demand amount will be arranged in described electronic equipment One or more network interface cards combine, it is provided that the bandwidth corresponding with described bandwidth demand amount so that described at least one Server can be carried out data transmission with described switch by least one network interface card described.
Optionally, at least one network interface card being arranged in described electronic equipment according to described bandwidth demand amount One or more network interface cards combination, it is provided that the bandwidth corresponding with described bandwidth demand amount, specifically include:
Detection obtains the current bandwidth summation of at least one network interface card described;
Judge that whether the summation of described bandwidth demand amount is less than described current bandwidth summation;
When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;
Based on described amount of bandwidth available, the one or more network interface cards at least one network interface card described are combined, carries For the bandwidth corresponding with described bandwidth demand amount.
In the embodiment of the present application, being provided with at least one network interface card in electronic equipment provides at least one server Bandwidth, if the bandwidth demand amount of each server less than electronic equipment provide total bandwidth, can to A few network interface card is selected one or more combination, provides bandwidth to server, thus can reduce The energy consumption of electronic equipment.
Concrete, including with at least one server: server A, server B, bandwidth demand amount is 50M And 100M, electronic equipment is provided with network interface card 1, network interface card 2, network interface card 3 and network interface card 4, these four network interface card energy As a example by the amount of bandwidth available provided is respectively 100M, 20M, 30M and 100M.Server A and service The bandwidth demand amount summation of device B is 150M, the available bandwidth 250M provided less than electronic equipment, and net Card 1, network interface card 2, network interface card 3 or network interface card 2, network interface card 3, network interface card 4 available bandwidth sum are 150M, can To provide bandwidth to server A and server B, then network interface card 1, network interface card 2 and network interface card 3 are combined, or Network interface card 2 and network interface card 3, network interface card 4 are combined and provides bandwidth to server A and server B.
Optionally, it is judged that whether the summation of described bandwidth demand amount, less than after described current bandwidth summation, goes back Including:
When the summation of described bandwidth demand amount is more than described current bandwidth summation, by least one server described In the bandwidth demand amount of each server account for the pro rate of bandwidth demand amount summation.
In the embodiment of the present application, in electronic equipment detects the same time period, it is connected with electronic equipment determining The wide demand summation of server be provided that more than electronic equipment total bandwidth time, now bandwidth is carried out by Pro rate, the bandwidth demand amount calculating each virtual machine accounts for the bandwidth demand amount summation of the plurality of virtual machine Percentage ratio, then be multiplied by, with described percentage ratio, the amount of bandwidth that total bandwidth show that each virtual machine distributes.Concrete: Including with at least one server: server A, server B, server C, the bandwidth of server A needs The amount of asking is 100M, the bandwidth demand amount of server B is 50M, and the bandwidth demand amount of server C is 50M, As a example by current bandwidth summation is 100M, server A, server B, server C bandwidth demand amount total With for 200M, exceeded current bandwidth summation 100M, the most respectively calculation server A, server B, It is 50%, 25%, 25% that the bandwidth demand amount of server C accounts for the percentage ratio of demand summation, is multiplied by current Bandwidth summation 100M, obtain server A, server B, the amount of bandwidth allocation of server C are respectively 50M, 25M, 25M, and distribute bandwidth by described amount of bandwidth allocation.
Optionally, at least one network interface card being arranged in described electronic equipment according to described bandwidth demand amount One or more network interface cards combination, it is provided that the bandwidth corresponding with described bandwidth demand amount, specifically include:
When at least one network interface card described, the available bandwidth of each network interface card is identical, based on described bandwidth demand amount, Obtain the number of the connecting line corresponding with described bandwidth demand amount;
Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is used for connecting At least one server described and described processor.
Being provided with multiple network interface card in the embodiment of the present application in electronic equipment, the server being connected with electronic equipment leads to Cross the connecting line corresponding with network interface card number and connect electronic equipment, when determine server bandwidth demand amount it After, the quantity of the network interface card of distribution is determined according to bandwidth demand amount, thus can be according to the number of the network interface card of distribution The number of the connecting line that amount conducting is corresponding.To server-assignment bandwidth when, so just can need not elder generation Determine the network interface card to each server-assignment, then turn on the connection of server and corresponding network interface card.Can be quick For server-assignment bandwidth, improve bandwidth allocative efficiency.
Concrete, include server A, server B, server C and server with at least one server D, is provided with 8 network interface cards, as a example by the available bandwidth of each network interface card is 10M in electronic equipment.If so It is 10M that detection obtains the bandwidth demand amount of server A, and detection obtains the bandwidth demand amount of server B and is 20M, it is 10M that detection obtains the bandwidth demand amount of server C, and detection obtains the bandwidth of server A and needs The amount of asking is 40M, it is determined that going out server A needs to connect a network interface card, and server B needs to connect two Network interface card, server C needs to connect a network interface card, and server D can connect four network interface cards, thus leads Logical server A and the connection of a connecting line of processor, turn on two companies of server B and processor The connection of wiring, the connection of four connecting lines between conducting C server and processor, adjust server The connection of four connecting lines between D and processor.
Embodiment two
Refer to Fig. 2, the embodiment of the present application also provides for a kind of electronic equipment, including:
Housing 201;
At least one network interface card 202, is arranged in described housing;
Processor 203, is arranged in described housing, is connected with at least one network interface card described, is used for obtaining institute State the bandwidth demand amount of at least one server;Described electronic equipment will be arranged on according to described bandwidth demand amount In at least one network interface card in one or more network interface cards combination, it is provided that the band corresponding with described bandwidth demand amount Wide so that at least one server described can be by least one network interface card described and described switch number According to transmission.
Optionally, described processor is additionally operable to:
Detection is the bandwidth usage amount of at least one server described in obtaining preset time period, based on described bandwidth Usage amount obtains described bandwidth demand amount.
Optionally, described processor is additionally operable to:
Detection obtains the current bandwidth summation of at least one network interface card described;
Judge that whether the summation of described bandwidth demand amount is less than described current bandwidth summation;
When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;
Based on described amount of bandwidth available, the one or more network interface cards at least one network interface card described are combined, carries For the bandwidth corresponding with described bandwidth demand amount.
Optionally, described processor is additionally operable to:
After whether the described summation judging described bandwidth demand amount is less than described current bandwidth summation, described band When the summation of wide demand is more than described current bandwidth summation, by each service at least one server described The bandwidth demand amount of device accounts for the pro rate of bandwidth demand amount summation.
Said one in the embodiment of the present application or multiple technical scheme, at least have one or more skills following Art effect:
One, owing to, in technical scheme in the embodiment of the present application, have employed acquisition at least one service described The bandwidth demand amount of device;At least one net being arranged in described electronic equipment according to described bandwidth demand amount In card one or more network interface cards combination, it is provided that the bandwidth corresponding with described bandwidth demand amount so that described extremely The technology that a few server can be carried out data transmission with described switch by least one network interface card described Means.So, when the bandwidth of server is not enough, can be by other network interface card in electronic equipment to this Server provides bandwidth, so there is no need to again change network interface card, it is achieved that improves electronic equipment and uses just Victory, improves the technique effect of the resource utilization of network interface card.
Two, owing to, in technical scheme in the embodiment of the present application, have employed detection and obtaining in preset time period The bandwidth usage amount of at least one server described, obtains described bandwidth demand amount based on described bandwidth usage amount Technological means.As such, it is possible to obtain the bandwidth demand amount of each server, and according to each server Bandwidth demand amount distribution network interface card, it is achieved that according to the demand assignment network interface card of user, be effectively improved the utilization of network interface card The technique effect of rate.
Three, owing to, in technical scheme in the embodiment of the present application, have employed at least one described in detection acquisition The current bandwidth summation of network interface card;Judge that the summation of described bandwidth demand amount is the most total less than described current bandwidth With;When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;Based on described amount of bandwidth available, by least one network interface card described In one or more network interface cards combination, it is provided that the technological means of the bandwidth corresponding with described bandwidth demand amount.This Sample, when the bandwidth summation that the bandwidth demand amount of server provides less than electronic equipment, can by one or Multiple network interface cards combine, and close the network interface card not used, it is achieved that reduce the technique effect of electronic device energy consumption.
Four, due in technical scheme in the embodiment of the present application, have employed at least one network interface card described can With bandwidth identical time, based on described bandwidth demand amount, it is thus achieved that the connecting line corresponding with described bandwidth demand amount Number;Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is for even Connect at least one server described and the technological means of described processor.So, according to the bandwidth need of server The amount of asking, determines the number of connecting line corresponding to demand, turns on the connecting line corresponding with number, it is achieved that Quickly distribute the technique effect of bandwidth demand amount.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and the computer program product according to the embodiment of the present application The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Specifically, the computer program instructions that the information processing method in the embodiment of the present application is corresponding can be by It is stored in CD, hard disk, on the storage medium such as USB flash disk, corresponding with information processing method when in storage medium Computer program instructions read or when being performed by an electronic equipment, comprise the steps:
Obtain the bandwidth demand amount of at least one server being connected with described electronic equipment;According to described bandwidth One or more network interface cards combination at least one network interface card that demand will be arranged in described electronic equipment, carries For the bandwidth corresponding with described bandwidth demand amount so that at least one server described can by described at least One network interface card and the switch being connected with described electronic equipment carry out data transmission.
Optionally, the computer journey that step " the bandwidth demand amount of at least one server described in obtaining " is corresponding Sequence instructs when executed, specifically includes following steps:
Detection is the bandwidth usage amount of at least one server described in obtaining preset time period, based on described bandwidth Usage amount obtains described bandwidth demand amount.
Optionally, step " according to described bandwidth demand amount by be arranged in described electronic equipment at least one One or more network interface cards combination in network interface card, it is provided that the bandwidth corresponding with described bandwidth demand amount " corresponding meter Calculation machine programmed instruction when executed, specifically includes following steps:
Detection obtains the current bandwidth summation of at least one network interface card described;
Judge that whether the summation of described bandwidth demand amount is less than described current bandwidth summation;
When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;
Based on described amount of bandwidth available, the one or more network interface cards at least one network interface card described are combined, carries For the bandwidth corresponding with described bandwidth demand amount.
Optionally, step " judges that whether the summation of described bandwidth demand amount is less than described current bandwidth summation " Corresponding computer program instructions, after being performed, also comprises the steps:
When the summation of described bandwidth demand amount is more than described current bandwidth summation, by least one server described In the bandwidth demand amount of each server account for the pro rate of bandwidth demand amount summation.
Optionally, step " according to described bandwidth demand amount by be arranged in described electronic equipment at least one One or more network interface cards combination in network interface card, it is provided that the bandwidth corresponding with described bandwidth demand amount " corresponding meter Calculation machine programmed instruction when executed, specifically includes following steps:
When the available bandwidth of at least one network interface card described is identical, based on described bandwidth demand amount, it is thus achieved that with described The number of the connecting line that bandwidth demand amount is corresponding;
Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is used for connecting At least one server described and described processor.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. an information processing method, is applied to an electronic equipment, and described electronic equipment is respectively with at least one Individual server is connected with switch, and described method includes:
Obtain the bandwidth demand amount of at least one server described;
According at least one network interface card that described bandwidth demand amount will be arranged in described electronic equipment or Multiple network interface cards combine, it is provided that the bandwidth corresponding with described bandwidth demand amount so that at least one server described Can be carried out data transmission with described switch by least one network interface card described.
2. electronic equipment as claimed in claim 1, it is characterised in that at least one clothes described in described acquisition The bandwidth demand amount of business device, specifically includes:
Detection is the bandwidth usage amount of at least one server described in obtaining preset time period, based on described bandwidth Usage amount obtains described bandwidth demand amount.
3. electronic equipment as claimed in claim 2, it is characterised in that described according to described bandwidth demand amount One or more network interface cards combination at least one network interface card that will be arranged in described electronic equipment, it is provided that with institute State the bandwidth that bandwidth demand amount is corresponding, specifically include:
Detection obtains the current bandwidth summation of at least one network interface card described;
Judge that whether the summation of described bandwidth demand amount is less than described current bandwidth summation;
When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;
Based on described amount of bandwidth available, the one or more network interface cards at least one network interface card described are combined, carries For the bandwidth corresponding with described bandwidth demand amount.
4. electronic equipment as claimed in claim 3, it is characterised in that described judgement described bandwidth demand amount Summation whether less than after described current bandwidth summation, also include:
When the summation of described bandwidth demand amount is more than described current bandwidth summation, by least one server described In the bandwidth demand amount of each server account for the pro rate of bandwidth demand amount summation.
5. electronic equipment as claimed in claim 1, it is characterised in that described according to described bandwidth demand amount One or more network interface cards combination at least one network interface card that will be arranged in described electronic equipment, it is provided that with institute State the bandwidth that bandwidth demand amount is corresponding, specifically include:
When the available bandwidth of at least one network interface card described is identical, based on described bandwidth demand amount, it is thus achieved that with described The number of the connecting line that bandwidth demand amount is corresponding;
Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is used for connecting At least one server described and described processor.
6. an electronic equipment, this electronic equipment is connected with at least one server and switch respectively, institute State electronic equipment to include:
Housing;
At least one network interface card, is arranged in described housing;
Processor, is arranged in described housing, is connected with at least one network interface card described, be used for obtaining described in extremely The bandwidth demand amount of a few server;To be arranged in described electronic equipment according to described bandwidth demand amount One or more network interface cards combination at least one network interface card, it is provided that the bandwidth corresponding with described bandwidth demand amount, Make at least one server described can carry out data biography by least one network interface card described and described switch Defeated.
7. electronic equipment as claimed in claim 6, it is characterised in that described processor is additionally operable to:
Detection is the bandwidth usage amount of at least one server described in obtaining preset time period, based on described bandwidth Usage amount obtains described bandwidth demand amount.
8. electronic equipment as claimed in claim 7, it is characterised in that described processor is additionally operable to:
Detection obtains the current bandwidth summation of at least one network interface card described;
Judge that whether the summation of described bandwidth demand amount is less than described current bandwidth summation;
When the summation of described bandwidth demand amount is less than described current bandwidth summation, it is thus achieved that at least one network interface card described In the amount of bandwidth available that is provided that of each network interface card;
Based on described amount of bandwidth available, the one or more network interface cards at least one network interface card described are combined, carries For the bandwidth corresponding with described bandwidth demand amount.
9. electronic equipment as claimed in claim 8, it is characterised in that described processor is additionally operable to:
After whether the described summation judging described bandwidth demand amount is less than described current bandwidth summation, described band When the summation of wide demand is more than described current bandwidth summation, by each service at least one server described The bandwidth demand amount of device accounts for the pro rate of bandwidth demand amount summation.
10. electronic equipment as claimed in claim 6, it is characterised in that described processor is additionally operable to:
When the available bandwidth of at least one network interface card described is identical, based on described bandwidth demand amount, it is thus achieved that with described The number of the connecting line that bandwidth demand amount is corresponding;
Based on the connecting line that the conducting of described number is corresponding with described number, wherein, described connecting line is used for connecting At least one server described and described processor.
CN201610350251.1A 2016-05-24 2016-05-24 A kind of information processing method and electronic equipment Active CN106027304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610350251.1A CN106027304B (en) 2016-05-24 2016-05-24 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610350251.1A CN106027304B (en) 2016-05-24 2016-05-24 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106027304A true CN106027304A (en) 2016-10-12
CN106027304B CN106027304B (en) 2019-10-29

Family

ID=57094891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610350251.1A Active CN106027304B (en) 2016-05-24 2016-05-24 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106027304B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460457A (en) * 2018-05-08 2019-11-15 大唐移动通信设备有限公司 A kind of data transmission method and device
CN110505164A (en) * 2019-07-25 2019-11-26 联想(北京)有限公司 The processing method and electronic equipment of virtual unit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665220A (en) * 2012-05-21 2012-09-12 北京大学 Multi-carrier aggregation method and system used for mobile terminal scheduling of heterogeneous network
CN103139039A (en) * 2013-02-25 2013-06-05 汉柏科技有限公司 Virtual network capable of achieving flow isolation control and construction method
CN103634225A (en) * 2013-12-18 2014-03-12 武汉朋客云计算有限公司 Service bandwidth expansion method in cloud computing network virtualization
CN104579695A (en) * 2013-10-23 2015-04-29 杭州华三通信技术有限公司 Data forwarding device and method
CN105227489A (en) * 2015-08-26 2016-01-06 联想(北京)有限公司 A kind of bandwidth management method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102665220A (en) * 2012-05-21 2012-09-12 北京大学 Multi-carrier aggregation method and system used for mobile terminal scheduling of heterogeneous network
CN103139039A (en) * 2013-02-25 2013-06-05 汉柏科技有限公司 Virtual network capable of achieving flow isolation control and construction method
CN104579695A (en) * 2013-10-23 2015-04-29 杭州华三通信技术有限公司 Data forwarding device and method
CN103634225A (en) * 2013-12-18 2014-03-12 武汉朋客云计算有限公司 Service bandwidth expansion method in cloud computing network virtualization
CN105227489A (en) * 2015-08-26 2016-01-06 联想(北京)有限公司 A kind of bandwidth management method and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460457A (en) * 2018-05-08 2019-11-15 大唐移动通信设备有限公司 A kind of data transmission method and device
CN110460457B (en) * 2018-05-08 2021-03-02 大唐移动通信设备有限公司 Data transmission method and device
CN110505164A (en) * 2019-07-25 2019-11-26 联想(北京)有限公司 The processing method and electronic equipment of virtual unit

Also Published As

Publication number Publication date
CN106027304B (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN105103506B (en) For the method and system for the non-homogeneous bandwidth request allocation bandwidth in system for cloud computing
US9161064B2 (en) Auto-scaling management of web content
CN109873868A (en) A kind of computing capability sharing method, system and relevant device
CN110471766B (en) GPU resource scheduling system and method based on CUDA
CN104767809B (en) A kind of download control method and system
CN109033001A (en) Method and apparatus for distributing GPU
CN108268317A (en) A kind of resource allocation methods and device
CN103051564A (en) Dynamic resource allocation method and device
CN104598316A (en) Storage resource distribution method and device
CN103841126B (en) The concocting method and device of a kind of shared resource
CN115562843B (en) Container cluster computational power scheduling method and related device
US20220229701A1 (en) Dynamic allocation of computing resources
CN106027304A (en) Information processing method and electronic device
CN106293917A (en) The optimization method of a kind of I O scheduling cfq algorithm and system
CN106059940A (en) Flow control method and device
CN106897890A (en) A kind of method and device for showing electronic gift information
CN102622274B (en) Computer device and interrupt task allocation method thereof
CN116302453B (en) Task scheduling method and device for quantum electronic hybrid platform
CN107634978B (en) Resource scheduling method and device
CN114416298A (en) Node matching method and device of server, computer equipment and storage medium
CN114090247A (en) Method, device, equipment and storage medium for processing data
CN113656046A (en) Application deployment method and device
CN110633115A (en) Task distribution method and device, electronic equipment and storage medium
CN105786409B (en) A kind of electronic equipment and resource share method
CN106487693B (en) Data transfer method, device and system and computer storage medium

Legal Events

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