CN103117945A - Method and system achieving software channel regulation - Google Patents

Method and system achieving software channel regulation Download PDF

Info

Publication number
CN103117945A
CN103117945A CN2012104679811A CN201210467981A CN103117945A CN 103117945 A CN103117945 A CN 103117945A CN 2012104679811 A CN2012104679811 A CN 2012104679811A CN 201210467981 A CN201210467981 A CN 201210467981A CN 103117945 A CN103117945 A CN 103117945A
Authority
CN
China
Prior art keywords
software
server
processing unit
bearing capacity
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
CN2012104679811A
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 CN2012104679811A priority Critical patent/CN103117945A/en
Publication of CN103117945A publication Critical patent/CN103117945A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system achieving software channel regulation. The method includes the following steps: a network processor receives a data package and enables the data package to be transmitted to a server; and the server confirms the type of the data package and confirms software channels corresponding to the data package according to the type of the data package and a software channel comparison table, and the data package is distributed to the corresponding software channels. The network processor obtains current load capacity and maximal load capacity of all software channels of the server, and if the ratio of the current load capacity and the maximal load capacity of all the software channels of the server, obtained by the network processor, is less than or equal to a preset value, the network processor notices the server to regulate the software channels according to preset strategies.

Description

A kind of method and system that realize that the software passage is adjusted
Technical field
The invention belongs to network communication field, relate in particular to a kind of method and system that realize that the software passage is adjusted.
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 that realize that the software passage is adjusted, to address the above problem.
The invention provides a kind of method that realizes that the software passage is adjusted.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 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 corresponding software passage.Wherein, network processing unit 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 network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the network processing unit announcement server is adjusted the software passage according to preset strategy.
The present invention also provides a kind of system that realizes that the software passage is adjusted, and comprises network processing unit and server.The network processing unit 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, network processing unit 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 network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the network processing unit announcement server is adjusted the software passage according to preset strategy.
Compared to prior art, according to the method and system that realize that the software passage is adjusted provided by the invention, the type of server 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 corresponding software passage.In addition, network processing unit 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 network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the network processing unit announcement server is adjusted the software passage according to preset strategy.So, take full advantage of the 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 realizing the method that the software passage is adjusted that preferred embodiment according to the present invention provides;
Figure 2 shows that the schematic diagram of realizing the system that the software passage is adjusted 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 realizing the method that the software passage is adjusted that preferred embodiment according to the present invention provides.As shown in Figure 1, the method that realizes the adjustment of software passage that preferred embodiment of the present invention provides 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, described network processing unit 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 network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, described network processing unit 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.
Figure BSA00000807633800031
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, network processing unit obtains current bearing capacity and the maximum bearing capacity of all software passages of server, and calculates both ratio.When if the current bearing capacity of all software passages of the server that network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the network processing unit announcement server is adjusted the software passage according to preset strategy.In the present embodiment, 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 network processing unit 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 network processing unit obtains again and maximum bearing capacity still is less than or equal to preset value, the network processing unit 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 network processing unit and maximum bearing capacity is less than preset value (for example, 60%).At this moment, the network processing unit 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 network processing unit 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 network processing unit obtains again and the ratio of maximum bearing capacity still are less than or equal to preset value (namely, 60%) time, the network processing unit 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 realizing the system that the software passage is adjusted that preferred embodiment according to the present invention provides.As shown in Figure 2, the system that realizes the adjustment of software passage that preferred embodiment of the present invention provides comprises network processing unit 10 and server 12.Network processing unit 10 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, network processing unit 10 obtains current bearing capacity and the maximum bearing capacity of server 12 all software passages, if the current bearing capacity of the server that network processing unit 10 obtains 12 all software passages and the ratio of maximum bearing capacity are less than or equal to preset value, network processing unit 10 announcement servers 12 are adjusted the software passage according to preset strategy.Realize that about described the specific operation process of the system that the software passage is adjusted is described with above-mentioned method, therefore repeat no more in this.
In sum, the method and system that realize the adjustment of software passage that preferred embodiment provides according to the present invention, the type of server 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 corresponding software passage.In addition, network processing unit 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 network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, the network processing unit announcement server is adjusted the software passage according to preset strategy.So, take full advantage of the 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 that realizes that the software passage is adjusted, 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, described network processing unit 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 network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, described network processing unit 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 realizes that the software passage is adjusted, is characterized in that, comprises network processing unit and server, and described network processing unit connects described server,
Described network processing unit is used for the receive data bag, and with described data packet transmission to 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, described network processing unit 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 network processing unit obtains and the ratio of maximum bearing capacity are less than or equal to preset value, described network processing unit notifies described server to adjust described software passage according to preset strategy.
CN2012104679811A 2012-11-19 2012-11-19 Method and system achieving software channel regulation Pending CN103117945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104679811A CN103117945A (en) 2012-11-19 2012-11-19 Method and system achieving software channel regulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104679811A CN103117945A (en) 2012-11-19 2012-11-19 Method and system achieving software channel regulation

Publications (1)

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

Family

ID=48416223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104679811A Pending CN103117945A (en) 2012-11-19 2012-11-19 Method and system achieving software channel regulation

Country Status (1)

Country Link
CN (1) CN103117945A (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
WO2015096681A1 (en) Method and device for processing service access
US9979656B2 (en) Methods, systems, and computer readable media for implementing load balancer traffic policies
US10802885B2 (en) Method and apparatus for data processing based on multicore
CN103312605A (en) Gateway device identity setting method and management gateway device
CN102480469B (en) Based on the method for the load dispatch of balancing energy and device in a kind of SIP service cluster
EP2685758A1 (en) Method, device and system for scheduling data flow
CN107666448B (en) 5G virtual access network mapping method under time delay perception
CN101772102A (en) Selecting method for isomeric wireless network
US11316916B2 (en) Packet processing method, related device, and computer storage medium
CN107645540A (en) The load-balancing method of web application systems
KR20140032064A (en) Contents delivery service method using contents sharing, and cache apparatus therefor
CN112839081A (en) Load balancing method of cloud cluster
CN109392013A (en) A kind of method of adjustment and communication device of service quality QoS
CN104469851B (en) Balanced handling capacity and the resource allocation methods of delay in a kind of LTE downlinks
WO2013178108A1 (en) Rate control system and method based on wlan
CN101207570A (en) Data transmission method, data sending rate control method and base station
JP5437290B2 (en) Service distribution method, service distribution device, and program
Liu et al. Reducing traffic burstiness for MPTCP in data center networks
CN105656794A (en) Data distribution method and device
WO2023061119A1 (en) Flow migration method and network device
Zhang et al. Qoe-driven data communication framework for consumer electronics in tele-healthcare system
WO2018223304A1 (en) Method and apparatus for transmitting data
CN103117945A (en) Method and system achieving software channel regulation
CN103117944A (en) Method and system achieving software channel control
CN103118062A (en) Method and system of achieving software channel processing

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