Network equipment multicast performance measuring method and system
Technical field
The present invention relates to the multicasting technology of data communication field, particularly a kind of network equipment multicast performance measuring method and system.
Background technology
Multicast is a kind of point-to-multipoint communications mode in communication network, and host of data sources only needs to send a data, just can send multiple user to simultaneously, realize the efficient data transfer of network.Multicast is suitable for multi-party video/voice conferencing, Web TV program request, large-scale network game etc., obviously can save bandwidth.
The agreement that current multicast is conventional is PIM (Protocol Independent Multicast) and IGMP (Internet GroupManagement Protocol).Wherein IGMP is igmpinternet, and that is responsible for recording user submission adds multicast group request, thus learns which user needs multicast services.PIM is Routing Protocol, is responsible for forwarding multicasting business datum, by the cooperation with IGMP agreement, and the transmission of finishing service data from source host to user.
When testing the network equipment of a support multicast functionality, need the performance paying close attention to multi-cast business data forwarding, as maximum throughput etc.In daily test, use test instrument comes emulating server and user's also difference connection device.Server end sends multi-cast business data towards equipment, and user side uses IGMP notice of settlement equipment to wish to receive this business datum, thus reaches forwarding.Afterwards, whether the business datum that tester can compare server transmission is all received by user, if all received, tester increases packet sending speed and continues to compare again, until arrive the critical point that can not forward completely, thus draws maximum throughput test result.
But conventionally test way has an obvious bottleneck.A port of a tester port connection device, that tester port gives out a contract for a project/and the speed of packet receiving can not more than the maximum bandwidth of a device port, and the maximum throughput ability of this bandwidth value often from complete machine is also far, so a small amount of tester port can not meet performance test.In order to reach test purpose, often can only by multiple tester port.Rely on the multiple port of multiple tester port connection device and give out a contract for a project to equipment simultaneously, reaching the object increasing throughput.
Can find out, the demand of conventional methods to tester port is larger.On the one hand, if buy as far as possible many tester ports to need no small input, and test utilance is not high yet.On the other hand, if tester port just meets needed for daily test, enough vacant tester port can be can not find again when testing multicast forwarding performance, needing many time coordinations, the work of other tester may be affected.If multiple tester has the needs of performance test simultaneously, the possibility coordinating enough testers can be lower.
Be the main weak point of existing multicast performance measuring method to the wilderness demand of tester port, while being inconvenient to coordinate port, also reduce operating efficiency.
Summary of the invention
The object of the invention is, a kind of network equipment multicast performance measuring method is provided, only need a pair test port just can carry out the test of complete machine multicast forwarding throughput performance.
For achieving the above object, the technical solution used in the present invention is, network equipment multicast performance measuring method, comprises the following steps:
A, the first tester port connect equipment under test head end mouth;
All the other ports of b, equipment under test between two one group link together;
C, the second tester port connect equipment under test tail end mouth;
D, establishment n three layer interfaces, and draw in individual three layer interfaces of described n by corresponding respectively for equipment under test all of the port; Described n is even number, n >=4;
E, configuration VRF instance three layer interfaces are divided in VRF, from described equipment under test head end mouth, every two ports are divided in a VRF;
F, be three layer interface configuration of IP address and multicast protocols;
G, be flux of multicast outlet configuring static multicast group.
Further, described step e is specially: create n/2 VRF instance, and a pair division between two of described three layer interfaces is allocated to the VRF instance of establishment, and odd number three layer interface is traffic ingress, and even number three layer interface is flowexit.
Further, in described step f during configuration of IP address, be specially: odd number three layer interface uses the IP address of the same network segment and do not conflict with even number three layer interface IP address.
Further, when configuring multicast protocol in described step f, all three layer interfaces are all configured to Passive Mode.
Concrete, described step g is specially, and even number three layer interface is configured to static multicast groups.
Concrete, described method of testing also comprises step:
H, the first tester port analog are multicast server, send multi-cast business data to described equipment under test head end mouth.
Another object of the present invention, provides a kind of network equipment multicast performance measuring system, comprises equipment under test, the first tester, the second tester and test console, described first tester be connected described equipment under test head end mouth; All the other ports of described equipment under test between two one group link together; Described second tester port connects described equipment under test tail end mouth;
Described test console, for creating n three layer interfaces at described equipment under test, and draws in described n three layer interfaces by corresponding respectively for equipment under test all of the port; Described n is even number, n >=4; Three layer interfaces are also divided in VRF by configuration VRF instance, and from described equipment under test head end mouth, every two ports are divided in a VRF; Be three layer interface configuration of IP address and multicast protocols; For flux of multicast outlet configuring static multicast group.
Further, described test console also for: on described equipment under test, create n/2 VRF instance, a pair division between two of described three layer interfaces is allocated to the VRF instance of establishment, and odd number three layer interface is traffic ingress, and even number three layer interface is flowexit.
Further, described test console also for: configuration multicast protocol time, all three layer interfaces are all configured to Passive Mode; Described test console also for, when the three layer interface configuration of IP address for equipment under test, odd number three layer interface uses the IP address of the same network segment and does not conflict with even number three layer interface IP address.
Concrete, described first tester port analog is multicast server, for sending multi-cast business data to described equipment under test head end mouth.
The invention has the beneficial effects as follows, utilize the feature of multicast and other correlation function, the work completed by most of tester port, by equipment autodigestion, can be finished the work with a small amount of tester port, also save the more time when building and remove test environment.On the other hand, each port of equipment has also been covered in this invention, so also achieve the object that test port is fully loaded with multicast forwarding ability.
Accompanying drawing explanation
Fig. 1 is the environment topology figure of the method for testing of the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, describe technical scheme of the present invention in detail.
Embodiment
Fig. 1 is the environment topology figure of method of testing of the present invention, and for 8 port devices in figure, concrete method of testing flow process is as follows:
1, the first tester end and the second test port connection device head and the tail two ports P1, P8 respectively.
2, netting twine all the other interfaces on connection device are between two used: P2-P3, P4-P5, P6-P7.
3, three layer interfaces are configured.Create 8 three layer interface IF1-IF8, and draw corresponding respectively for port P1-P8 in these 8 three layer interfaces.
4, configure VRF (VPN Routing Forwarding, Virtual Private Network routing transmitting example) and three layer interfaces are divided in VRF.VRF is a kind of three layers of forwarding instance, and each VRF similarly is an independently network equipment, and the information such as the route of different VRF are completely independent.Create 4 VRF instances VRF1, VRF2, VRF3, VRF4, IF1, IF2 are allocated to VRF1, IF3, IF4 are allocated to VRF2, IF5, IF6 are allocated to VRF3, IF7, IF8 are allocated to VRF4.Can find out after dividing, from P1, every two ports are divided in a VRF.
5, be three layer interface configuration of IP address and multicast protocols.During configuration of IP address, require that odd number three layer interface IF1, IF3, IF5, IF7 use the IP address (or identical address) of the same network segment, reason is that multicast has a kind of flow inspection system, if receive the source IP address of multicast message and local ip address not at a network segment from multicast source server, multicast packet can be dropped, in this routine method of testing, these four interfaces all simulate direct-connected source server, so all need to be configured to the same network segment with source address, such guarantee test is carried out smoothly.Other four configurable IP addresses legal arbitrarily of even number three layer interface IF2, IF4, IF6, IF8, the network segment that discord IF1, IF3, IF5, IF7 use conflicts.
During configuration multicast protocol (being PIM here), require that total interface is all configured to Passive Mode, avoid the interchange produced between different VRF in agreement.
6, be flux of multicast outlet configuring static multicast group.In this routine method of testing, P2, P4, P6, P8 are used as the outlet of flux of multicast, so three layer interface IF2, IF4, IF6, IF8 belonging to them will configure multicast group.Owing to not having the help of tester, we need configuring static multicast group on these mouths.By this operation, we have simulated the environment of these four interface Connecting groups broadcasting users.
The object of building environment odd-numbered port is modeled as the port connecting multicast source server, even port is modeled as the port of Connecting groups broadcasting user.This is the same with the idea of traditional test methods, but conventional method needs these ports all connecting test instruments, and only needs here at equipment head and the tail port connecting test instrument.
Here is test process and realizes principle:
First tester port analog is multicast server, and send multi-cast business data to equipment, now multicast packet enters into the process range of VRF1.VRF1 can check the multi-cast business data that this part receives from three layer interface IF1, finds there is corresponding static multicast groups at IF2, can think that IF2 is connected to multicast user, so data turned out from IF2, namely turn out from physical port P2.
Port P3 receives multicast packet because of direct-connected with port P2, and data enter into the process range of VRF2 thus.Owing to not having the interchange on multicast protocol between VRF1 and VRF2, VRF2 can think direct-connected as VRF1 certain multicast source server, adds and finds that IF4 has corresponding static multicast groups, so continue flow to turn out from IF4.Whole roadmap is similar to VRF1.
VRF3, VRF4 handling process is similar, and flow proceeds to that IF6 produces, IF7 proceeds to IF8 and produces successively from IF5, finally received by the second tester port, thus complete multicast forwarding flow process.
Whole process can be completed by performance test specific purpose tool, as RFC2544, can obtain a maximum throughput test result.But it is the actual maximum throughput of complete machine not, and because multicast packet has carried out repeatedly producing proceeding on equipment, goodput is multiplied.In this routine method of testing, it is identical with VRF number that multicast packet proceeds to the number of times produced, so the result that final complete machine maximum throughput result is measured by testing tool is multiplied by VRF number.
The embodiment of the present invention also provides a kind of network equipment multicast performance measuring system, comprises equipment under test, the first tester, the second tester and test console, described first tester be connected described equipment under test head end mouth; All the other ports of described equipment under test between two one group link together; Described second tester port connects described equipment under test tail end mouth;
Described test console, for creating n three layer interfaces at described equipment under test, and draws in described n three layer interfaces by corresponding respectively for equipment under test all of the port; Described n is even number, n >=4; Three layer interfaces are also divided in VRF by configuration VRF instance, and from described equipment under test head end mouth, every two ports are divided in a VRF; Be three layer interface configuration of IP address and multicast protocols; For flux of multicast outlet configuring static multicast group.Described test console also for: on described equipment under test, create n/2 VRF instance, a pair division between two of described three layer interfaces is allocated to the VRF instance of establishment, and odd number three layer interface is traffic ingress, and even number three layer interface is flowexit.Described test console also for: configuration multicast protocol time, all three layer interfaces are all configured to Passive Mode; Described test console also for, when the three layer interface configuration of IP address for equipment under test, odd number three layer interface uses the IP address of the same network segment and does not conflict with even number three layer interface IP address.Described first tester port analog is multicast server, for sending multi-cast business data to described equipment under test head end mouth.