CN104780232B - A kind of resource allocation methods, controller and system - Google Patents

A kind of resource allocation methods, controller and system Download PDF

Info

Publication number
CN104780232B
CN104780232B CN201410014512.3A CN201410014512A CN104780232B CN 104780232 B CN104780232 B CN 104780232B CN 201410014512 A CN201410014512 A CN 201410014512A CN 104780232 B CN104780232 B CN 104780232B
Authority
CN
China
Prior art keywords
flow table
resource
request message
resource information
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410014512.3A
Other languages
Chinese (zh)
Other versions
CN104780232A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410014512.3A priority Critical patent/CN104780232B/en
Priority to PCT/CN2014/093880 priority patent/WO2015103919A1/en
Publication of CN104780232A publication Critical patent/CN104780232A/en
Application granted granted Critical
Publication of CN104780232B publication Critical patent/CN104780232B/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

Abstract

The present invention provides a kind of method of resource allocation, controller and system, one of which resource allocation methods, including:Controller Controller receives flow table and establishes request message, it includes the resource bid mark and flow table item mark to need the flow table item established distribution that flow table, which establishes request message, resource bid mark is used to indicate Controller and the resource distributed, flow table item is needed to be identified as the identifier for the flow table item for needing to establish;It is identified according to the resource bid, distribute resource information, so that the forwarding unit establishes the flow table item according to the resource information of distribution, realize the unified distribution of the resource used each transitional technology by controller, transitional technology each in this way can share an address pool, it realizes resource centralized management, and then can obtain resource from the shared address pool when carrying out resource allocation and be allocated, each transitional technology is avoided to use the wasting of resources caused by independent address pool.

Description

