CN103117939A - Method and system for adjusting software channel - Google Patents

Method and system for adjusting software channel Download PDF

Info

Publication number
CN103117939A
CN103117939A CN2012104679440A CN201210467944A CN103117939A CN 103117939 A CN103117939 A CN 103117939A CN 2012104679440 A CN2012104679440 A CN 2012104679440A CN 201210467944 A CN201210467944 A CN 201210467944A CN 103117939 A CN103117939 A CN 103117939A
Authority
CN
China
Prior art keywords
software
server
bearing capacity
passage
software passage
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.)
Pending
Application number
CN2012104679440A
Other languages
Chinese (zh)
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.)
SUZHOU YIBEI INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SUZHOU YIBEI INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU YIBEI INFORMATION TECHNOLOGY Co Ltd filed Critical SUZHOU YIBEI INFORMATION TECHNOLOGY Co Ltd
Priority to CN2012104679440A priority Critical patent/CN103117939A/en
Publication of CN103117939A publication Critical patent/CN103117939A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and a system for adjusting a software channel. The method includes that a data package is received by a network processor and is sent to a server. The server confirms types of the data package; according to the types of the data package and a software channel comparison table, the corresponding software channel is confirmed and the data package is distributed to the relevant soft channels, wherein, a controller obtains an existing bearing capacity and a maximum bearing capacity of all software channels of the server, if the ratio of the existing bearing capacity and the maximum bearing capacity of all software channels of the server acquired by the controller is less than or equal to the pre-set value, and then, the server is informed by the controller to adjust the software channel according to the pre-set strategy.

Description

