CN109167707A - A kind of shunting device test macro, method, apparatus, server and storage medium - Google Patents

A kind of shunting device test macro, method, apparatus, server and storage medium Download PDF

Info

Publication number
CN109167707A
CN109167707A CN201811052568.2A CN201811052568A CN109167707A CN 109167707 A CN109167707 A CN 109167707A CN 201811052568 A CN201811052568 A CN 201811052568A CN 109167707 A CN109167707 A CN 109167707A
Authority
CN
China
Prior art keywords
shunting device
measured
data
interface
network data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811052568.2A
Other languages
Chinese (zh)
Inventor
火莽
火一莽
龚剑
万月亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201811052568.2A priority Critical patent/CN109167707A/en
Publication of CN109167707A publication Critical patent/CN109167707A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Abstract

The embodiment of the invention discloses a kind of shunting device test macro, method, apparatus, server and storage mediums, and the system comprises test equipment, the network equipment, shunting device to be measured and servers;Wherein, test equipment and the network equipment, which are established, is connected to the network, for carrying out upper net operation;The first interface of the network equipment connects Ethernet, and second interface connects the input interface of shunting device to be measured, for providing ethernet environment to test equipment;Second interface is used to receive the image network data of first interface;The output interface of shunting device to be measured is connected with the network interface of server, is filtered for the image network data to shunting device to be measured;Server is used to detect the target network data that shunting device to be measured exports the filtering function to judge shunting device to be measured.The technical solution of the embodiment of the present invention can reduce testing cost, personnel cost and testing time cost, and improve testing efficiency and test flexibility.

Description

