CN104113474B - Generation method, controller and the system of forward-path - Google Patents

Generation method, controller and the system of forward-path Download PDF

Info

Publication number
CN104113474B
CN104113474B CN201310140475.6A CN201310140475A CN104113474B CN 104113474 B CN104113474 B CN 104113474B CN 201310140475 A CN201310140475 A CN 201310140475A CN 104113474 B CN104113474 B CN 104113474B
Authority
CN
China
Prior art keywords
main frame
address
controller
gateway
subnet
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
CN201310140475.6A
Other languages
Chinese (zh)
Other versions
CN104113474A (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 CN201310140475.6A priority Critical patent/CN104113474B/en
Priority to PCT/CN2014/075149 priority patent/WO2014173235A1/en
Publication of CN104113474A publication Critical patent/CN104113474A/en
Application granted granted Critical
Publication of CN104113474B publication Critical patent/CN104113474B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of generation method of forward-path, controller and system, belong to network technique field.Methods described includes:The network information of the first main frame is obtained by the first ARP request received;The network information of the second main frame is obtained by constructing the second ARP request;According to the first main frame and the network information decision making forward-path of the second main frame;Forwarding flow table is issued to each interchanger on forward-path, so that each interchanger on forward-path forwards packet according to forwarding flow table between the first main frame and the second main frame.The present invention is by controller come the part OpenFlow interchangers instead of realizing gateway/route in OpenFlow networks, the problem of special OpenFlow interchangers in OpenFlow networks can not realize the function is solved, the effect for the interchanger for playing gateway/routing function need not be separately provided by having reached in OpenFlow networks.

Description

Generation method, controller and the system of forward-path
Technical field
The present invention relates to network technique field, more particularly to a kind of generation method of forward-path, controller and system.
Background technology
OpenFlow is a kind of new network exchange model, including OpenFlow interchangers(OpenFlow Switch)With Controller(Crontroller);Wherein, OpenFlow interchangers carry out the forwarding of data Layer;Controller is concentrated to network Control, realizes the function of key-course.OpenFlow interchangers are divided into two classes:Special OpenFlow interchangers and support OpenFlow interchanger.Special OpenFlow interchangers do not have control logic, are used only between port forward data One simple path part of bag, is all forwarded for the packet received according to OpenFlow patterns;And support OpenFlow interchanger both can carry out forwarding packet according to OpenFlow patterns, can also turning according to existing switch Hair pattern carries out forwarding packet.
In actual OpenFlow networks, completed jointly by OpenFlow interchangers and controller in existing network completely The message repeating process controlled by switch/router, so as to realize the separation of data forwarding and route test.It refer to Fig. 1, It illustrates the implementation environment of existing openflow networks, the implementation environment includes controller 120, the first main frame 140 and second Main frame 142, the first interchanger 160, second switch 162,3rd switch 164, the 4th interchanger 166 and the 5th interchanger 168, wherein the first main frame 140 and the second main frame 142 belong to different subnets, it is connected to the first interchanger 160 and second On the port of interchanger 162, the 4th interchanger 166 and the 5th interchanger 168 realize the first main frame 140 and the second main frame respectively 142 configuration gateway function, that is, assume that the first main frame 140 configures the first gateway, the second main frame 142 and configures the second gateway, first The effect of gateway and the second gateway is realized by the 4th interchanger 166 and the 5th interchanger 168 respectively.In the first main frame 140 and During the practical communication of two main frames 142, the first main frame 140 passes through ARP between the 4th interchanger 166 first(Address Resolution Protocol, address resolution protocol)Learning process obtains the MAC of the first gateway(Medium/Media Access Control, media access control layer)After address, the MAC Address for getting the first gateway, the first main frame is to the 4th Interchanger 166 sends the packet that destination host is the second main frame 142, and the 4th interchanger is received after the packet, if inquiry Forwarding flow table information corresponding less than with the packet, then report controller, controller is according to subnet information by the packet With forwarding flow table is issued after the purpose IP address decision-making of the packet, the packet is transmitted to the 5th friendship by the 4th interchanger 166 Change planes 168, with obtaining the MAC of the second main frame 142 between the 5th interchanger 168 and the second main frame 142 by ARP learning processes After location, the MAC Address for getting the second main frame 142, the packet is transmitted to the second main frame 142.
During the present invention is realized, inventor has found that prior art at least has the following disadvantages:Part OpenFlow Interchanger needs to undertake the 4th interchanger 166 and the 5th interchanger 168 in the function of gateway/route, such as Fig. 1, and Special OpenFlow interchangers in OpenFlow networks can not realize the function, i.e., handed over if function as the gateway is acted on the 4th Change planes 166 and the 5th interchanger 168 be special Openflow interchangers when, then can not realize the function.
The content of the invention
In order to which the special OpenFlow interchangers solved in OpenFlow networks can not realize the function of gateway/route Problem, the embodiments of the invention provide a kind of generation method of forward-path, controller and system.The technical scheme is as follows:
According to an aspect of the present invention, the embodiments of the invention provide a kind of generation method of forward-path, the side Method includes:
Controller obtains the network information of the first main frame by the first ARP request received, and first ARP request is By first main frame send and with the interchanger that first main frame is connected can not find forward flow table after be transmitted to institute State the ARP request of controller;
The controller obtains the network information of the second main frame by constructing the second ARP request;
The controller is according to the network information of first main frame and the network information decision making of second main frame Forward-path between first main frame and second main frame;
The controller issues forwarding flow table to each interchanger on the forward-path, so as on the forward-path Each interchanger according to it is described forwarding flow table forward packet between first main frame and second main frame.
In the first possible embodiment of first aspect, if the purpose IP address in first ARP request is The IP address of first gateway, first gateway is the configuration gateway of first main frame, then it is described by receiving first ARP request is obtained after the network information of the first main frame, in addition to:
The controller feeds back the first ARP to first main frame by the interchanger being connected with first main frame and rung Should, source MAC and source IP address in first arp response are respectively the MAC Address and IP address of first gateway.
With reference to the first possible embodiment of first aspect, in second of possible embodiment, the control Device obtains the network information of the second main frame by constructing the second ARP request, including:
The controller receives the packet that first main frame is sent, and the target MAC (Media Access Control) address of the packet is described The MAC Address of first gateway, purpose IP address is the IP address of second main frame;
The controller constructs the second ARP request, the source of second ARP request according to the IP address of second main frame MAC Address and source IP address are respectively the MAC Address and IP address of the second gateway, and purpose IP address is the IP of second main frame Address, second gateway is the configuration gateway of second main frame;
Second ARP request is sent to institute by the controller by the interchanger in subnet where second main frame All hosts where stating the second main frame in subnet;
The controller receives the 2nd ARP that second main frame feeds back by the interchanger being connected with second main frame Response, the source MAC and source IP address of second arp response are respectively the MAC Address and IP address of second main frame.
With reference to second of possible embodiment of first aspect, in the third possible embodiment, the control Device is obtained by the first ARP request received before the network information of the first main frame, in addition to:
Gateway, network number and the son of subnet where the controller prestores first main frame and second main frame Net mask, and first gateway and second gateway MAC Address and IP address;
Second ARP request is sent to described by the controller by the interchanger of subnet where second main frame All hosts where second main frame in subnet, including;
The controller is according to gateway, network number and the subnet mask of subnet where second main frame by described second All hosts where ARP request is sent to second main frame in subnet.
With reference in a first aspect, in the 4th kind of possible embodiment, if the purpose IP address in first ARP request The IP address of second main frame, then it is described by the first ARP request for receiving obtain the first main frame the network information it Afterwards, in addition to:
The controller feeds back the first ARP to first main frame by the interchanger being connected with first main frame and rung Should, the source MAC in first arp response is the MAC Address of first agent's equipment, and source IP address is second main frame IP address, so as to first main frame using the MAC Address of first agent's equipment as second main frame MAC Location, first agent's equipment is corresponding to the agent equipment in subnet where first main frame.
With reference to the 4th kind of possible embodiment of first aspect, in the 5th kind of possible embodiment, the control Device obtains the network information of the second main frame by constructing the second ARP request, including:
The controller receives the packet that first main frame is sent, and the target MAC (Media Access Control) address of the packet is described The MAC Address of first agent's equipment, purpose IP address is the IP address of second main frame;
The controller constructs the second ARP request, the source of second ARP request according to the IP address of second main frame MAC Address is the MAC Address of second agent's equipment, and source IP address is the IP address of first main frame, and purpose IP address is institute The IP address of the second main frame is stated, so that second main frame regard the MAC Address of second agent's equipment as the described first master The MAC Address of machine, second agent's equipment is corresponding to the agent equipment in subnet where second main frame;
Second ARP request is sent to institute by the controller by the interchanger in subnet where second main frame All hosts where stating the second main frame in subnet;
The controller receives the 2nd ARP that second main frame feeds back by the interchanger being connected with second main frame Response, the source MAC and source IP address of second arp response are respectively the mac address ip address of second main frame.
With reference to the 5th kind of possible embodiment of first aspect, in the 6th kind of possible embodiment, the control Device is obtained by the first ARP request received before the network information of the first main frame, in addition to:
Gateway, network number and the son of subnet where the controller prestores first main frame and second main frame Net mask, and first agent's equipment and second agent's equipment MAC Address;
Second ARP request is sent to described by the controller by the interchanger of subnet where second main frame All hosts where second main frame in subnet, including;
The controller is according to gateway, network number and the subnet mask of subnet where second main frame by described second All hosts where ARP request is sent to second main frame in subnet.
With reference to first aspect, first aspect the first, second, the third, the 4th kind, the 5th kind or the 6th kind can Can embodiment, in the 7th kind of possible embodiment, the network information according to first main frame and described the Forward-path described in the network information decision making of two main frames between the first main frame and second main frame, including:
According to the network information of first main frame and the network information of second main frame calculate first main frame and Most short forward-path between second main frame;The most short forward-path by described in is used as first main frame and second master Forward-path between machine;
Or;
According to the network information of first main frame and the network information of second main frame calculate first main frame and Optimal forward-path between second main frame;It regard the optimal forward-path as first main frame and second master Forward-path between machine.
Second aspect is described in the OpenFlow networks including at least one interchanger there is provided a kind of controller Controller, including:
First information acquisition module, the network information of the first main frame, institute are obtained for the first ARP request by receiving It is to be sent by first main frame and can not be found with the interchanger that first main frame is connected to turn to state the first ARP request The ARP request of the controller is transmitted to after hair flow table;
Second data obtaining module, the network information for obtaining the second main frame by constructing the second ARP request;
Path-generating module, for the network information of the first main frame that is got according to the first information acquisition module and First main frame and described second described in the network information decision making for the second main frame that second data obtaining module is got Forward-path between main frame;
Flow table issuance module, issues for each interchanger on the forward-path that is generated to the path-generating module and turns Flow table is sent out, so as to each interchanger on the forward-path according to the forwarding flow table in first main frame and described second Packet is forwarded between main frame.
In the first possible embodiment of second aspect, if the purpose IP address in first ARP request is The IP address of first gateway, first gateway is the configuration gateway of first main frame, the controller, in addition to:
First feedback module, first is fed back for the interchanger by being connected with first main frame to first main frame Arp response, source MAC and source IP address in first arp response are respectively the MAC Address and IP of first gateway Address.
With reference to the first possible embodiment of second aspect, in second of possible embodiment, described second Data obtaining module, including:
First receiving unit, for receiving the packet that first main frame is sent, the target MAC (Media Access Control) address of the packet For the MAC Address of first gateway, purpose IP address is the IP address of second main frame;
First structural unit, the IP for the second main frame in the packet that is received according to first receiving unit Location constructs the second ARP request, and the source MAC and source IP address of second ARP request are respectively the MAC Address of the second gateway And IP address, purpose IP address is the IP address of second main frame, and second gateway is the configuration net of second main frame Close;
First transmitting element, for by the interchanger in subnet where second main frame by first structural unit All hosts where second ARP request of construction is sent to second main frame in subnet;
Second receiving unit, receives what second main frame fed back for the interchanger by being connected with second main frame Second arp response, the source MAC and source IP address of second arp response be respectively second main frame MAC Address and IP address.
With reference to second of possible embodiment of second aspect, in the third possible embodiment, the control Device, in addition to:
First prestores module, the net of subnet where for prestoring first main frame and second main frame Close, network number and subnet mask, and first gateway and second gateway MAC Address and IP address;
First transmitting element, specifically for prestoring the second main frame institute that module is prestored according to described first Second ARP request is sent to where second main frame in subnet in the gateway, network number and subnet mask of subnet All hosts.
With reference to second aspect, in the 4th kind of possible embodiment, if the purpose IP address in first ARP request It is the IP address of second main frame, the controller, in addition to:
Second feedback module, first is fed back for the interchanger by being connected with first main frame to first main frame Arp response, source MAC in first arp response is the MAC Address of first agent's equipment, and source IP address is described the The IP address of two main frames, so that first main frame regard the MAC Address of first agent's equipment as second main frame MAC Address, first agent's equipment is corresponding to the agent equipment in subnet where first main frame.
With reference to the 4th kind of possible embodiment of second aspect, in the 5th kind of possible embodiment, described second Data obtaining module, including:
3rd receiving unit, for receiving the packet that first main frame is sent, the target MAC (Media Access Control) address of the packet For the MAC Address of first agent's equipment, purpose IP address is the IP address of second main frame;
Second structural unit, the IP for the second main frame in the packet that is received according to the 3rd receiving unit Location constructs the second ARP request, and the source MAC of second ARP request is the MAC Address of second agent's equipment, source IP address For the IP address of first main frame, purpose IP address is the IP address of second main frame, so that second main frame is by institute The MAC Address of second agent's equipment is stated as the MAC Address of first main frame, second agent's equipment is corresponding to described Agent equipment where second main frame in subnet;
Second transmitting element, for by the interchanger in subnet where second main frame by second structural unit All hosts where second ARP request of construction is sent to second main frame in subnet;
Second receiving unit, receives what second main frame fed back for the interchanger by being connected with second main frame Second arp response, the source MAC and source IP address of second arp response are respectively the MAC Address IP of second main frame Address.
With reference to the 5th kind of possible embodiment of second aspect, in the 6th kind of possible embodiment, the control Device, in addition to:
Second prestores module, the net of subnet where for prestoring first main frame and second main frame Close, network number and subnet mask, and first agent's equipment and second agent's equipment MAC Address;
Second transmitting element, specifically for prestoring the second main frame institute that module is prestored according to described second Second ARP request is sent to where second main frame in subnet in the gateway, network number and subnet mask of subnet All hosts.
With reference to second aspect, second aspect the first, second, the third, the 4th kind, the 5th kind or the 6th kind can The embodiment of energy, in the 7th kind of possible embodiment, the path-generating module, including:
Most short generation unit, for the network information of the first main frame that is got according to the first information acquisition module and The network information for the second main frame that second data obtaining module is got calculates first main frame and second main frame Between most short forward-path;It regard the most short forward-path as the forwarding between first main frame and second main frame Path;
Or;
Optimal generation unit, for the network information of the first main frame that is got according to the first information acquisition module and The network information for the second main frame that second data obtaining module is got calculates first main frame and second main frame Between optimal forward-path;It regard the optimal forward-path as the forwarding between first main frame and second main frame Path.
The third aspect is there is provided a kind of generation system of forward-path, including second aspect and the various of second aspect can Any described controller, the first main frame and the second main frame in the embodiment of energy.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By controller come instead of realizing that the part OpenFlow of gateway/routing function is exchanged in OpenFlow networks Machine, so that the problem of special OpenFlow interchangers solved in OpenFlow networks can not realize the function, reaches The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is implementation environment schematic diagram of the embodiment of the present invention;
Fig. 2 is the method flow diagram of the generation method for the forward-path that the embodiment of the present invention one is provided;
Fig. 3 is the method flow diagram of the generation method for the forward-path that the embodiment of the present invention two is provided;
Fig. 4 is the implementation environment schematic diagram of the embodiment of the present invention two;
Fig. 5 is the method flow diagram of the generation method for the forward-path that the embodiment of the present invention three is provided;
Fig. 6 is the implementation environment schematic diagram of the embodiment of the present invention three;
Fig. 7 is the structural representation for the controller that the embodiment of the present invention four is provided;
Fig. 8 is the structural representation for the controller that the embodiment of the present invention five is provided;
Fig. 9 is the structural representation for the controller that the embodiment of the present invention six is provided;
Figure 10 is the block diagram of the generation system for the forward-path that the embodiment of the present invention seven is provided;
Figure 11 is the block diagram for the controller that the embodiment of the present invention eight is provided;
Figure 12 is the block diagram for the controller that the embodiment of the present invention nine and ten is provided.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
Fig. 2 is refer to, the method flow diagram of the generation method of the forward-path provided it illustrates the embodiment of the present invention one. The present embodiment is main to be illustrated exemplified by by the application in the controller of the generation method of the forward-path.The forward-path Generation method includes:
Step 201, controller obtains the network information of the first main frame by the first ARP request received;
Controller obtains the network information of the first main frame by the first ARP request for receiving, first ARP request be by Interchanger that is that first main frame is sent and being connected with the first main frame can not find the ARP that controller is transmitted to after forwarding flow table Request.
Step 202, controller obtains the network information of the second main frame by constructing the second ARP request;
In order to generate the forward-path between the first main frame and the second main frame, controller is obtained by constructing the second ARP request Take the network information of the second main frame.
Step 203, controller is according to the network information of the first main frame and the network information decision making first of the second main frame Forward-path between main frame and the second main frame;
Controller according to the network information of the first main frame and the network information decision making forward-path of the second main frame, so as to Communicated between first main frame and the second main frame according to forward-path.
Step 204, controller issues forwarding flow table to each interchanger on forward-path;
Controller generates corresponding forwarding flow table according to the forward-path of generation for the interchanger on forward-path, and will be raw Into forwarding flow table be sent to corresponding interchanger, so that corresponding interchanger updates local forwarding flow according to forwarding flow table Table, and the communication data packet between the first main frame and the second main frame is forwarded according to the forwarding flow table after renewal.
In summary, the generation method for the forward-path that the present embodiment is provided, the first main frame and the are obtained by controller The network information of two main frames, according to the network information decision making forward-path of the first main frame and the second main frame got, with Just the first main frame and the second main frame are communicated, and the special OpenFlow interchangers solved in OpenFlow networks can not be real Now the problem of the function, the interchanger that plays gateway/routing function need not be separately provided by having reached in OpenFlow networks Effect.
It should be noted that specific implementation environment can be divided into two kinds of situations, the first situation is the first main frame and second When the first gateway and the second gateway is respectively configured in main frame, controller realizes the function of the first gateway and the second gateway;Second of feelings When condition is that the first main frame and the second main frame are configured without default gateway, controller realizes first agent's equipment and second agent's equipment Function.
The first situation is described in detail first;
Embodiment two
Fig. 3 is refer to, the method flow diagram of the generation method of the forward-path provided it illustrates the embodiment of the present invention two. The main generation method with the forward-path of the present embodiment is applied in the implementation environment shown in Fig. 4 illustrate.With reference to Fig. 4 Understand, this implementation environment includes controller 420, the first main frame 440, the second main frame 442, the 3rd main frame 444 and the 4th main frame 446th, the first interchanger 460, second switch 462,3rd switch 464, the 4th interchanger 466 and the 5th interchanger 468, its In the first main frame 440 belong to the first subnet, the second main frame 442, the 3rd main frame 444 and the 4th main frame 446 belong to the second subnet, One main frame 440 and the 3rd main frame 444 are connected on the port of the first interchanger 460, and the second main frame 442 is connected to second switch On 462 port, the 4th main frame 446 is connected on the port of the 5th interchanger 468, it is assumed that configure gateway on the first main frame 440 For the first gateway, configuration gateway is the second gateway on the second main frame 442, and the first main frame 440 belongs to the first subnet, the second main frame 442nd, the 3rd main frame 444 and the 4th main frame 446 belong to the second subnet, and the first gateway and the second gateway are realized by controller 420.Should Method includes:
Step 301, gateway, network number and the subnet mask of subnet where prestoring the first main frame and the second main frame, with And first gateway and the second gateway MAC Address and IP address;
Controller prestores the first main frame 440 and gateway, network number and the subnet of the place subnet of the second main frame 442 are covered Code, and the first gateway and the second gateway MAC Address and IP address, so as to controller 420 realized during follow-up with Corresponding first gateway of first main frame 440 and obtain the first main frame 440 and second with corresponding second gateway of the second main frame 442 MAC Address, IP address and the port information of main frame 442;And turned simultaneously according to the gateway of subnet, network number and subnet mask decision-making Send out path.
Step 302, the first main frame sends the first ARP request to the first interchanger;
First main frame 440 will be communicated with the external world, first have to be looked into according to the IP address of i.e. the first gateway of configured gateway Ask the MAC Address of the first gateway;So the first main frame 440 constructs the first ARP request, the source MAC of first ARP request is The MAC Address of first main frame 440, source IP address is the IP address of the first main frame 440, and target MAC (Media Access Control) address is 0, purpose IP address For the IP address of the first gateway.First ARP request is sent to the first interchanger 460 by the first main frame 440.
Accordingly, the first interchanger 460 receives first ARP request.
Step 303, the first switch query locally forwards flow table, if inquiry less than with the first received ARP request Corresponding forwarding flow table information, then input message to wrap(Packet-In)Form be sent to controller;
Purpose IP address inquiry local forwarding flow table of first interchanger 460 in the first ARP request received, if Forwarding flow table information corresponding with the purpose IP address is inquired, then is forwarded according to forwarding flow table information;If inquiry less than Forwarding flow table information corresponding with the purpose IP address, then send out the first ARP request received in the form of wrapping input message Give controller 420.
Accordingly, controller 420 receives first ARP request.
Step 304, controller obtains the network information of the first main frame by the first ARP request received;
Controller 420 gets the MAC Address and IP address of the first main frame 440 according to the first ARP request received, will The MAC Address and IP address of first main frame 440 as the first main frame 440 the network information;Because first ARP request is with bag The form of input message is sent to controller 420, so controller 420 can also obtain the first main frame 440 as needed Port information, using MAC Address, IP address and the port information of the first main frame 440 as the first main frame 440 the network information.Change Sentence is talked about, and the network information of the first main frame 440 can include the MAC Address and IP address of the first main frame 440, can also include the MAC Address, IP address and the port information of one main frame 440.
Step 305, controller constructs the first arp response, and by the interchanger that is connected with the first main frame to the first main frame Feed back first arp response;
Because controller 420 realizes the effect of the first gateway, so finding its purpose after the first ARP request is received When IP address is the IP address of the first gateway, controller 420 actively constructs the first arp response, the source MAC of first arp response Address is the MAC Address of the first gateway, and source IP address is the IP address of the first gateway, and target MAC (Media Access Control) address is the first main frame 440 MAC Address, purpose IP address is the IP address of the first main frame 440, and with bag output message(Packet-Out)Form should First arp response is sent from the port that the first interchanger 460 connects the first main frame 440.
Accordingly, the first main frame 440 receives first arp response.
Step 306, the first main frame preserves the MAC Address of the first gateway;
First main frame 440 is received after the first arp response, with preserving the MAC of the first gateway in first arp response Location.
Arrived by above-mentioned steps 302 between step 306, the first gateway that the first main frame 440 is completed and controller 420 is realized ARP learning processes.
Step 307, the first main frame sends the packet that destination host is the second main frame to the first interchanger;
Step 305 is arrived by step 302, the first main frame 440 has got the MAC Address of the first gateway, so first When main frame 440 is to the second main frame 442 transmission packet, the purpose MAC in packet is the MAC Address of the first gateway, purpose IP For the IP of the second main frame 442, the first main frame 440 sends the packet to the first interchanger 460.
Accordingly, the first interchanger 460 receives the packet.
Step 308, the first switch query locally forwards flow table, if inquiry forwarding flow table corresponding less than with the packet Information, then be sent to controller in the form of wrapping input message;
First interchanger 460 receives the packet of the first main frame 440 transmission, and the IP address inquiry in packet is local Flow table is forwarded, if inquiring forwarding flow table information corresponding with the purpose IP address, is forwarded according to forwarding flow table information; If inquiry forwarding flow table information corresponding less than with the purpose IP address, the packet is sent in the form of wrapping input message To controller 420.
Accordingly, controller 420 receives the packet.
Step 309, controller constructs the second ARP request according to the IP address of the second main frame, and by where the second main frame All hosts where second ARP request is sent to the second main frame by the interchanger in subnet in subnet;
When controller 420 receives the packet, the MAC Address of the second main frame 442 is not known yet, because controller 420 is real Show the effect of the second gateway, so when receiving the packet for the IP address that purpose IP address is the second main frame 442, active structure The second ARP request is made, the second ARP request source MAC and source IP address are respectively the MAC Address and IP of the second gateway Location, target MAC (Media Access Control) address complete zero, purpose IP address is the IP address of the second main frame, and according to the net of the place subnet of the second main frame 442 Close, second ARP request is sent to the place subnet of the second main frame 442 by network number and subnet mask in the form of bag output message Interior All hosts.
Accordingly, the All hosts in the place subnet of the second main frame 442 receive second ARP request, such as the second main frame 442nd, the 3rd main frame 444 and the 4th main frame 446, wherein the 3rd main frame 444 and the 4th main frame 446 are not marked in figure 3.
Step 310, second the second ARP request of response of host;
Second main frame 442 receives the second ARP request of the transmission of second switch 462, finds the mesh in second ARP request IP address the second arp response is constructed as the IP address of oneself, then, the source MAC and source IP of second arp response Address is respectively the MAC Address and IP address of the second main frame 442, and target MAC (Media Access Control) address and purpose IP address are respectively the second gateway Mac address ip address, and by second switch 462 to controller 420 send second arp response.
Accordingly, controller 420 receive that the second main frame 442 feeds back by the interchanger 462 that is connected with the second main frame the Two arp responses.
Step 311, controller obtains the network information of the second main frame;
Controller 420 gets the MAC Address and IP address of the second main frame 442 according to the second arp response received, will The MAC Address and IP address of second main frame 442 as the second main frame 442 the network information;Because first ARP request is with bag The form of input message is sent to controller 420, so controller 420 can also obtain the second main frame 442 as needed Port information, using MAC Address, IP address and the port information of the second main frame 442 as the second main frame 442 the network information.Change Sentence is talked about, and the network information of the second main frame 442 can include the MAC Address and IP address of the second main frame 442, can also include the MAC Address, IP address and the port information of two main frames 442.
Step 311 is arrived by above-mentioned steps 307, controller is completed between the second gateway and the second main frame 442 of realization ARP learning processes;
Step 312, controller calculates the first main frame according to the network information of the first main frame and the network information of the second main frame And the second most short forward-path between main frame;It regard most short forward-path as the forwarding road between the first main frame and the second main frame Footpath;
The purpose IP address for the packet that controller 420 is sent by the first interchanger 460 of analysis, finds the packet Destination host be that the second main frame 442 and the first main frame 440 are in different subnets, judgement is three layers of forwarding, and is led to The network information that ARP learning processes have got the first main frame 440 and the second main frame 442 is crossed, is given birth to according to routing algorithm decision-making Into forward-path, it is assumed that generate forward-path according to shortest path strategy, then the forward-path generated can be:First exchanges Machine 460<——>3rd switch 464<——>Second switch 462.Such as, when the first main frame 440 and the second main frame 442 When the network information includes MAC Address, IP address and port information, controller 420 is according to the first main frame 440 and the second main frame 442 IP address may determine that to be forwarded for three layers, according to routing algorithm decision making forward-path, it is assumed that according to shortest path plan Forward-path slightly is generated, then the forward-path generated according to the port information of the first main frame 440 and the second main frame 442 can be with For:First interchanger 460<——>3rd switch 464<——>Second switch 462.
It should be noted that controller 420 can also be according to the network information of the first main frame 440 and the second main frame 442 The network information calculates the optimal forward-path between the first main frame 440 and the second main frame 442;Optimal forward-path is link bandwidth Optimal path, using optimal forward-path as the forward-path between the first main frame 440 and the second main frame 442, here only with Illustrated exemplified by shortest path strategy.
Step 313, controller generates corresponding forwarding flow according to the forward-path of generation for the interchanger on forward-path Table, and the forwarding flow table of generation is sent to corresponding interchanger;
Controller 420 generates corresponding forwarding flow table according to the forward-path of generation for the interchanger on forward-path, and The forwarding flow table of generation is sent to corresponding interchanger, such as, controller 420 be shortest path on the first interchanger 460, 3rd switch 464 and second switch 462 generate corresponding forwarding flow table, and will be with the corresponding forwarding of the first interchanger 460 Flow table is sent to the first interchanger 460, forwarding flow table corresponding with 3rd switch 464 is sent to 3rd switch 464, incited somebody to action Forwarding flow table corresponding with second switch 462 is sent to second switch 462.Wherein 3rd switch 464 is not marked in figure 3 Go out.
Step 314, corresponding interchanger updates local forwarding flow table according to forwarding flow table;
Such as, the first interchanger 460,3rd switch 464 and the second switch 462 on corresponding shortest path update Local forwarding flow table.
Step 315, corresponding interchanger is forwarded between the first main frame and the second main frame according to the forwarding flow table after renewal Communication data packet.
Such as, on corresponding shortest path the first interchanger 460,3rd switch 464 and the basis of second switch 462 Forwarding flow table after renewal forwards the communication data packet between the first main frame 440 and the second main frame 442.
In summary, the generation method for the forward-path that the present embodiment is provided, by controller come instead of in OpenFlow The part OpenFlow interchangers of gateway/routing function are realized in network, the first gateway and the second gateway are realized by controller ARP functions so that as long as all interchangers in OpenFlow networks realize simple forwarding capability, so as to solve The problem of special OpenFlow interchangers in OpenFlow networks can not realize the gateway/routing function, reaches The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
Second of situation is described in detail below;
Embodiment three
Fig. 5 is refer to, the method flow diagram of the generation method of the forward-path provided it illustrates the embodiment of the present invention three. The main generation method with the forward-path of the present embodiment is applied in the implementation environment shown in Fig. 6 illustrate.With reference to Fig. 6 Understand, this implementation environment includes controller 620, the first main frame 640, the second main frame 642, the 3rd main frame 644 and the 4th main frame 646th, the first interchanger 660, second switch 662,3rd switch 664, the 4th interchanger 666 and the 5th interchanger 668, its In the first main frame 640 belong to the first subnet, the second main frame 642, the 3rd main frame 644 and the 4th main frame 646 belong to the second subnet, One main frame 640 and the 3rd main frame 644 are connected on the port of the first interchanger 660, and the second main frame 642 is connected to second switch On 662 port, the 4th main frame 646 is connected on the port of the 5th interchanger 668, it is assumed that the first main frame 640 and the second main frame 642 are configured without default gateway, and the first main frame 640 belongs to the first subnet, the second main frame 642, the 3rd main frame 644 and the 4th main frame 646 belong to the information that the first main frame 640 and the place subnet of the second main frame 642 have been prestored on the second subnet, controller 620 (Including gateway, network number and subnet mask)With the first agent's equipment and second agent's equipment for corresponding respectively to two subnets. This method includes:
Step 501, gateway, network number and the subnet of subnet are covered where memory prestores the first main frame and the second main frame Code, and first agent's equipment and second agent's equipment MAC Address;
Controller 620 prestores gateway, network number and the subnet of the first main frame 640 and the place subnet of the second main frame 642 Mask, and first agent's equipment and second agent's equipment MAC Address;So that controller 620 is realized during follow-up First agent's equipment corresponding with the place subnet of the first main frame 640 and second agent corresponding with the place subnet of the second main frame 642 Equipment obtains the network information of the first main frame 640 and the second main frame 642, and the network information includes MAC Address, IP address and end Message ceases;And simultaneously according to the information decision forward-path of subnet.
Step 502, the first main frame sends the first ARP request to the first interchanger;
First main frame 640 will be communicated with the second main frame 642, first have to be inquired about according to the IP address of the second main frame 642 The MAC Address of second main frame 642;So the first main frame 640 constructs the first ARP request, first ARP request source MAC is first The MAC of main frame 640, source IP address is the IP address of the first main frame 640, and target MAC (Media Access Control) address is 0, and purpose IP address is the second master The IP address of machine 642.First ARP request is sent to the first interchanger 660 by the first main frame 640.
Accordingly, the first interchanger 660 receives first ARP request.
Step 503, the first switch query locally forwards flow table, if inquiry less than with the first received ARP request Corresponding forwarding flow table information, then be sent to controller in the form of wrapping input message;
Purpose IP address inquiry local forwarding flow table of first interchanger 660 in the first ARP request received, if Forwarding flow table information corresponding with the purpose IP address is inquired, then is forwarded according to forwarding flow table information;If inquiry less than Forwarding flow table information corresponding with the purpose IP address, then send out the first ARP request received in the form of wrapping input message Give controller 620.
Accordingly, controller 620 receives first ARP request.
Step 504, controller obtains the network information of the first main frame by the first ARP request received;
Controller 620 gets the MAC Address and IP address of the first main frame 640 according to the first ARP request received, will The MAC Address and IP address of first main frame 640 as the first main frame 640 the network information;Because first ARP request is with bag The form of input message is sent to controller 620, so controller 620 can also obtain the first main frame 640 as needed Port information, using MAC Address, IP address and the port information of the first main frame 640 as the first main frame 640 the network information.Change Sentence is talked about, and the network information of the first main frame 640 can include the MAC Address and IP address of the first main frame 640, can also include the MAC Address, IP address and the port information of one main frame 640.
Step 505, controller constructs the first arp response, and by the interchanger that is connected with the first main frame to the first main frame Feed back first arp response;
Because controller 620 realizes the effect of first agent's equipment, so finding it after the first ARP request is received When purpose IP address is the IP address of the second main frame 142, controller 620 actively constructs the first arp response, first arp response Source MAC is the MAC Address of first agent's equipment, and source IP address is the IP address of the second main frame 642, and target MAC (Media Access Control) address is The MAC Address of first main frame 640, purpose IP address is the IP address of the first main frame 640, and should in the form of bag output message First arp response is sent from the port that the first interchanger 660 connects the first main frame 640.
Accordingly, the first main frame 640 receives first arp response.
Step 506, the first main frame preserves the MAC Address of first agent's equipment;
First main frame 640 is received after the first arp response, by the MAC of middle first agent's equipment in first arp response Address is preserved as the MAC Address of the second main frame 642.
Step 506 is arrived by above-mentioned steps 502, the first main frame 640 completes the first agent's equipment realized with controller 620 Between ARP learning processes.
Step 507, the first main frame sends the packet that destination host is the second main frame to the first interchanger;
By step 506, the first main frame 640 has got the MAC Address of first agent's equipment, and by the first generation The MAC Address of reason equipment is preserved as the MAC Address of the second main frame 642, so the first main frame 640 will be to the second main frame 642 send the actual MAC Address for first agent's equipment of target MAC (Media Access Control) address in packet, and purpose IP address is the second main frame 642 IP address, the first main frame 640 sends the packet to the first interchanger 660.
Accordingly, the first interchanger 660 receives the packet.
Step 508, the first switch query locally forwards flow table, if inquiry is less than with giving packet corresponding forwarding flow table Information, then be sent to controller in the form of wrapping input message;
First interchanger 660 receives the packet of the first main frame 640 transmission, and the IP address inquiry in packet is local Flow table is forwarded, if inquiring forwarding flow table information corresponding with the purpose IP address, is forwarded according to forwarding flow table information; If inquiry forwarding flow table information corresponding less than with the purpose IP address, the packet is sent in the form of wrapping input message To controller 620.
Accordingly, controller 620 receives the packet.
Step 509, controller constructs the second ARP request according to the IP address of the second main frame, and by where the second main frame All hosts where second ARP request is sent to the second main frame by the interchanger in subnet in subnet;
When controller 620 receives the packet, the MAC Address of the second main frame 642 is not known yet, because controller 620 is real Show the effect of second agent's equipment, so when receiving the packet for the IP address that purpose IP address is the second main frame 642, it is main The second ARP request of dynamic construction, the second ARP request source MAC is the MAC Address of second agent's equipment, and source IP address is the The IP address of one main frame 640, target MAC (Media Access Control) address complete zero, purpose IP address is the IP address of the second main frame 642, and according to second Second ARP request is sent to by gateway, network number and the subnet mask of the place subnet of main frame 642 in the form of bag output message All hosts in the place subnet of second main frame 642.
Accordingly, second ARP request, such as the second master are received with the All hosts in the place subnet of the second main frame 642 Machine 642, the 3rd main frame 644 and the 4th main frame 646, wherein three main frames 644 and the 4th main frame 646 are not marked in Figure 5.
Step 510, second the second ARP request of response of host;
Second main frame 642 receives the second ARP request of the transmission of second switch 662, finds the mesh in second ARP request IP address the second arp response is constructed as the IP address of oneself, then, the second arp response source MAC be second master The MAC Address of machine 642, source IP address is the IP address of second main frame 642, target MAC (Media Access Control) address for second agent's equipment MAC Location, purpose IP is the IP address of the first main frame 640, and second arp response is sent to controller 620 by second switch 662.
Accordingly, controller 620 receives second arp response.
Step 511, controller obtains the network information of the second main frame;
Controller 620 gets the MAC Address and IP address of the second main frame 642 according to the second arp response received, will The MAC Address and IP address of second main frame 642 as the second main frame 642 the network information;Because first ARP request is with bag The form of input message is sent to controller 620, so controller 620 can also obtain the second main frame 642 as needed Port information, using MAC Address, IP address and the port information of the second main frame 642 as the second main frame 642 the network information.Change Sentence is talked about, and the network information of the second main frame 642 can include the MAC Address and IP address of the second main frame 642, can also include the MAC Address, IP address and the port information of two main frames 642.
Arrive step 511 by above-mentioned steps 507, controller complete second agent's equipment and the second main frame 642 realized it Between ARP learning processes;
Step 512, controller calculates the first main frame according to the network information of the first main frame and the network information of the second main frame And the second most short forward-path between main frame;It regard most short forward-path as the forwarding road between the first main frame and the second main frame Footpath;
The purpose IP address for the packet that controller 620 is sent by the first interchanger 660 of analysis, finds the packet Destination host be that the second main frame 642 and the first main frame 640 are in different subnets, judgement is three layers of forwarding, and is led to Cross MAC Address, IP address and port information that ARP learning processes have got the first main frame 640 and the second main frame 642, root According to routing algorithm decision making forward-path, it is assumed that generate forward-path according to shortest path strategy, then the forwarding road generated Footpath can be:First interchanger 660<——>3rd switch 664<——>Second switch 662.Such as, when the first main frame 640 and second the network information of main frame 642 include MAC Address, IP address and when port information, controller 620 is according to the The IP address of one main frame 640 and the second main frame 642 may determine that to be forwarded for three layers, and road is forwarded according to routing algorithm decision making Footpath, it is assumed that forward-path is generated according to shortest path strategy, then believe according to the port of the first main frame 640 and the second main frame 642 Ceasing the forward-path of generation can be:First interchanger 660<——>3rd switch 664<——>Second switch 662.
It should be noted that controller 620 can also be according to the network information of the first main frame 640 and the second main frame 642 The network information calculates the optimal forward-path between the first main frame 640 and the second main frame 642;Optimal forward-path is link bandwidth Optimal path, using optimal forward-path as the forward-path between the first main frame 640 and the second main frame 642, here only with Illustrated exemplified by shortest path strategy.
Step 513, controller generates corresponding forwarding flow according to the forward-path of generation for the interchanger on forward-path Table, and the forwarding flow table of generation is sent to corresponding interchanger;
Controller 620 generates corresponding forwarding flow table according to the forward-path of generation for the interchanger on forward-path, and The forwarding flow table of generation is sent to corresponding interchanger, such as, controller 620 be shortest path on the first interchanger 660, 3rd switch 664 and second switch 662 generate corresponding forwarding flow table, and will be with the corresponding forwarding of the first interchanger 660 Flow table is sent to the first interchanger 660, forwarding flow table corresponding with 3rd switch 664 is sent to 3rd switch 664, incited somebody to action Forwarding flow table corresponding with second switch 662 is sent to second switch 662.Wherein 3rd switch 664 is not marked in Figure 5 Go out.
Step 514, corresponding interchanger updates local forwarding flow table according to forwarding flow table;
Such as, the first interchanger 660,3rd switch 664 and the second switch 662 on corresponding shortest path update Local forwarding flow table information.
Step 515, corresponding interchanger is forwarded between the first main frame and the second main frame according to the forwarding flow table after renewal Communication data packet.
Such as, on corresponding shortest path the first interchanger 660,3rd switch 664 and the basis of second switch 662 Forwarding flow table after renewal forwards the communication data packet between the first main frame 640 and the second main frame 642.
In summary, the implementation method for three layers of forwarding that the present embodiment is provided, by controller come instead of in OpenFlow The part OpenFlow interchangers of gateway/routing function are realized in network, two subnets corresponding to communication are realized by controller First agent's equipment and second agent's equipment proxy arp function so that as long as all interchangers in OpenFlow networks Simple forwarding capability is realized, so that the special OpenFlow interchangers solved in OpenFlow networks can not be realized The problem of gateway/routing function, the exchange for playing gateway/routing function need not be separately provided by having reached in OpenFlow networks The effect of machine.
It should be noted that can be by special network transmission control message between controller and interchanger, and exchange The communication path of data is forwarded to isolate on physical link between machine;The communication path of data can also be forwarded between interchanger For same path, pass through the forwarding number between the control message and interchanger between different formula area sub-controllers and interchanger According to.
Following is present device embodiment, wherein the content of not detailed description, can combine and refer to above-mentioned corresponding side Method embodiment.
Example IV
Fig. 7 is refer to, the structural representation of the controller provided it illustrates the embodiment of the present invention four, the controller, bag Include:First information acquisition module 710, the second data obtaining module 720, path-generating module 730 and flow table issuance module 740.
The first information acquisition module 710, the network of the first main frame is obtained for the first ARP request by receiving Information, first ARP request is to be sent by first main frame and can not be looked into the interchanger that first main frame is connected Find the ARP request that the controller is transmitted to after forwarding flow table;
Second data obtaining module 720, the network for obtaining the second main frame by constructing the second ARP request is believed Breath;
The path-generating module 730, for the first main frame for being got according to the first information acquisition module 710 First master described in the network information decision making for the second main frame that the network information and second data obtaining module 720 are got Forward-path between machine and second main frame;
The flow table issuance module 740, for each friendship on the forward-path that is generated to the path-generating module 730 Change planes and issue forwarding flow table, so as to each interchanger on the forward-path according to the forwarding flow table in first main frame Packet is forwarded between second main frame.
In summary, the controller that the present embodiment is provided, by obtaining the network information of the first main frame and the second main frame, root According to the network information decision making forward-path of the first main frame and the second main frame got, so as to the first main frame and the second main frame Communicated, solve the problem of special OpenFlow interchangers in OpenFlow networks can not realize the function, reach The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
Embodiment five
Fig. 8 is refer to, the structural representation of the controller provided it illustrates the embodiment of the present invention five.The present embodiment is main It is applied in the implementation environment shown in Fig. 4 illustrate with the controller.Understood with reference to Fig. 4, this implementation environment includes control Device 420, the first main frame 440, the second main frame 442, the 3rd main frame 444 and the 4th main frame 446, the first interchanger 460, second are exchanged Machine 462,3rd switch 464, the 4th interchanger 466 and the 5th interchanger 468, wherein the first main frame 440 belongs to the first subnet, Second main frame 442, the 3rd main frame 444 and the 4th main frame 446 belong to the second subnet, and the first main frame 440 and the 3rd main frame 444 are connected On the port of the first interchanger 460, the second main frame 442 is connected on the port of second switch 462, and the 4th main frame 446 connects On the port for being connected on the 5th interchanger 468, it is assumed that it is to match somebody with somebody on the first gateway, the second main frame 442 that gateway is configured on the first main frame 440 Gateway is put for the second gateway, the first main frame 440 belongs to the first subnet, the second main frame 442, the 3rd main frame 444 and the 4th main frame 446 Belong to the second subnet, the first gateway and the second gateway are realized by controller 420, and the first main frame has been prestored on controller 420 440th, the information of the place subnet of the second main frame 442(Including gateway, network number and subnet mask)And corresponding gateway information(Including The IP address and MAC Address of gateway).The controller, including:First prestore module 810, first information acquisition module 820, First feedback module 830, the second data obtaining module 840, path-generating module 850 and flow table issuance module 860.
Described first prestores module 810, for prestoring first main frame 440 and second main frame 442 Gateway, network number and the subnet mask of place subnet, and first gateway and second gateway MAC Address and IP Location.
The first information acquisition module 820, the first main frame 440 is obtained for the first ARP request by receiving The network information, first ARP request is friendship that is being sent by first main frame 440 and being connected with first main frame 440 The ARP request that the controller 420 is transmitted to after forwarding flow table can not be found by changing planes.
Concretely, the first information acquisition module 820, including:4th receiving unit 821 and first acquisition unit 822。
4th receiving unit 821, for receiving first ARP request that first main frame 440 is sent.
The first acquisition unit 822, the first ARP request for being received by the 4th receiving unit 821 is obtained Take the network information of the first main frame 440.
First feedback module 830, leads for the interchanger by being connected with first main frame 440 to described first Machine 440 feeds back the first arp response, and source MAC and source IP address in first arp response are respectively first gateway MAC Address and IP address.
Second data obtaining module 840, the network for obtaining the second main frame 442 by constructing the second ARP request Information.
Concretely, second data obtaining module 840, including:First receiving unit 841, the first structural unit 842nd, the first transmitting element 843, the second receiving unit 844 and second acquisition unit 845.
First receiving unit 841, for receiving the packet that first main frame 440 is sent, the packet Target MAC (Media Access Control) address is the MAC Address of first gateway, and purpose IP address is the IP address of second main frame 442.
First structural unit 842, for second in the packet that is received according to first receiving unit 841 The IP address of main frame 442 constructs the second ARP request, and the source MAC and source IP address of second ARP request are respectively second The MAC Address and IP address of gateway, purpose IP address are the IP address of second main frame 442, and second gateway is described The configuration gateway of second main frame 442.
First transmitting element 843, for prestoring the second main frame that module 810 is prestored according to described first Gateway, network number and the subnet mask of 442 place subnets, by the interchanger in the place subnet of the second main frame 442 by institute The second ARP request for stating the first structural unit 842 construction is sent to All hosts in the place subnet of the second main frame 442.
Second receiving unit 844, described second is received for the interchanger by being connected with second main frame 442 The second arp response that main frame 442 feeds back, the source MAC and source IP address of second arp response are respectively second master The MAC Address and IP address of machine 442.
The second acquisition unit 845, the second arp response for being received according to second receiving unit 844 is obtained Take the network information of second main frame 442.
The path-generating module 850, for the first main frame got according to the first information acquisition module 820 The network information decision making institute for the second main frame 442 that 440 network information and second data obtaining module 840 are got State the forward-path between the first main frame 440 and second main frame 442.
Concretely, the path-generating module 850, is specifically included:Most short generation unit 851, or, optimal generation is single Member 852.
The most short generation unit 851, for the first main frame got according to the first information acquisition module 820 The network information of the second main frame 442 that 440 network information and second data obtaining module 840 are got calculates described the Most short forward-path between one main frame 440 and second main frame 442;The most short forward-path by described in is used as the described first master Forward-path between machine 440 and second main frame 442.
The optimal generation unit 852, for the first main frame got according to the first information acquisition module 820 The network information of the second main frame 442 that 440 network information and second data obtaining module 840 are got calculates described the Optimal forward-path between one main frame 440 and second main frame 442;It regard the optimal forward-path as the described first master Forward-path between machine 440 and second main frame 442.
The flow table issuance module 860, for each friendship on the forward-path that is generated to the path-generating module 850 Change planes and issue forwarding flow table, so as to each interchanger on the forward-path according to the forwarding flow table in first main frame Packet is forwarded between 440 and second main frame 442.
In summary, the controller that the present embodiment is provided, by realizing the ARP functions of the first gateway and the second gateway, is obtained The network information of the first main frame and the second main frame is taken, the son according to where first main frame prestored and second main frame The network information decision making forwarding road of the information of net and corresponding gateway information and the first main frame got and the second main frame Footpath so that as long as all interchangers in OpenFlow networks realize simple forwarding capability, so as to solve The problem of special OpenFlow interchangers in OpenFlow networks can not realize the gateway/routing function, reaches The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
Embodiment six
Fig. 9 is refer to, the structural representation of the controller provided it illustrates the embodiment of the present invention six.The present embodiment is main It is applied in the implementation environment shown in Fig. 6 illustrate with the controller.Understood with reference to Fig. 6, this implementation environment includes control Device 620, the first main frame 640, the second main frame 642, the 3rd main frame 644 and the 4th main frame 646, the first interchanger 660, second are exchanged Machine 662,3rd switch 664, the 4th interchanger 666 and the 5th interchanger 668, wherein the first main frame 640 belongs to the first subnet, Second main frame 642, the 3rd main frame 644 and the 4th main frame 646 belong to the second subnet, and the first main frame 640 and the 3rd main frame 644 are connected On the port of the first interchanger 660, the second main frame 642 is connected on the port of second switch 662, and the 4th main frame 646 connects On the port for being connected on the 5th interchanger 668, it is assumed that the first main frame 640 and the second main frame 642 are configured without default gateway, the first master Machine 640 belongs to the first subnet, and the second main frame 642, the 3rd main frame 644 and the 4th main frame 646 belong to the second subnet, controller 620 On prestored the information of the first main frame 640 and the place subnet of the second main frame 642(Including gateway, network number and subnet mask) With the first agent's equipment and second agent's equipment for corresponding respectively to two subnets.The controller, including:Second prestores mould Block 910, first information acquisition module 920, the second feedback module 930, the second data obtaining module 940, path-generating module 950 With flow table issuance module 960.
Described second prestores module 910, for prestoring first main frame 640 and second main frame 642 Gateway, network number and the subnet mask of place subnet, and first agent's equipment and second agent's equipment MAC Location.
The first information acquisition module 920, the first main frame 640 is obtained for the first ARP request by receiving The network information, first ARP request is friendship that is being sent by first main frame 640 and being connected with first main frame 640 The ARP request that the controller 620 is transmitted to after forwarding flow table can not be found by changing planes.
Concretely, the first information acquisition module 920, including:4th receiving unit 921 and first acquisition unit 922。
4th receiving unit 921, for receiving first ARP request that first main frame 640 is sent.
The first acquisition unit 922, the first ARP request for being received by the 4th receiving unit 921 is obtained Take the network information of the first main frame 440.
Second feedback module 930, leads for the interchanger by being connected with first main frame 640 to described first Machine 640 feeds back the first arp response, and the source MAC in first arp response is the MAC Address of first agent's equipment, source IP Address is the IP address of the second main frame, so that first main frame 640 regard the MAC Address of first agent's equipment as second The MAC Address of main frame 642, first agent's equipment is corresponding to the agent equipment in the place subnet of the first main frame 640.
Second data obtaining module 940, the network for obtaining the second main frame 642 by constructing the second ARP request Information.
Concretely, second data obtaining module 940, including:3rd receiving unit 941, the second structural unit 942nd, the second transmitting element 943, the second receiving unit 944 and second acquisition unit 945.
3rd receiving unit 941, for receiving the packet that first main frame 640 is sent, the packet Target MAC (Media Access Control) address is the MAC Address of first agent's equipment, and purpose IP address is the IP address of second main frame 642.
Second structural unit 942, for second in the packet that is received according to the 3rd receiving unit 941 The IP address of main frame 642 constructs the second ARP request, and the source MAC of second ARP request is the MAC of second agent's equipment Address, source IP address is the IP address of first main frame 640, and purpose IP address is the IP address of second main frame 642, with Toilet state the second main frame 642 using the MAC Address of second agent's equipment as first main frame 640 MAC Address, it is described Second agent's equipment is corresponding to the agent equipment in the place subnet of the second main frame 642.
Second transmitting element 943, for by the interchanger in the place subnet of the second main frame 642 by described Second ARP request of two structural units 942 construction is sent to the All hosts in the place subnet of the second main frame 642.
Second receiving unit 944, for prestoring the second main frame that module 910 is prestored according to described second Gateway, network number and the subnet mask of 642 place subnets, receive described by the interchanger being connected with second main frame 642 Second arp response of the second main frame 642 feedback, the source MAC and source IP address of second arp response are respectively described the The mac address ip address of two main frames 642.
The second acquisition unit 945, the second arp response for being received according to second receiving unit 944 is obtained Take the network information of second main frame 642.
The path-generating module 950, for the first main frame got according to the first information acquisition module 920 The network information decision making institute for the second main frame 642 that 640 network information and second data obtaining module 940 are got State the forward-path between the first main frame 640 and second main frame 642.
Concretely, the path-generating module 950, is specifically included:Most short generation unit 951, or, optimal generation is single Member 952.
The most short generation unit 951, for the first main frame got according to the first information acquisition module 920 The network information of the second main frame 642 that 640 network information and second data obtaining module 940 are got calculates described the Most short forward-path between one main frame 640 and second main frame 642;The most short forward-path by described in is used as the described first master Forward-path between machine 640 and second main frame 642.
The optimal generation unit 952, for the first main frame got according to the first information acquisition module 920 The network information of the second main frame 642 that 640 network information and second data obtaining module 940 are got calculates described the Optimal forward-path between one main frame 640 and second main frame 642;It regard the optimal forward-path as the described first master Forward-path between machine 640 and second main frame 642.
The flow table issuance module 960, for each friendship on the forward-path that is generated to the path-generating module 950 Change planes and issue forwarding flow table, so as to each interchanger on the forward-path according to the forwarding flow table in first main frame Packet is forwarded between 640 and second main frame 642.
In summary, the controller that the present embodiment is provided, by the generation for realizing first agent's equipment and second agent's equipment ARP functions are managed, the network information of the first main frame and the second main frame is obtained, according to first main frame that prestores and described the The information and corresponding gateway information of subnet where two main frames and the first main frame and the network information of the second main frame that get are determined Plan generates forward-path so that as long as all interchangers in OpenFlow networks realize simple forwarding capability, so that The problem of special OpenFlow interchangers in OpenFlow networks can not realize the gateway/routing function is solved, is reached The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
It should be noted that:The controller that above-described embodiment is provided is when generating forward-path, only with above-mentioned each function mould The division progress of block is for example, in practical application, as needed can distribute above-mentioned functions by different functional modules Complete, i.e., the internal structure of controller is divided into different functional modules, to complete all or part of work(described above Energy.In addition, controller and the generation method embodiment of forward-path that above-described embodiment is provided belong to same design, it is specific real Existing process refers to embodiment of the method, repeats no more here.
Embodiment seven
Figure 10 is refer to, it illustrates the block diagram that the forward-path that the embodiment of the present invention seven is provided generates system. The system includes controller 1010, the first main frame 1020 and the second main frame 1030 provided in embodiment five or embodiment six.
In summary, the generation system for the forward-path that the present embodiment is provided, the first main frame and the are obtained by controller The network information of two main frames, according to the network information decision making forward-path of the first main frame and the second main frame got, with Just the first main frame and the second main frame are communicated, and the special OpenFlow interchangers solved in OpenFlow networks can not be real Now the problem of the function, the interchanger that plays gateway/routing function need not be separately provided by having reached in OpenFlow networks Effect.
Embodiment eight
Figure 11 is refer to, the block diagram of the controller provided it illustrates the embodiment of the present invention eight.The controller Including:Processor 1101 and transmitter 1102.
The processor 1101, the network information of the first main frame is obtained for the first ARP request by receiving, described First ARP request is to be sent by first main frame and can not find forwarding with the interchanger that first main frame is connected The ARP request of the controller is transmitted to after flow table.
The processor 1101, is additionally operable to obtain the network information of the second main frame by constructing the second ARP request.
The processor 1101, is additionally operable to the network information according to the first main frame got and the network letter of the second main frame Cease the forward-path between the first main frame and second main frame described in decision making.
The transmitter 1102, issues for each interchanger on the forward-path that is generated to the processor 1101 and turns Flow table is sent out, so as to each interchanger on the forward-path according to the forwarding flow table in first main frame and described second Packet is forwarded between main frame.
In summary, the controller that the present embodiment is provided, by obtaining the network information of the first main frame and the second main frame, root According to the network information decision making forward-path of the first main frame and the second main frame got, so as to the first main frame and the second main frame Communicated, solve the problem of special OpenFlow interchangers in OpenFlow networks can not realize the function, reach The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
Embodiment nine
Figure 12 is refer to, the block diagram of the controller provided it illustrates the embodiment of the present invention nine.The present embodiment master To be applied to illustrate in the implementation environment shown in Fig. 4 with the controller.The controller includes:Memory 1201, place Manage device 1202, transmitter 1203 and receiver 1204.
The memory 1201, for prestoring first main frame 440 and the place subnet of second main frame 442 Gateway, network number and subnet mask, and first gateway and second gateway MAC Address and IP address.
The processor 1202, the network information of the first main frame 440 is obtained for the first ARP request by receiving, First ARP request be sent by first main frame 440 and can not with the interchanger that first main frame 440 is connected Find the ARP request that the controller 420 is transmitted to after forwarding flow table.
Concretely, the processor 1202, specifically for controlling the receiver 1204 to receive first main frame 440 First ARP request sent.The processor 1202, is additionally operable to the first ARP received by the receiver 1204 The network information of the first main frame of acquisition request 440.
The transmitter 1203, for the interchanger by being connected with first main frame 440 to first main frame 440 The first arp response is fed back, the source MAC and source IP address in first arp response are respectively the MAC of first gateway Address and IP address.
The processor 1202, is additionally operable to obtain the network information of the second main frame 442 by constructing the second ARP request.
Concretely, the processor 1202, specifically for controlling the receiver 1204 to receive first main frame 440 The packet of transmission, the target MAC (Media Access Control) address of the packet is the MAC Address of first gateway, and purpose IP address is described The IP address of second main frame 442;The processor 1202, also particularly useful for the packet received according to the receiver 1204 In the IP address of the second main frame 442 construct the second ARP request, the source MAC and source IP address of second ARP request point Not Wei the second gateway MAC Address and IP address, purpose IP address be second main frame 442 IP address, second net Close as the configuration gateway of second main frame 442;The processor 1202, also particularly useful for the control basis of transmitter 1203 Gateway, network number and the subnet mask for the place subnet of the second main frame 442 that the memory 1201 is prestored, pass through described Second ARP request is sent in the place subnet of the second main frame 442 by the interchanger in the place subnet of two main frame 442 All hosts;The processor 1202, also particularly useful for the control receiver 1204 by being connected with second main frame 442 Interchanger receive the second arp response that second main frame 442 feeds back, the source MAC and source IP of second arp response Address is respectively the MAC Address and IP address of second main frame 442;The processor 1202, also particularly useful for according to described The second arp response that receiver 1204 is received obtains the network information of second main frame 442.
The processor 1202, is additionally operable to the network information of the first main frame 440 that is got according to and the acquisition Forwarding road described in the network information decision making of the second main frame 442 arrived between the first main frame 440 and second main frame 442 Footpath.
Concretely, the processor 1202, believes also particularly useful for the network of the first main frame 440 got according to The network information of breath and second main frame 442 got is calculated between first main frame 440 and second main frame 442 Most short forward-path;It regard the most short forward-path as turning between first main frame 440 and second main frame 442 Send out path;Or, the processor 1202, also particularly useful for the network information according to first main frame 440 got with The network information of second main frame 442 got is calculated between first main frame 440 and second main frame 442 most Excellent forward-path;It regard the optimal forward-path as the forwarding road between first main frame 440 and second main frame 442 Footpath.
The processor 1202, is additionally operable to issue forwarding flow table to each interchanger on the forward-path of the generation, So as to each interchanger on the forward-path according to the forwarding flow table in first main frame 440 and second main frame Packet is forwarded between 442.
In summary, the controller that the present embodiment is provided, by realizing the ARP functions of the first gateway and the second gateway, is obtained The network information of the first main frame and the second main frame is taken, the son according to where first main frame prestored and second main frame The network information decision making forwarding road of the information of net and corresponding gateway information and the first main frame got and the second main frame Footpath so that as long as all interchangers in OpenFlow networks realize simple forwarding capability, so as to solve The problem of special OpenFlow interchangers in OpenFlow networks can not realize the gateway/routing function, reaches The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
Embodiment ten
Figure 12 is refer to, the block diagram of the controller provided it illustrates the embodiment of the present invention ten.The present embodiment master To be applied to illustrate in the implementation environment shown in Fig. 6 with the controller.The controller includes:Memory 1201, place Manage device 1202, transmitter 1203 and receiver 1204.
The memory 1201, for prestoring first main frame 640 and the place subnet of second main frame 642 Gateway, network number and subnet mask, and first agent's equipment and second agent's equipment MAC Address.
The processor 1202, the network information of the first main frame 640 is obtained for the first ARP request by receiving, First ARP request be sent by first main frame 640 and can not with the interchanger that first main frame 640 is connected Find the ARP request that the controller 620 is transmitted to after forwarding flow table.
Concretely, the processor 1202, specifically for controlling the receiver 1204 to receive first main frame 640 First ARP request sent;The processor 1202, also particularly useful for first received by the receiver 1204 ARP request obtains the network information of the first main frame 440.
The transmitter 1203, for the interchanger by being connected with first main frame 640 to first main frame 640 The first arp response is fed back, the source MAC in first arp response is the MAC Address of first agent's equipment, source IP address For the IP address of the second main frame, so that first main frame 640 regard the MAC Address of first agent's equipment as the second main frame 642 MAC Address, first agent's equipment is corresponding to the agent equipment in the place subnet of the first main frame 640.
The processor 1202, is additionally operable to obtain the network information of the second main frame 642 by constructing the second ARP request.
Concretely, the processor 1202, specifically for controlling the receiver 1204 to receive first main frame 640 The packet of transmission, the target MAC (Media Access Control) address of the packet is the MAC Address of first agent's equipment, and purpose IP address is The IP address of second main frame 642;The processor 1202, also particularly useful for the number received according to the receiver 1204 The second ARP request is constructed according to the IP address of the second main frame 642 in bag, the source MAC of second ARP request is the second generation The MAC Address of equipment is managed, source IP address is the IP address of first main frame 640, and purpose IP address is second main frame 642 IP address, so that second main frame 642 regard the MAC Address of second agent's equipment as first main frame 640 MAC Address, second agent's equipment is corresponding to the agent equipment in the place subnet of the second main frame 642;The processing Device 1202, also particularly useful for controlling the transmitter 1203 by the interchanger in the place subnet of the second main frame 642 by institute State the All hosts that the second ARP request is sent in the place subnet of the second main frame 642;The processor 1202, it is also specific For control the place subnet of the second main frame 642 that the receiver 1204 prestores according to the memory 1201 gateway, Network number and subnet mask, receive that second main frame 642 feeds back by the interchanger that is connected with second main frame 642 the Two arp responses, the source MAC and source IP address of second arp response are respectively the MAC Address of second main frame 642 IP address;The processor 1202, also particularly useful for described in the second arp response acquisition received according to the receiver 1204 The network information of second main frame 642.
The processor 1202, is additionally operable to the network information of the first main frame 640 that is got according to and the acquisition Forwarding road described in the network information decision making of the second main frame 642 arrived between the first main frame 640 and second main frame 642 Footpath.
Concretely, the processor 1202, specifically for the network information of the first main frame 640 got according to And the network information of second main frame 642 got is calculated between first main frame 640 and second main frame 642 Most short forward-path;It regard the most short forward-path as the forwarding between first main frame 640 and second main frame 642 Path;Or, the processor 1202, the network information and institute also particularly useful for the first main frame 640 got according to The network information for stating the second main frame 642 got calculates optimal between first main frame 640 and second main frame 642 Forward-path;It regard the optimal forward-path as the forwarding road between first main frame 640 and second main frame 642 Footpath.
The transmitter 1203, is additionally operable to issue to each interchanger on the forward-path of the processor 1202 generation Flow table is forwarded, so as to each interchanger on the forward-path according to the forwarding flow table in first main frame 640 and institute State and forward packet between the second main frame 642.
In summary, the controller that the present embodiment is provided, by the generation for realizing first agent's equipment and second agent's equipment ARP functions are managed, the network information of the first main frame and the second main frame is obtained, according to first main frame that prestores and described the The information and corresponding gateway information of subnet where two main frames and the first main frame and the network information of the second main frame that get are determined Plan generates forward-path so that as long as all interchangers in OpenFlow networks realize simple forwarding capability, so that The problem of special OpenFlow interchangers in OpenFlow networks can not realize the gateway/routing function is solved, is reached The effect for the interchanger for playing gateway/routing function need not be separately provided in OpenFlow networks.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (17)

1. a kind of generation method of forward-path, it is characterised in that for including controller and at least one interchanger In OpenFlow networks, methods described includes:
Controller obtains the network information of the first main frame by the first ARP request received, and first ARP request is by institute State the first main frame transmission and with the interchanger that first main frame is connected can not find forward flow table after be transmitted to the control The ARP request of device processed;
The controller obtains the network information of the second main frame by constructing the second ARP request;
The controller is according to the network information of first main frame and the network information decision making of second main frame Forward-path between first main frame and second main frame;
The controller issues forwarding flow table to each interchanger on the forward-path, so as to every on the forward-path Individual interchanger forwards packet according to the forwarding flow table between first main frame and second main frame;
Wherein, when the first gateway and the second gateway is respectively configured in first main frame and second main frame, the controller Realize the function of first gateway and second gateway;Or, when first main frame and second main frame are configured without During default gateway, the controller realizes the function of first agent's equipment and second agent's equipment.
2. according to the method described in claim 1, it is characterised in that if the purpose IP address in first ARP request is institute State the IP address of the first gateway, first gateway is the configuration gateway of first main frame, then it is described by receiving One ARP request is obtained after the network information of the first main frame, in addition to:
The controller feeds back the first arp response, institute by the interchanger that is connected with first main frame to first main frame State MAC Address and IP address that source MAC and source IP address in the first arp response are respectively first gateway.
3. method according to claim 2, it is characterised in that the controller obtains the by constructing the second ARP request The network information of two main frames, including:
The controller receives the packet that first main frame is sent, and the target MAC (Media Access Control) address of the packet is described first The MAC Address of gateway, purpose IP address is the IP address of second main frame;
The controller constructs the second ARP request, the source MAC of second ARP request according to the IP address of second main frame Address and source IP address are respectively the MAC Address and IP address of second gateway, and purpose IP address is second main frame IP address, second gateway is the configuration gateway of second main frame;
Second ARP request is sent to described the by the controller by the interchanger in subnet where second main frame All hosts where two main frames in subnet;
The controller receives the 2nd ARP sound that second main frame feeds back by the interchanger being connected with second main frame Should, the source MAC and source IP address of second arp response are respectively the MAC Address and IP address of second main frame.
4. method according to claim 3, it is characterised in that the controller is obtained by the first ARP request received Before the network information for taking the first main frame, in addition to:
Gateway, network number and the subnet of subnet are covered where the controller prestores first main frame and second main frame Code, and first gateway and second gateway MAC Address and IP address;
Second ARP request is sent to described second by the controller by the interchanger of subnet where second main frame All hosts where main frame in subnet, including;
Gateway, network number and the subnet mask of controller subnet according to where second main frame please by the 2nd ARP Seek the All hosts in subnet where being sent to second main frame.
5. according to the method described in claim 1, it is characterised in that if the purpose IP address in first ARP request is institute The IP address of the second main frame is stated, then after the network information by the first ARP request the first main frame of acquisition received, also Including:
The controller feeds back the first arp response, institute by the interchanger that is connected with first main frame to first main frame The MAC Address that the source MAC in the first arp response is first agent's equipment is stated, source IP address is the IP of second main frame Address, so that first main frame regard the MAC Address of first agent's equipment as the MAC Address of second main frame, institute It is corresponding to the agent equipment in subnet where first main frame to state first agent's equipment.
6. method according to claim 5, it is characterised in that the controller obtains the by constructing the second ARP request The network information of two main frames, including:
The controller receives the packet that first main frame is sent, and the target MAC (Media Access Control) address of the packet is described first The MAC Address of agent equipment, purpose IP address is the IP address of second main frame;
The controller constructs the second ARP request, the source MAC of second ARP request according to the IP address of second main frame Address is the MAC Address of second agent's equipment, and source IP address is the IP address of first main frame, and purpose IP address is described the The IP address of two main frames, so that second main frame regard the MAC Address of second agent's equipment as first main frame MAC Address, second agent's equipment is corresponding to the agent equipment in subnet where second main frame;
Second ARP request is sent to described the by the controller by the interchanger in subnet where second main frame All hosts where two main frames in subnet;
The controller receives the 2nd ARP sound that second main frame feeds back by the interchanger being connected with second main frame Should, the source MAC and source IP address of second arp response are respectively the mac address ip address of second main frame.
7. method according to claim 6, it is characterised in that the controller is obtained by the first ARP request received Before the network information for taking the first main frame, in addition to:
Gateway, network number and the subnet of subnet are covered where the controller prestores first main frame and second main frame Code, and first agent's equipment and second agent's equipment MAC Address;
Second ARP request is sent to described second by the controller by the interchanger of subnet where second main frame All hosts where main frame in subnet, including;
Gateway, network number and the subnet mask of controller subnet according to where second main frame please by the 2nd ARP Seek the All hosts in subnet where being sent to second main frame.
8. according to any described method of claim 1 to 7, it is characterised in that described to be believed according to the network of first main frame Forward-path described in the network information decision making of breath and second main frame between the first main frame and second main frame, bag Include:
First main frame is calculated and described according to the network information of first main frame and the network information of second main frame Most short forward-path between second main frame;Will described in most short forward-path as first main frame and second main frame it Between forward-path;
Or;
First main frame is calculated and described according to the network information of first main frame and the network information of second main frame Optimal forward-path between second main frame;Using the optimal forward-path as first main frame and second main frame it Between forward-path.
9. a kind of controller, it is characterised in that in the OpenFlow networks including at least one interchanger, the control Device, including:
First information acquisition module, the network information for obtaining the first main frame by the first ARP request for receiving, described the One ARP request is to be sent by first main frame and can not find forwarding flow with the interchanger that first main frame is connected The ARP request of the controller is transmitted to after table;
Second data obtaining module, the network information for obtaining the second main frame by constructing the second ARP request;
Path-generating module, for the network information of the first main frame that is got according to the first information acquisition module and described First main frame described in the network information decision making for the second main frame that second data obtaining module is got and second main frame Between forward-path;
Flow table issuance module, forwarding flow is issued for each interchanger on the forward-path that is generated to the path-generating module Table, so as to each interchanger on the forward-path according to the forwarding flow table in first main frame and second main frame Between forward packet;
Wherein, when the first gateway and the second gateway is respectively configured in first main frame and second main frame, the controller Realize the function of first gateway and second gateway;Or, when first main frame and second main frame are configured without During default gateway, the controller realizes the function of first agent's equipment and second agent's equipment.
10. controller according to claim 9, it is characterised in that if the purpose IP address in first ARP request is The IP address of first gateway, first gateway is the configuration gateway of first main frame, the controller, in addition to:
First feedback module, the first ARP is fed back for the interchanger by being connected with first main frame to first main frame Response, source MAC and source IP address in first arp response are respectively the MAC Address and IP of first gateway Location.
11. controller according to claim 10, it is characterised in that second data obtaining module, including:
First receiving unit, for receiving the packet that first main frame is sent, the target MAC (Media Access Control) address of the packet is institute The MAC Address of the first gateway is stated, purpose IP address is the IP address of second main frame;
First structural unit, the IP address structure for the second main frame in the packet that is received according to first receiving unit The second ARP request is made, the source MAC and source IP address of second ARP request are respectively the MAC Address of second gateway And IP address, purpose IP address is the IP address of second main frame, and second gateway is the configuration net of second main frame Close;
First transmitting element, for being constructed first structural unit by the interchanger in subnet where second main frame The second ARP request be sent to second main frame where All hosts in subnet;
Second receiving unit, second main frame feeds back second is received for the interchanger by being connected with second main frame Arp response, the source MAC and source IP address of second arp response are respectively the MAC Address and IP of second main frame Location.
12. controller according to claim 11, it is characterised in that the controller, in addition to:
First prestores module, gateway, the net of subnet where for prestoring first main frame and second main frame Network number and subnet mask, and first gateway and second gateway MAC Address and IP address;
First transmitting element, specifically for the son according to where described first prestores the second main frame that module is prestored It is all in subnet where second ARP request is sent to second main frame by gateway, network number and the subnet mask of net Main frame.
13. controller according to claim 9, it is characterised in that if the purpose IP address in first ARP request is The IP address of second main frame, the controller, in addition to:
Second feedback module, the first ARP is fed back for the interchanger by being connected with first main frame to first main frame Response, the source MAC in first arp response is the MAC Address of first agent's equipment, and source IP address is the described second master The IP address of machine, so as to first main frame using the MAC Address of first agent's equipment as second main frame MAC Location, first agent's equipment is corresponding to the agent equipment in subnet where first main frame.
14. controller according to claim 13, it is characterised in that second data obtaining module, including:
3rd receiving unit, for receiving the packet that first main frame is sent, the target MAC (Media Access Control) address of the packet is institute The MAC Address of first agent's equipment is stated, purpose IP address is the IP address of second main frame;
Second structural unit, the IP address structure for the second main frame in the packet that is received according to the 3rd receiving unit The second ARP request is made, the source MAC of second ARP request is the MAC Address of second agent's equipment, and source IP address is institute The IP address of the first main frame is stated, purpose IP address is the IP address of second main frame, so that second main frame is by described the The MAC Address of two agent equipments is as the MAC Address of first main frame, and second agent's equipment is corresponding to described second Agent equipment where main frame in subnet;
Second transmitting element, for being constructed second structural unit by the interchanger in subnet where second main frame The second ARP request be sent to second main frame where All hosts in subnet;
Second receiving unit, second main frame feeds back second is received for the interchanger by being connected with second main frame Arp response, the source MAC and source IP address of second arp response are respectively the MAC Address IP of second main frame Location.
15. controller according to claim 14, it is characterised in that the controller, in addition to:
Second prestores module, gateway, the net of subnet where for prestoring first main frame and second main frame Network number and subnet mask, and first agent's equipment and second agent's equipment MAC Address;
Second transmitting element, specifically for the son according to where described second prestores the second main frame that module is prestored It is all in subnet where second ARP request is sent to second main frame by gateway, network number and the subnet mask of net Main frame.
16. according to any described controller of claim 9 to 15, it is characterised in that the path-generating module, including:
Most short generation unit, for the network information of the first main frame that is got according to the first information acquisition module and described The network information for the second main frame that second data obtaining module is got is calculated between first main frame and second main frame Most short forward-path;It regard the most short forward-path as the forwarding road between first main frame and second main frame Footpath;
Or;
Optimal generation unit, for the network information of the first main frame that is got according to the first information acquisition module and described The network information for the second main frame that second data obtaining module is got is calculated between first main frame and second main frame Optimal forward-path;It regard the optimal forward-path as the forwarding road between first main frame and second main frame Footpath.
17. the generation system of a kind of forward-path, it is characterised in that the system is included as described in claim 9 to 16 is any Controller, the first main frame and the second main frame.
CN201310140475.6A 2013-04-22 2013-04-22 Generation method, controller and the system of forward-path Active CN104113474B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310140475.6A CN104113474B (en) 2013-04-22 2013-04-22 Generation method, controller and the system of forward-path
PCT/CN2014/075149 WO2014173235A1 (en) 2013-04-22 2014-04-11 Forwarding path generating method, controller, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310140475.6A CN104113474B (en) 2013-04-22 2013-04-22 Generation method, controller and the system of forward-path

Publications (2)

Publication Number Publication Date
CN104113474A CN104113474A (en) 2014-10-22
CN104113474B true CN104113474B (en) 2017-08-29

Family

ID=51710110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310140475.6A Active CN104113474B (en) 2013-04-22 2013-04-22 Generation method, controller and the system of forward-path

Country Status (2)

Country Link
CN (1) CN104113474B (en)
WO (1) WO2014173235A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847161B (en) * 2015-01-15 2019-07-23 南宁富桂精密工业有限公司 It controls equipment and its controls the method that interchanger updates flow table
CN107181681B (en) * 2016-03-10 2022-02-25 中兴通讯股份有限公司 SDN two-layer forwarding method and system
CN107404546B (en) * 2017-08-07 2022-10-14 刘昱 Communication method and device in SDN network
CN107465770B (en) * 2017-08-07 2022-04-15 刘昱 SDN network and non-SDN network communication method and device
CN114172750B (en) * 2022-02-14 2022-05-13 南京易科腾信息技术有限公司 Network communication method, device and storage medium based on encryption mechanism

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072238A (en) * 2007-07-09 2007-11-14 中兴通讯股份有限公司 Method for realizing identical subnet communication for MPLS three-layer virtual special net
CN101383835A (en) * 2008-10-21 2009-03-11 杭州华三通信技术有限公司 Method and device for implementing server safe isolation
WO2012033041A1 (en) * 2010-09-09 2012-03-15 日本電気株式会社 Computer system and communication method in computer system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100455130B1 (en) * 2000-12-23 2004-11-08 엘지전자 주식회사 Proxy arp operation method using virtual arp packet
US20060209818A1 (en) * 2005-03-18 2006-09-21 Purser Jimmy R Methods and devices for preventing ARP cache poisoning
JP5408243B2 (en) * 2009-03-09 2014-02-05 日本電気株式会社 OpenFlow communication system and OpenFlow communication method
US9444743B2 (en) * 2011-04-04 2016-09-13 Nec Corporation Network system, switch and connected terminal detection method
CN102938794B (en) * 2012-11-14 2016-01-13 华为技术有限公司 ARP message forwarding method, switch and controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072238A (en) * 2007-07-09 2007-11-14 中兴通讯股份有限公司 Method for realizing identical subnet communication for MPLS three-layer virtual special net
CN101383835A (en) * 2008-10-21 2009-03-11 杭州华三通信技术有限公司 Method and device for implementing server safe isolation
WO2012033041A1 (en) * 2010-09-09 2012-03-15 日本電気株式会社 Computer system and communication method in computer system

Also Published As

Publication number Publication date
CN104113474A (en) 2014-10-22
WO2014173235A1 (en) 2014-10-30

Similar Documents

Publication Publication Date Title
CN104202266B (en) A kind of communication means, interchanger, controller and communication system
CN105007224B (en) A kind of SDN network and IP network interconnected communication system, communication means
CN104243270B (en) A kind of method and apparatus for establishing tunnel
CN103888369B (en) Ethernet communication method, system and SDN switch
CN104243317B (en) A kind of method and apparatus for realizing IP routing forwardings
CN104113474B (en) Generation method, controller and the system of forward-path
EP2974133B1 (en) Method and system for controlling an underlying physical network by a software defined network
US8995444B2 (en) Method and system for extending routing domain to non-routing end stations
CN103081418B (en) Computer system and communication method in computer system
CN104335537B (en) For the system and method for the multicast multipath of layer 2 transmission
CN104935516B (en) Communication system and method based on software defined network
CN104702476B (en) Message processing method based on distributed network gate and network virtualization marginal point
CN104040972B (en) The method and device that a kind of path is set up
CN102714668A (en) Distributed virtual fibre channel over Ethernet forwarder
CN104301252B (en) A kind of data Transmission system and data transmission method for uplink
CN104378299B (en) Flow table item processing method and device
US20130148659A1 (en) Methods and apparatus for implementing a fibre channel zone policy
CN106656793B (en) Data interaction method for SDN network and IP network
CN106330697A (en) Hybrid network spanning tree establishing method, backup method and control system thereof
JP5854049B2 (en) COMMUNICATION SYSTEM, CONTROL INFORMATION RELAY DEVICE, CONTROL DEVICE, CONTROL INFORMATION TRANSMISSION METHOD, AND PROGRAM
CN104601467A (en) Method and device for sending messages
CN101714945A (en) System and method for realizing internetwork communication
CN108512755A (en) A kind of learning method and device of routing iinformation
JP5978384B2 (en) Method for receiving information, method for transmitting information and apparatus thereof
CN105591927B (en) A kind of message forwarding method and routing bridge based on TRILL network

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