A kind of resource allocation methods, controller and system
Technical field
The present invention relates to transitional technology field, more particularly to a kind of resource allocation methods, controller and system.
Background technology
In Internet Protocol Version 4(Internet Protocol version4, IPv4)Network is to Internet Protocol Version 6 (Internet Protocol version6, IPv6)In the evolution process of network, there are a variety of IPv6 evolution technologies, such as gently The double stacks of magnitude(Dual Stack Lite, DS-lite), the network address translation of IPv4 to IPv4(Network Address Translation4to4, NAT44)With lightweight IPv6 transition(Light-weight4over6, LW4over6)Equal transition skill Art.IPv4 is being carried out to the application program needed when IPv6 transition by each transitional technology(Application, APP)It stands alone as It is distributed into row address, and each APP is operated on corresponding server.
In the prior art, the APP of each transitional technology is when generation flow table establishes request message, from its corresponding address pool Middle acquisition resource is allocated, and such as when carrying out resource allocation for the APP of NAT44, is needed from the address that the APP of NAT44 is used The agreement interconnected between outer net source network is obtained in pond(Internet Protocol, IP)Address and outer net source port;When for When LW4over6 carries out resource allocation, need to obtain outer net source IP address and outer from the address pool that the APP of LW4over6 is used Net destination port range.
Due to being that each transitional technology APP distributes fixed address field at present, the address pool of each transitional technology APP is each other Independent, the IP address for being likely to result in some transitional technology APP in this way is inadequate, and the IP address of other transitional technologies APP is idle The phenomenon that, to cause the waste of IP address.
Invention content
An embodiment of the present invention provides a kind of resource allocation methods, controller and systems, to solve existing resource distribution The technical issues of IP address caused by mode wastes.Technical solution is as follows:
In a first aspect, the embodiment of the present invention provides a kind of resource allocation methods, forwarded separated network suitable for control, institute The method of stating includes:
Controller(Controller)It receives flow table and establishes request message, it is needs that the flow table, which establishes request message to include, The resource bid mark and flow table item mark of the flow table item distribution of foundation, the resource bid mark are used to indicate described Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish;
It being identified according to the resource bid, distributes resource information, the resource information includes Internet protocol IP address, or Person, the resource information include IP address and port;
The resource information of distribution is sent to forwarding unit, so that the resource of the forwarding unit according to distribution Information establishes the flow table item.
In the first possible implementation of first aspect, the reception flow table establishes request message and includes:
It receives the flow table that server is sent and establishes request message, it further includes that user belongs to that the flow table, which establishes request message, Property information, the customer attribute information includes the Intranet source IP address and Intranet source port information of user.
With reference to first aspect or the first possible implementation of first aspect, the resource information by distribution are sent out It is sent to forwarding unit, including:
The resource information is added to the corresponding flow table of the flow table item mark to establish in request message, and will The flow table for being added to the resource information establishes request message and is forwarded to forwarding unit.
In second of possible implementation of first aspect, the reception flow table establishes request message and includes:
It receives the flow table that the forwarding unit is sent and establishes request message;
It is described that the resource information of distribution is sent to forwarding unit, including:
It sends the resource information and the flow table item is identified to the forwarding unit, by the forwarding unit according to institute It states resource information and establishes the flow table item.
With reference to first aspect or second of feasible realization of the first possible implementation of first aspect or first aspect Mode, in the third possible implementation of first aspect, the flow table establishes request message asks for formula flow table foundation of filling in a form Message, the formula flow table of filling in a form is asked to establish request message and be specially:It establishes in request message in the flow table and remains in advance in advance The memory space for storing the resource information, after the Controller distributes the resource information, by the resource information It is filled up in the memory space of the corresponding resource information.
With reference to first aspect or second of feasible realization of the first possible implementation of first aspect or first aspect Mode, in the 4th kind of possible implementation of first aspect, the method further includes:
When detecting that the flow table item time-to-live is more than preset time threshold, the resource of the distribution is recycled Information, and send flow table to the forwarding unit and delete message, so that the forwarding unit deletes the flow table item.
Second aspect, the embodiment of the present invention provide a kind of Controller, and the Controller is suitable for control and forwards In separated network, including:
Receiving unit establishes request message for receiving flow table, and it includes to need to establish that the flow table, which establishes request message, Flow table item distribution resource bid mark and flow table item mark, resource bid mark is used to indicate described Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish;
Allocation unit distributes resource information, the resource information includes internet association for being identified according to the resource bid IP address is discussed, alternatively, the resource information includes IP address and port;
Transmission unit, for the resource information of distribution to be sent to forwarding unit, so that the forwarding unit foundation The resource information of distribution establishes the flow table item.
In the first possible implementation of second aspect, the receiving unit is received specifically for the receiving unit Flow table is established request message and is specifically included:
It receives the flow table that server is sent and establishes request message, it further includes that user belongs to that the flow table, which establishes request message, Property information, the customer attribute information includes the Intranet source IP address and Intranet source port information of user.
In conjunction with the first possible implementation of second aspect or the second aspect, the transmission unit is by the institute of distribution It states resource information and is sent to forwarding unit, specifically include:
The resource information is added to the corresponding flow table of the flow table item mark to establish in request message, and will The flow table for being added to the resource information establishes request message and is forwarded to forwarding unit.
In second of possible implementation of second aspect, it is specific that the receiving unit reception flow table establishes request message Including;
It receives the flow table that the forwarding unit is sent and establishes request message;
The resource information of distribution is sent to forwarding unit by the transmission unit, is specifically included:
It sends the resource information and the flow table item is identified to the forwarding unit, by the forwarding unit according to institute It states resource information and establishes the flow table item.
In conjunction with second of feasible realization of the first of second aspect or second aspect possible implementation or second aspect Mode, in the third possible implementation of second aspect, the flow table establishes request message asks for formula flow table foundation of filling in a form Message, the formula flow table of filling in a form is asked to establish request message and be specially:It establishes in request message in the flow table and remains in advance in advance The memory space for storing the resource information, after the Controller is by the resource information of distribution, by the resource In information solicitation to the memory space of the corresponding resource information.
In conjunction with second of feasible realization of the first of second aspect or second aspect possible implementation or second aspect Mode, in the 4th kind of possible implementation of second aspect, the Controller further includes:
Detection unit, for detecting the flow table item time-to-live;
Recovery unit, for detecting that the flow table item time-to-live is more than preset time threshold in the detection unit When, recycle the resource information of the distribution;
The transmission unit is additionally operable to detect that the flow table item time-to-live is more than described pre- in the detection unit If when time threshold, sending flow table to the forwarding unit and deleting message, so that the forwarding unit deletes the flow table item.
The third aspect, the embodiment of the present invention provide a kind of resource allocation system again, the system comprises Controller and Forwarding unit, wherein
The Controller establishes request message for receiving flow table, and it includes to need that the flow table, which establishes request message, The resource bid mark and flow table item mark of the flow table item to be established distribution, the resource bid mark are used to indicate described Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish;Root It is identified according to the resource bid, distributes resource information, the resource information includes Internet protocol IP address, alternatively, the resource Information includes IP address and port;The resource information of distribution is sent to forwarding unit, so that the forwarding unit foundation The resource information of distribution establishes the flow table item;
The forwarding unit, the resource information sent for receiving the Controller, and according to the resource Information establishes the flow table item.
In the first possible implementation of the third aspect, the system also includes:Server, wherein the server Request message is established for generating and sending flow table;
The server establishes request message for generating and sending the flow table;
The Controller is specifically used for, and receives the flow table that the server is sent and establishes request message, according to described Resource bid identifies, and distributes resource information, and the resource information, which is added to the flow table item, identifies the corresponding flow table Establish in request message, and by the flow table for being added to the resource information establish request message be forwarded to it is described forwarding set Standby, it further includes customer attribute information that the flow table, which establishes request message, and the customer attribute information includes the Intranet source IP of user Address and Intranet source port information;
The forwarding unit is specifically used for, and receive the Controller transmissions is added to the described of the resource information Flow table establishes request message, establishes request message according to the flow table for being added to the resource information and establishes the flow table table .
In second of possible implementation of the third aspect, the system also includes server, the server is used for It generates and sends flow table and establishes message to the forwarding unit, the flow table, which is established message and is used to indicate, establishes flow table item, institute It includes customer attribute information to state flow table and establish message, and the customer attribute information includes Intranet source IP address and the Intranet source of user Port information;
The forwarding unit, the flow table for being additionally operable to receive the server transmission establishes message, according to the flow table It establishes the message generation flow table and establishes request message, and send the flow table to the Controller and establish request message;
The Controller is specifically used for, and receives the flow table that the forwarding unit is sent and establishes request message, root It is identified according to the resource bid, distributes resource information, and send the resource information and the flow table item is identified to described turn Send out equipment;
The forwarding unit is specifically used for, and receives the resource information that the Controller is sent, is believed according to the resource Breath establishes the flow table item.
The resource allocation methods that Pass through above-mentioned technical proposal provides, Controller can receive flow table foundation request and disappear Breath, and the mark of the resource bid in request message is established according to flow table, resource information is distributed, is realized by controller to each transition The unified distribution for the resource that technology uses, transitional technology each in this way can share an address pool, realize resource centralized management, And then can obtain resource from the shared address pool when carrying out resource allocation and be allocated, avoid each transitional technology from making The wasting of resources caused by independent address pool.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of resource allocation methods flow diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of block schematic illustration of resource allocation system provided in an embodiment of the present invention;
Fig. 3 is the realization schematic diagram of system shown in Figure 2;
Fig. 4 is the resource allocation methods flow diagram based on system shown in Figure 3;
Fig. 5 is a kind of instance graph of resource allocation methods provided in an embodiment of the present invention;
Fig. 6 is the realization schematic diagram of system shown in Figure 2;
Fig. 7 is the resource allocation methods flow diagram based on system shown in Figure 3;
Fig. 8 is a kind of instance graph of resource allocation methods provided in an embodiment of the present invention;
Fig. 9 is a kind of instance graph of resource allocation methods provided in an embodiment of the present invention;
Figure 10 is a kind of instance graph of resource allocation methods provided in an embodiment of the present invention;
Figure 11 is a kind of flow diagram of resource allocation methods provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of controller provided in an embodiment of the present invention;
Figure 13 is a kind of structural schematic diagram of controller provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having The every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Referring to Fig. 1, an embodiment of the present invention provides a kind of resource allocation methods, and it is suitable for controls to forward separated network In, can the method be executed by the controller Controller in network, can also be other network equipments to execute Method is stated, is described so that Controller is executive agent as an example in the embodiment of the present invention, the method includes:
101:Controller receives flow table and establishes request message, and it includes to need to establish that the flow table, which establishes request message, Flow table item distribution resource bid mark and flow table item mark, resource bid mark is used to indicate described Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish.
In embodiments of the present invention, flow table, which establishes request message and is used to indicate forwarding unit, establishes flow table item, and is turning Hair equipment is established before flow table item, is needed by the distribution resource information that Controller is flow table item, therefore in the present invention In embodiment, flow table establishes request message and may include:To need the resource bid mark and stream of the flow table item established distribution Table list item identifies.
Wherein, resource bid mark is used to indicate the resource that Controller needs distribute, and flow table item is identified as needs The identifier of the flow table item of foundation.A kind of feasible message format that flow table establishes request message is as shown in table 1.
1 flow table of table establishes the message format of request message
Wherein:Flow table action type indicates currently to the operation of flow table:Number 0 indicates that flow table operation, number 1 are established in request Indicate that flow table operation is deleted in request;Operate a kind of feasible pattern of serial number flow table item mark;Flow table attribute indicates operation The type of flow table:Number 0 indicates that unidirectional flow table, number 1 indicate two-way flow table;List item attribute indicates the state of list item:Digital 0 table Show and distributed list item, number 1 then indicates unallocated list item.
And contents in table then indicates the particular content that the list item includes, and may include being used to indicate Controller to need to divide Resource bid mark with resource, when the APP that Controller is different transitional technologies distributes resource, resource bid identifies not Together, therefore the corresponding contents in table of APP of different transitional technologies is different.
In some instances, resource bid mark may include IP address;In other examples, resource bid mark can To include IP address and port.Such as when distributing resource for the APP of NAT44 transitional technologies, the contents in table is as shown in table 2, May include:Intranet source IP address, Intranet source port, outer net source IP address and outer net source port.
The corresponding contents in table of 2 NAT44 of table
Intranet source IP address Intranet source port Outer net source IP address Outer net source port
192.168.1.1 2500 It is to be allocated It is to be allocated
Wherein, Intranet source IP address and Intranet source port are customer attribute information, are serviced where the APP of NAT44 Device distributes, and outer net source IP address and outer net source port are that Controller needs the resource information distributed.
Such as when distributing resource for the APP of DS-Lite this transitional technology, contents in table may include:IPv6 source addresses, Intranet source IP address, Intranet source port, outer net source IP address and outer net source port, as shown in table 3;
The corresponding contents in table of 3 DS-Lite of table
IPv6 source addresses Intranet source IP address Intranet source port Outer net source IP address Outer net source port
2008::1 192.168.1.1 2500 It is to be allocated It is to be allocated
Wherein, IPv6 source addresses, Intranet source IP address and Intranet source port are customer attribute information, by DS-Lite APP where server distribution, outer net source IP address and outer net source port are that Controller needs the resource information distributed.
Equally, when distributing resource for the APP of LW4over6 transitional technologies, contents in table may include:IPv6 source addresses, Outer net source IP address and outer net source port section.
102:It being identified according to the resource bid, distributes resource information, the resource information includes Internet protocol IP address, or Person, the resource information include IP address and port;
103:The resource information of distribution is sent to forwarding unit, so that the forwarding unit is according to the described of distribution Resource information establishes the flow table item.
Controller distributes corresponding resource after receiving flow table and establishing request message, according to resource bid mark to be believed Breath such as distributes outer net source IP address and outer net source port for the APP of NAT44 transitional technologies.Forwarding unit is obtaining resource in this way The operation for establishing flow table item can be started after information, complete the foundation of flow table item, wherein flow table item is equivalent to one and turns Hair rule can obtain the forwarding destination of each data packet by inquiring flow table item, according to flow table item to data packet into Row forwarding.
In resource allocation methods provided in an embodiment of the present invention, Controller can receive flow table foundation request and disappear Breath, and the mark of the resource bid in request message is established according to flow table, resource information is distributed, is realized by controller to each transition The unified distribution for the resource that technology uses, transitional technology each in this way can share an address pool, realize resource centralized management, And then can obtain resource from the shared address pool when carrying out resource allocation and be allocated, avoid each transitional technology from making The wasting of resources caused by independent address pool.And the resource unified management that Controller uses each transitional technology, So each APP can no longer integrate resource allocation function, and reduce each APP writes difficulty.
Referring to Fig. 2, an embodiment of the present invention provides a kind of resource allocation system 200, which includes Controller212 With forwarding unit 213, wherein
The Controller212 establishes request message for receiving flow table, and it includes being that the flow table, which establishes request message, The resource bid mark and flow table item mark that the flow table item established is distributed, the resource bid mark is needed to be used to indicate institute Stating Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish; It is identified according to the resource bid, distributes resource information, the resource information includes Internet protocol IP address, alternatively, the money Source information includes IP address and port;The resource information of distribution is sent to forwarding unit so that the forwarding unit according to The flow table item is established according to the resource information of distribution;
The forwarding unit 213, the resource information sent for receiving the Controller212, and according to institute It states resource information and establishes the flow table item.
Optionally, which further includes:
First server establishes request message for generating and sending the flow table;
The Controller212 is specifically used for, and receives the flow table that the first server is sent and establishes request message, root It is identified according to the resource bid, distributes resource information, the resource information, which is added to the flow table item, identifies corresponding institute It states flow table to establish in request message, and the flow table for being added to the resource information is established into request message and is forwarded to described turn Equipment 213 is sent out, it further includes customer attribute information that the flow table, which establishes request message, and the customer attribute information includes the interior of user Net source IP address and Intranet source port information;
The forwarding unit 213 is specifically used for, and receive the Controller212 transmissions is added to the resource information The flow table establish request message, request message is established according to the flow table for being added to the resource information and establishes the stream Table list item.
Optionally, which further includes:
Second server establishes message to the forwarding unit for generating and sending flow table, and the flow table establishes message It is used to indicate and establishes flow table item, it includes customer attribute information that the flow table, which establishes message, and the customer attribute information includes using The Intranet source IP address and Intranet source port information at family;
The forwarding unit 213, the flow table for being additionally operable to receive the second server transmission establishes message, according to institute It states flow table and establishes message and generate the flow table and establish request message, and send the flow table to the Controller and establish request Message;
The Controller212 is specifically used for, and receives the flow table that the forwarding unit is sent and establishes request message, It is identified according to the resource bid, distributes resource information, and send the resource information and the flow table item is identified to described Forwarding unit;
The forwarding unit 213 is specifically used for, and the resource information that the Controller212 is sent is received, according to described Resource information establishes the flow table item
Referring to Fig. 3, Fig. 3 is a kind of realization schematic diagram of system shown in Figure 2.Include within the system:Server 311, Controller312 and forwarding unit 313 are wherein integrated with the APP of various transitional technologies, can generate on server 311 And it sends flow table and establishes request message;
Controller312, the flow table for receiving the transmission of server 311 are established request message, are asked according to flow table foundation It asks the resource bid in message to identify and distributes corresponding resource information, and the resource information of distribution is added to flow table and establishes request In message, and the flow table for changing resource information will be added to establishes request message and be sent to forwarding unit 313;
Forwarding unit 313 is asked for receiving the flow table foundation for being added to resource information that the Controller312 is sent Message is sought, the flow table that resource information is added to according to this establishes request message and establishes flow table item.
In system framework shown in Fig. 3, Controller312 may include address pool management interface, and be stored with ground Location pond is wherein integrated with the resource that each transitional technology uses in address pool, and Controller312 can pass through address pool Management interface connection runs the server 311 and forwarding unit 313 of each transitional technology APP, and further passes through address pool Management interface obtains resource information from address pool.
When based on system framework shown in Fig. 3, resource allocation methods provided in an embodiment of the present invention may refer to Fig. 4 institutes Show, includes the following steps:
401:It receives the flow table that server is sent and establishes request message, it includes to need to build that the flow table, which establishes request message, The resource bid mark and flow table item mark of vertical flow table item distribution, the resource bid mark are used to indicate described Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish.
In embodiments of the present invention, flow table, which establishes request message and is used to indicate forwarding unit, establishes flow table item, and is turning Hair equipment is established before flow table item, needs to distribute resource information by the foundation that Controller is flow table item.
Wherein, resource bid mark is used to indicate the resource that Controller needs distribute, in some instances, resource Application mark may include IP address, and in other examples, resource bid mark may include IP address and port.
Flow table item is identified as the identifier for the flow table item for needing to establish, and can be in message format shown in table 1 Operation serial number.Customer attribute information is included in flow table and establishes in the contents in table of request message, indicates the APP by transitional technology The resource information of distribution.In some instances, customer attribute information may include Intranet source IP address and Intranet source port.
The specific format for the specific format and its contents in table for including that flow table establishes request message please refers to table 1 to table Shown in 3, the embodiment of the present invention is no longer enumerated.
402:It is identified according to the resource bid, distributes resource information, the resource information includes IP address, alternatively, institute It includes IP address and port to state resource information.
In embodiments of the present invention, the flow table that Controller312 is sent by address pool management interface server Request message is established, and resource information is further obtained from address pool by address pool management interface.
403:The resource information is added to the corresponding flow table of the flow table item mark to establish in request message, And the flow table for being added to the resource information is established into request message and is forwarded to forwarding unit, so that the forwarding unit root Request message, which is established, according to the flow table for being added to the resource information establishes the flow table item.
The flow table for being added to resource information is established request message and is sent by address pool management interface by Controller312 Into forwarding unit 313, forwarding unit 313 is established request message startup flow table item according to the flow table for being added to resource information and is built Vertical operation, proceeds by the foundation of flow table item.
Referring to Fig. 5, a kind of exemplary plot of resource allocation methods provided in an embodiment of the present invention, wherein Controller is received The flow table that server is sent establishes request message, and NAT44APP is run on the server, and it includes to use which, which establishes request message, Family attribute information, the customer attribute information include Intranet source IP address 192.168.1.1 and Intranet source port 2500, and flow table is established Request message further includes resource bid mark --- outer net source IP address to be allocated and outer net source port to be allocated. Controller distributes the resource information of corresponding resource bid mark, the money after receiving the flow table and establishing request message Source information includes outer net source IP address 202.1.1.1 and outer net source port 5000.Controller is by the resource information of distribution It is added to flow table to establish in request message, and the flow table for being added to the resource information established into request message is sent to forwarding and set Standby, which establishes request message according to the flow table and establishes flow table forwarding-table item, which includes the user Attribute information and the resource information.
Shown in Figure 6, Fig. 6 is a kind of realization schematic diagram of system shown in Figure 3, includes within the system:Server 621, controller Controller622 and forwarding unit 623, wherein
Server 621 establishes message to the forwarding unit for generating and sending flow table, and the flow table establishes message use Flow table item is established in instruction, it includes customer attribute information that the flow table, which establishes message, and the customer attribute information includes user Intranet source IP address and Intranet source port information.
Forwarding unit 623, the flow table for receiving the transmission of server 621 are established message, are established according to the flow table Message generates the flow table and establishes request message, and sends the flow table to the Controller and establish request message;
Controller622, the flow table for receiving the transmission of forwarding unit 623 are established request message, are built according to the flow table Resource bid mark distribution resource information in vertical request message, and the resource information of distribution is sent to forwarding unit 623, by Forwarding unit 623 establishes flow table item according to resource information.
In system framework shown in Fig. 6, Controller622 may include address pool management interface, and be stored with ground Location pond, wherein address pool are integrated with the resource that each transitional technology uses, and Controller622 can pass through address pool pipe It manages interface and connects forwarding unit 623, and further pass through the resource in address pool management interface call address pond.
When based on system shown in fig. 6, resource allocation methods provided in an embodiment of the present invention may refer to shown in Fig. 7, can To include the following steps:
701:It receives the flow table that forwarding unit is sent and establishes request message.
The flow table, which establishes request message, to establish message generation according to the flow table received from server by forwarding unit.It should Flow table, which is established message and is used to indicate, establishes flow table item, and it includes customer attribute information that the flow table, which establishes message, and the user belongs to Property information includes the Intranet source IP address and Intranet source port information of user.The flow table establish message format may refer to table 1 to Shown in table 3.Forwarding unit removes the other information in addition to resource bid identifies, generates after obtaining the flow table and establishing message Flow table establishes request message, and the flow table is established request message and is sent in Controller.
The flow table that Controller is received establishes resource bid mark in request message and is used to indicate Controller points The resource information matched.
702:It is identified according to resource bid, distributes resource information.
703:It sends resource information and flow table item is identified to forwarding unit, stream is established according to resource information by forwarding unit Table list item.
In this example, Controller establishes request by the flow table that address pool management interface forwarding unit is sent Message, and further believed from the resource that corresponding resource application identifies in address pool is obtained in address pool by address pool management interface Breath, then the resource information is sent to forwarding unit, establishing by forwarding unit foundation resource information and from flow table must in message To customer attribute information establish flow table item jointly.
Based on system framework shown in fig. 6, a kind of example for the resource allocation methods that application drawing 7 provides can be refering to figure Shown in 8, in the case of hanging over forwarding unit by Controller, how to be provided for the APP distribution of NAT44 transitional technologies The process of source information.Wherein other hang refers to that Controller passes through this connection side of address pool management interface connection forwarding unit Formula.
In the embodiment of above-mentioned offer, flow table establishes request message and establishes request message for formula flow table of filling in a form, formula of filling in a form Flow table establishes request message:The storage sky that in advance in advance remains for store resource information is established in flow table in request message Between, the resource information of distribution is filled up in the memory space of corresponding resource information by Controller.As shown in table 2, in table 2 Middle outer net source IP address and outer net source port are the resource information for needing to distribute, and corresponding space is that flow table is built in messages Vertical request message remains for storing in advance the memory space of the two information in advance.
In embodiments of the present invention, the resource information of distribution can be filled up to corresponding resource information by Controller Mode in memory space is properly termed as the mode of the request distribution resource for the formula of filling in a form, and this mode is distributed in Controller and provided Resource information can be directly added to the contents in table of flow table item behind source so that forwarding unit when establishing flow table item, Directly customer attribute information and resource information can directly be established from flow table in request message and extract to obtain a flow table table , process is established to simplify flow table item, improves efficiency.
In other examples provided in an embodiment of the present invention, Controller, can also be into during distributing resource One step is monitored the flow table item that forwarding unit obtains.As shown in Figure 9 and Figure 10, wherein Fig. 9 shows Controller Resource allocation is carried out in system framework shown in Fig. 3, the flow that flow table is deleted and recycled, and Figure 10 shows Controller Resource allocation is carried out based on frame shown in Fig. 6, flow table is deleted and the flow of recycling.
Correspondingly, resource allocation methods provided in an embodiment of the present invention can further include step on the basis of Fig. 1 104:
Controller recycles the resource letter of distribution when detecting that the flow table item time-to-live is more than preset time threshold Breath, and send flow table to forwarding unit and delete message, so that forwarding unit deletes flow table item, as shown in figure 11.
Wherein the setting of preset time threshold can be different according to different application scene, are not added with to this embodiment of the present invention With limitation.Controller implements the resource allocation methods provided by the application present invention can be with by the monitoring to flow table item By not used resource information recycling, resource wave caused by avoiding the resource information from being not used for a long time in preset time threshold Take, further increases the reasonable utilization of resource.
Referring to Figure 12, the embodiment of the present invention also provides a kind of Controller1200, is suitable for control forwarding separated network In, which can be used for executing the method in preceding method embodiment, which can wrap It includes:
Receiving unit 1211, allocation unit 1212 and transmission unit 1213.Wherein,
Receiving unit 1211 establishes request message for receiving flow table, and it is needs that the flow table, which establishes request message to include, The resource bid mark and flow table item mark of the flow table item distribution of foundation, the resource bid mark are used to indicate described Controller1200 needs the resource distributed, the flow table item to be identified as the mark of the flow table item for needing to establish Symbol;
Allocation unit 1212 distributes resource information, the resource information includes net for being identified according to the resource bid Border Protocol IP address, alternatively, the resource information includes IP address and port;
Transmission unit 1213, for the resource information of distribution to be sent to forwarding unit, so that the forwarding unit The resource information according to distribution establishes the flow table item.
Optionally, the reception of the receiving unit 1211 flow table is established request message and is specifically included:
It receives the flow table that server is sent and establishes request message, it further includes that user belongs to that the flow table, which establishes request message, Property information, the customer attribute information includes the Intranet source IP address and Intranet source port information of user.Wherein, flow table item mark Know to need the identifier for the flow table item established, resource bid mark to be used to indicate Controller1200 and need the money distributed Source.
The resource information of distribution is sent to forwarding unit by the transmission unit 1213, is specifically included:
The resource information is added to the corresponding flow table of the flow table item mark to establish in request message, and will The flow table for being added to the resource information establishes request message and is forwarded to forwarding unit.
In resource allocation methods provided in an embodiment of the present invention, Controller1200 can receive flow table and establish request Message, and the mark of the resource bid in request message is established according to flow table, resource information is distributed, is realized by Controller1200 Unified distribution to the resource that each transitional technology uses, transitional technology each in this way can share an address pool, realize money Source is managed concentratedly, and then can be obtained resource from the shared address pool when carrying out resource allocation and be allocated, and is avoided every A transitional technology uses the wasting of resources caused by independent address pool.And Controller1200 uses each transitional technology Resource unified management, then each APP can no longer integrate resource allocation function, reduce each APP writes difficulty.
Optionally, the reception of the receiving unit 1211 flow table is established request message and is specifically included:
It receives the flow table that the forwarding unit is sent and establishes request message;
The resource information of distribution is sent to forwarding unit by the transmission unit 1213, is specifically included:
It sends the resource information and the flow table item is identified to the forwarding unit, by the forwarding unit according to institute It states resource information and establishes the flow table item.
Optionally, the flow table establishes request message and establishes request message for formula flow table of filling in a form, and the formula flow table of filling in a form is built Vertical request message is specially:The storage sky that in advance in advance remains for store the resource information is established in the flow table in request message Between, after the Controller1200 is by the resource information of distribution, the resource information is filled up to corresponding described In the memory space of resource information.
Optionally, the Controller1200 further includes:
Detection unit, for detecting the flow table item time-to-live;
Recovery unit, for detecting that the flow table item time-to-live is more than preset time threshold in the detection unit When, recycle the resource information of the distribution;
The transmission unit 1213 is additionally operable to detect that the flow table item time-to-live is more than institute in the detection unit When stating preset time threshold, sends flow table to the forwarding unit and delete message, so that the forwarding unit deletes the flow table List item.Wherein the setting of preset time threshold can be different according to different application scene, are not subject to this embodiment of the present invention Limitation.Controller Controller can be by not used resource information in preset time threshold by the monitoring to flow table item Recycling, the wasting of resources caused by avoiding the resource information from being not used for a long time, further increases the reasonable utilization of resource.
Referring to Figure 13, the embodiment of the present invention also provides a kind of Controller1300, is suitable for control forwarding separated network In, which includes:Memory 1301, receiver 1302 and transmitter 1303, and respectively with memory 1301, the processor 1304 that receiver 1302 and transmitter 1303 connect, the memory 1301 refer to for storing batch processing It enables, the program instruction that the processor 1304 is used to that the memory 1301 to be called to store executes following operation:
Triggering receiver 1302 receives flow table and establishes request message, and it includes to need to establish that the flow table, which establishes request message, Flow table item distribution resource bid mark and flow table item mark, resource bid mark is used to indicate described Controller1300 needs the resource distributed, the flow table item to be identified as the mark of the flow table item for needing to establish Symbol;
It being identified according to the resource bid, distributes resource information, the resource information includes Internet protocol IP address, or Person, the resource information include IP address and port;
It triggers the transmitter 1303 and the resource information of distribution is sent to forwarding unit, so that the forwarding unit The resource information according to distribution establishes the flow table item.
Optionally, the receiver 1302 receives flow table and establishes request message and include:
It receives the flow table that server is sent and establishes request message, it further includes that user belongs to that the flow table, which establishes request message, Property information, the customer attribute information includes the Intranet source IP address and Intranet source port information of user.
Optionally, the resource information of distribution is sent to forwarding unit by the transmitter 1303, including:
The resource information is added to the corresponding flow table of the flow table item mark to establish in request message, and will The flow table for being added to the resource information establishes request message and is forwarded to forwarding unit.
Optionally, the receiver 1302 receives flow table and establishes request message and include:
It receives the flow table that the forwarding unit is sent and establishes request message;
It is described that the resource information of distribution is sent to forwarding unit, including:
It sends the resource information and the flow table item is identified to the forwarding unit, by the forwarding unit according to institute It states resource information and establishes the flow table item.
Optionally, the processor 1304 can be central processing unit(Central Processing Unit, CPU), institute It can be random access memory to state memory 1301(Random Access Memory, RAM)The internal storage of type, institute It can includes General Physics interface to state receiver 1302 and transmitter 1303, and the physical interface can be ether(Ethernet) Interface or asynchronous transfer mode(Asynchronous Transfer Mode, ATM)Interface.The processor 1304, receiver 1302, transmitter 1303 and memory 1301 can be integrated into one or more independent circuits or hardware, such as:Special integrated electricity Road (Application Specific Integrated Circuit, ASIC).
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description See the part explanation of embodiment of the method.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and foregoing routine can be stored in a computer read/write memory medium, which exists When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned can be in following media at least one Kind:Read-only memory(Read-Only Memory, referred to as ROM), RAM, magnetic disc or CD etc. are various can store program The medium of code.
Finally it should be noted that:Above example is only to exemplary illustration technical scheme of the present invention, rather than limits it System;Although the advantageous effect brought with reference to the foregoing embodiments to the present invention and the present invention is described in detail, this field Those of ordinary skill should understand that:It still can be with technical scheme described in the above embodiments is modified or right Which part technical characteristic carries out equivalent replacement;And these modifications or replacements, it does not separate the essence of the corresponding technical solution The range of the claims in the present invention.