A kind of method and system of adjusting the software passage
Technical field
The invention belongs to network communication field, relate in particular to a kind of method and system of adjusting the software passage.
Background technology
At present, after network processing unit receive data bag, directly send to server, server is set up the software passage according to the packet that receives.After server was set up the software passage, if there is no data packet transmission, the software passage still existed always, so, underuses resource.In addition, in said method, the each receive data Bao Junxu of server sets up the software passage, easily causes the wasting of resources.
Summary of the invention
The invention provides a kind of method and system of adjusting the software passage, to address the above problem.
The invention provides a kind of method of adjusting the software passage.Said method comprises the following steps: network processing unit receive data bag, and with data packet transmission to server; The type of server specified data bag, and determine with the software passage table of comparisons software passage that described packet is corresponding according to type and the type of data packet of packet, and with the extremely corresponding software passage of allocation of packets.Wherein, controller obtains current bearing capacity and the maximum bearing capacity of all software passages of server, if the current bearing capacity of all software passages of the server that controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the controller announcement server is adjusted the software passage according to preset strategy.
The present invention also provides a kind of system that adjusts the software passage, comprises network processing unit, controller and server.Network processing unit connects controller and server, controller connection server.Network processing unit is used for the receive data bag, and with data packet transmission to server.Server is used for the type of specified data bag, and according to type and the type of data packet software passage corresponding with software passage table of comparisons specified data bag of packet, and with allocation of packets to software passage accordingly.Wherein, controller obtains current bearing capacity and the maximum bearing capacity of all software passages of server, if the current bearing capacity of all software passages of the server that controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the controller announcement server is adjusted the software passage according to preset strategy.
Compared to prior art, method and system according to adjustment software passage provided by the invention, the type of server specified data bag, and determine with the software passage table of comparisons software passage that described packet is corresponding according to type and the type of data packet of packet, and with the extremely corresponding software passage of allocation of packets.Wherein, controller obtains current bearing capacity and the maximum bearing capacity of all software passages of server, if the current bearing capacity of all software passages of the server that controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the controller announcement server is adjusted the software passage according to preset strategy.So, take full advantage of software channel resource in server, avoid the wasting of resources.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Figure 1 shows that the flow chart of the method for the adjustment software passage that preferred embodiment according to the present invention provides;
Figure 2 shows that the schematic diagram of the system of the adjustment software passage that preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove, in the situation that do not conflict, embodiment and the feature in embodiment in the application can make up mutually.
Figure 1 shows that the flow chart of the method for the adjustment software passage that preferred embodiment according to the present invention provides.As shown in Figure 1, the method for the adjustment software passage that provides of preferred embodiment of the present invention comprises step 101~102.
In step 101, network processing unit receive data bag, and with described data packet transmission to server.Particularly, after network processing unit receive data bag, with data packet transmission to server.
In step 102, described server is determined the type of described packet, and determines with the software passage table of comparisons software passage that described packet is corresponding according to type and the type of data packet of described packet, and with the extremely corresponding software passage of described allocation of packets.Wherein, controller obtains current bearing capacity and the maximum bearing capacity of all software passages of described server, if the current bearing capacity of all software passages of described server that described controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, described controller notifies described server to adjust described software passage according to preset strategy.
In the present embodiment, the type of packet comprises voice data, video data and general data.Yet the present invention does not limit this.In the present embodiment, after server receives the packet of network processing unit transmission, the frame originating point information of resolution data bag, and according to the type of frame originating point information specified data bag.
In the present embodiment, server stores type of data packet and the software passage table of comparisons.Described type of data packet and the software passage table of comparisons comprise the corresponding relation of type of data packet and software channel address information.In this, type of data packet and software passage table of comparisons example are as shown in table 1.Yet the present invention does not limit this.In practical application, type of data packet and the software passage table of comparisons are set as required.
Table 1
Wherein, the address information of software passage comprises IP address and port numbers.In this, server receive data bag A, and the type of specified data bag A is type of data packet 1, server is software passage 1~3,6 according to software passage corresponding to table 1 specified data bag Class1.
In the present embodiment, after software passage corresponding to server specified data bag, with allocation of packets to corresponding software passage.Still take packet A as example, server is according to table 1 specified data bag A correspondence four software passages (that is, software passage 1~3 and software passage 6).In this, server is dispensed to the highest software passage of idleness in four software passages with packet A.Yet the present invention does not limit this.In other embodiment, server can be dispensed to packet A one of them of four software passages at random.
In addition, in the present embodiment, preset strategy is: the software passage of setting preset ratio is the sleep software passage, and dormancy time is Preset Time, after described Preset Time, when if the current bearing capacity of all software passages of described server and the ratio of maximum bearing capacity still are less than or equal to described preset value, after the transformation task of described sleep software passage is migrated to other software passages, close described sleep software passage.Wherein, server is not reallocated new transformation task to the sleep software passage in dormancy time.
Particularly, controller obtains current bearing capacity and the maximum bearing capacity of all software passages from server, and calculates both ratio.If the current bearing capacity of all software passages of the server that controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the controller announcement server is adjusted the software passage according to preset strategy.In this, the software passage that server is set preset ratio is the sleep software passage, and the setting Preset Time is dormancy time.When arriving dormancy time, the server notification controller obtains current bearing capacity and the maximum bearing capacity of all software passages again, when if the ratio of the current bearing capacity of all softwares of the server that controller obtains again and maximum bearing capacity still is less than or equal to preset value, the controller announcement server, server migrates to other software passages with the transformation task of sleep software passage, and closes the sleep software passage of the transformation task of having moved.Wherein, the sleep software passage is when the migration transformation task, and server namely, is replaced the sleep software passage with migration target software passage according to type of data packet and the software passage table of comparisons of the information updating storage of sleep software passage and migration target software passage.If the part of packet is transmitted on the sleep software passage, another part is unallocated to the sleep software passage, server also unallocated this partial data to the sleep software channel transfer distribute to migration target software channel transfer, and this partial data that will transmit on the sleep software passage is stored to buffer area corresponding to migration target software passage.So, guarantee the consistency of data packet transmission.
With reference to table 1, created 6 software passages as example take server, and the ratio of the current bearing capacity of all software passages of server of obtaining of controller and maximum bearing capacity is less than preset value (for example, 60%).At this moment, the controller announcement server carries out dormancy to be set, and it is for example 40% that server is set preset ratio, and dormancy time is for example 1 hour.In this, the number of sleep software passage is calculated as follows: 6*40%=2.4 rounds and can get 2.Therefore, server determines that 2 software passages are sleep software passage (for example, software passage 1 and software passage 2).arrive dormancy time (namely, 1 hour) time, the server notification controller obtains current bearing capacity and the maximum bearing capacity of all software passages again, if the current bearing capacity of all software passages of the server that controller obtains again and the ratio of maximum bearing capacity still are less than or equal to preset value (namely, 60%) time, the controller announcement server, server (for example migrates to other software passages with the transformation task of sleep software passage (software passage 1 and software passage 2), software passage 3~6), afterwards, close software passage 1 and software passage 2.So, realize the reasonable utilization of software channel resource.
Figure 2 shows that the schematic diagram of the system of the adjustment software passage that preferred embodiment according to the present invention provides.As shown in Figure 2, the system of the adjustment software passage that provides of preferred embodiment of the present invention comprises network processing unit 10, controller 14 and server 12.Network processing unit 10 connects controller 14 and server 12.Controller 14 connection servers 12.
In the present embodiment, network processing unit 10 is used for the receive data bag, and with data packet transmission to server 12.Server 12 is used for the type of specified data bag, and according to type and the type of data packet software passage corresponding with software passage table of comparisons specified data bag of packet, and with allocation of packets to software passage accordingly.Wherein, controller 14 obtains current bearing capacity and the maximum bearing capacity of server 12 all software passages, if the current bearing capacity of the server that controller 14 obtains 12 all software passages and the ratio of maximum bearing capacity are less than or equal to preset value, controller 14 announcement servers 12 are adjusted the software passage according to preset strategy.Specific operation process about the system of described adjustment software passage is described with above-mentioned method, therefore repeat no more in this.
In sum, the method and system of the adjustment software passage that preferred embodiment provides according to the present invention, the type of server specified data bag, and determine with the software passage table of comparisons software passage that described packet is corresponding according to type and the type of data packet of packet, and with the extremely corresponding software passage of allocation of packets.Wherein, controller obtains current bearing capacity and the maximum bearing capacity of all software passages of server, if the current bearing capacity of all software passages of the server that controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the controller announcement server is adjusted the software passage according to preset strategy.So, take full advantage of software channel resource in server, avoid the wasting of resources.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (6)

