Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
The system architecture and business scenario of description of the embodiment of the present invention are in order to which more clearly the explanation present invention is implemented
The technical scheme of example, does not form the restriction for technical scheme provided in an embodiment of the present invention, those of ordinary skill in the art
Understand, with the differentiation of system architecture and the appearance of new business scene, technical scheme provided in an embodiment of the present invention is for similar
Technical problem, it is equally applicable.
The technical term that embodiments of the invention use includes as follows:
It route (routing):When referring to packet from source to destination, the process of the network range of end-to-end path is determined.
Route is operated in OSI (Open System Interconnection, open system interconnection) reference model third layer --- net
The packet forwarding unit of network layers.Router realizes network interconnection by forwarding packet.Router can support a variety of associations
Discuss (such as TCP/IP (Transmission Control Protocol/Internet Protocol, transmission control protocol/Yin Te
Net interconnection protocol), IPX/SPX ((Internetwork Packet Exchange/Sequences Packet Exchange,
Packet switch/sequential packet exchanges), the agreement such as AppleTalk (set of network protocols that A p p l e companies create)).Route
Device generally connects two or more logic ports identified by IP subnets or peer-peer protocol, at least possesses 1 physical port.Road
The routing table safeguarded by device according to the network layer address and router interior that receive in packet determine output port and under
One jumps address, and rewrites link layer data packet header and realize forwarding packet.Router is reflected by Dynamic Maintenance routing table
Current network topology, and routing table is safeguarded by other routers exchanges route on network and link information.
Notice:, may be in same net using a variety of Routing Protocols are arrived, in order to realize a variety of routes in large-scale enterprise
The collaborative work of agreement, router can be routed through another kind using a kind of Routing Protocol that advertising of route is learnt
Routing Protocol is broadcasted, and all parts of such network can just connect.In order to realize notice, router must be simultaneously
A variety of Routing Protocols are run, so, every kind of Routing Protocol can just take the route of other all or part of agreements in routing table
To be broadcasted.
SDN (Software Defined Network, software defined network):It is a kind of new network wound of Emulex networks
New architecture, is a kind of implementation of network virtualization, and its core technology OpenFlow is by by network equipment chain of command and number
Separated according to face, it is achieved thereby that the flexible control of network traffics, makes network become more intelligent as pipeline.
OSPF is an Interior Gateway Protocol (Interior Gateway Protocol, abbreviation IGP), for single
The interior decision-making route of autonomous system (Autonomous System, AS).It is that one kind of link-state routing protocol is realized, is subordinate to
Interior Gateway Protocol (IGP), therefore operate on inside autonomous system.It is two versions of OSPFv2 and OSPFv3 that OSPF, which is divided to, wherein
OSPFv2 is used in IPv4 networks, and OSPFv3 is used in IPv6 networks.OSPFv2 is defined by RFC 2328, and OSPFv3 is by RFC
5340 definition;
The above method is described in detail with reference to specific embodiment.Shown in reference picture 2, embodiments of the invention should
For following network system, the network system supports dynamic routing protocol, such as OSPF Routing Protocols, the network system to include:
SDN controllers and at least one SDN switch;Wherein SDN controllers are used to control the data of at least one SDN switch to turn
Send out, any SDN switch connection terminal (such as PC PC) at least one SDN switch, at least one SDN is exchanged
Any SDN switch connection route equipment (for example, OSPF equipment) in machine.A SDN is wherein illustrate only in legend 2 to exchange
Machine, it is to be understood that SDN controllers can also control the data forwarding between multiple SDN switches, therefore the network system
Multiple SDN switches can also be included, terminal and routing device can connect same SDN switch in concrete application scene
Or different SDN switch.
During applied to financial grid point Wide Area Network scene, shown in reference picture 3, the network system of embodiments of the invention offer
System, including:SDN controllers, two SDN switches, the position of two of which SDN switch is original wide area network (Fig. 1 institutes of replacement
Show) outlet operation state Routing Protocol egress router (egress router of head office and the egress router of site).SDN
Controller is used for the data forwarding for controlling two SDN switches, and the SDN switch of head office and the SDN switch of site pass through extremely
A few link connection, and a SDN switch connection at least station terminal for head office, the SDN switch connection route of site are set
Standby (such as the dynamic routing such as OSPF equipment equipment).In following scheme, to run (the following letter of the network system of OSPF Routing Protocols
Claim ospf network) exemplified by illustrate, shown in reference picture 3, according to above-mentioned network scenarios, embodiments herein needs to realize
Two functions:Function one, OSPF equipment are needed by network segment information announcement into ospf network, so that SDN controllers are according to the network segment
The route of information learning OSPF equipment and the data forwarding flow table for generating SDN switch;SDN controllers run OSPF Routing Protocols
The control flow table of SDN switch is generated, dependent routing information is handed down to SDN switch by SDN controllers by way of flow table,
So that SDN switch forwards corresponding data.Function two, SDN controllers lead to the IP address of the associated terminal of the SDN switch second line of a couplet
Accuse in ospf network.So, the router that former WAN outlet uses, it is only necessary to SDN controllers support dynamic routing protocol,
Reduce whole net configuration to change, cash is adapted to this and melts network service demand.
Embodiments of the invention provide a kind of dynamic routing notifying method, comprise the following steps:
S101, terminal send ARP to SDN controllers by software defined network SDN switch and asked
Message.
The IP address of ARP request message carried terminal.
S102, SDN controller receive ARP request message, and obtain the IP address of terminal.
Specific SDN controllers extract the IP address of terminal in ARP request message.
S103, SDN controller determine whether the IP address of terminal is provided with and collect rule, collect the IP that rule includes terminal
Network segment address belonging to address.
Wherein, SDN controllers are also included before step 103 and determine whether terminal accesses in the legal port of SDN switch,
If so, then whether being provided with the flow for collecting rule into the IP address for determining terminal, specially examined according to port security strategy
The IP address of terminal is looked into, such as:SDN controllers can check the IP address and MAC of terminal, or check the IP address IP of terminal
The network segment and port.Certainly step S103 is performed if the IP address of terminal accesses in legal port, if being not provided with port security plan
Slightly, then directly skip terminal IP address whether legal port access inspection directly perform S103.
In addition, in step S103, collecting rule includes network segment address belonging to the IP address of terminal, such as the IP of terminal
Location is 192.168.1.1, then the network segment address belonging to it can be 192.168.1.0/24.
If S104, it is provided with and collects rule, it is determined that whether network segment address is issued, if having issued, replacement collects in rule
Ageing timer, otherwise network segment address is communicated in routing device by SDN switch, and record network segment address for issue
State.
If it is determined that the IP address of any terminal in network segment address is not obtained before ageing timer time-out, then to network segment address
Route withdraw notice is carried out to the routing device;And it is non-issued state to record network segment address.Such as:Such as
192.168.1.0/24 the entry-into-force time is 1 day, and ageing timer has not timed out within the period, if not in the network segment address
Active terminals, it will route withdraw notice is carried out to the 192.168.1.0/24 network segment addresses of notice, unnecessary stream can be reduced
Amount is introduced externally into network.In the program, it whether there is active terminals by detecting specified network segment address, determine whether
Give this network segment address route distribution to dynamic routing equipment, and the activationary time by noticing network segment address controls, preferably
The effect of route distribution on demand is realized, unnecessary flow can be reduced and be externally introduced network.
In embodiments of the present invention, if SDN controllers determine that the IP address of terminal is not provided with collecting rule, by terminal
IP address is communicated in routing device by SDN switch.
In such scheme, terminal sends address resolution protocol by software defined network SDN switch to SDN controllers
ARP request message;SDN controllers receive ARP request message, and obtain the IP address of terminal;SDN controllers determine the IP of terminal
Whether address, which is provided with, is collected rule, collects the network segment address belonging to IP address of the rule including terminal;Collect rule if being provided with
Then, it is determined that whether network segment address is issued, if having issued, the ageing timer collected in rule is reset, otherwise by network segment address
It is communicated to by SDN switch in routing device, and it is issued state to record network segment address.It is of the invention by the above method
During SDN has been applied to dynamic routing notice by embodiment, the flexibility of flow scheduling is improved, reduces broadband resource wave
Take.
Another embodiment of the present invention provides a kind of dynamic routing notifying method, except including above-mentioned steps S101-S104
Outside, the embodiment of the present invention also comprises the following steps:
S105, SDN controller operation state Routing Protocol, and establish dynamic routing protocol neighbours with routing device.
S106, SDN controller obtain the network segment information of routing device, and are route according to the network segment information learning of routing device
The routing iinformation of equipment.
S107, SDN controller generate flow table according to routing iinformation and are issued to SDN switch.Flow table is used for SDN switch
According to the destination address of flow table self terminal in future by the message of the dynamic routing network segment be forwarded to corresponding destination.
Specifically, SDN switch is according to belonging to the flow table generated in step S107 by the IP address of terminal in step S103
Network segment address be communicated in routing device.
Shown in reference picture 4, embodiments of the invention provide a kind of SDN controllers, are noticed applied to above-mentioned dynamic routing
Method, including:
Receiving unit 41, the ARP request message sent for receiving terminal by software defined network SDN switch;Ground
Location extraction unit 42, for obtaining the IP address of terminal;Processing unit 43, for determining that the IP address of terminal of address acquisition is
No be provided with collects rule, collects the network segment address belonging to IP address of the rule including terminal;Processing unit 43, if being additionally operable to really
Surely it is provided with and collects rule, it is determined that whether network segment address is issued;If having issued, the ageing timer collected in rule is reset;
Transmitting element 44, if determining that network segment address is not issued no for processing unit 43, network segment address is noticed by SDN switch
Into routing device, it is issued state that processing unit 43, which is additionally operable to record network segment address,.
Optionally, processing unit 43, it is additionally operable to determine whether terminal accesses in the legal port of SDN switch, if so, then
The flow for collecting rule whether is provided with into the IP address for determining terminal.
Optionally, transmitting element 44, determine not obtain the network segment before ageing timer time-out if being additionally operable to processing unit 43
The IP address of any terminal in address, then route withdraw notice is carried out to routing device to network segment address;Processing unit 43 is also used
It is non-issued state in recording network segment address.
Optionally, SND controllers also include:
Connection unit 45, dynamic routing protocol neighbours are established for operation state Routing Protocol, and with routing device;Obtain
Unit 46, for obtaining the network segment information of routing device, and the route of the network segment information learning routing device according to routing device
Information;Transmitting element 44, the routing iinformation generation flow table for being additionally operable to be obtained according to acquiring unit 46 are simultaneously issued to SDN switch,
So as to SDN switch according to the destination address of flow table self terminal in future by the message of the dynamic routing network segment be forwarded to corresponding mesh
Ground.
Transmitting element 44, determine to be not provided with collecting rule if being additionally operable to processing unit 43, the IP address of terminal is passed through
SDN switch is communicated in routing device.
In such scheme, terminal sends address resolution protocol by software defined network SDN switch to SDN controllers
ARP request message;SDN controllers receive ARP request message, and obtain the IP address of terminal;SDN controllers determine the IP of terminal
Whether address, which is provided with, is collected rule, collects the network segment address belonging to IP address of the rule including terminal;Collect rule if being provided with
Then, it is determined that whether network segment address is issued, if having issued, the ageing timer collected in rule is reset, otherwise by network segment address
It is communicated to by SDN switch in routing device, and it is issued state to record network segment address.It is of the invention by the above method
During SDN has been applied to dynamic routing notice by embodiment, the flexibility of flow scheduling is improved, reduces broadband resource wave
Take.
In addition, also providing a kind of calculating readable media (or medium), including carry out when executed in above-described embodiment
The computer-readable instruction of the operation of method.
In addition, a kind of computer program product is also provided, including above computer readable media (or medium).
It should be understood that in various embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to perform suitable
The priority of sequence, the execution sequence of each process should be determined with its function and internal logic, without the implementation of the reply embodiment of the present invention
Process forms any restriction.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, can be with
Realize by another way.For example, apparatus embodiments described above are only schematical, for example, the unit
Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, equipment or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (English full name:Read-only memory, English letter
Claim:ROM), random access memory (English full name:Random access memory, English abbreviation:RAM), magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.