Claims (15)

1. a kind of resource allocation methods, which is characterized in that it is forwarded separated network suitable for control, the method includes:
Controller Controller receives flow table and establishes request message, and it includes needing to establish that the flow table, which establishes request message, The resource bid mark and flow table item mark of flow table item distribution, the resource bid mark are used to indicate described Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish;
It is identified according to the resource bid, distribution and the resource bid from each transitional technology corresponding same address pool Matched resource information is identified, the resource information includes Internet protocol IP address, alternatively, the resource information includes IP address The port and;
The resource information of distribution is sent to forwarding unit, so that the resource information of the forwarding unit according to distribution Establish the flow table item.
2. according to the method described in claim 1, it is characterized in that, the reception flow table establishes request message includes:
It receives the flow table that server is sent and establishes request message, it further includes user property letter that the flow table, which establishes request message, Breath, the customer attribute information includes the Intranet source IP address and Intranet source port information of user.
3. according to the method described in claim 1, it is characterized in that, described be sent to forwarding by the resource information of distribution and set It is standby, including:
The resource information is added to the corresponding flow table of the flow table item mark to establish in request message, and will be added The flow table of the resource information establishes request message and is forwarded to forwarding unit.
4. according to the method described in claim 1, it is characterized in that, the reception flow table establishes request message includes:
It receives the flow table that the forwarding unit is sent and establishes request message;
It is described that the resource information of distribution is sent to forwarding unit, including:
It sends the resource information and the flow table item is identified to the forwarding unit, by the forwarding unit according to the money Source information establishes the flow table item.
5. according to the method described in Claims 1-4 any claim, which is characterized in that the flow table establishes request message Request message is established for formula flow table of filling in a form, the formula flow table of filling in a form establishes request message and is specially:It establishes and asks in the flow table The memory space for remaining for storing the resource information in message in advance, after the Controller distributes the resource information, The resource information is filled up in the memory space of the corresponding resource information.
6. according to the method described in Claims 1-4 any one claim, which is characterized in that the method further includes:
When detecting that the flow table item time-to-live is more than preset time threshold, the resource letter of the distribution is recycled Breath, and send flow table to the forwarding unit and delete message, so that the forwarding unit deletes the flow table item.
7. a kind of controller Controller, which is characterized in that the Controller is forwarded suitable for control separated network, Including:
Receiving unit establishes request message for receiving flow table, and it includes the stream to need to establish that the flow table, which establishes request message, The resource bid mark and flow table item mark of table list item distribution, the resource bid mark are used to indicate the Controller The resource distributed, the flow table item is needed to be identified as the identifier of the flow table item for needing to establish;
Allocation unit is distributed for being identified according to the resource bid from the corresponding same address pool of each transitional technology Matched resource information is identified with the resource bid, the resource information includes Internet protocol IP address, alternatively, the resource Information includes IP address and port;
Transmission unit, for the resource information of distribution to be sent to forwarding unit, so that the forwarding unit is according to distribution The resource information establish the flow table item.
8. Controller according to claim 7, which is characterized in that the receiving unit receives flow table foundation request and disappears Breath specifically includes:
It receives the flow table that server is sent and establishes request message, it further includes user property letter that the flow table, which establishes request message, Breath, the customer attribute information includes the Intranet source IP address and Intranet source port information of user.
9. Controller according to claim 7, which is characterized in that the transmission unit believes the resource of distribution Breath is sent to forwarding unit, specifically includes:
The resource information is added to the corresponding flow table of the flow table item mark to establish in request message, and will be added The flow table of the resource information establishes request message and is forwarded to forwarding unit.
10. Controller according to claim 7, which is characterized in that the receiving unit receives flow table and establishes request Message specifically includes:
It receives the flow table that the forwarding unit is sent and establishes request message;
The resource information of distribution is sent to forwarding unit by the transmission unit, is specifically included:
It sends the resource information and the flow table item is identified to the forwarding unit, by the forwarding unit according to the money Source information establishes the flow table item.
11. according to the Controller described in claim 7 to 10 any claim, which is characterized in that the flow table is established Request message establishes request message for formula flow table of filling in a form, and the formula flow table of filling in a form establishes request message and is specially:In the flow table It establishes in request message and to remain for storing the memory space of the resource information in advance in advance, in the Controller by distribution After the resource information, the resource information is filled up in the memory space of the corresponding resource information.
12. according to the Controller described in claim 7 to 10 any one claim, which is characterized in that described Controller further includes:
Detection unit, for detecting the flow table item time-to-live;
Recovery unit, for the detection unit detect the flow table item time-to-live be more than preset time threshold when, Recycle the resource information of the distribution;
The transmission unit is additionally operable to when the detection unit detects that the flow table item time-to-live is more than described default Between threshold value when, send flow table to the forwarding unit and delete message, so that the forwarding unit deletes the flow table item.
13. a kind of resource allocation system, which is characterized in that the system comprises controller Controller and forwarding unit, In,
The Controller establishes request message for receiving flow table, and it includes to need to build that the flow table, which establishes request message, The resource bid mark and flow table item mark of vertical flow table item distribution, the resource bid mark are used to indicate described Controller needs the resource distributed, the flow table item to be identified as the identifier of the flow table item for needing to establish;Root It is identified according to the resource bid, distribution and resource bid mark from each transitional technology corresponding same address pool The resource information matched, the resource information includes Internet protocol IP address, alternatively, the resource information includes IP address and end Mouthful;The resource information of distribution is sent to forwarding unit, so that the resource information of the forwarding unit according to distribution Establish the flow table item;
The forwarding unit, the resource information sent for receiving the Controller, and according to the resource information Establish the flow table item.
14. system according to claim 13, which is characterized in that the system also includes:Server, wherein
The server establishes request message for generating and sending the flow table;
The Controller is specifically used for, and receives the flow table that the server is sent and establishes request message, according to the resource Application mark, distributes resource information, and the resource information, which is added to the corresponding flow table of the flow table item mark, to be established In request message, and the flow table for being added to the resource information is established into request message and is forwarded to the forwarding unit, institute It further includes customer attribute information to state flow table and establish request message, the customer attribute information include user Intranet source IP address and Intranet source port information;
The forwarding unit is specifically used for, and receives the flow table for being added to the resource information that the Controller is sent Request message is established, request message is established according to the flow table for being added to the resource information and establishes the flow table item.
15. system according to claim 13, which is characterized in that the system also includes servers, wherein
The server establishes message to the forwarding unit for generating and sending flow table, and the flow table is established message and is used for Flow table item is established in instruction, and it includes customer attribute information that the flow table, which establishes message, and the customer attribute information includes the use The Intranet source IP address and Intranet source port information at family;
The forwarding unit, the flow table for being additionally operable to receive the server transmission are established message, are established according to the flow table Message generates the flow table and establishes request message, and sends the flow table to the Controller and establish request message;
The Controller is specifically used for, and receives the flow table that the forwarding unit is sent and establishes request message, according to institute Resource bid mark is stated, resource information is distributed, and sends the resource information and the flow table item is identified to the forwarding and set It is standby;
The forwarding unit is specifically used for, and receives the resource information that the Controller is sent, is built according to the resource information Found the flow table item.
CN201410014512.3A 2014-01-13 2014-01-13 A kind of resource allocation methods, controller and system Active CN104780232B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410014512.3A CN104780232B (en) 2014-01-13 2014-01-13 A kind of resource allocation methods, controller and system
PCT/CN2014/093880 WO2015103919A1 (en) 2014-01-13 2014-12-15 Resource allocation method, controller and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410014512.3A CN104780232B (en) 2014-01-13 2014-01-13 A kind of resource allocation methods, controller and system

