Summary of the invention
The object 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) access situation, effectively ensure LAN resistance to overturning simultaneously, simple in structure, apply easyly, and in the comparatively cheap LAN of cost, realize the optimizing data stream device and method of multi-operator access.
In order to realize above-mentioned object, the optimizing data stream device of realizing multi-operator access in LAN of the present invention has following formation:
This device comprises the flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that are linked in sequence, described flow collection module connects respectively DNS (domain name system) server outside this optimizing data stream device and the network interface of routing device, and described Configuration Manager connects respectively described dns server and the configuration management interface of routing device.
In this LAN, realize in the optimizing data stream device of multi-operator access, also comprise that DNS optimizes module and route optimization module, described Configuration Manager is optimized module by described DNS and is connected described dns server, and connects described routing device by described route optimization module.
In this LAN, realize in the optimizing data stream device of multi-operator access, also comprise configuration backup module, described configuration backup module connects described Configuration Manager, and connects dns server and the routing device outside this optimizing data stream device.
In this LAN, realize in the optimizing data stream device of multi-operator access, 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 respectively described dns server Configuration Manager and SNMP interface module, the DNS of described optimizing data stream device optimizes module and 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 LAN, and the method comprises the following 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 to be optimized this network data flow, if desired enters step (3), if do not need, returns to step (1);
(3) described network detection module is surveyed multiple 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 optimization port;
(5) described Configuration Manager reconfigures described dns server and routing device according to definite optimization operator access interface.
This is realized in LAN in multi-operator incoming data stream optimization method, and described step (1) specifically comprises the following steps:
(11) flow collection module obtains network packet from the network interface of dns server and routing device;
(12) packet information of the network packet described in flow collection module stores;
(13) stored packet information is sent to described flow analysis module by flow collection module.
This is realized in LAN in multi-operator incoming data stream optimization method, and 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.
This is realized in LAN in multi-operator incoming data stream optimization method, and described step (2) specifically comprises the following steps:
(21) the local area network (LAN) external equipment IP address described in described flow analysis module analysis, whether for optimizing address, if so, enters step (22), if not, enters step (3);
(22) whether the optimum results of described this local area network (LAN) external equipment IP address of flow analysis module analysis is expired, if so, enters step (3), if not, returns to step (1).
This is realized in LAN in multi-operator incoming data stream optimization method, and described step (3) specifically comprises the following steps:
(31) described network detection module judges whether to survey all operator's access interface, if so, enters step (36), if not, enters 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 to step (31);
(34) result of detection that comprises each operator access interface switching performance parameter is sent to described result of detection analysis module by described network detection module.
This is realized in LAN in multi-operator incoming data stream optimization method, and described switching performance parameter connects time delay, connects packet loss, connects shake and be connected number of retries.
This is realized in LAN in multi-operator incoming data stream optimization method, and described step (4) specifically refers to: whether described result of detection analysis module has consistency, user priority definition and the switching performance to switching performance according to the result of detection of whether complete, the each switching performance parameter of operator's access interface result of detection is selected operator's access interface as optimization port to the influence degree of network service.
This is realized in LAN in multi-operator incoming data stream optimization method, described step (5) specifically refers to: described Configuration Manager, by sending configuration-direct to described dns server and routing device, guides to described optimization operator access interface by routing device to the route of certain local area network (LAN) outside ip address; And the request of local area network (LAN) external reference is guided to described optimization operator access interface.
This is realized in LAN in multi-operator incoming data stream optimization method, the optimizing data stream device of realizing multi-operator access in described LAN also comprises configuration backup module, described configuration backup module connects described Configuration Manager, and the described multi-operator incoming data stream optimization method of realizing in LAN is further comprising the steps of afterwards in described step (5):
(6) configuration information of described dns server and routing device is sent to described configuration backup module storage by described Configuration Manager.
Adopt the optimizing data stream device and method of realizing multi-operator access in the LAN of this invention, this device comprises the flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that are linked in sequence, described flow collection module connects respectively dns server outside this optimizing data stream device and the network interface of routing device, and described Configuration Manager connects respectively described dns server and the configuration management interface of routing device.In the method, first flow collection module obtains network data flow, then flow analysis module judges whether to be optimized this network data flow, network detection module is surveyed for the data flow of needs optimization again, result of detection analysis module is determined an optimization operator access interface afterwards, thereby described dns server and the routing device of last Configuration Manager configuration realized the optimizing data stream that multi-operator accesses.Utilize the optimizing data stream device and method of realizing multi-operator access in LAN of the present invention, can select the ISP access interface of switching performance the best as application ISP, realize data flow Automatic Optimal, meanwhile, because optimizing data stream device of the present invention side is connected in LAN, thereby avoided becoming the unfavorable factor of LAN operation stability, effectively ensure the monolithic stability of LAN operation, and apparatus structure of the present invention is simple, and method is easy, application cost is comparatively cheap.
Embodiment
In order more clearly to understand technology contents of the present invention, describe in detail especially exemplified by following examples.
Refer to shown in Fig. 2, for realizing the structural representation of optimizing data stream device of multi-operator access in LAN of the present invention.
In one embodiment, the optimizing data stream device of realizing multi-operator access in this LAN comprises the flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that are linked in sequence, described flow collection module connects respectively dns server outside this optimizing data stream device and the network interface of routing device, and described Configuration Manager connects respectively described dns server and the configuration management interface of routing device.
In one more preferably in execution mode, described device also comprises that DNS optimizes module and route optimization module, described Configuration Manager is optimized module by described DNS and is connected described dns server, and connects described routing device by described route optimization module.
In a kind of further preferred embodiment, described device also comprises configuration backup module, and described configuration backup module connects described Configuration Manager, and connects dns server and the routing device outside this optimizing data stream device.
One 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 respectively described dns server Configuration Manager and SNMP interface module, the DNS of described optimizing data stream device optimizes module and 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 LAN.In one embodiment, as shown in Figure 3, the method comprises the following 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 to be optimized this network data flow, if desired enters step (3), if do not need, returns to step (1);
(3) described network detection module is surveyed multiple 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 optimization port;
(5) described Configuration Manager reconfigures described dns server and routing device according to definite optimization operator access interface.
One preferred embodiment in, described step (1) specifically comprises the following steps:
(11) flow collection module obtains network packet from the network interface of dns server and routing device;
(12) packet information of the network packet described in flow collection module stores;
(13) stored packet information is sent to described flow analysis module by flow collection module.
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 comprises the following steps:
(21) the local area network (LAN) external equipment IP address described in described flow analysis module analysis, whether for optimizing address, if so, enters step (22), if not, enters step (3);
(22) whether the optimum results of described this local area network (LAN) external equipment IP address of flow analysis module analysis is expired, if so, enters step (3), if not, returns to step (1).
Described step (3) specifically comprises the following steps:
(31) described network detection module judges whether to survey all operator's access interface, if so, enters step (36), if not, enters 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 to step (31);
(34) result of detection that comprises each operator access interface switching performance parameter is sent to described result of detection analysis module by described network detection module.
Wherein, described switching performance parameter connects time delay, connects packet loss, connects shake and be connected number of retries.
Described step (4) specifically refers to: whether described result of detection analysis module has consistency, user priority definition and the switching performance to switching performance according to the result of detection of whether complete, the each switching performance parameter of operator's access interface result of detection is selected operator's access interface as optimization port to the influence degree of network service.
And described step (5) specifically refers to: described Configuration Manager, by sending configuration-direct to described dns server and routing device, guides to described optimization operator access interface by routing device to the route of certain local area network (LAN) outside ip address; And the request of local area network (LAN) external reference is guided to described optimization operator access interface.
In the preferred execution mode of one, the optimizing data stream device of realizing multi-operator access in described LAN also comprises configuration backup module, described configuration backup module connects described Configuration Manager, and the described multi-operator incoming data stream optimization method of realizing in LAN is further comprising the steps of afterwards in described step (5):
(6) configuration information of described dns server and routing device is sent to described configuration backup module storage by described Configuration Manager.
In an application of the invention, in LAN of the present invention, realize the data interaction between the inner and local area network (LAN) outside of the optimizing data stream device real-time collecting local area network (LAN) of multi-operator access, set up and safeguard the network information database of a high granularity; Regularly from database, gather the IP address of carrying out data interaction in the past period with local area network (LAN) inside, and according to certain strategy, these external IP are sorted, the priority that ordering strategy can be surveyed according to system is set; This device is regularly surveyed external IP, and according to the ISP interface of certain policy selection optimum, the optimization configuring for optimization and the DNS of routing configuration from now on provides data foundation; This device regularly gathers the configuration of related route apparatus and DNS equipment, and produces corresponding configuration change instruction according to up-to-date result of detection, and this device can regularly send to dependent instruction routing device and DNS equipment; Simultaneity factor can back up each relevant configuration, to the configuration of routing device and DNS equipment is carried out to rollback.
The optimizing data stream device of realizing multi-operator access in this LAN specifically comprises following part:
1, flow collection module, it is responsible for all network packet that obtain from the associated nets port mirror image of DNS network interface and related route apparatus to collect.This module is the network packet collection module of a high speed, needs to preserve the relevant information (can be with database, the forms such as file are preserved) in 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, the port of external equipment, packet adopt three layers and above protocol type, and with protocol-dependent out of Memory.
2, flow analysis module, it is responsible for being processed by the network flow data of flow collection module stores.As shown in Figure 4, first it judge whether outside ip address once did active probe and produced optimum results to the whole handling process of this module; If do not cross optimum results for this external IP address generate, carry out subsequent probe; If this device is crossed optimum results to this external IP address generate, judge what whether this optimum results carried out before the ageing time setting, if optimum results is before expired, re-start survey with optimize, if do not have expired; no longer surveys with optimization.
3, network detection module, it is responsible for the IP address that goes out according to flow analysis module analysis and relevant information is surveyed.As shown in Figure 5, it is mainly according to outside ip address to outside detection to the whole handling process of this module, and the switching performance of the related service on this address is assessed.This module need to all attempt connecting one time from multiple ISP outlets, and the switching performance relevant parameter finally generating is preserved, for 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 etc.In this module, whether the result of no matter surveying on certain ISP interface is successful, all its result will be saved in result of detection, to analyzed by result of detection analysis module.
4, result of detection analysis module, its result of being responsible for detecting module to survey is analyzed.Whether whether the factor that this module need to consider 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 priority definition of user to switching performance; Switching performance influence degree to network service etc.Based on above all kinds of factors, form one and support that user has certain self-defined authority, and the selection mechanism that can utilize this device automatically to realize.In the result that finally each ISP interface that certain IP is carried out can be surveyed, select an optimum ISP interface.
5, Configuration Manager, its result analyzing according to 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 of coming from outside is guided to the ISP interface of switching performance the best.Configuration Manager is also responsible for sending the regularly back-up job to routing device and dns server relevant configuration simultaneously.
6, configuration backup administration module, its relevant configuration by routing device and dns server backs up, and can carry out preservation and the comparison of relevant configuration file, and whether actual disposition file that simultaneously also can supervisory control system meets the result that system is optimized.
7, route optimization module, the configuration change directive that this module is responsible for Configuration Manager to generate sends to corresponding routing device, change directive can be realized by various ways, also can realize by various communication interfaces accordingly, what in Fig. 2, represent is the example of realizing routing configuration function with SNMP communication interface.Route change instruction also can directly be signed in to by the mode of telnet the configuration operation of the enterprising line correlation route of router by system; If what router adopted is BGP route, this optimization device also can be by sending the corresponding route of BGP instruction modification.
8, DNS optimizes module, and the DNS configuration-direct that this module generates Configuration Manager sends on corresponding dns server.In Fig. 2, only list an example of realizing by the mode of the Agent on dns server.DNS optimizes module also can carry out relevant configuration by the interface of concrete DNS software development.
9, DNS Configuration Manager, this module is mainly not provide the dns server of external management interface and the module developed for some, this module operates on dns server with agency's form, revises DNS service configuration by accepting the instruction that flow optimization system sends.
As shown in Figure 6, for utilizing the many ISP accesses of the optimizing data stream device and method moral local area network (LAN) schematic diagram of realizing multi-operator access in LAN of the present invention, dns server after configuration modification, when external user sends access internal web server request 1. time, can be forwarded to domain name mapping by the dns server of optimization device control of the present invention and resolve 2. through its local dns server; This dns server utilizes method provided by the present invention to judge that the external IP of current accessed is through the combination property optimum of which ISP interface, Web server corresponding outside ip address on this ISP interface can be returned to user's dns resolution server 3., 4. user has just obtained the IP address that can conduct interviews with the fastest speed thus.
Adopt the optimizing data stream device and method of realizing multi-operator access in the LAN of this invention, this device comprises the flow collection module, flow analysis module, network detection module, result of detection analysis module and the Configuration Manager that are linked in sequence, described flow collection module connects respectively dns server outside this optimizing data stream device and the network interface of routing device, and described Configuration Manager connects respectively described dns server and the configuration management interface of routing device.In the method, first flow collection module obtains network data flow, then flow analysis module judges whether to be optimized this network data flow, network detection module is surveyed for the data flow of needs optimization again, result of detection analysis module is determined an optimization operator access interface afterwards, thereby described dns server and the routing device of last Configuration Manager configuration realized the optimizing data stream that multi-operator accesses.Utilize the optimizing data stream device and method of realizing multi-operator access in LAN of the present invention, can select the ISP access interface of switching performance the best as application ISP, realize data flow Automatic Optimal, meanwhile, because optimizing data stream device of the present invention side is connected in LAN, thereby avoided becoming the unfavorable factor of LAN operation stability, effectively ensure the monolithic stability of LAN operation, and apparatus structure of the present invention is simple, and method is easy, application cost is comparatively cheap.
In this specification, the present invention is described with reference to its specific embodiment.But, still can make various amendments 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.