Summary of the invention
The invention provides a kind of network quality appraisal procedure, Apparatus and system, to solve the problems such as poor expandability that existing scheme exists.
For this reason, the embodiment of the invention adopts following technical scheme:
A kind of network quality appraisal procedure comprises: enable MPLS VPN function in described network, and open two test VPN:VPN1 and VPN2; Wherein, only the source node in described network is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set; The VPN1 of each node and the route of VPN2 are planned, and each node is preserved VPN1 of self and the routing table of VPN2; The initial testing stream that source node sends detector is transmitted to destination node according to self routing table, and destination node flows loopback to described source node according to self routing table with final test; Described source node offers the collection analysis center with final test stream, and described collection analysis center is analyzed described final test stream with the initial testing stream of preserving in advance, utilize and analyze the data assessment network quality.
Adopt dividing the subnet mode realizes described the VPN1 of each node and the route of VPN2 being planned.
Adopt and not divide the subnet mode and realize described the VPN1 of each node and the route of VPN2 being planned.
Described network is Star Network, mesh network or heterogeneous network.
A kind of network quality apparatus for evaluating enables MPLS VPN function in the described network, and opens two test VPN:VPN1 and VPN2; Wherein, only the source node in described network is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set; Described device is positioned at described source node side, comprising: initial testing circulation bill unit, and the routing table that the initial testing stream that is used for that detector is sent is preserved in advance according to self is transmitted to destination node; Final test stream receives and retransmission unit, is used to receive the final test stream from the destination node loopback; , and the circulation of described final test issued the collection analysis center.
Described network is Star Network, mesh network or heterogeneous network.
A kind of network quality apparatus for evaluating enables MPLS VPN function in the described network, and opens two test VPN:VPN1 and VPN2; Wherein, only the source node in described network is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set; Described device is positioned at described destination node side, comprising: initial testing stream receiving element is used for the reception sources node and transmits the initial testing stream that sends from detector; Final test stream transmitting element, the routing table that is used for preserving in advance according to self flows loopback to described source node with final test.
Described network is Star Network, mesh network or heterogeneous network.
A kind of network quality evaluating system comprises source node, destination node, detector and collection analysis center, enables MPLS VPN function in the described network, and opens two test VPN:VPN1 and VPN2; Wherein, only the source node in described network is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set; Described source node, the initial testing that is used for that detector is sent flow according to self routing table and are transmitted to destination node; Described destination node is used for according to self routing table final test being flowed loopback to described source node; Described collection analysis center is used for final test stream that described source node is provided and the initial testing stream of preserving in advance and analyses and compares, and utilizes the data assessment network quality of analysing and comparing.
Described source node comprises: initial testing circulation bill unit, and the routing table that the initial testing stream that is used for that detector is sent is preserved in advance according to self is transmitted to destination node; Final test stream receives and retransmission unit, is used to receive the final test stream from the destination node loopback; , and the circulation of described final test issued the collection analysis center; Described destination node comprises: initial testing stream receiving element is used for the reception sources node and transmits the initial testing stream that sends from detector; Final test stream transmitting element, the routing table that is used for preserving in advance according to self flows loopback to described source node with final test.
Described network is Star Network, mesh network or heterogeneous network.
As seen, the present invention adopts a bit or partial points is disposed the scheme that detector, other node are taked " MPLS VPN loopback technology ", and the quantity of detector and network node quantity are irrelevant, and therefore extensibility of the present invention is strong, management is simple, cost is low.
In addition, the present invention is applicable to diverse network structures such as star-like, netted, mixing.Under the Star Network structure, only need to dispose detector at Centroid, far-end need not to dispose detector, and detector quantity and distant-end node quantity are irrelevant; Under mesh network topology, also comparable prior art reduces half detector quantity.
Embodiment
The present invention adopts MPLS (Multi-Protocol Label Switch, multiprotocol label is transmitted) VPN (Virtual Private Network, virtual private networks) loopback technology to realize the network quality test, can effectively reduce detector quantity, and extensibility is good.
MPLS is the IP backbone cross winding dehorn standard of new generation that is proposed by IETF, is a kind of IP over ATM (Asynchronous Transfer Mode, asynchronous transfer mode) technology of integrated form.It has merged the advantage of flexibility of IP route technology and ATM terseness, introduced the connection-oriented attribute of MPLS in connectionless IP network, provides the label that the is similar to virtual circuit reciprocal exchange of business.
Participate in Fig. 3, be MPLS VPN networking schematic diagram.MPLS VPN comprises three types router: ce router, pe router and P router.Wherein, ce router is a client router, is provided to the connection of pe router for the user; Pe router is a provider edge router, the tag edge router (LER) in the MPLS network just, it will be transmitted after the VPN data processing from ce router or label switched path (LSP) according to the routing iinformation of depositing, and be responsible for simultaneously and other pe router exchanging routing informations; The P router is the carrier network backbone router, the LSR (LSR) in the MPLS network just, it carries out transparent forwarding according to the outer layer label of grouping to the VPN data, and the P router only is maintained into the routing iinformation of pe router and does not safeguard the routing iinformation that VPN is relevant.Whether participate in client's route according to pe router, MPLS VPN is divided into three layers of MPLS VPN and two layers of MPLS VPN.Wherein three layers of MPLS VPN use BGP (Border Gateway Protocol, Border Gateway Protocol) distributing routing information between pe router, use the MPLS technology to transmit data between the VPN website, thereby are called BGP/MPLS VPN again.
Participate in Fig. 4, adopt the system schematic of the Star Network quality evaluation of MPLS VPN loopback technology realization for the present invention.With Fig. 4 is example, disposes detector at node 1, and detector sends n group test stream (source IP address 1-1, the purpose IP address 2-1 of test stream 1 according to different source IP addresss, various objectives IP address; Source IP address 1-2, the purpose IP address 2-2 of test stream 2; ...; Source IP address 1-n, the purpose IP address 2-n of test stream n), node 2 is provided with " MPLS VPN loopback " function to node 6, the test stream 1 that assurance is initiated from node 1 detector through node 2, test stream 2 through nodes 3 ..., test stream n turns back to node 1 detector through node n+1, node 1 detector is issued acquisition analysis system to test result, by the test stream that existing certain algorithm contrast is sent and received, realize monitoring and assessment to network quality.
Participate in Fig. 5, be network quality appraisal procedure flow chart of the present invention, comprising:
S501: in network to be tested, enable MPLS VPN function, and open two test VPN:VPN1 and VPN2; Wherein, the source node in network to be tested is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set;
S502: the VPN1 of each node and the route of VPN2 are planned, and each node is preserved VPN1 of self and the routing table of VPN2;
S503: the initial testing stream that source node sends detector is transmitted to destination node according to the routing table of self preserving, and destination node flows loopback to described source node according to self routing table with final test;
S504: source node offers the collection analysis center with final test stream, and final test stream and the initial testing stream of preserving are in advance analyzed in the collection analysis center, utilizes and analyzes the data assessment network quality.
Those skilled in the art understand, and network constitutes shape according to it can be divided into Star Network, mesh network, and the heterogeneous network of star-like and netted combination, is that example describes in detail to the inventive method embodiment with Star Network among Fig. 4 at first below.
1, VPN planning
In tested network, dispose MPLS VPN function, and open 2 test VPN:VPN1 and VPN2.
At source node 1, the different physical ports of detector access node 1 router, as port one-1 and port one-2: port one-1 belongs to VPN1, and port one-2 belongs to VPN2; At other destination nodes (node 2~node 6), first port (the port 4-1 of the port 2-1 of node 2, the port 3-1 of node 3, node 4, the port 5-1 of node 5, the port 6-1 of node 6) separately is planned for VPN1, second port (the port 4-2 of the port 2-2 of node 2, the port 3-2 of node 3, node 4, the port 5-2 of node 5, the port 6-2 of node 6) separately is planned for VPN2, and two two ports connections that adhere to VPN1 and VPN2 separately of destination node, that is, enable the MPLS VPN loop fuction of destination node.
The VPN program results of system shown in Figure 4 is participated in table 1:
Table 1
Network node |
The VPN1 port |
The VPN2 port |
Node 1 |
Port one-1 |
Port one-2 |
Node 2 |
Port 2-1 |
Port 2-2 |
??...... |
??...... |
??...... |
Node 6 |
Port 6-1 |
Port 6-2 |
2, route planning
Comparatively common route planning comprises dual mode, and mode 1 is to adopt " division subnet " to realize, mode 2 is to adopt " not dividing subnet " to realize, the planning of mode 2 addresses is simpler.
Introduce respectively below.
(2.1) planning mode 1
Node 1 port one-1, VPN1 planning IP network section 1-1 are to IP network section 1-n (n represents number of links), and port one-2, VPN2 planning IP network section 2-1 are to IP network section 2-n (n represents number of links).
Planning signal table is participated in table 2:
Table 2
The VPN title |
Port numbering |
Planning IP network section |
??VPN1 |
Port one-1 |
IP network section 1-1,1-2 ..., 1-n |
The VPN title |
Port numbering |
Planning IP network section |
??VPN2 |
Port one-2 |
IP network section 2-1,2-2 ..., 2-n |
On node 1 router, IP network section 1-1 to the route of IP network section 1-n be published to VPN1, IP network section 2-1 is published to VPN2 to the route of IP network section 2-n, other destination node routers VPN1 learns IP network section 1-1 and learns the route of IP network section 2-1 to 2-n to route, the VPN2 of 1-n, and route next jump all points to node 1 router.
Be communicated with route between IP network section 1-1 and IP network section 2-1 between node 2 router VPN1, VPN2, a kind of implementation is to move static routing protocol (another kind of implementation is to move dynamic routing protocol between loopback link at VPN1, VPN2) between the loopback link of VPN1, VPN2, the static routing, the route next jump that are configured to IP network section 2-1 in VPN1 point to port 2-2, and this route is published to VPN1; The static routing, the route next jump that are configured to IP subnet section 1-1 in VPN2 point to port 2-1, and this route is published to VPN2.The route planning of other destination nodes and node 2 are similar, repeat no more.Thus, participate in table 3~6, be respectively node 1, node 2, node 3 ..., the local VPN1 of node n, VPN2 routing table.
Table 3 (the local VPN1 of node 1, VPN2 routing table)
Table 4 (the local VPN1 of node 2, VPN2 routing table)
The VPN title |
Purpose IP network section |
Route next jump |
??VPN1 |
IP network section 2-1 |
Port 2-2 |
??VPN2 |
IP network section 1-1 |
Port 2-1 |
Table 5 (the local VPN1 of node 3, VPN2 routing table)
The VPN title |
Purpose IP network section |
Route next jump |
??VPN1 |
IP network section 2-2 |
Port 3-2 |
??VPN2 |
IP network section 1-2 |
Port 3-1 |
Table 6 (the local VPN1 of node n, VPN2 routing table)
The VPN title |
Purpose IP network section |
Route next jump |
??VPN1 |
IP network section 2-n |
Port n-2 |
??VPN2 |
IP network section 1-n |
Port n-1 |
(2.2) planning mode 2
In node 1 router port 1-1, VPN planning IP network section 1, comprise IP subnet section 1-1 to IP subnet section 1-n (n represents link), port one-2, VPN2 planning IP network section 2 comprise that IP subnet section 2-1 is to IP network section 2-n (n represents link).
Planning signal table is participated in table 7:
Table 7
The VPN title |
Port numbering |
The IP network section |
IP subnet section |
??VPN1 |
Port one-1 |
IP network section 1 |
IP subnet section 1-1,1-2 ..., 1-n |
??VPN2 |
Port one-2 |
IP network section 2 |
IP subnet section 2-1,2-2 ..., 2-n |
On node 1 router IP network section 1 route be published to VPN1, IP network section 2 routes are published to VPN2, route, the VPN2 that node 2 is learnt IP network section 1 to node n router VPN1 learns the route of IP network section 2, route next jump all points to node 1 router.
Be communicated with route between IP subnet section 1-1 and IP subnet section 2-1 between node 2 router VPN1, VPN2, a kind of implementation is to move static routing protocol (page or leaf can move dynamic routing protocol) between the cheer link of VPN1, VPN2, the static routing, the route next jump that are configured to IP network section 2-1 in VPN1 point to port 2-2, and this route is published to VPN1; The static routing, the route next jump that are configured to IP subnet section 1-1 in VPN2 point to port 2-1, and this route is published to VPN2.
Thus, participate in table 8~11, be respectively node 1, node 2, node 3 ..., the local VPN1 of node n, VPN2 routing table.
Table 8 (the local VPN1 of node 1, VPN2 routing table)
Table 9 (the local VPN1 of node 2, VPN2 routing table)
The VPN title |
Purpose IP network section |
Route next jump |
??VPN1 |
IP subnet section 2-1 |
Port 2-2 |
??VPN2 |
IP subnet section 1-1 |
Port 2-1 |
Table 10 (the local VPN1 of node 3, VPN2 routing table)
The VPN title |
Purpose IP network section |
Route next jump |
??VPN1 |
IP subnet section 2-2 |
Port 3-2 |
??VPN2 |
IP subnet section 1-2 |
Port 3-1 |
Table 11 (the local VPN1 of node n, VPN2 routing table)
The VPN title |
Purpose IP network section |
Route next jump |
??VPN1 |
IP subnet section 2-n |
Port n-2 |
??VPN2 |
IP subnet section 1-n |
Port n-1 |
3, test stream planning
For each bar test stream, node 1 detector is chosen the source IP address (as IP address 1-1) that flow as test certain the IP address among IP network section 1-n or the IP subnet section 1-n, chooses the purpose IP address (as IP address 2-1) that flow as test certain the IP address among IP network section 2-n or the IP subnet section 2-n.
Node 1 detector is initiated the test path example signal table of test stream and is participated in table 12.
Table 12
Test stream |
Test path |
Source IP address |
Purpose IP address |
Test stream 1 |
Node 1-node 2 |
IP address 1-1 |
IP address 2-1 |
Test stream 2 |
Node 1-node 3 |
IP address 1-2 |
IP address 2-2 |
??...... |
??...... |
??....... |
??...... |
Test stream n |
Node 1-node n |
IP address 1-n |
IP address 2-n |
With test stream 1 is example, node 1 detector is initiated " initial testing stream ", the local VPN1 routing table (table 3 or table 8) of node 1 query router, destination address is that the data of IP address 2-1 are forwarded to node 2 routers, the local VPN1 routing table (table 4 or table 9) of node 2 query routers, destination address is the port 2-2 that the data of IP address 2-1 are forwarded to node 2 routers, data enter VPN2, the local VPN2 routing table (table 4 or table 9) of node 2 query routers, destination address is that the data of IP address 2-1 are forwarded to node 1 router, node 1 query router local routing table (table 3 or table 8), this " final test stream " is issued node 1 detector, thereby finish the test of node 1 to node 2, then, detector offers the collection analysis center with initial testing stream and final test stream, the collection analysis center adopts certain algorithm that initial testing stream and final test stream are compared, analyze, utilize the analysis data to come network quality is assessed.In like manner, the test process of test stream 2~n is similar with the test process of test stream 1, repeats no more herein.
Participate in Fig. 6, be network structure network quality evaluating system schematic diagram, wherein, for node 1~4, only need on as the node 1 of source node, node 3, detector to be set, need not to be provided with detector, need to start MPLS VPN loop fuction at node 2, node 4 as destination node, thereby can make test stream be looped back to source node, finish network test.
Corresponding with said method, the present invention also provides network quality apparatus for evaluating and system.
Participate in Fig. 7, comprise the device internal structure schematic diagram that is positioned at the source node side provided by the invention.This device can be meant source node equipment itself, also can be the functional entity that is positioned at source node inside, can be realized by hardware, software is realized or software and hardware combining realizes.
Network for using this device need enable MPLS VPN function, and opens two test VPN:VPN1 and VPN2; Wherein, only the source node in described network is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set.
Wherein, network is Star Network, mesh network or heterogeneous network.
As shown in Figure 7, this device comprises:
Initial testing circulation bill unit 701, the routing table that the initial testing stream that is used for that detector is sent is preserved in advance according to self is transmitted to destination node;
Final test stream receives and retransmission unit 702, is used to receive the final test stream from the destination node loopback; , and the circulation of described final test issued the collection analysis center.
Participate in Fig. 7 more clearly, comprise the device internal structure schematic diagram that is positioned at the destination node side provided by the invention.This device can be meant destination node equipment itself, also can be the functional entity that is positioned at destination node inside, can be realized by hardware, software is realized or software and hardware combining realizes.
Network for using this device need enable MPLS VPN function, and opens two test VPN:VPN1 and VPN2; Wherein, only the source node in described network is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set.
Wherein, network is Star Network, mesh network or heterogeneous network.
As shown in Figure 7, this device that is positioned at destination node comprises:
Initial testing stream receiving element 801 is used for the reception sources node and transmits the initial testing stream that sends from detector;
Final test stream transmitting element 802, the routing table that is used for preserving in advance according to self flows loopback to described source node with final test.
Network quality evaluating system provided by the invention comprises source node, destination node, detector and collection analysis center.Described network comprises Star Network, mesh network or heterogeneous network.
Especially, enable MPLS VPN function in the described network, and open two test VPN:VPN1 and VPN2; Wherein, only the source node in described network is provided with detector, enables MPLS VPN loop fuction on the destination node that detector is not set.
Wherein,
Described source node, the initial testing that is used for that detector is sent flow according to self routing table and are transmitted to destination node;
Described destination node is used for according to self routing table final test being flowed loopback to described source node;
Described collection analysis center is used for final test stream that described source node is provided and the initial testing stream of preserving in advance and analyses and compares, and utilizes the data assessment network quality of analysing and comparing.
For source node, its inside comprises (participation Fig. 7):
Initial testing circulation bill unit 701, the routing table that the initial testing stream that is used for that detector is sent is preserved in advance according to self is transmitted to destination node;
Final test stream receives and retransmission unit 702, is used to receive the final test stream from the destination node loopback; , and the circulation of described final test issued the collection analysis center;
For destination node, its inside comprises (participation Fig. 7):
Initial testing stream receiving element 801 is used for the reception sources node and transmits the initial testing stream that sends from detector;
Final test stream transmitting element 802, the routing table that is used for preserving in advance according to self flows loopback to described source node with final test.
As seen, the present invention adopts a bit or partial points is disposed the scheme that detector, other node are taked " MPLS VPN loopback technology ", and the quantity of detector and network node quantity are irrelevant, and therefore extensibility of the present invention is strong, management is simple, cost is low.
In addition, the present invention is applicable to diverse network structures such as star-like, netted, mixing.Under the Star Network structure, only need to dispose detector at Centroid, distant-end node need not to dispose detector, and detector quantity and distant-end node quantity are irrelevant; Under mesh network topology, also comparable prior art reduces half detector quantity.
One of ordinary skill in the art will appreciate that, the process of the method for realization the foregoing description can be finished by the relevant hardware of program command, described program can be stored in the read/write memory medium, and this program is carried out the corresponding step in the said method when carrying out.Described storage medium can be as ROM/RAM, magnetic disc, CD etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.