A kind of shunting device test macro, method, apparatus, server and storage medium
Technical field
The present embodiments relate to data communications test technical field more particularly to a kind of shunting device test macros, side Method, device, server and storage medium.
Background technique
In recent years, China's broadband network and value-added service using more and more extensive.Telecom operators, value-added service service Quotient, even all kinds of public security organs, require to dispose various shunting devices in private network.Shunting device is according to different agreement spy The condition filters such as other port numbers, IP and condition code go out data required for user.
Shunting device before being put into use, needs to test its filtering function, filtering function normally divides after tested Flow device could really put into live use.When testing shunting device, conventional method using profession make job contract tool or Common its filtering function of software test and performance made packet software and play back message.
In the implementation of the present invention, the discovery prior art has following defects that makes job contract using profession to inventor Tool needs to put into higher hardware cost, and the job contract of making that the environment of on-the-spot test does not have profession usually has.Common makes packet Although the software of software and playback message can carry out on-the-spot test to shunting device, it is unable to satisfy the test work of a large amount of agreements Make, and tester is needed to have deep stock of knowledge, test effect to the interaction between the message structure and agreement of various agreements Rate and test flexibility are lower.
Summary of the invention
The embodiment of the present invention provides a kind of shunting device test macro, method, apparatus, server and storage medium, with full The on-the-spot test demand of sufficient shunting device, realizing reduces hardware cost, personnel cost and testing time cost, and improves shunting and set Standby testing efficiency and test flexibility.
In a first aspect, the embodiment of the invention provides a kind of shunting device test macros, comprising: test equipment, network are set Shunting device and server standby, to be measured;Wherein,
The test equipment and the network equipment, which are established, to be connected to the network, for carrying out upper net operation;
The first interface of the network equipment connects Ethernet, and the input that second interface connects the shunting device to be measured connects Mouthful, for providing ethernet environment to the test equipment;Wherein, the first interface is described for receiving Ethernet data Second interface is used to receive the image network data of the first interface;
The output interface of the shunting device to be measured is connected with the network interface of the server, for setting to the network The standby image network data for being input to the shunting device to be measured are filtered;
The server is used to detect the target network data of the shunting device output to be measured, and according to detection As a result judge whether the filtering function of the shunting device to be measured is normal.
Second aspect, the embodiment of the invention also provides a kind of shunting device test methods, comprising:
Obtain the target network data of the output interface output of shunting device to be measured;Wherein, the target network data are The network data that Ethernet data is formed after the shunting device filtering to be measured;
The target network data are detected, and judge the filtering function of the shunting device to be measured according to testing result Can whether normal.
The third aspect, the embodiment of the invention also provides a kind of shunting device test devices, comprising:
Network data acquisition module, the target network data that the output interface for obtaining shunting device to be measured exports;Its In, the target network data are the network data that Ethernet data is formed after the shunting device filtering to be measured;
Functions of the equipments judgment module for detecting to the target network data, and judges institute according to testing result Whether the filtering function for stating shunting device to be measured is normal.
Fourth aspect, the embodiment of the invention also provides a kind of server, the server includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes shunting device test method provided by any embodiment of the invention.
5th aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program, The program realizes shunting device test method provided by any embodiment of the invention when being executed by processor.
The embodiment of the present invention is by being connected with each other structure for test equipment, the network equipment, shunting device to be measured and server At shunting device test macro, ethernet environment is provided for test equipment by the network equipment, and surf the Internet by test equipment Received Ethernet data, is then mirrored to the input interface of shunting device to be measured, shunting to be measured is set by operation by the network equipment It is standby the image network data that the network equipment is input to shunting device to be measured are filtered after obtain target network data and export The target network data that shunting device to be measured exports are detected to output interface, then by server, and according to testing result Judge whether the filtering function of the shunting device to be measured is normal, to meet the on-the-spot test demand of shunting device, solves existing The high problem of testing cost present in shunting device measuring technology reduces hardware cost, personnel cost and testing time cost, And improve testing efficiency and the test flexibility of shunting device.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram for shunting device test macro that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of shunting device test method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of schematic diagram for shunting device test device that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, It is that many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again It arranges.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing. The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of schematic diagram for shunting device test macro that the embodiment of the present invention one provides, which surveys The structure of test system includes: test equipment 10, the network equipment 20, shunting device to be measured 30 and server 40;Wherein,
Test equipment 10 and the network equipment 20, which are established, to be connected to the network, for carrying out upper net operation;The first of the network equipment 20 Interface connects Ethernet, and second interface connects the input interface of shunting device 30 to be measured, for providing ether to test equipment 10 Net environment;Wherein, first interface is used to receive the image network of the first interface for receiving Ethernet data, second interface Data;The output interface of shunting device 30 to be measured is connected with the network interface of server 40, for being input to the network equipment 20 The image network data of shunting device 30 to be measured are filtered;Server 40 is used for the target network exported to shunting device 30 to be measured Network data are detected, and judge whether the filtering function of shunting device 30 to be measured is normal according to testing result.
Wherein, test equipment 10 can be computer equipment or terminal for carrying out upper net operation etc., such as PC (Personal Computer, personal computer) machine, smart phone or tablet computer etc., it is any to carry out net operation Equipment can be used as test equipment 10, and the embodiment of the present invention is to this and is not limited.The network equipment 20 is for test equipment 10 provide the equipment of ethernet environment, such as router or interchanger, connect Ethernet by network interface, that is, first interface, To support test equipment 10 to carry out net operation.The second interface of the network equipment 20 can be the connection of the network equipment 20, and other set Standby either interface, such as Lan mouthfuls of local area network of router.Image network data can be the input of 20 first interface of the network equipment Mirror image data corresponding with the network data of output.Target network data can be 30 output interface of shunting device output to be measured Network data.Shunting device 30 to be measured is the shunting device for needing to test filtering function.
As shown in Figure 1, in embodiments of the present invention, wired or nothing can be passed through between test equipment 10 and the network equipment 20 The mode of line establishes network connection, and the first interface of the network equipment 20 connects Ethernet, thus for test equipment 10 provide with Net environment and it is supported to execute upper net operation very much.When test equipment 10 carries out upper net operation, the first interface of the network equipment 20 Place can accordingly generate the network data output and input.The network equipment 20 can connect in first interface configuration mirroring first The data image that mouth is output and input is at the second interface for connecting shunting device 30 to be measured.The input of shunting device 30 to be measured connects Mouth can receive the image network data of 20 second interface of the network equipment, and be filtered to received data, be formed after filtering Target network data exported by output interface.Server 40 receives the target network data that shunting device 30 to be measured exports and goes forward side by side Whether row detection, the filtering function to judge shunting device 30 to be measured according to testing result are normal.It can be seen that of the invention real Apply in example, server 40 received target network data be Ethernet data net for being formed after shunting device to be measured filtering Network data, and Ethernet data is a kind of complicated and diversified field network data.Therefore, it is shunted provided by the embodiment of the present invention Device test system can be applied to on-the-spot test, and need not profession construction message equipment and make packet software and play back message Software etc., do not need tester and be familiar with protocol massages structure and have deep understanding, tester's tool to interaction between agreement The equipment operation technical ability on standby basis.So shunting device test macro provided by the embodiment of the present invention can be effectively reduced Hardware cost, personnel cost and testing time cost, to improve the testing efficiency of shunting device.Meanwhile the embodiment of the present invention Provided shunting device test macro flexibly can freely test all protocol types, to improve the survey of shunting device Try flexibility.
The working principle of shunting device test macro is in the embodiment of the present invention: the network equipment provides ether for test equipment Net environment, and upper net operation is carried out by test equipment, then received Ethernet data is mirrored to by the network equipment to be measured The input interface of shunting device, the image network data that shunting device to be measured is input to shunting device to be measured to the network equipment carry out Target network data are obtained after filtering and are exported to output interface, then the target network exported by server to shunting device to be measured Data are detected, and judge whether the filtering function of the shunting device to be measured is normal according to testing result.
In an alternate embodiment of the present invention where, test equipment 10 is the PC machine with public network IP, and PC machine is on carrying out Online operation data is generated when net operation;The network equipment 20 is switch or router.
In embodiments of the present invention, as shown in Figure 1, test equipment 10 can be the PC machine with public network IP, PC machine into Can produce online operation data on row when net operation, at the same can accordingly occur at the first interface of the network equipment 20 input and The network data of output.The network equipment 20 can be interchanger and router.If the network equipment 20 uses interchanger, test Equipment 10 can establish wired connection with interchanger, and the interface for establishing the interchanger of wired connection can be and second interface property Identical interface.If the network equipment 20 uses router, test equipment 10 can establish wired or wireless company with router It connects, the interface for establishing the router of wired connection can be Wan mouthfuls of wide area network.
In an alternate embodiment of the present invention where, shunting device 30 to be measured is configured by preset configuration sentence to obtain Take configuration data, wherein configuration data includes setting protocol rule and output interface.
Wherein, preset configuration sentence can be the configuration sentence used according to the specific requirements of shunting device 30 to be measured.If Determining protocol rule can be agreement that shunting device 30 to be measured to be followed and matched rule etc., such as agreement can be Icmp (Internet Control Message Protocol, Internet Control Message Protocol) agreement, mail protocol, net Page agreement and remote terminal protocol telnet agreement etc., can specifically be set according to the demand of shunting device 30 to be measured, The embodiment of the present invention is to this and is not limited.Setting protocol rule can be the rule of " IP+ agreement ", i.e., in the agreement of configuration On the basis of filtering settings IP address correspond to the network data of user.Output interface is that the output of output target network data connects Mouthful.
In an alternate embodiment of the present invention where, server 40 according to the target network data of acquisition and configuration data and Online operation data carries out consistency desired result and obtains testing result.
Wherein, online operation data can be the data of the online operational circumstances of reaction test equipment 10.For example, upper net operation Data can be user 222.176.35.5 and open 10 webpages etc..
Correspondingly, after the completion of shunting device 30 to be measured configures, test equipment 10 can both carry out going up accordingly net operation with Generate online operation data.Server 40 can receive target network data.Optionally, server 40 can pass through packet capturing Mode obtain the target network data that shunting device 30 to be measured exports.Wherein, packet capturing can be complete by the packet catcher of profession At, can also pass through corresponding packet capturing instruction complete.After server 40 gets target network data by packet capturing, need mesh Network data online operation data corresponding with the configuration data of shunting device 30 to be measured and test equipment 10 is marked to carry out unanimously Property verification.After verification passes through, show that the filtering function of shunting device 30 to be measured is normal.
The embodiment of the present invention is by being connected with each other structure for test equipment, the network equipment, shunting device to be measured and server At shunting device test macro, ethernet environment is provided for test equipment by the network equipment, and surf the Internet by test equipment Received Ethernet data, is then mirrored to the input interface of shunting device to be measured, shunting to be measured is set by operation by the network equipment It is standby the image network data that the network equipment is input to shunting device to be measured are filtered after obtain target network data and export The target network data that shunting device to be measured exports are detected to output interface, then by server, and according to testing result Judge whether the filtering function of the shunting device to be measured is normal, to meet the on-the-spot test demand of shunting device, solves existing The high problem of testing cost present in shunting device measuring technology reduces hardware cost, personnel cost and testing time cost, And improve testing efficiency and the test flexibility of shunting device.
Embodiment two
Fig. 2 is a kind of flow chart of shunting device test method provided by Embodiment 2 of the present invention, and the present embodiment is applicable The case where testing the filtering function of shunting device on site, this method can be executed by shunting device test device, the device It can be realized, and can be generally integrated in the server by the mode of software and/or hardware, made with shunting device to be measured cooperation With.Correspondingly, as shown in Fig. 2, this method includes following operation:
The target network data that S210, the output interface for obtaining shunting device to be measured export;Wherein, the target network number According to the network data formed after the shunting device filtering to be measured for Ethernet data.
Wherein, shunting device to be measured is the shunting device for needing to test filtering function.Target network data can To be the network data formed after shunting device to be measured is filtered the data of input.In embodiments of the present invention, target network Network data are the network data that Ethernet data is formed after shunting device to be measured filtering.
In embodiments of the present invention, shunting device to be measured can receive the network data for needing to filter from input interface, and The received network data of input interface is filtered to obtain target network data, it is by output interface that target network data are defeated Enter into server.
S220, the target network data are detected, and judges the shunting device to be measured according to testing result Whether filtering function is normal.
Correspondingly, after the target network data that the output interface that server receives shunting device to be measured exports, it can be right Destination data network is detected, to judge whether the filtering function of shunting device to be measured is normal according to testing result.
In an alternate embodiment of the present invention where, the target network data are detected, comprising:
The configuration data and online operation data of the target network data and the shunting device to be measured are carried out consistent Property verifies to obtain the testing result;
Wherein, the online operation data is generated by test equipment;The test equipment and the network equipment establish network company It connects;The network equipment is connected with the shunting device to be measured;The shunting device to be measured passes through described in input interface acquisition The image network data of the network equipment and the target network data exported by the output interface.
Wherein, online operation data can be the data of reaction test equipment online operational circumstances.For example, online operand 10 webpages etc. are opened according to can be user 222.176.35.5.
In embodiments of the present invention, net can be established by wired or wireless mode between test equipment and the network equipment Network connection, and the first interface of the network equipment connects Ethernet, to provide ethernet environment for test equipment and it is supported to hold Net operation on row.Can accordingly be generated when test equipment carries out upper net operation, at the first interface of the network equipment input and it is defeated Network data out.The network equipment can be arrived in first interface configuration mirroring, the data image that first interface is output and input At the second interface for connecting shunting device to be measured.The input interface of shunting device to be measured can receive network equipment second interface Image network data, and received data are filtered, the target network data formed after filtering are exported by output interface.Clothes Business device receives the target network data of shunting device output to be measured and is detected, to judge that shunting to be measured is set according to testing result Whether standby filtering function is normal.
Before testing shunting device to be measured, shunting device to be measured can be carried out by preset configuration sentence first Configuration is to obtain configuration data.After the completion of shunting device to be measured configuration, test equipment can both carry out going up accordingly net operation with Generate online operation data.Server can receive target network data.Optionally, server can pass through the side of packet capturing Formula obtains the target network data of shunting device output to be measured.Wherein, packet capturing can be completed by the packet catcher of profession, can also It is completed with being instructed by corresponding packet capturing.After server gets target network data by packet capturing, need target network number Consistency desired result is carried out according to online operation data corresponding with the configuration data of shunting device to be measured and test equipment.Verification is logical Later, show that the filtering function of shunting device to be measured is normal.
In a specific example, shunting device test method can specifically include following step:
Step 1: building online environment: preparing a PC machine for having public network IP and an interchanger, one interface of interchanger PC machine is connected, first interface connects Ethernet, and second interface connects the input interface of shunting device to be measured.
Step 2: building test environment: the eth1 mouth of the output interface connection server of shunting device to be measured.
Step 3: configuration interchanger: in the first interface configuration mirroring of connection Ethernet, first interface being output and input Data image to the second interface for connecting shunting device to be measured.
Step 4: configuring shunting device to be measured: configuring some protocol rules and delivery outlet.
Illustratively, some protocol rules and output interface of shunting device to be measured can be configured by following orders:
rule 1ipv4sip 222.176.35.5protocol 1permit 1/1/2
rule 2ipv4dip 222.176.35.5protocol 1permit 1/1/2
Mentioned order is meant that: the icmp message that filtering user 222.176.35.5 sends and receives, from 1/1/2 output Interface output.
Step 5: server is in eth1 mouthfuls of unlatching packet capturings.
Step 6:PC machine carries out relevant operation according to the protocol rule that shunting device to be measured configures.
Illustratively, PC machine is with ping tool ping 222.176.3.105 5 times.
Step 7: Analysis server packet capturing checks whether the data packet of acquisition had both met the configuration data of shunting device to be measured It is again consistent with the movement of net operation in PC machine and number.
Illustratively, it is assumed that server catches 10 icmp messages, 5 222.176.35.5- > 222.176.3.105 and 5 The message of a 222.176.3.105- > 222.176.35.5.It can be seen that the message that server obtains meets PC machine in step 6 Upper net operation.That is, shunting device to be measured successfully at the scene under background traffic, goes out according to the rule-based filtering of " IP+ agreement " Correct message.
The target network data that the embodiment of the present invention is exported by obtaining the output interface of shunting device to be measured;To target network Network data are detected, and judge whether the filtering function of shunting device to be measured is normal according to testing result, are set with meeting to shunt Standby on-the-spot test demand solves the problems, such as that testing cost present in existing shunting device measuring technology is high, reduce hardware at Originally, personnel cost and testing time cost, and improve testing efficiency and the test flexibility of shunting device.
Embodiment three
Fig. 3 is a kind of schematic diagram for shunting device test device that the embodiment of the present invention three provides, as shown in figure 3, described Device includes: network data acquisition module 310 and functions of the equipments judgment module 320, in which:
Network data acquisition module 310, the target network data that the output interface for obtaining shunting device to be measured exports; Wherein, the target network data are the network data that Ethernet data is formed after the shunting device filtering to be measured;
Functions of the equipments judgment module 320 for detecting to the target network data, and judges according to testing result Whether the filtering function of the shunting device to be measured is normal.
The target network data that the embodiment of the present invention is exported by obtaining the output interface of shunting device to be measured;To target network Network data are detected, and judge whether the filtering function of shunting device to be measured is normal according to testing result, are set with meeting to shunt Standby on-the-spot test demand solves the problems, such as that testing cost present in existing shunting device measuring technology is high, reduce hardware at Originally, personnel cost and testing time cost, and improve testing efficiency and the test flexibility of shunting device.
Optionally, functions of the equipments judgment module 320, specifically for setting the target network data and the shunting to be measured Standby configuration data and online operation data carries out consistency desired result and obtains the testing result;
Wherein, the online operation data is generated by test equipment;The test equipment and the network equipment establish network company It connects;The network equipment is connected with the shunting device to be measured;The shunting device to be measured passes through described in input interface acquisition The image network data of the network equipment and the target network data exported by the output interface.
Shunting device test method provided by any embodiment of the invention can be performed in above-mentioned shunting device test device, tool The standby corresponding functional module of execution method and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to this The shunting device test method that invention any embodiment provides.
Example IV
Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides.Fig. 4, which is shown, to be suitable for being used to realizing The block diagram of the server 412 of embodiment of the present invention.The server 412 that Fig. 4 is shown is only an example, should not be to the present invention The function and use scope of embodiment bring any restrictions.
As shown in figure 4, server 412 is showed in the form of universal computing device.The component of server 412 may include but Be not limited to: one or more processor 416, storage device 428 connect different system components (including storage device 428 and place Manage device 416) bus 418.
Bus 418 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture, ISA) bus, microchannel architecture (Micro Channel Architecture, MCA) bus, enhancing Type isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local Bus and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Server 412 typically comprises a variety of computer system readable media.These media can be it is any being capable of bedding and clothing The usable medium that business device 412 accesses, including volatile and non-volatile media, moveable and immovable medium.
Storage device 428 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (Random Access Memory, RAM) 430 and/or cache memory 432.Server 412 can be further Including other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, storage system System 434 can be used for reading and writing immovable, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").To the greatest extent It is not shown in pipe Fig. 4, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, with And to removable anonvolatile optical disk (such as CD-ROM (Compact Disc-Read Only Memory, CD-ROM), number Word optic disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) read-write CD Driver.In these cases, each driver can be connected by one or more data media interfaces with bus 418. Storage device 428 may include at least one program product, which has one group of (for example, at least one) program module, These program modules are configured to perform the function of various embodiments of the present invention.
Program 436 with one group of (at least one) program module 426, can store in such as storage device 428, this The program module 426 of sample includes but is not limited to operating system, one or more application program, other program modules and program It may include the realization of network environment in data, each of these examples or certain combination.Program module 426 usually executes Function and/or method in embodiment described in the invention.
Server 412 can also be with one or more external equipments 414 (such as keyboard, sensing equipment, camera, display Device 424 etc.) communication, the equipment interacted with the server 412 can be also enabled a user to one or more to be communicated, and/or with Any equipment (such as network interface card, the modulation /demodulation that the server 412 is communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 422.Also, server 412 can also lead to Cross network adapter 420 and one or more network (such as local area network (Local Area Network, LAN), wide area network Wide Area Network, WAN) and/or public network, such as internet) communication.As shown, network adapter 420 is logical Bus 418 is crossed to communicate with other modules of server 412.It should be understood that although not shown in the drawings, server 412 can be combined Using other hardware and/or software module, including but not limited to: microcode, device driver, redundant processing unit, external magnetic Dish driving array, disk array (Redundant Arrays of Independent Disks, RAID) system, magnetic tape drive Device and data backup storage system etc..
The program that processor 416 is stored in storage device 428 by operation, thereby executing various function application and number According to processing, such as realize shunting device test method provided by the above embodiment of the present invention.
That is, the processing unit is realized when executing described program: obtaining the output interface output of shunting device to be measured Target network data;Wherein, the target network data are that Ethernet data is formed after the shunting device filtering to be measured Network data;The target network data are detected, and judge the mistake of the shunting device to be measured according to testing result Whether normal filter function.
Embodiment five
The embodiment of the present invention five also provides a kind of computer storage medium for storing computer program, the computer program When being executed by computer processor for executing any shunting device test method of the above embodiment of the present invention: obtaining The target network data of the output interface output of shunting device to be measured;Wherein, the target network data are Ethernet data warp Cross the network data formed after the shunting device filtering to be measured;The target network data are detected, and according to detection As a result judge whether the filtering function of the shunting device to be measured is normal.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (Read Only Memory, ROM), erasable programmable read only memory ((Erasable Programmable Read Only Memory, EPROM) or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic Memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium, which can be, any includes Or the tangible medium of storage program, which can be commanded execution system, device or device use or in connection make With.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, radio frequency (Radio Frequency, RF) etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language --- such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of shunting device test macro characterized by comprising test equipment, the network equipment, shunting device to be measured and Server;Wherein,
The test equipment and the network equipment, which are established, to be connected to the network, for carrying out upper net operation;
The first interface of the network equipment connects Ethernet, and second interface connects the input interface of the shunting device to be measured, For providing ethernet environment to the test equipment;Wherein, the first interface is for receiving Ethernet data, and described second Interface is used to receive the image network data of the first interface;
The output interface of the shunting device to be measured is connected with the network interface of the server, for defeated to the network equipment The image network data entered to the shunting device to be measured are filtered;
The server is used to detect the target network data of the shunting device output to be measured, and according to testing result Judge whether the filtering function of the shunting device to be measured is normal.
2. system according to claim 1, which is characterized in that the test equipment is the PC machine with public network IP, described PC machine generates online operation data when carrying out upper net operation;The network equipment is switch or router.
3. system according to claim 2, which is characterized in that the shunting device to be measured is carried out by preset configuration sentence Configuration is to obtain configuration data;Wherein, the configuration data includes setting protocol rule and the output interface.
4. system according to claim 3, which is characterized in that the server is according to the target network data of acquisition Consistency desired result, which is carried out, with the configuration data and the online operation data obtains the testing result.
5. system according to claim 1, which is characterized in that the server is obtained described to be measured by way of packet capturing The target network data of shunting device output.
6. a kind of shunting device test method characterized by comprising
Obtain the target network data of the output interface output of shunting device to be measured;Wherein, the target network data are ether The network data that network data is formed after the shunting device filtering to be measured;
The target network data are detected, and judge that the filtering function of the shunting device to be measured is according to testing result It is no normal.
7. according to the method described in claim 6, it is characterized in that, being detected to the target network data, comprising:
The configuration data and online operation data of the target network data and the shunting device to be measured are subjected to consistency school It tests to obtain the testing result;
Wherein, the online operation data is generated by test equipment;The test equipment and the network equipment, which are established, to be connected to the network;Institute The network equipment is stated to be connected with the shunting device to be measured;The shunting device to be measured obtains the network by input interface and sets Standby image network data and the target network data exported by the output interface.
8. a kind of shunting device test device characterized by comprising
Network data acquisition module, the target network data that the output interface for obtaining shunting device to be measured exports;Wherein, institute Stating target network data is the network data that Ethernet data is formed after the shunting device filtering to be measured;
Functions of the equipments judgment module, for being detected to the target network data, and according to testing result judgement it is described to Whether the filtering function for surveying shunting device is normal.
9. a kind of server, which is characterized in that the server includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now shunting device test method as described in any in claim 6-7.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Shunting device test method of the Shi Shixian as described in any in claim 6-7.
CN201811052568.2A 2018-09-10 2018-09-10 A kind of shunting device test macro, method, apparatus, server and storage medium Pending CN109167707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811052568.2A CN109167707A (en) 2018-09-10 2018-09-10 A kind of shunting device test macro, method, apparatus, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811052568.2A CN109167707A (en) 2018-09-10 2018-09-10 A kind of shunting device test macro, method, apparatus, server and storage medium

Publications (1)

Publication Number Publication Date
CN109167707A true CN109167707A (en) 2019-01-08

Family

ID=64894599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811052568.2A Pending CN109167707A (en) 2018-09-10 2018-09-10 A kind of shunting device test macro, method, apparatus, server and storage medium

Country Status (1)

Country Link
CN (1) CN109167707A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333044A (en) * 2020-10-29 2021-02-05 北京锐安科技有限公司 Shunting equipment performance test method, device and system, electronic equipment and medium
CN115022201A (en) * 2022-06-16 2022-09-06 北京锐安科技有限公司 Data processing function test method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417759A (en) * 2019-07-16 2019-11-05 广东申立信息工程股份有限公司 A kind of method of IDC information security management

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417759A (en) * 2019-07-16 2019-11-05 广东申立信息工程股份有限公司 A kind of method of IDC information security management

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333044A (en) * 2020-10-29 2021-02-05 北京锐安科技有限公司 Shunting equipment performance test method, device and system, electronic equipment and medium
CN112333044B (en) * 2020-10-29 2022-07-15 北京锐安科技有限公司 Shunting equipment performance test method, device and system, electronic equipment and medium
CN115022201A (en) * 2022-06-16 2022-09-06 北京锐安科技有限公司 Data processing function test method, device, equipment and storage medium
CN115022201B (en) * 2022-06-16 2023-10-31 北京锐安科技有限公司 Data processing function test method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109743195A (en) A kind of check method and device of security baseline
US20150074302A1 (en) Automated Cabling Process for a Complex Environment
CN106059783A (en) Cabling connection method and cabling connection system
CN109039829A (en) A kind of network card performance testing method, apparatus, terminal and storage medium
CN106406847A (en) Method and system for remote system configuration management and non-transitory computer-readable storage medium
CN109815147A (en) Test cases generation method, device, server and medium
CN109656767A (en) A kind of acquisition methods, system and the associated component of CPLD status information
CN109271358A (en) Data summarization method, querying method, device, equipment and storage medium
CN106201769B (en) Server system, non-provisional computer-readable recording mediums and the method to enhance the memory fault-tolerant rate in server system
CN109039788A (en) Port configuration method, device and the storage medium of the network equipment
CN109167707A (en) A kind of shunting device test macro, method, apparatus, server and storage medium
CN109582524A (en) A kind of test method, system and electronic equipment and storage medium
CN106776346A (en) The method of testing and device of CCMTS equipment
CN108874441A (en) A kind of board configuration method, device, server and storage medium
CN105991679B (en) A kind of implementation method and device of network sharing
CN107480055A (en) Method of testing, device, calculate readable storage medium storing program for executing and computing device
CN107332872A (en) A kind of method that Android device network agile management and control is realized based on VPN connections
CN107861821B (en) Mining method and device for module call relation and computer readable medium
CN108141381A (en) To make wireline test result that the system and method coordinated be configured with wireline test
US11475191B2 (en) Generating and adding additional control information to logic under test to facilitate debugging and comprehension of a simulation
CN110380930B (en) Test method, test device, server and computer storage medium
US10878804B2 (en) Voice controlled keyword generation for automated test framework
US8370550B2 (en) Rule-based assignment of control of peripherals of a computing device
CN115022201B (en) Data processing function test method, device, equipment and storage medium
CN110377514A (en) Management method, device, electronic equipment and the storage medium of software component

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108

RJ01 Rejection of invention patent application after publication