Publications (2)

Publication Number Publication Date
CN104780232A CN104780232A (en) 2015-07-15
CN104780232B true CN104780232B (en) 2018-07-31

Family

ID=53523530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410014512.3A Active CN104780232B (en) 2014-01-13 2014-01-13 A kind of resource allocation methods, controller and system

Country Status (2)

Country Link
CN (1) CN104780232B (en)
WO (1) WO2015103919A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666467B (en) * 2016-07-29 2020-11-06 华为技术有限公司 Resource allocation method, equipment and system
CN109120555B (en) * 2017-06-26 2022-10-14 中兴通讯股份有限公司 Resource allocation method and system
CN109218201B (en) * 2017-06-30 2021-05-18 华为技术有限公司 Method for generating forwarding table item, controller and network equipment
CN109495593B (en) * 2017-09-11 2022-03-25 中兴通讯股份有限公司 Address allocation method and system
CN110012118B (en) * 2019-03-08 2022-07-22 平安科技(深圳)有限公司 Method and controller for providing Network Address Translation (NAT) service
CN112214300A (en) * 2020-10-12 2021-01-12 北京泽石科技有限公司 Command timeout processing method, processing device and computer readable storage medium
CN114500028A (en) * 2022-01-21 2022-05-13 北京安天网络安全技术有限公司 Network access control method and device and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326884A (en) * 2013-05-30 2013-09-25 烽火通信科技股份有限公司 Service flow aware system and method combining flow detection and package detection in SDN
CN103369038A (en) * 2013-07-03 2013-10-23 中国联合网络通信集团有限公司 PaaS (platform as a service) management platform and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100560737B1 (en) * 2003-02-18 2006-03-13 삼성전자주식회사 appatus for converting IPv4-to-IPv6 using dual stack and method thereof
JP4345565B2 (en) * 2003-05-13 2009-10-14 パナソニック株式会社 Mobile router, location management server, mobile network management system, and mobile network management method
US8392613B2 (en) * 2008-07-03 2013-03-05 Nokia Corporation Network address assignment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326884A (en) * 2013-05-30 2013-09-25 烽火通信科技股份有限公司 Service flow aware system and method combining flow detection and package detection in SDN
CN103369038A (en) * 2013-07-03 2013-10-23 中国联合网络通信集团有限公司 PaaS (platform as a service) management platform and method

