Summary of the invention
In view of above-mentioned analysis, the embodiment of the present invention propose a kind of service-oriented global network resource allocation methods and
Device is not based on business to solve existing distributed load equalizing routing policy, does not also consider the negative of global network resource
Situation is carried, without reference to global network resource in Internet resources assigning process, Internet resources between each business is be easy to cause to distribute
Conflict and unreasonable, the low problem of network utilization ratio.
To achieve the above object, the present invention adopts the following technical scheme:
First aspect present invention provides a kind of global network resource allocation methods of service-oriented, comprising: obtains business
The network resource information of information and global network resource apparatus;Business plan is generated according to the network resource information and business information
Slightly information;Judge whether the business game information matches with current network device topology information;When the business game information
When matching with current network device topology information, Internet resources point are carried out to each business according to the business game information
Match.
With reference to first aspect, in first aspect first embodiment, according to the network resource information and business information
Generate business game information, comprising: the type and required amount of network resources of each business are determined according to the business information;Root
The service resources grade of each business is determined according to the type and required amount of network resources of each business;It is provided according to the network
The service resources grade of source information and each business generates the business game information of each business, the business game letter
Breath includes: the corresponding network equipment information of each business and distribution amount of network resources information.
First embodiment with reference to first aspect is determining each business in first aspect second embodiment
Each business is generated after service resources grade, according to the service resources grade of the network resource information and each business
Business game information before, the method also includes: according to the service resources grade of each business and each business
Required amount of network resources obtains the corresponding amount of network resources of service resources grade and required amount of network resources of each business
Difference information;According to the type and the difference information of each business, judge each business service resources grade whether
Rationally;When the service resources grade for determining each business is reasonable, execute according to the network resource information and each described
The service resources grade of business generates the step of business game information.
Second embodiment with reference to first aspect, in first aspect third embodiment, according to the class of each business
Type and the difference information judge whether the service resources grade of each business is reasonable, comprising: judge the institute of all types of business
The corresponding difference of difference information is stated whether in the preset threshold of all types of business;When the difference information pair of all types of business
When the difference answered is in the preset threshold of all types of business, then determine that the service resources grade of each business is reasonable;When each
The corresponding difference of the difference information of type service exceed all types of business preset threshold when, generate the difference information with
Second difference information of the preset threshold redefines the service resources etc. of each business according to second difference information
Grade returns to the business game that each business is generated according to the service resources grade of the network resource information and each business
The step of information.
First embodiment with reference to first aspect judges the business game letter in the 4th embodiment of first aspect
Whether breath matches with current network device topology information, comprising: obtains the current network device topology information;Worked as according to described
Preceding network equipment topology information judges that the corresponding network equipment of network equipment information in the business game information whether may be used
With, and whether the amount of network resources of the network equipment is greater than the distribution amount of network resources;When in the business game information
The corresponding network equipment of network equipment information be it is available, and the amount of network resources of the network equipment be greater than the distribution network
When stock number, determine the business game information with current network device topology information to match.
Second aspect of the present invention provides a kind of global network resource allocation device of service-oriented, comprising: business information
Module is obtained with network resource information, for obtaining the network resource information of business information and global network resource apparatus;Business
Policy information generation module, for generating business game information according to the network resource information and business information;First judgement
Module, for judging whether the business game information matches with current network device topology information;Internet resources distribution module,
For when the business game information is matched with current network device topology information, according to the business game information to each institute
It states business and carries out Internet resources distribution.
In conjunction with second aspect, in second aspect first embodiment, the business game information generating module, comprising:
Type and stock number determining module, for determined according to the business information each business type and required Internet resources
Amount;Service resources level determination module, for determining each industry according to the type and required amount of network resources of each business
The service resources grade of business;Business game information generates submodule, for according to the network resource information and each business
Service resources grade, generate the business game information of each business, the business game information includes: each business pair
The network equipment information and distribution amount of network resources information answered.
In conjunction with second aspect first embodiment, in second aspect second embodiment, the first judgment module packet
Include: topology information obtains module, for obtaining the current network device topology information;Second judgment module, for according to institute
Current network device topology information is stated, judges whether is the corresponding network equipment of network equipment information in the business game information
It can use, and whether the amount of network resources of the network equipment is greater than the distribution amount of network resources;Determination module, for when described
The corresponding network equipment of network equipment information in business game information is available, and the amount of network resources of the network equipment is big
When the distribution amount of network resources, determine the business game information with current network device topology information to match.
Third aspect present invention, provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Computer instruction is contained, the computer instruction is appointed for making the computer execute such as first aspect present invention or first aspect
The global network resource allocation methods of service-oriented described in one embodiment.
Fourth aspect present invention provides a kind of Internet resources distributing equipment, comprising: memory and processor, it is described to deposit
Connection is communicated with each other between reservoir and the processor, the memory is stored with computer instruction, and the processor is by holding
The row computer instruction, thereby executing the service-oriented as described in first aspect present invention or first aspect any embodiment
Global network resource allocation methods.
Technical solution of the present invention at least has the advantages that compared with prior art
The embodiment of the invention provides the global network resource allocation methods and device of a kind of service-oriented, the service-orienteds
Global network resource allocation methods be based on business, according to the Internet resources of the business information of acquisition and global network resource apparatus
Information generate business game information, it is contemplated that the loading condition of global network resource, by judge the business game information with
Whether current network device topology information matches, when the business game information is matched with current network device topology information, root
Internet resources distribution is carried out to each business according to the business game information, since reference global network resource carries out network money to business
Source distribution, reduces the conflict that Internet resources distribute between each business, so that Internet resources distribution is more reasonable, improves the whole network benefit
With rate.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation
Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that term " first ", " second " are used for description purposes only, and cannot
It is interpreted as indication or suggestion relative importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " connection " should be done
It broadly understood, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be mechanical connection,
It is also possible to be electrically connected;It can be directly connected, can also can also be inside two elements indirectly connected through an intermediary
Connection, can be wireless connection, be also possible to wired connection.It for the ordinary skill in the art, can be specific
Situation understands the concrete meaning of above-mentioned term in the present invention.
As long as in addition, the non-structure each other of technical characteristic involved in invention described below different embodiments
It can be combined with each other at conflict.
The embodiment of the invention provides a kind of global network resource allocation methods of service-oriented, as shown in Figure 1, should be towards
The global network resource allocation methods of business mainly comprise the steps that
Step S1: the network resource information of business information and global network resource apparatus is obtained;Wherein, it is wrapped in business information
All new business issued are included, include the overall situation for distributing Internet resources in the network resource information of global network resource apparatus
The amount of network resources information that network equipment information and each network equipment are capable of providing, the network which is capable of providing
Stock number information can react the amount of network resources that each network equipment (e.g. T1 moment) is capable of providing, and specifically can be use
Netflix software carries out the acquisition of network resource information, but invention is not limited thereto.
Step S2: business game information is generated according to network resource information and business information;The business game information according to
The amount of network resources and the amount of network resources generation needed with business that above-mentioned each network equipment is capable of providing, for based on each business
With the information of the corresponding relationship of the amount of network resources for distributing to each business.
Step S3: judge whether business game information matches with current network device topology information;Due to the network equipment
Network resource loads are in and are continuously updated in variation, it is therefore desirable to judge the network resource loads based on the T1 moment network equipment
Whether the business game information that situation generates matches with current (T2 moment) network equipment topology information, i.e., current network device is
It is no to carry out Internet resources distribution according to the business game information of generation.
Step S4: when business game information is matched with current network device topology information, according to business game information pair
Each business carries out Internet resources distribution.
S1 to step S4 through the above steps, the global network resource allocation side of service-oriented provided in an embodiment of the present invention
Method is based on business, generates business game letter according to the network resource information of the business information of acquisition and global network resource apparatus
Breath, it is contemplated that the loading condition of global network resource, by judging that the business game information and current network device topology are believed
Whether breath matches, when the business game information is matched with current network device topology information, according to the business game information pair
Each business carries out Internet resources distribution, since reference global network resource carries out Internet resources distribution to business, reduces each industry
The conflict that Internet resources distribute between business improves network utilization ratio so that Internet resources distribution is more reasonable.
Specifically, in a preferred embodiment, as shown in Fig. 2, above-mentioned steps S2, believes according to network resource information and business
Breath generates business game information, comprising the following steps:
Step S201: the type and required amount of network resources of each business are determined according to business information;Specifically, it can be industry
Business contains type of service and required amount of network resources when issuing, and is also possible to by being parsed to obtain each business to business
Type and required amount of network resources.
Step S202: the service resources grade of each business is determined according to the type of each business and required amount of network resources;Tool
Body can be the division that service resources grade is carried out according to the size of type of service and amount of network resources, determining service resources etc.
Grade contains the type information of business and to distribute to the amount of network resources information of the business.
Step S203: according to the service resources grade of network resource information and each business, the business game of each business is generated
Information, the business game information include: the corresponding network equipment information of each business and distribution amount of network resources information, the network equipment
Which network equipment message reflection uses for traffic assignments Internet resources, and distribution amount of network resources message reflection is business point
With how many Internet resources.
In a preferred embodiment, as shown in Fig. 2, determining the service resources of each business in S202 through the above steps
After grade, S203 is generated respectively according to the service resources grade of the network resource information and each business through the above steps
Before the business game information of the business, above-mentioned steps S2 is further comprising the steps of:
Step S204: according to the required amount of network resources of the service resources grade of each business and each business, each business is obtained
Service resources grade corresponding amount of network resources and required amount of network resources difference information.
Step S205: according to the type of each business and above-mentioned difference information, judge each business service resources grade whether
Rationally.
In a preferred embodiment, as shown in figure 3, above-mentioned steps S205, believes according to the type of each business and above-mentioned difference
Breath, judges whether the service resources grade of each business is reasonable, specifically includes the following steps:
Step S2051: judge the corresponding difference of above-mentioned difference information of all types of business whether in the pre- of all types of business
If in threshold value;A threshold value is set to the business of each type in advance, different threshold values is set for different types of business,
It whether can be more than the threshold value according to the corresponding amount of network resources of service resources grade of business and the difference of required amount of network resources
Determine whether service resources grade is reasonable.
Step S2052: when all types of business the corresponding difference of above-mentioned difference information all types of business preset threshold
When interior, then determine that the service resources grade of each business is reasonable;When the service resources grade for determining each business is reasonable, execute
Above-mentioned steps S203 generates business game information according to the service resources grade of network resource information and each business.
Step S2053: when the corresponding difference of above-mentioned difference information of all types of business exceeds the default threshold of all types of business
When value, then determine each business service resources grade be it is unreasonable, generate second difference of the difference information Yu the preset threshold
Information redefines the service resources grade of each business according to second difference information, returns above-mentioned according to network resource information
The step S203 of the business game information of each business is generated with the service resources grade of each business.
Above-mentioned steps S2051 to step S2053, by the corresponding amount of network resources of service resources grade for judging each business
Whether difference between required amount of network resources whether in preset threshold, close by the service resources grade for determining each business
Reason, when the service resources grade of each business is unreasonable, i.e., the corresponding amount of network resources of service resources grade and required network provide
When difference between the amount of source exceeds preset threshold, according to be able to reflect the unreasonable degree of service resources grade above-mentioned the of generation
Two difference informations redefine service resources grade, and return to the above-mentioned service resources according to network resource information and each business
Grade generates the step S203 of the business game information of each business, to avoid leading to network since service resources grade is unreasonable
The unreasonable distribution of resource, to cause the waste of Internet resources.
In a preferred embodiment, as shown in Fig. 2, above-mentioned steps S3, judges business game information and current network device
Whether topology information matches, comprising the following steps:
Step S301: current network device topology information is obtained;Current network device topology information includes current (when T2
Carve) the amount of network resources information that is capable of providing of each network equipment information and current each network equipment.
Step S302: according to current network device topology information, judge the network equipment information pair in business game information
Whether the network equipment answered can be used, and whether the amount of network resources of the network equipment is greater than distribution amount of network resources;Specifically it can be
Determine whether the network equipment is available (can be used herein specifically can be no failure) according to network equipment information, according to current network
The amount of network resources that equipment is capable of providing determines whether the amount of network resources of the network equipment is greater than distribution amount of network resources, i.e., really
Determine whether current network device is capable of providing enough amount of network resources to be allocated to business;When in business game information
The corresponding network equipment of network equipment information be it is available, and the amount of network resources of the network equipment be greater than above-mentioned distribution Internet resources
When amount, determine that business game information, to match, is believed thereby executing above-mentioned according to business game with current network device topology information
Cease the step S4 that Internet resources distribution is carried out to each business;When the corresponding network of network equipment information in business game information is set
When for being not more than above-mentioned distribution amount of network resources for unavailable or the network equipment amount of network resources, according to unavailable or network
Stock number is not more than the net of above-mentioned distribution amount of network resources (can not provide the distribution amount of network resources in business game information)
Network facility information returns to the business game information that each business is generated according to the service resources grade of network resource information and each business
Step S203, regenerate business game information.
The embodiment of the invention also provides a kind of global network resource allocation devices of service-oriented, as shown in figure 4, the face
It include: that business information and network resource information obtain module 1 to the global network resource allocation device of business, for obtaining business
The network resource information of information and global network resource apparatus;Business game information generating module 2, for being provided according to the network
Source information and business information generate business game information;First judgment module 3, for judging the business game information and current
Whether network equipment topology information matches;Internet resources distribution module 4, for being set when the business game information with current network
When standby topology information matching, Internet resources distribution is carried out to each business according to the business game information.
Module 1 is obtained by above-mentioned business information and network resource information, business game information generating module 2, first is sentenced
Disconnected module 3 and Internet resources distribution module 4, the global network resource allocation device base of service-oriented provided in an embodiment of the present invention
In business, business game information is generated according to the network resource information of the business information of acquisition and global network resource apparatus, is examined
The loading condition for having considered global network resource, by judging whether are the business game information and current network device topology information
Matching, when the business game information is matched with current network device topology information, according to the business game information to each business
Internet resources distribution is carried out, since reference global network resource carries out Internet resources distribution to business, is reduced between each business
The conflict of Internet resources distribution improves network utilization ratio so that Internet resources distribution is more reasonable.
As shown in figure 5, the business game information generating module 2, comprising: type and stock number determining module 21 are used for
The type and required amount of network resources of each business are determined according to the business information;Service resources level determination module 22,
The service resources grade of each business is determined for the type and required amount of network resources according to each business;Business game
Information generates submodule 23 and generates each institute for the service resources grade according to the network resource information and each business
The business game information of business is stated, the business game information includes: the corresponding network equipment information of each business and distribution
Amount of network resources information.
As shown in fig. 6, the first judgment module 3 includes: that topology information obtains module 31, for obtaining the current net
Network equipment topology information;Second judgment module 32, for judging the business plan according to the current network device topology information
Whether the corresponding network equipment of network equipment information slightly in information can be used, and whether the amount of network resources of the network equipment is big
In the distribution amount of network resources;Determination module 33, it is corresponding for working as the network equipment information in the business game information
The network equipment be it is available, and the amount of network resources of the network equipment be greater than the distribution amount of network resources when, determine the industry
Business policy information is to match with current network device topology information.
The detail and technical effect of global network resource allocation device about service-oriented can be found in preceding method
Associated description in embodiment, details are not described herein.
As a kind of specific embodiment, as shown in fig. 7, the global network resource allocation device of service-oriented can wrap
It includes: flow analysis module 701, cooperative module 702, policy management module 703 and global traffic control module 704, wherein flow
Analysis module 701 is for obtaining network traffic information, and cooperative module 702 is for obtaining business information, 701 He of flow analysis module
The function of cooperative module 702 corresponds to above-mentioned business information and network resource information obtains module 1;Policy management module 703 is used
According to network traffic information and business information generation strategy information and being handed down to global traffic control module 704, correspond to upper
State business game information generating module 2;Global traffic control module 704 is for receiving the strategy that policy management module 703 issues
Information, and current network topology information is obtained, whether determination strategy information and current network topology information match, and work as policy information
Information is controlled with generating device when current network topology information matches, the control network equipment carries out assignment of traffic, corresponds to above-mentioned
First judgment module 3 and Internet resources distribution module 4.
The embodiment of the present invention also provides a kind of global network resource allocation apparatus of service-oriented, as shown in figure 8, should be towards
The global network resource allocation apparatus of business may include that processor 5 and memory 6, wherein processor 5 and memory 6 can lead to
It crosses bus or other modes communicates with each other connection.
Processor 5 can be central processing unit (Central Processing Unit, CPU).Processor 5 can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 6 be used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, it is non-temporarily
State computer executable program, instruction and module, such as the global network resource allocation of the service-oriented in the embodiment of the present invention
Corresponding program instruction/the module of device.Processor 5 by operation be stored in memory 6 non-transient software program, instruction with
And module, thereby executing the various function application and data processing of processor 5, i.e., in realization above method embodiment towards
The global network resource allocation methods of business.
Memory 6 may include storing program area and storage data area, wherein storing program area can storage program area,
Application program required at least one function;It storage data area can the data etc. that are created of storage processor 5.In addition, storage
Device 6 may include high-speed random access memory, can also include non-transient memory, for example, at least a magnetic disk storage
Part, flush memory device or other non-transient solid-state memories.In some embodiments, it includes relative to processing that memory 6 is optional
The remotely located memory of device 5, these remote memories can pass through network connection to processor 5.The example packet of above-mentioned network
Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Said one or multiple modules are stored in memory 6, when being executed by processor 5, execute such as Fig. 1 to Fig. 3
The global network resource allocation methods of service-oriented in illustrated embodiment.
The detail of the global network resource allocation apparatus of above-mentioned service-oriented can correspond to referring to FIG. 1 to 3
Embodiment in corresponding associated description and effect understood that details are not described herein again.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer readable storage medium,
The computer-readable recording medium storage computer instruction, the computer instruction are as shown in Figure 1 to Figure 3 for executing computer
Service-oriented global network resource allocation methods.Wherein, the storage medium can be magnetic disk, CD, read-only store-memory
Body (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory
(Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State Drive,
SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.