1. a method of adjusting the software passage, is characterized in that, comprises the following steps:
Network processing unit receive data bag, and with described data packet transmission to server;
Described server is determined the type of described packet, and determines with the software passage table of comparisons software passage that described packet is corresponding according to type and the type of data packet of described packet, and with the extremely corresponding software passage of described allocation of packets,
Wherein, controller obtains current bearing capacity and the maximum bearing capacity of all software passages of described server, if the current bearing capacity of all software passages of described server that described controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, described controller notifies described server to adjust described software passage according to preset strategy.
2. method according to claim 1, it is characterized in that, described preset strategy is: the software passage of setting preset ratio is the sleep software passage, and dormancy time is Preset Time, after described Preset Time, when if the current bearing capacity of all software passages of described server and the ratio of maximum bearing capacity still are less than or equal to described preset value, after the transformation task of described sleep software passage is migrated to other software passages, close described sleep software passage.
3. method according to claim 1, is characterized in that, the type of described packet comprises voice data, video data and general data.
4. method according to claim 1, is characterized in that, described type of data packet and the software passage table of comparisons comprise the corresponding relation of type of data packet and software channel address information.
5. method according to claim 1, is characterized in that, the described type of data packet of described server stores and the software passage table of comparisons.
6. a system that adjusts the software passage, is characterized in that, comprises network processing unit, controller and server, and described network processing unit connects described controller and described server, and described controller connects described server,
Described network processing unit is used for the receive data bag, and with described data packet transmission to described server,
Described server is used for determining the type of described packet, and determines with the software passage table of comparisons software passage that described packet is corresponding according to type and the type of data packet of described packet, and with the extremely corresponding software passage of described allocation of packets,
Wherein, controller obtains current bearing capacity and the maximum bearing capacity of all software passages of described server, if the current bearing capacity of all software passages of described server that described controller obtains and the ratio of maximum bearing capacity are less than or equal to preset value, described controller notifies described server to adjust described software passage according to preset strategy.
CN2012104679440A 2012-11-19 2012-11-19 Method and system for adjusting software channel Pending CN103117939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104679440A CN103117939A (en) 2012-11-19 2012-11-19 Method and system for adjusting software channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104679440A CN103117939A (en) 2012-11-19 2012-11-19 Method and system for adjusting software channel