Also Published As

Publication number Publication date
CN104780232A (en) 2015-07-15
WO2015103919A1 (en) 2015-07-16

Similar Documents

Publication Publication Date Title
CN104780232B (en) A kind of resource allocation methods, controller and system
CN106412142B (en) Resource equipment address obtaining method and device
CN102291320B (en) MAC (media access control) address learning method and edge device
CN105610632B (en) Virtual network equipment and related method
US11075948B2 (en) Method and system for virtual machine aware policy management
CN106452857B (en) Method for generating configuration information and network control unit
CN104378455B (en) IP address distribution method and device
JP6633775B2 (en) Packet transmission
CN104283980A (en) Address resolution protocol (ARP) reply on-behalf method and device
CN103118149B (en) Communication control method between same tenant's server and the network equipment
CN102025630A (en) Load balancing method and load balancing system
CN102377669B (en) Method for sending message and switch
CN104780088A (en) Service message transmission method and equipment
CN106953943B (en) Method and device suitable for switch communication
CN107124364B (en) The complete Proxy Method of network A RP and system based on software defined network controller
CN103441932A (en) Host routing table entry generating method and device
CN105264869B (en) A kind of system and method for IP address distribution
CN105704256B (en) A kind of IP address management methods, devices and systems
CN106385365A (en) Method of realizing cloud platform safety based on openflow table and apparatus thereof
CN103561122B (en) IPv6 address collocation method, IPv6 client and server
CN104253878A (en) VLAN (Virtual Local Area Network) information management system and method of DHCP (Dynamic Host Configuration Protocol) RELAY termination sub-interface
CN105207909A (en) Method for transmitting information and network apparatus
CN103338275A (en) Port distribution method and apparatus
CN102447703B (en) A kind of heat backup method and system, CGN equipment
CN102859947B (en) Method, apparatus and system for neighbor discovery

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