Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide a kind of and carry out Automatic Optimal based on this local area network (LAN) visit situation, effectively guarantee the LAN resistance to overturning simultaneously, simple in structure, use easyly, and realize the optimizing data stream device and method that multi-operator inserts in the comparatively cheap LAN of cost.
In order to realize above-mentioned purpose, realize in the LAN of the present invention that the optimizing data stream device that multi-operator inserts has following formation:
This device comprises flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that is linked in sequence, described flow collection module connects outer DNS (domain name system) server of this optimizing data stream device and the network interface of routing device respectively, and described Configuration Manager connects the configuration management interface of described dns server and routing device respectively.
Realize in the optimizing data stream device of multi-operator access in this LAN, also comprise DNS optimal module and route optimization module, described Configuration Manager connects described dns server by described DNS optimal module, and connects described routing device by described route optimization module.
Realize in this LAN also comprising the configuration backup module in the optimizing data stream device of multi-operator access, described configuration backup module connects described Configuration Manager, and connects this optimizing data stream device outer dns server and routing device.
Realize in the optimizing data stream device of multi-operator access in this LAN, described dns server has a dns server Configuration Manager, described routing device has a SNMP (Simple Network Management Protocol) interface module, described configuration backup module connects described dns server Configuration Manager and SNMP interface module respectively, the DNS optimal module of described optimizing data stream device connects described dns server Configuration Manager, and the route optimization module of described optimizing data stream device connects described SNMP interface module.
The present invention also provides a kind of and utilizes described device to realize multi-operator incoming data stream optimization method in the LAN, and this method may further comprise the steps:
(1) described flow collection module obtains network data flow and is sent to described flow analysis module from the network interface of dns server and routing device;
(2) described flow analysis module judges whether and need be optimized this network data flow, if need then enter step (3), if do not need, returns step (1);
(3) described network detection module is surveyed a plurality of operators access interface according to described network data flow, and result of detection is sent to described result of detection analysis module;
(4) described result of detection analysis module determines that according to described result of detection operator's access interface is as the optimization port;
(5) described Configuration Manager reconfigures described dns server and routing device according to the optimization operator access interface of determining.
In the multi-operator incoming data stream optimization method, described step (1) specifically may further comprise the steps in this realization LAN:
(11) the flow collection module obtains network packet from the network interface of dns server and routing device;
(12) packet information of the described network packet of flow collection module stores;
(13) the flow collection module is sent to described flow analysis module with the packet information of being stored.
In the multi-operator incoming data stream optimization method, described packet information comprises local area network (LAN) internal unit IP address, local area network (LAN) internal unit port, local area network (LAN) external equipment IP address, local area network (LAN) port for peripheral equipment, packet networks protocol type in this realization LAN.
In the multi-operator incoming data stream optimization method, described step (2) specifically may further comprise the steps in this realization LAN:
(21) whether the described local area network (LAN) external equipment of described flow analysis module analysis IP address for optimizing the address, if, then enter step (22), if not, then enter step (3);
(22) whether the optimization result of this local area network (LAN) external equipment of described flow analysis module analysis IP address is expired, if, then enter step (3), if not, then return step (1).
In the multi-operator incoming data stream optimization method, described step (3) specifically may further comprise the steps in this realization LAN:
(31) described network detection module judges whether to survey all operator's access interface, if, then enter step (36), if not, then enter step (32);
(32) described network detection module connects local area network (LAN) external equipment IP address by operator's access interface of not surveying;
(33) described network detection module stores is utilized the switching performance parameter of this operator's access interface, and returns step (31);
(34) described network detection module will comprise that the result of detection of each operator's access interface switching performance parameter is sent to described result of detection analysis module.
In the multi-operator incoming data stream optimization method, described switching performance parameter connects time-delay, connection packet loss, connection is shaken and be connected number of retries in this realization LAN.
In the multi-operator incoming data stream optimization method, described step (4) specifically is meant: whether described result of detection analysis module is complete according to operator's access interface result of detection, whether the result of detection of each switching performance parameter has consistency, the user selectes operator's access interface as the optimization port to the priority definition and the switching performance of switching performance to the influence degree of network service in this realization LAN.
This is realized in LAN in the multi-operator incoming data stream optimization method, described step (5) specifically is meant: described Configuration Manager is by sending configuration-direct to described dns server and routing device, and routing device is guided to described optimization operator access interface to the route of certain local area network (LAN) outside ip address; And the request of local area network (LAN) external reference guided to described optimization operator access interface.
This is realized in LAN in the multi-operator incoming data stream optimization method, realize in the described LAN that the optimizing data stream device that multi-operator inserts also comprises the configuration backup module, described configuration backup module connects described Configuration Manager, and multi-operator incoming data stream optimization method is further comprising the steps of afterwards in described step (5) in the described realization LAN:
(6) described Configuration Manager is sent to described configuration backup module and storage with the configuration information of described dns server and routing device.
Adopted and realized the optimizing data stream device and method that multi-operator inserts in the LAN of this invention, this device comprises flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that is linked in sequence, described flow collection module connects the outer dns server of this optimizing data stream device and the network interface of routing device respectively, and described Configuration Manager connects the configuration management interface of described dns server and routing device respectively.In this method, at first the flow collection module obtains network data flow, flow analysis module then judges whether and need be optimized this network data flow, the network detection module is surveyed for the data flow of needs optimization again, the result of detection analysis module is determined an optimization operator access interface afterwards, thereby last Configuration Manager disposes described dns server and routing device is realized the optimizing data stream that multi-operator inserts.Utilize and realize the optimizing data stream device and method that multi-operator inserts in the LAN of the present invention, the ISP access interface that can select switching performance the best is as using ISP, realize the data flow Automatic Optimal, simultaneously, owing to optimizing data stream device of the present invention side is connected in the LAN, thereby avoided becoming the unfavorable factor of LAN operation stability, effectively guarantee the monolithic stability of LAN operation, and apparatus structure of the present invention is simple, and method is easy, and application cost is comparatively cheap.
Embodiment
In order more to be expressly understood technology contents of the present invention, describe in detail especially exemplified by following examples.
See also shown in Figure 2ly, be to realize in the LAN of the present invention the structural representation of the optimizing data stream device that multi-operator inserts.
In one embodiment, realize in this LAN that the optimizing data stream device that multi-operator inserts comprises flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that is linked in sequence, described flow collection module connects the outer dns server of this optimizing data stream device and the network interface of routing device respectively, and described Configuration Manager connects the configuration management interface of described dns server and routing device respectively.
In a kind of more preferably execution mode, described device also comprises DNS optimal module and route optimization module, described Configuration Manager connects described dns server by described DNS optimal module, and connects described routing device by described route optimization module.
In a kind of further preferred embodiment, described device also comprises the configuration backup module, and described configuration backup module connects described Configuration Manager, and connects this optimizing data stream device outer dns server and routing device.
A kind of more preferred embodiment in, described dns server has a dns server Configuration Manager, described routing device has a SNMP interface module, described configuration backup module connects described dns server Configuration Manager and SNMP interface module respectively, the DNS optimal module of described optimizing data stream device connects described dns server Configuration Manager, and the route optimization module of described optimizing data stream device connects described SNMP interface module.
The present invention also provides a kind of and has utilized described device to realize multi-operator incoming data stream optimization method in the LAN.In one embodiment, as shown in Figure 3, this method may further comprise the steps:
(1) described flow collection module obtains network data flow and is sent to described flow analysis module from the network interface of dns server and routing device;
(2) described flow analysis module judges whether and need be optimized this network data flow, if need then enter step (3), if do not need, returns step (1);
(3) described network detection module is surveyed a plurality of operators access interface according to described network data flow, and result of detection is sent to described result of detection analysis module;
(4) described result of detection analysis module determines that according to described result of detection operator's access interface is as the optimization port;
(5) described Configuration Manager reconfigures described dns server and routing device according to the optimization operator access interface of determining.
A kind of preferred embodiment in, described step (1) specifically may further comprise the steps:
(11) the flow collection module obtains network packet from the network interface of dns server and routing device;
(12) packet information of the described network packet of flow collection module stores;
(13) the flow collection module is sent to described flow analysis module with the packet information of being stored.
Wherein, described packet information comprises local area network (LAN) internal unit IP address, local area network (LAN) internal unit port, local area network (LAN) external equipment IP address, local area network (LAN) port for peripheral equipment, packet networks protocol type.
Described step (2) specifically may further comprise the steps:
(21) whether the described local area network (LAN) external equipment of described flow analysis module analysis IP address for optimizing the address, if, then enter step (22), if not, then enter step (3);
(22) whether the optimization result of this local area network (LAN) external equipment of described flow analysis module analysis IP address is expired, if, then enter step (3), if not, then return step (1).
Described step (3) specifically may further comprise the steps:
(31) described network detection module judges whether to survey all operator's access interface, if, then enter step (36), if not, then enter step (32);
(32) described network detection module connects local area network (LAN) external equipment IP address by operator's access interface of not surveying;
(33) described network detection module stores is utilized the switching performance parameter of this operator's access interface, and returns step (31);
(34) described network detection module will comprise that the result of detection of each operator's access interface switching performance parameter is sent to described result of detection analysis module.
Wherein, described switching performance parameter connects time-delay, connects packet loss, connects shake and be connected number of retries.
Described step (4) specifically is meant: whether described result of detection analysis module is complete according to operator's access interface result of detection, whether the result of detection of each switching performance parameter has consistency, the user selectes operator's access interface as the optimization port to the priority definition and the switching performance of switching performance to the influence degree of network service.
And described step (5) specifically is meant: described Configuration Manager is by sending configuration-direct to described dns server and routing device, and routing device is guided to described optimization operator access interface to the route of certain local area network (LAN) outside ip address; And the request of local area network (LAN) external reference guided to described optimization operator access interface.
In a kind of preferred execution mode, realize in the described LAN that the optimizing data stream device that multi-operator inserts also comprises the configuration backup module, described configuration backup module connects described Configuration Manager, and multi-operator incoming data stream optimization method is further comprising the steps of afterwards in described step (5) in the described realization LAN:
(6) described Configuration Manager is sent to described configuration backup module and storage with the configuration information of described dns server and routing device.
In an application of the invention, realize the optimizing data stream device real-time collecting local area network (LAN) inside of multi-operator access and the data interaction between the local area network (LAN) outside in the LAN of the present invention, set up and safeguard the network information database of a high granularity; Regularly gather the IP address of carrying out data interaction with local area network (LAN) inside in the past period from database, and according to certain strategy these external IP are sorted, ordering strategy can be set according to the priority that system surveys; This device is regularly surveyed external IP, selects optimum ISP interface according to certain strategy, for the optimization of from now on routing configuration provides the data foundation with the optimization that DNS disposes; This device is regularly gathered the configuration of related route apparatus and DNS equipment, and changes instruction according to the up-to-date corresponding configuration of result of detection generation, and this device can regularly send to dependent instruction routing device and DNS equipment; Simultaneity factor can back up each relevant configuration, so that rollback is carried out in the configuration of route equipment and DNS equipment.
Realize in this LAN that the optimizing data stream device that multi-operator inserts specifically comprises with the lower part:
1, flow collection module, it is responsible for all are collected from the network packet that the associated nets port mirror image of DNS network interface and related route apparatus obtains.This module is the network packet collection module of a high speed, needs to preserve the relevant information (can be with database, forms such as file are preserved) in the network packet, and will avoid omitting as far as possible.The information of flow collection module stores includes but not limited to the IP address of internal unit, the port of internal unit, the IP address of external equipment, three layers and above protocol type that the port of external equipment, packet adopt, and with protocol-dependent out of Memory.
2, flow analysis module, it is responsible for and will be handled by the network flow data of flow collection module stores.The entire process flow process of this module as shown in Figure 4, it judges at first whether outside ip address was once done active probe and produced the optimization result; If do not produce the optimization result, then carried out subsequent probe at this outside ip address; If this device produced the optimization result to this outside ip address, then judge what whether this optimization result carried out before the ageing time that sets, if optimization result before is expired, then survey again and optimize, if do not have expired then no longer survey and optimize.
3, network detection module, it is responsible for the IP address that goes out according to the flow analysis module analysis and relevant information is surveyed.The entire process flow process of this module as shown in Figure 5, its detection to the outside mainly is according to outside ip address, and the switching performance of the related service on this address is assessed.This module need all be attempted connection one time from a plurality of ISP outlet, and the switching performance relevant parameter that will finally generate preserves, for the result of detection analysis module provides data.The parameter of switching performance includes but not limited to connect time-delay, connects packet loss, connects shake, connects number of retries or the like.In this module, whether the result who no matter surveys on certain ISP interface is successful, all its result will be saved in the result of detection, so that analyzed by the result of detection analysis module.
4, result of detection analysis module, it is responsible for the result that detecting module is surveyed is analyzed.Whether whether the factor that this module need be taken all factors into consideration should include but not limited to: complete to the result of detection of all ISP interfaces; Whether the result of detection of each switching performance index has consistency; The user is to the priority definition of switching performance; Influence degree that switching performance is served network or the like.Based on above all kinds of factors, form one and support that the user has certain self-defined authority, and the choice mechanism that can utilize this device to realize automatically.Finally among the result that can survey each ISP interface that certain IP carries out, select the ISP interface of an optimum.
5, Configuration Manager, its result who analyzes according to the result of detection analysis module forms relevant configuration-direct, and router guides to the ISP interface of switching performance the best to the route of certain IP the most at last; The access request that to come from the outside guides to the ISP interface of switching performance the best.Configuration Manager also is responsible for sending regular back-up job to route equipment and dns server relevant configuration simultaneously.
6, configuration backup administration module, its relevant configuration with routing device and dns server backs up, and can carry out the preservation and the comparison of relevant configuration file, simultaneously the actual disposition file result whether compliance with system is optimized that also can supervisory control system.
7, route optimization module, this module is responsible for the configuration change directive that Configuration Manager generates is sent to corresponding routing device, change directive can be realized by multiple mode, can realize also that accordingly what represent among Fig. 2 is the example of realizing the routing configuration function with the SNMP communication interface by various communication interfaces.The route change instruction also can directly be signed in to the configuration operation of the enterprising line correlation route of router by the mode of telnet by system; If what router adopted is the BGP route, this optimization means also can be by sending the corresponding route of BGP instruction modification.
8, DNS optimal module, this module sends to the DNS configuration-direct that Configuration Manager generates on the corresponding D NS server.Only listed an example of realizing by the mode of the Agent on dns server among Fig. 2.The DNS optimal module also can be carried out relevant configuration by the interface of concrete DNS software development.
9, DNS Configuration Manager, this module mainly is not provide the dns server of external management interface and the module developed at some, this module operates on the dns server with agency's form, revises the DNS service configuration by accepting the instruction that the flow optimization system sends.
As shown in Figure 6, realize in the LAN of the present invention that for utilizing the many ISP of optimizing data stream device and method moral local area network (LAN) that multi-operator inserts insert schematic diagram,, can domain name mapping be forwarded to the dns server of being controlled by optimization means of the present invention through its local dns server and resolve 2. when external user sends visit internal web server requests 1. the time through the dns server behind the configuration modification; This dns server utilizes method provided by the present invention to judge the combination property optimum of the external IP of current accessed through which ISP interface, the dns resolution server that then Web server corresponding outside ip address on this ISP interface can be returned to the user 3., the user is with regard to the IP address that obtained to conduct interviews with the fastest speed 4. thus.
Adopted and realized the optimizing data stream device and method that multi-operator inserts in the LAN of this invention, this device comprises flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that is linked in sequence, described flow collection module connects the outer dns server of this optimizing data stream device and the network interface of routing device respectively, and described Configuration Manager connects the configuration management interface of described dns server and routing device respectively.In this method, at first the flow collection module obtains network data flow, flow analysis module then judges whether and need be optimized this network data flow, the network detection module is surveyed for the data flow of needs optimization again, the result of detection analysis module is determined an optimization operator access interface afterwards, thereby last Configuration Manager disposes described dns server and routing device is realized the optimizing data stream that multi-operator inserts.Utilize and realize the optimizing data stream device and method that multi-operator inserts in the LAN of the present invention, the ISP access interface that can select switching performance the best is as using ISP, realize the data flow Automatic Optimal, simultaneously, owing to optimizing data stream device of the present invention side is connected in the LAN, thereby avoided becoming the unfavorable factor of LAN operation stability, effectively guarantee the monolithic stability of LAN operation, and apparatus structure of the present invention is simple, and method is easy, and application cost is comparatively cheap.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.