Publications (1)

Publication Number Publication Date
CN103117939A true CN103117939A (en) 2013-05-22

Family

ID=48416217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104679440A Pending CN103117939A (en) 2012-11-19 2012-11-19 Method and system for adjusting software channel

Country Status (1)

Country Link
CN (1) CN103117939A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257434A (en) * 2007-06-11 2008-09-03 艾诺通信系统(苏州)有限责任公司 Method for looking up speedup digital signal processor software in VoIP system
CN102148761A (en) * 2011-04-11 2011-08-10 北京星网锐捷网络技术有限公司 Communication interface chip, communication equipment and method for realizing energy saving of communication interface
CN102440034A (en) * 2011-10-31 2012-05-02 华为技术有限公司 Base station energy saving processing method and base station

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257434A (en) * 2007-06-11 2008-09-03 艾诺通信系统(苏州)有限责任公司 Method for looking up speedup digital signal processor software in VoIP system
CN102148761A (en) * 2011-04-11 2011-08-10 北京星网锐捷网络技术有限公司 Communication interface chip, communication equipment and method for realizing energy saving of communication interface
CN102440034A (en) * 2011-10-31 2012-05-02 华为技术有限公司 Base station energy saving processing method and base station

Similar Documents

Publication Publication Date Title
JP7154399B2 (en) DATA TRANSMISSION METHOD, APPARATUS, COMPUTER-READABLE MEDIUM AND ELECTRONIC DEVICE
US9979656B2 (en) Methods, systems, and computer readable media for implementing load balancer traffic policies
WO2015096681A1 (en) Method and device for processing service access
EP2685758A1 (en) Method, device and system for scheduling data flow
EP2993838A1 (en) Method for setting identity of gateway device and management gateway device
CN104081736A (en) System and method for scheduling packet transmission on a client device
CN109672711B (en) Reverse proxy server Nginx-based http request processing method and system
KR101959970B1 (en) Contents delivery service method using contents sharing, and cache apparatus therefor
CN101668005A (en) Data transmission accelerating engine method based on multiple access passages of transmitting end
CN110831064B (en) Data transmission method and transmission server in multi-channel concurrent transmission system
US11316916B2 (en) Packet processing method, related device, and computer storage medium
CN103220165B (en) Processing method and device for server active downtime
CN106209325A (en) A kind of TCP ACK message processing method and device
CN109392013A (en) A kind of method of adjustment and communication device of service quality QoS
CN101207570A (en) Data transmission method, data sending rate control method and base station
CN105721328A (en) VRRP load balancing method, VRRP load balancing device and router
CN103401954B (en) The implementation method of virtual DHCP
CN101594642B (en) Resource allocation method and resource allocation device used for communication network element device
JP5437290B2 (en) Service distribution method, service distribution device, and program
CN102300260B (en) Method and system for adjusting bandwidth resources of ABIS interface
WO2012065440A1 (en) Implementation method and apparatus for priority of device in virtual router redundancy protocol backup group
CN104348753A (en) Data packet forwarding method and data packet forwarding device
CN101808037A (en) Method and device for traffic management in switch network
CN103079229A (en) Directional broadcast transmission method for access controller
CN112714081A (en) Data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130522