WO2006105707A1 - A network performance testing method and the system, the device thereof - Google Patents

A network performance testing method and the system, the device thereof Download PDF

Info

Publication number
WO2006105707A1
WO2006105707A1 PCT/CN2006/000175 CN2006000175W WO2006105707A1 WO 2006105707 A1 WO2006105707 A1 WO 2006105707A1 CN 2006000175 W CN2006000175 W CN 2006000175W WO 2006105707 A1 WO2006105707 A1 WO 2006105707A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
service flow
network
setting
service
Prior art date
Application number
PCT/CN2006/000175
Other languages
French (fr)
Chinese (zh)
Inventor
Yang Yu
Haitao Zhang
Original Assignee
Hangzhou H3C Technologies 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
Priority claimed from CNB2005100599822A external-priority patent/CN100382517C/en
Priority claimed from CNB200510123357XA external-priority patent/CN100463418C/en
Application filed by Hangzhou H3C Technologies Co., Ltd. filed Critical Hangzhou H3C Technologies Co., Ltd.
Publication of WO2006105707A1 publication Critical patent/WO2006105707A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a network performance testing method, system, and network device. Background technique
  • OAM Operation, Management, and Maintenance
  • the OAM function is important in public telecommunications networks to simplify network operations, verify network performance, and reduce network operating costs.
  • the OAM function is especially important in networks that provide guaranteed quality of service.
  • the management of the network is generally divided into three categories. Operation and management mainly refer to the analysis, prediction, planning, and configuration of daily network and services. Maintenance is mainly for the network. And its business's daily operations activities such as 'testing and fault management.
  • the OAM mechanism not only prevents network failures, but also needs to quickly diagnose and locate network faults, ultimately improving network availability and quality of service to users.
  • Ethernet OAM IEEE 802.3ah standard
  • the OAM mechanism under the new IEEE802.3ah standard mainly introduces an OAM sublayer between the traditional MAC (Media Access Control) layer and the PHY (physical) layer, and transmits OAM information between devices. In addition, the network is monitored.
  • the basic principle of the OAM and the packet format are shown in Figure 1.
  • the OAM sub-layer of the IEEE802.3ah standard inserts OAM packets in the output direction and parses and distributes OAM packets in the input direction.
  • the OAM packet is the same as the traditional Ethernet frame format, but an OAM type is newly defined.
  • the OAM mechanism can monitor the link through physical PING, loopback, and remote alarms.
  • the PE (operator edge) device initiates a PING request, and the CE (Customer Edge) device responds to the request. After receiving the response, the PE device obtains the normal judgment of the subscriber line.
  • the PE device is a device of the telecommunication office
  • the CE device is a device in the user's home, such as a PTN (IP telecommunication network) terminal in the user's home.
  • PING here is a PING operation of the physical layer, which is different from the commonly used IP PING operation, and is directed to the MAC address, and only the user device whose destination MAC address is its own will generate a response.
  • the main purpose of physical PING is to check whether the link between the subscriber line and the equipment at both ends is working properly.
  • Line loopback is also a common positioning method.
  • the receiving end is directly connected to the transmitting end, so that the sender can check whether the received data is the same as the one sent by itself, thereby judging whether it is a problem in the internal processing of the receiving device itself.
  • the remote alarm is used to notify the PE device in the reverse direction when the fault occurs on the line in one direction. For example, if the user equipment detects a large error, the device will notify the PE device in the reverse direction.
  • the process is shown in Figure 3.
  • the Ethernet OAM is located at the second layer in the network hierarchy, and the tested forwarding path is symmetric.
  • many of the actual services of users on the network are applied in the high-level protocols of the network hierarchy, and in most cases, the paths are asymmetric, and the traffic of the uplink and downlink is also used for most of the access in terms of traffic. It is asymmetrical. In this case, how to provide business security for users, there is currently no effective solution. Summary of the invention
  • the object of the present invention is to provide a network performance testing method and system, which can overcome the failure of the prior art to provide a test based on the service itself, and realize rapid diagnosis of network failures. Positioning, improving the availability of the network and the quality of service to users.
  • Another object of the present invention is to provide a test start network device and a test end network device to provide a test based on the service itself to the network and to quickly locate the network fault.
  • a network performance testing method including the steps:
  • the step B includes:
  • test service flow is inserted into the normal service flow in a predetermined proportion, or the test service flow is inserted after the normal service flow is aborted.
  • the test setting includes an analog configuration for generating a test service flow, and identification information of the test service flow; the simulation in the step B is performed based on the simulation configuration; and the insertion identification information is further included.
  • the simulation configuration includes test end point information and a test service flow generation manner;
  • the identification information inserted in the step B includes at least one of a test identifier, a time stamp, or a data packet identifier; the identifier information is inserted in the data.
  • the specified location of the package is not limited to test end point information and a test service flow generation manner;
  • the test setting further includes a loopback setting; the loopback of the step D is performed based on a loopback setting.
  • the loopback is set to an asymmetric loopback setting
  • the step D includes setting a packet return rate or a packet size in the test service flow.
  • the test setting further includes an access control table; and the obtaining the test service flow in the step D is performed based on the access control list.
  • the network performance testing system comprises: a test starting point device and a test end point device connected through a network, and a test management device for managing a test process; the test starting point device is simulated and inserted according to the test setting. Testing the service flow of the specific service application, and sending the test service flow to the test end point device; the test end point device extracts the test service flow according to the configured test configuration, and provides the test service flow according to the extracted test service flow The service quality of the network is analyzed, or the obtained test service flow is looped back to the test starting point to perform a return service test.
  • the test setting is performed by the test management device to the test starting device and the test The endpoint device configuration; or the test endpoint device address information and test service type in the test management device configuration test settings, the test start device and the test endpoint device negotiate the remaining facility settings or statically configure the test settings in advance.
  • test starting device comprises:
  • test setting storage unit for storing test settings
  • test stream insertion unit coupled to the test setting storage unit, configured to generate a test service flow according to the stored test set simulation, and insert the test service flow into a normal service flow sent by the test start device;
  • the test endpoint device includes:
  • test setting storage unit for storing test settings
  • an end point test stream extracting unit configured to extract a corresponding test service flow from the service flow received by the test end point device according to the test setting
  • the end point test processing unit is coupled to the test setting storage unit and the test stream extraction unit, respectively, for performing analysis processing on the test service flow according to the test setting.
  • the analyzing process performed by the key test processing unit includes looping back the test service flow to the test starting device; the test starting device further includes a starting test flow extracting unit, configured to receive normal services from the test starting device. The test traffic flow returned from the test endpoint is extracted from the flow.
  • test starting point device and the test end point device are respectively network devices having a central processing unit and a storage function.
  • the test set stored by the test endpoint device includes an asymmetric loopback setting.
  • Another network performance testing system includes a network management device, a test starting device, and a test end device.
  • the network management device is configured to send test settings to the specified test start device and the end device;
  • the test starting device generates a test service flow according to the test setting; the test end device identifies the test service flow sent by the test starting device according to the test setting, and generates a return test service flow to the test starting point according to the test setting.
  • the device is sent in the direction.
  • the test setting stored by the test end point device includes a test setting of the asymmetric flow, and the data rate or the size of the return test service flow generated by the test end device according to the above setting is different from the test service flow sent by the test device. .
  • the test start network device has a network management interface, and is configured to receive test settings sent by the test management device, where the network device further includes: a test setting storage unit for storing test settings received from the test management device;
  • the test stream insertion unit simulates a specific application-based test service flow according to the test setting, and sends the test service flow to the test end point network device specified by the test setting.
  • test starting network device further includes:
  • the starting point test stream extracting unit is configured to identify the test service flow received from the test end network device, and extract the returned test service flow for use in management analysis.
  • the test setting includes an analog configuration for generating a test service flow, a ratio setting of a test service flow to a normal service flow, and at least one of a test identifier, a time stamp, or a packet identifier.
  • the specific application is a service higher than a network layer.
  • test traffic flow is simulated by writing corresponding parameters to the device hardware registers according to the analog configuration included in the test settings to enable it to quickly generate test traffic flows.
  • the test destination network device has a network management interface, which is used for receiving test settings sent by the test management device, and the network device further includes:
  • test setting storage unit for storing test settings received from the test management device
  • an endpoint test stream extracting unit configured to extract a corresponding test service flow from the service flow received by the test end network device according to the test setting.
  • the test end network device further comprises: an end point test processing unit, configured to loop back the test service flow to the test end network device according to the test setting.
  • the present invention simulates the test service flow with the same format as the specific service application in the input direction of the service inflow port of the network test starting device, and inserts it into the normal service flow and sends it to the normal service flow.
  • Testing the end point device the test service flow is the same as the normal service flow, and the normal forwarding process of the actual network device between the test starting point and the test end point reaches the test end point device; the test service flow is extracted at the out port of the test end point device, It performs OAM statistics to implement end-to-end service OAM testing, such as connectivity testing, packet loss testing, and bandwidth testing.
  • test service flow is the same as the service flow format of the actual application, the OAM function of the network above the MAC layer can be detected; the address information and the data frame size and/or the return data frame in the extracted test service flow are replaced by the test destination device.
  • the number of the test service flows is returned to the test starting device through a symmetric path or an asymmetric path to perform asymmetric service testing, and the backhaul link is further detected. Therefore, with the present invention, It can provide real-time, end-to-end O AM testing for users or network operators to diagnose and locate network faults comprehensively, quickly, and accurately, thereby improving network availability and quality of service to users.
  • Figure 1 is a schematic diagram of the operation, maintenance, and management mechanism of the Ethernet described in the 802.3ah standard
  • Figure 2 is a schematic diagram of the link monitoring process through physical PING or line loopback in the 802.3ah standard
  • FIG. 3 is a schematic diagram of a link monitoring process by a remote alarm in the 802.3ah standard;
  • FIG. 4 is a flowchart of an implementation of an embodiment of the method of the present invention.
  • Figure 5 is a flow chart showing an implementation of another embodiment of the method of the present invention.
  • FIG. 6 is a schematic structural diagram of a VPN networking of the same L2TP;
  • FIG. 7 is a schematic diagram of networking of an embodiment of the system of the present invention.
  • FIG. 8 is a block diagram of another embodiment of the system of the present invention. detailed description
  • the core of the present invention is to simulate a test service flow carrying a specific service application in the input direction of the service inflow port of the test starting device, and carry the test service flow carrying the test identifier or time stamp and the like, and then at the test starting point
  • the test end device is inserted into the normal service flow and sent to the test service flow; the test service flow is normally forwarded to the test end point device; and the test end point device extracts the test service flow according to the test identifier, and the service-based analysis can be directly performed.
  • the test service flow can also be looped back to the test start device, and the test start flow device analyzes the test service flow returned from the test end point.
  • the present invention is adapted to meet such needs. Before the test starts, it is first necessary to test the starting device and the terminal device that initiate the test. At least the test starting device needs to know the correct address information of the test terminal device and how to generate the service flow, that is, the simulation configuration, and the simulation configuration can be passed.
  • test identification and loopback settings can be implemented by issuing ACL rules. If the test is separate from the normal service of the user, you can also set it. Test identification, because only the test traffic flow does not need to be identified, you can set the test service flow timestamp or packet ID to match the test; if you only need one-way test, you do not need to perform loopback setup; If you perform an in-band test, you can set the insertion rate.
  • test settings are generally configured by the test management center or the network management system through the test management channel.
  • the test settings themselves can also be negotiated by the device. For example, the management device only needs to address the terminal device address and needs. The basic information such as the type of service to be tested is informed to the starting device, and other test settings can be determined by mutual agreement between the two parties or static configuration in advance.
  • the specific implementation of the invention is further described below:
  • the method of the present invention comprises the following steps: First, after the test setup is completed, in step 401: a test service flow is generated.
  • a test service flow based on the service application is generated according to the test setting, so that the test service flow may include information indicating the application, that is, the MAC layer or more (including the IP layer, Some information about the TCP/UDP layer and higher level, for example, when the service is FTP (File Transfer Protocol), the message format of the test service flow is generated according to the FTP protocol and the address information, and the port is generally 21.
  • FTP File Transfer Protocol
  • Step 402 Insert a test service flow at the ingress port of the test start point.
  • test service flow can be inserted into the normal service flow according to a certain proportion before the normal forwarding process of the service data packet, for example, the test service flow and the normal service flow each account for 50% of the traffic. .
  • the test service flow and the normal service flow each account for 50% of the traffic.
  • test service flow can be done by hardware cooperation (of course, it can also be implemented by software).
  • the specific process is as follows:
  • the data packet characteristic byte content of the generated test service flow such as the content of a certain byte before the packet header:
  • Destination MAC address The address, source MAC address, destination IP address, source IP address, length/type, subtype, version number, port number, encoding, etc. are written into the test traffic stream feature register, the hardware reads these feature registers, and the payload is automatically inserted.
  • a padding word (the payload and padding settings can be included in the test settings), and automatically inserting at least one of a test flag, a timestamp, or a packet ID according to the test settings, the information can be inserted in the payload, or Is the MAC header of the packet or any specified location such as the IP header.
  • the payload data required for testing the stream data packet may be pre-written in the memory.
  • the payload data of the corresponding length is read from the memory according to the packet length information in the test traffic stream feature register, and the test stream data may also be randomly generated.
  • the payload data required for the package may be pre-written in the memory.
  • the insertion speed of the test service flow can be adjusted according to the traffic volume of the test service flow.
  • the insertion of the test service flow can be mutually exclusive with the normal service flow. That is to say, according to the actual needs, the normal service flow needs to be stopped during the test; or it can be performed at a certain ratio, for example, the test service flow and the normal service flow. 50% of the traffic, etc.
  • step 403 the test service flow is forwarded between nodes of the network according to the normal forwarding process of the service.
  • test service flows simulate the service flow of a specific business application, so in the process of sending the test start device to the test end device, each network device has the same decision for the test service flow forwarding, and it seems to be normal in the network node device. Like the service flow, the normal service flow forwarding process is performed according to the destination address it contains.
  • test traffic is forwarded to the test endpoint, these services can be extracted and analyzed to determine network health.
  • Step 404 Detect network performance according to the obtained test service flow at the test end point.
  • the test endpoint device can use the ACL to identify the test identifier of the test service flow, or the timestamp or the packet ID according to the test setting, thereby extracting the corresponding test service flow and sending it to the upper layer software for line analysis, such as
  • the connection speed and time delay of the starting device and the destination device may be determined according to the number of received data packets per unit time, which will be described in detail later.
  • the test setting includes an access control list of the test destination port pre-configured by the test management device, and the address information of the sender and the receiver, the test stream ID, and the like are included in the table.
  • the test device extracts the corresponding test data stream according to the information, and then performs operation management and maintenance statistics on the extracted test data stream, for example, network connectivity, error statistics, and packet loss rate statistics. (Depending on the number of packets or the ID order corresponding to the time stamp).
  • Step 405 Perform a loopback test.
  • the terminal device processes the extracted test service flow and returns it to the test starting point to perform a return service test.
  • the return process is based on the test setting, and the ACL rule is used to perform the packet header. And the source address and so on are modified accordingly and sent back to the starting device.
  • the bandwidth of the uplink and downlink is asymmetric, and the terminal device can change according to the analog configuration in the test setting.
  • the rate or the length of the data packet is simulated to test the rate of the user's uplink and downlink, so that the whole test will be closer to the user's actual practical situation, and the location of the network fault will be more accurate and complete.
  • the test end point and the test starting point can mainly perform the following network performance tests.
  • test start device and the test end device When performing the one-way delay test, the test start device and the test end device synchronize the network time through the network time protocol. Each device then configures the time into its own time register, which is automatically incremented by hardware.
  • the test starting point device sends the test service flow
  • the test data frame is marked with a local timestamp. During the process of passing the time-stamped data packet through the network, the timestamp information does not change.
  • the test end device extracts the time stamp from the test service flow and compares it with the current local time to obtain the time interval between the two, that is, the network transmission delay of the data packet. .
  • the one-way transmission delay test is performed, since the transmission and reception are performed between two different devices, and the network time protocol itself has a certain time error, the clocks of the two remote devices are not accurately synchronized, so one-way operation is adopted. When the transmission is tested for delay, there will be a certain time error in the test results.
  • round-trip delay testing can be performed.
  • the test endpoint device After receiving the test data packet, the test endpoint device does not change the timestamp information flag marked on the test start device, and loops the test data packet according to the original path.
  • the test starting device receives the test packet with the time stamp marked by itself from the backhaul, the timestamp is extracted, and according to the connection The current time information when the test packet is received, and the accurate round-trip transmission delay is obtained. Since the test traffic flow is sent and received during the round-trip delay test, the reference time of one device used is obtained, so that an accurate test value can be obtained.
  • the received test data packet is processed accordingly, and then looped back to the test starting point, and the asymmetric path, asymmetric traffic flow, and the like can be tested.
  • the present invention performs end-to-end testing of any service based on actual network by simulating the same test service flow as the service flow for different service tests, and provides better monitoring means for network QoS.
  • test service flow generated in the present invention by taking the encapsulation format of the Layer 2 tunneling protocol L2TP as an example.
  • L2TP encapsulation formats there are two types of L2TP encapsulation formats, one is encapsulated in IP data packets, and the other is encapsulated in IP UDP (User Datagram Protocol) data packets.
  • IP UDP User Datagram Protocol
  • the L2TP encapsulation format is as shown in Table 1. It is a format in which an Ethernet data frame is encapsulated in an IP tunnel, and includes a two-layer MAC header and two layers of IP headers.
  • IP destination address 32 bits
  • Type (fixed to 01) 8 bits Destination MAC address 48 bits Source MAC address 48 bits User Ethernet encapsulation header format (18 fixed 8100 16-bit bytes) VLAN ID and priority 16 bits
  • IP header length 4-bit service type 8-bit user IP header encapsulation format (20 words IP packet total length 16 bits) Section) IP packet flag 16 bits
  • IP destination address 32-bit user static load user static load length variable user IP packet check (4 Byte) IP packet check 32-bit user Ethernet data frame check Ethernet data frame check 32-bit (4Byte) Encapsulation tunnel IP packet check (4B te) IP packet check 32-bit encapsulated tunnel Ethernet data frame check Ethernet data frame check 32 bits (4Byte) Due to standard Ethernet Over PPP
  • the CRC (Cyclic Redundancy Check) of the (bearing point-to-point protocol) is optional, so the last check in the above table is 4 parts, which are the MAC header and IP header for the encapsulated tunnel, and the MAC header of the user service. And the verification of the IP header.
  • the format of the L2TP encapsulation header is 92 bytes.
  • user A and user B are in the same L2TP VPN (Virtual Private Network), and the two communicate with each other through the network.
  • the networking structure is shown in Figure 6.
  • User A accesses the network through gateway A.
  • User B accesses the network through gateway B.
  • user A's MAC address and IP address are used as the source MAC address and source IP address of the inner MAC header and IP header
  • user B's MAC address and IP address are used as the inner MAC header and IP address.
  • the destination MAC address and IP address of the header is shown in Figure 6.
  • the MAC address and IP address of the outer layer are determined by the addresses of gateway A and gateway B of the outer tunnel.
  • the MAC address of gateway A The address and IP address are used as the source MAC address and source IP address of the outer package, and the MAC address and IP address of the gateway B are used as the destination MAC address of the outer package and the IP address of the D.
  • gateway A Before conducting the test, gateway A should negotiate with the gateway B for test rules, or be configured by the network administrator or manually for test setup.
  • the test identifier can be represented by a reserved field of 16 bits of the L2PT header, such as the value 20; by negotiation or by configuring the destination device ACL, the loopback is selected.
  • the terminal device When performing the routine test, the terminal device replaces the 92 bytes in front of the packet header in the test service flow with the contents of the register according to the configured ACL action, and modifies or maintains the original time stamp content from the test endpoint network.
  • the egress port of the device loops back to the upstream processing, so that the test service flow automatically returns to the test starting point.
  • test service flow When performing asymmetric traffic test, according to the action of the ACL (access control list), all 92 bytes of the header in the test service flow are replaced with the contents of the register, and the original time stamp content is modified or maintained. At the same time, depending on the configuration, the length of the test packet can be changed, or the number of transmitted packets can be changed. Then, from the test terminal network device's egress port loop back to the upstream processing, the test service flow is automatically returned to the test starting point.
  • ACL access control list
  • gateway A Assume that user A now finds that it cannot perform normal service connection with user B; it complains to the operator about this situation; if the operator initiates the connectivity test from gateway A to gateway B by using the traditional method, the network does not find that the network has Any exceptions cannot resolve customer complaints.
  • the reason for this problem is that the operator's test is based on the network itself that does not carry the application; and the customer's problem is that the network connection carrying the specific application is not normal. For example, a network device between gateway A and gateway B blocks user A's private IP address, which cannot be found in traditional tests.
  • the test setup needs to be re-executed, and then the starting device generates a test service flow based on the FTP protocol according to the simulation configuration, so that the test service flow is based on the FTP application.
  • the operator can choose to start the test one by one from the gateway A, or use the faster dichotomy, that is, if there are 4N devices between the gateways AB, the test between the starting device and the 2N device is performed first, if the test After passing, the test is performed with the 3N device, and if it is not passed, the test is performed with the Nth device.
  • the test is repeated until the network device blocking the FTP service is found.
  • the operator administrator checks the configuration of the device, such as the ACL rule, and finds that the FTP service is blocked. If the ACL rule of the network device is incorrectly configured, the FTP service is blocked.
  • the administrator can restore the FTP service of the user by making the corresponding modification. Assume that the user FTP service is not blocked, but the transmission rate is quite slow.
  • the test settings can be modified, use the above method to find the bottleneck device that causes the transmission rate to be slow. Modify the network device configuration or restore the device hardware and software. The normal transmission rate of the user.
  • the system includes: a test management device 600, a test origin device 601, and a test endpoint device 602, which are connected by a network link, for example, Coaxial wires, optical cables, etc.
  • the interconnection of different networks requires different network node devices to implement, and the service data may need to be forwarded by multiple node devices from the source node to the destination node.
  • the test management device 600 completes the parameter configuration and test process management of the test start network device 601 and the test end network device 602.
  • the test management device 600 When performing the network service quality test, the test management device 600 first sends the test setting information to the test start device 601 and the test end device 602 through a dedicated test management channel or a physical channel used by the network management. For example, the simulation configuration used to generate the test traffic, the ratio of test flows to normal traffic, the test data flow that needs to be inserted, the performance and statistics that need to be detected, the test ID or timestamp, or the packet ID.
  • the test setup of the endpoint device 602 includes an asymmetric loopback setting, i.e., the packet of the test traffic stream sent by the endpoint test processing unit differs in rate or magnitude from the received test traffic.
  • test service flow is inserted according to the configured parameter information, and the test service flow is application-based, that is, the test service flow data packet is content containing more than three layers.
  • the test traffic is then sent along with the service flow to the test endpoint.
  • These test traffic flows like the traffic flow, are forwarded by the network node device between the test origin device 601 and the test endpoint device 602 to the test endpoint device 602.
  • the test endpoint device 602 After receiving the data, the test endpoint device 602 extracts the test service flow according to the configured parameter information, and detects the service quality of the network according to the extracted test service flow.
  • the test management device 600 can send the outbound port ACL to the test end point device 602 before the test, and the test end point device 602 identifies the characteristics of the test service flow according to the egress port ACL and performs corresponding test processing, for example, according to the configuration.
  • the address information of the sender and the receiver, the test service stream ID information, and the like perform operations such as error statistics and packet loss rate statistics.
  • both the test start device and the test end device require some software or hardware processing, in general, both the test start device and the test end device need to have a CPU (Central Processing Unit) and storage functions, for example, a network with a CPU. Switch or other network device.
  • the starting point or destination device needs to have a network management interface for accepting test settings issued by the test management device or other network management devices.
  • the test starting point device 601 includes: a test setting storage unit 611, a test flow inserting unit 612, and a starting point business flow extracting unit 613.
  • the test start device 601 After receiving the test setting sent by the test management device 600, the test start device 601 stores it in the test setting storage unit 611, and when it needs to be inserted, the test stream insertion unit 612 reads the data at its out port, and Insert it into a normal business flow in a certain proportion.
  • the test service flow can be inserted into the normal service flow according to the traffic volume of the test service flow, or the test service flow can be inserted after the normal service flow is aborted.
  • the test endpoint device 602 includes: a test setup storage unit 621, a test traffic flow extraction unit 622, and an endpoint test processing unit 623.
  • test destination device 602 After receiving the test settings sent by the test management device 600, the test destination device 602 stores them in the test setting storage unit 621. After receiving the service flow forwarded by the network node device, the test service flow extraction unit 622 stores the data according to the storage. The test setup extracts the corresponding test traffic from these traffic flows. The test processing unit 623 performs direct analysis or loopback processing on the extracted test traffic according to the test flow feature information.
  • the test setting including the loopback setting may be sent by the test management device 600 to the test endpoint device 602 through the egress port, and the test endpoint device 602 extracts the corresponding After testing the service flow, according to the action of the ACL, perform corresponding packet processing, such as replacing some bytes in the packet header according to the action indication, and putting the corresponding time stamp content, and returning from the exit port of the test destination network device. Test the starting network device; or if the test setting includes an asymmetric traffic test setting, modify the rate or size of the returned packet so that the returned test traffic is different from the original test traffic, simulating the asymmetric traffic ratio setting set.
  • the start test flow extraction unit 613 extracts the corresponding return test service flow from the service flows, and performs performance analysis on the flowback, so that the backhaul can be known. The health of the link.
  • the test setting storage unit 611, the test flow insertion unit 612, the start service flow extraction unit 613, the start point test processing unit 614, the test setting storage unit 621, the test service flow extraction unit 622, and the end point test included in the above-described start point and destination devices are included.
  • the processing unit 623 is based on logical division, which is variable in the implementation form of software and hardware. The technical personnel of the domain can have different software and hardware implementations through the introduction of the above, but these methods all belong to the form changes without departing from the spirit of the present invention. In particular, the static configuration of the test settings mentioned in the previous section. In addition to the address information of the test destination device and the service type of the test, the simulation configuration and loopback of various applications can be completely configured in advance.
  • the setting, insertion rate setting, etc. are stored in the test setting storage unit, and multiple sets of test settings can be made to implement any of the settings for multiple tests, such as setting one-way test tasks, loopback test tasks, and asymmetric flow tests. task.
  • the system of the present invention can be applied to a variety of networks, such as Ethernet, RPR (Flexible Packet Ring) networks, and the like.
  • the aforementioned identification technology is not limited to the use of ACL rules, but can also be implemented by other technologies, such as Cisco's NBAR (application-based identification) technology; analog configuration can be implemented not only in hardware, but also in software.
  • test starting point network device 601 and the test end point network device 602 in FIG. 7 For the principle of the test starting point network device and the test end point network device of the present invention, reference may be made to the test starting point device 601 and the test end point device 602 in FIG. 7 , and details are not described herein again.
  • FIG. 8 is a block diagram of another embodiment of the system of the present invention.
  • the embodiment is substantially the same as the embodiment shown in FIG. 7.
  • the difference is that the test starting point device in the embodiment does not have a starting point test stream extracting unit, which is not described here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A network performance testing method comprises: emulating one similar test service flow with the service flow required of testing; transmitting the test service flow from the testing origin node to the testing end node in the network; testing the network performance based on the received test service flow at the testing end node; or after processing the received test service flow, looping back it to the testing origin node to perform the backtracking service test. The invention also discloses a testing origin node network device, a testing end node network device and a network performance testing system, which comprises the testing origin node network device, the testing end node network device and the testing management device connected through the network link each other. Using the invention, the test based on the actual wideband network service application is realized. Consequently, the network failure is judged and located roundly, quickly and accurately. The subscriber service quality and the network availability are improved.

Description

网络性能测试方法、 系统及网络设备 技术领域  Network performance test method, system and network device
本发明涉及网络通信技术领域, 具体涉及一种网络性能测试方 法、 系统及网络设备。 背景技术  The present invention relates to the field of network communication technologies, and in particular, to a network performance testing method, system, and network device. Background technique
OAM (运行、 管理和维护)功能在公众电信网中十分重要, 它 可以简化网络操作, 检验网络性能和降低网络运行成本。 在提供保障 服务质量的网絡中, OAM功能尤为重要。 根据运营商网络运营的实 际需要, 通常将网络的管理工作分为三大类, 其中, 操作和管理主要 是指完成日常网络和业务进行的分析、 预测、 规划和配置工作; 维护 主要是对网络及其业务的'测试和故障管理等进行的日常操作活动。 OAM机制不仅要预防网络故障的发生, 而且需要实现对网络故障的 迅速诊断和定位, 最终提高网络的可用性和对用户的服务质量。  OAM (Operation, Management, and Maintenance) functionality is important in public telecommunications networks to simplify network operations, verify network performance, and reduce network operating costs. The OAM function is especially important in networks that provide guaranteed quality of service. According to the actual needs of the network operation of the carrier, the management of the network is generally divided into three categories. Operation and management mainly refer to the analysis, prediction, planning, and configuration of daily network and services. Maintenance is mainly for the network. And its business's daily operations activities such as 'testing and fault management. The OAM mechanism not only prevents network failures, but also needs to quickly diagnose and locate network faults, ultimately improving network availability and quality of service to users.
为了增强以太网的电信特性,现有技术中公开了一种新的以太网 OAM ( IEEE802.3ah标准)机制。该新的 IEEE802.3ah标准下的 OAM 机制, 主要是在传统的 MAC (媒质接入控制)层和 PHY (物理)层 之间引入了一个 OAM子层, 并通过在设备之间传递 OAM信息, 进 而实现对网络的监测, 该 OAM的基本原理及报文格式, 具体如图 1 所示。  In order to enhance the telecommunications characteristics of Ethernet, a new Ethernet OAM (IEEE 802.3ah standard) mechanism is disclosed in the prior art. The OAM mechanism under the new IEEE802.3ah standard mainly introduces an OAM sublayer between the traditional MAC (Media Access Control) layer and the PHY (physical) layer, and transmits OAM information between devices. In addition, the network is monitored. The basic principle of the OAM and the packet format are shown in Figure 1.
由图 1可知, 该 IEEE802.3ah标准下的 OAM子层主要是在输出 方向插入 OAM报文,在输入方向解析并分流 OAM报文。其中 OAM 报文与传统的以太网帧格式一致, 只是新定义了一种 OAM类型。 该 OAM机制具体可以通过物理 PING、环回以及远端告警等方式对链路 进行监测。  As shown in Figure 1, the OAM sub-layer of the IEEE802.3ah standard inserts OAM packets in the output direction and parses and distributes OAM packets in the input direction. The OAM packet is the same as the traditional Ethernet frame format, but an OAM type is newly defined. The OAM mechanism can monitor the link through physical PING, loopback, and remote alarms.
通过物理 PING对链路进行监测的过程如图 2所示:  The process of monitoring the link through physical PING is shown in Figure 2:
PE (运营商边缘)设备发起一次 PING请求, CE (客户边缘) 设备响应这个请求, PE设备收到应答后, 得到用户线路正常的判断。 在实际使用中, PE设备是电信局方的设备, CE设备是用户家中的设 备, 如用户家中的 PTN ( IP电信网)终端等。 需要说明的是, 这里 的 PING是一种物理层的 PING操作,它不同于常用的 IP PING操作, 针对的是 MAC地址, 只有目的 MAC地址是自己的用户设备才会产 生应答。 物理 PING主要的目的是检查用户线和两端设备的链路是否 工作正常。 线路环回也是一种常见的定位手段, 将接收端直接连到发送端, 这样发送方就可以检验接收的数据是否和自己发送的一样,从而判断 是否是接收设备本身的内部处理过程有问题。当用户链路出现丟包和 误码时,可以通过设置环回来判断故障究竟是设备造成的还是线路造 成的。 The PE (operator edge) device initiates a PING request, and the CE (Customer Edge) device responds to the request. After receiving the response, the PE device obtains the normal judgment of the subscriber line. In actual use, the PE device is a device of the telecommunication office, and the CE device is a device in the user's home, such as a PTN (IP telecommunication network) terminal in the user's home. It should be noted that the PING here is a PING operation of the physical layer, which is different from the commonly used IP PING operation, and is directed to the MAC address, and only the user device whose destination MAC address is its own will generate a response. The main purpose of physical PING is to check whether the link between the subscriber line and the equipment at both ends is working properly. Line loopback is also a common positioning method. The receiving end is directly connected to the transmitting end, so that the sender can check whether the received data is the same as the one sent by itself, thereby judging whether it is a problem in the internal processing of the receiving device itself. When the user link has lost packets and errors, you can set the loop to determine whether the fault is caused by the device or the line.
远端告警是指当一个方向的线路出现故障,比如用户设备检测到 比较大的误码时, 会构造特殊的 OAM报文, 从反方向通知 PE设备, 其过程如图 3所示。  The remote alarm is used to notify the PE device in the reverse direction when the fault occurs on the line in one direction. For example, if the user equipment detects a large error, the device will notify the PE device in the reverse direction. The process is shown in Figure 3.
与本发明相关的另一现有技术可参考美国专利申请公开第 20050169182号, 该文献公布了一种基于 MPLS的 OAM测试方法, 该方法是在正常的 MPLS流中插入 MPLS-OAM测试帧用来检查连通 性, 丟包率等, 如此可为运营商提供快速的网络性能测试, 优化其 VPN服务。  Another prior art related to the present invention is described in U.S. Patent Application Publication No. 200501169182, which discloses an MPLS-based OAM test method for inserting MPLS-OAM test frames into a normal MPLS flow. Check connectivity, packet loss rate, etc., to provide operators with fast network performance testing and optimize their VPN services.
这些 OAM机制在一定程度上增强了以太网的故障定位能力, 但 以太网 OAM有以下问题仍未解决:  These OAM mechanisms enhance the fault location capability of Ethernet to a certain extent, but the following problems of Ethernet OAM remain unresolved:
无论是传统的 OAM测试还是上述 MPLS-OAM都仅仅是停留在 三层以下的测试, 而无法解决二层以上(包括 IP (因特网协议)层、 TCP/UDP (传输控制协议 /用户数据报文协议)层以及更高层次) 的 网络实际情况。很多时候网络在二层甚至三层的通断不能决定更高层 业务的通断, 在实际应用中, 运营商的网络中有很多的设备, 管理难 度相当大,如果管理员在对其中某一个设备的管理配置不当就可能引 发业务问题, 例如该设备 ACL规则的配置考虑不周, 可能会导致很 多 VPN用户的业务中断; 引发客户投诉, 这时运营商若采用传统的 手段进行检测, 由于网络在二层和三层都是通畅的, 所以无法定位故 障, 客户问题难以解决。  Both the traditional OAM test and the above MPLS-OAM are only tested under the third layer, but cannot solve the second layer or above (including IP (Internet Protocol) layer, TCP/UDP (Transmission Control Protocol/User Datagram Protocol). The actual situation of the network at the layer and higher level). In many cases, the continuity of the network at the second or third layer cannot determine the continuity of the higher layer services. In actual applications, there are many devices in the operator's network, and the management is quite difficult. If the administrator is on one of the devices. Improper management configuration may cause business problems. For example, the configuration of the device ACL rules is not well thought out, which may cause business interruption of many VPN users. When a customer complaint is caused, the operator uses traditional means to detect, because the network is Both the second and third floors are unobstructed, so it is impossible to locate the fault and the customer problem is difficult to solve.
由以上的描述可以看出,以太网 OAM定位在网络层次中的二层, 并且测试的转发路径是对称的。但用户在网络上的实际业务,很多都 是处于网络层次体系中高层协议的应用,并且大多情况下路径是非对 称的,并且从流量上来说对于大部分的接入来说上行和下行的流量也 是非对称的。 在这种情况下, 如何为用户提供业务保障, 目前还没有 有效的解决方案。 发明内容  As can be seen from the above description, the Ethernet OAM is located at the second layer in the network hierarchy, and the tested forwarding path is symmetric. However, many of the actual services of users on the network are applied in the high-level protocols of the network hierarchy, and in most cases, the paths are asymmetric, and the traffic of the uplink and downlink is also used for most of the access in terms of traffic. It is asymmetrical. In this case, how to provide business security for users, there is currently no effective solution. Summary of the invention
本发明的目的是提供一种网络性能测试方法及系统,以克服现有 技术中无法提供基于业务本身的测试,实现对网络故障的迅速诊断和 定位, 提高网络的可用性和对用户的服务质量。 The object of the present invention is to provide a network performance testing method and system, which can overcome the failure of the prior art to provide a test based on the service itself, and realize rapid diagnosis of network failures. Positioning, improving the availability of the network and the quality of service to users.
本发明的另一个目的是提供一种测试起点网络设备以及一种测 试终点网络设备, 以对网络提供基于业务本身的测试, 并实现对网络 故障的快速定位。  Another object of the present invention is to provide a test start network device and a test end network device to provide a test based on the service itself to the network and to quickly locate the network fault.
为此, 本发明提供如下的技术方案: 一种网絡性能测试方法, 包 括步骤:  To this end, the present invention provides the following technical solutions: A network performance testing method, including the steps:
A、 对测试起点设备和测试终点设备进行测试设定;  A. Test the test starting device and the test end device;
B、 在测试起点处, 根据测试设定模拟承载有具体业务应用的测 试业务流 ;  B. At the test starting point, simulate the test service flow carrying the specific service application according to the test setting;
c、 将所述测试业务流从所述网络的测试起点发往测试终点; c. Sending the test service flow from the test starting point of the network to the test end point;
D、 在所述测试终点获取测试业务流, 以供分析使用; 或者将获 得的测试业务流环回到所述测试起点, 进行返程业务测试。 D. Obtain a test service flow at the test end point for analysis use; or loop the obtained test service flow back to the test starting point to perform a return service test.
优选地, 所述步骤 B包括:  Preferably, the step B includes:
按预定比例将所述测试业务流插入到正常业务流中 , 或者 中止正常业务流后插入所述测试业务流。  The test service flow is inserted into the normal service flow in a predetermined proportion, or the test service flow is inserted after the normal service flow is aborted.
优选地, 所述测试设定包括用于生成测试业务流的模拟配置、测 试业务流的标识信息; 所述步骤 B 中的模拟是基于该模拟配置进行 的; 还包括插入标识信息。  Preferably, the test setting includes an analog configuration for generating a test service flow, and identification information of the test service flow; the simulation in the step B is performed based on the simulation configuration; and the insertion identification information is further included.
优选地, 所述模拟配置包括测试终点信息和测试业务流生成方 式; 所述步骤 B插入的标识信息包括测试标识、时间戳或数据包标识 三个中的至少一个; 所述标识信息插在数据包的指定位置。  Preferably, the simulation configuration includes test end point information and a test service flow generation manner; the identification information inserted in the step B includes at least one of a test identifier, a time stamp, or a data packet identifier; the identifier information is inserted in the data. The specified location of the package.
优选地, 所述测试设定还包括环回设定; 所述步骤 D 的环回是 基于环回设定进行的。  Preferably, the test setting further includes a loopback setting; the loopback of the step D is performed based on a loopback setting.
优选地, 所述环回设定为非对称的环回设定, 所述步骤 D 包括 对测试业务流中的数据包返回速率或数据包大小进行设定。  Preferably, the loopback is set to an asymmetric loopback setting, and the step D includes setting a packet return rate or a packet size in the test service flow.
优选地, 所述测试设定还包括访问控制表; 所述步驟 D 中获取 测试业务流是基于访问控制表进行的。  Preferably, the test setting further includes an access control table; and the obtaining the test service flow in the step D is performed based on the access control list.
本发明提供的一种网络性能测试系统, 包括: 通过网络相连的测 试起点设备和测试终点设备, 以及用于管理测试过程的测试管理设 备;所述测试起点设备根据测试设定模拟并插入承载有具体业务应用 的测试业务流, 并将所述测试业务流发往所述测试终点设备; 所述测 试终点设备根据配置的测试设定提取所述测试业务流,并根据提取的 测试业务流以供分析所述网络的服务质量,或者将获得的测试业务流 环回到所述测试起点, 进行返程业务测试。  The network performance testing system provided by the present invention comprises: a test starting point device and a test end point device connected through a network, and a test management device for managing a test process; the test starting point device is simulated and inserted according to the test setting. Testing the service flow of the specific service application, and sending the test service flow to the test end point device; the test end point device extracts the test service flow according to the configured test configuration, and provides the test service flow according to the extracted test service flow The service quality of the network is analyzed, or the obtained test service flow is looped back to the test starting point to perform a return service test.
优选地,所述测试设定是由测试管理设备对测试起点设备和测试 终点设备配置的;或者是由测试管理设备配置测试设定中的测试终点 设备地址信息和测试业务类型 ,测试起点设备和测试终点设备协商其 余设施设定或者事先静态配置测试设定。 Preferably, the test setting is performed by the test management device to the test starting device and the test The endpoint device configuration; or the test endpoint device address information and test service type in the test management device configuration test settings, the test start device and the test endpoint device negotiate the remaining facility settings or statically configure the test settings in advance.
优选地, 所述测试起点设备包括:  Preferably, the test starting device comprises:
测试设定存储单元, 用于存储测试设定;  a test setting storage unit for storing test settings;
测试流插入单元,耦合于所述测试设定存储单元, 用于根据存储 的测试设定模拟生成测试业务流,并将其插入到测试起点设备发送的 正常业务流中;  a test stream insertion unit coupled to the test setting storage unit, configured to generate a test service flow according to the stored test set simulation, and insert the test service flow into a normal service flow sent by the test start device;
所述测试终点设备包括:  The test endpoint device includes:
测试设定存储单元, 用于存储测试设定;  a test setting storage unit for storing test settings;
终点测试流提取单元,用于根据所述测试设定从所述测试终点设 备接收的业务流中提取出对应的测试业务流;  And an end point test stream extracting unit, configured to extract a corresponding test service flow from the service flow received by the test end point device according to the test setting;
终点测试处理单元,分别耦合于所述测试设定存储单元及所述测 试流提取单元, 用于根据测试设定对测试业务流进行分析处理。  The end point test processing unit is coupled to the test setting storage unit and the test stream extraction unit, respectively, for performing analysis processing on the test service flow according to the test setting.
优选地,所述重点测试处理单元进行的分析处理包括将测试业务 流环回给测试起点设备;所述测试起点设备还包括起点测试流提取单 元,用于从所述测试起点设备接收的正常业务流中提取出从测试终点 返回的测试业务流。  Preferably, the analyzing process performed by the key test processing unit includes looping back the test service flow to the test starting device; the test starting device further includes a starting test flow extracting unit, configured to receive normal services from the test starting device. The test traffic flow returned from the test endpoint is extracted from the flow.
优选地,所述测试起点设备和所述测试终点设备分别为具有中央 处理单元及存储功能的网络设备。  Preferably, the test starting point device and the test end point device are respectively network devices having a central processing unit and a storage function.
优选地,所述测试终点设备存储的测试设定包括非对称的环回设 定。  Preferably, the test set stored by the test endpoint device includes an asymmetric loopback setting.
本发明提供的另一种网络性能测试系统, 包括网络管理设备, 测 试起点设备以及测试终点设备,  Another network performance testing system provided by the present invention includes a network management device, a test starting device, and a test end device.
所述网络管理设备用于向指定的测试起点设备和终点设备下发 测试设定;  The network management device is configured to send test settings to the specified test start device and the end device;
所述测试起点设备根据上述测试设定生成测试业务流; 所述测试终点设备根据测试设定识別测试起点设备发来的测试 业务流,并根据测试设定生成返回测试业务流向所述测试起点设备方 向发送。  The test starting device generates a test service flow according to the test setting; the test end device identifies the test service flow sent by the test starting device according to the test setting, and generates a return test service flow to the test starting point according to the test setting. The device is sent in the direction.
优选地,所述测试终点设备存储的测试设定包括非对称流量的测 试设定,测试终点设备依据上述设定生成的返回测试业务流的数据包 速率或大小不同于测试设备发送的测试业务流。  Preferably, the test setting stored by the test end point device includes a test setting of the asymmetric flow, and the data rate or the size of the return test service flow generated by the test end device according to the above setting is different from the test service flow sent by the test device. .
本发明提供的一种测试起点网络设备具有网络管理接口,用于接 收测试管理设备发送的测试设定, 该网络设备还包括: 测试设定存储单元, 用于存储从测试管理设备接收到的测试设 定; The test start network device provided by the present invention has a network management interface, and is configured to receive test settings sent by the test management device, where the network device further includes: a test setting storage unit for storing test settings received from the test management device;
测试流插入单元,根据所述测试设定模拟出基于具体应用的测试 业务流, 并将该测试业务流向测试设定指定的测试终点网络设备发 送。  The test stream insertion unit simulates a specific application-based test service flow according to the test setting, and sends the test service flow to the test end point network device specified by the test setting.
优选地, 所述测试起点网络设备还包括:  Preferably, the test starting network device further includes:
起点测试流提取单元,用于识别从测试终点网络设备接收返回的 测试业务流,并将该返回的测试业务流提取出来,以供管理分析使用。  The starting point test stream extracting unit is configured to identify the test service flow received from the test end network device, and extract the returned test service flow for use in management analysis.
优选地, 所述测试设定包括用于生成测试业务流的模拟配置, 测 试业务流与正常业务流的比例设定, 以及测试标识、 时间戳或数据包 标识三个中的至少一个。  Preferably, the test setting includes an analog configuration for generating a test service flow, a ratio setting of a test service flow to a normal service flow, and at least one of a test identifier, a time stamp, or a packet identifier.
优选地, 所述具体应用是高于网络层的业务。  Preferably, the specific application is a service higher than a network layer.
优选地,所述测试业务流的模拟是通过根据测试设定包括的模拟 配置向设备硬件寄存器中写入相应的参数,以使其快速地生成测试业 务流。  Preferably, the test traffic flow is simulated by writing corresponding parameters to the device hardware registers according to the analog configuration included in the test settings to enable it to quickly generate test traffic flows.
本发明提供的一种测试终点网络设备具有网络管理接口,用于接 收测试管理设备发送的测试设定, 该网络设备还包括:  The test destination network device provided by the present invention has a network management interface, which is used for receiving test settings sent by the test management device, and the network device further includes:
测试设定存储单元, 用于存储从测试管理设备接收到的测试设 定;  a test setting storage unit for storing test settings received from the test management device;
终点测试流提取单元,用于根据所述测试设定从所述测试终点网 络设备接收的业务流中提取出对应的测试业务流。  And an endpoint test stream extracting unit, configured to extract a corresponding test service flow from the service flow received by the test end network device according to the test setting.
优选地, 所述测试终点网络设备还包括: 终点测试处理单元, 用 于根据测试设定将测试业务流环回给测试终点网络设备。  Preferably, the test end network device further comprises: an end point test processing unit, configured to loop back the test service flow to the test end network device according to the test setting.
由以上本发明提供的技术方案可以看出,本发明通过在网络测试 起点设备的业务流入端口的输入方向,模拟与具体业务应用格式相同 的测试业务流, 将其插入到正常业务流中发往测试终点设备; 该测试 业务流同正常业务流一样,经过测试起点至测试终点间的实际网络设 备的正常转发流程, 到达测试终点设备; 在测试终点设备的出端口提 取出该测试业务流, 对其进行 OAM统计, 从而实现了网络端到端的 业务 OAM测试, 比如, 连通性测试、 丟包率测试、 带宽测试等。 由 于测试业务流与实际应用的业务流格式相同, 因而可以检测到 MAC 层以上网络的 OAM功能; 通过测试终点设备更换提取的测试业务流 中的地址信息和数据帧大小和 /或返程数据帧的个数, 并将处理后的 测试业务流通过对称路径或非对称路径环回到测试起点设备进行非 对称业务测试, 进一步检测出回程链路的情况。 因此, 利用本发明, 可以为用户或网络运营商提供基于实际网络的、端到端的 O AM测试 , 全面、 迅速、 准硝地诊断和定位网络故障, 进而提高网络的可用性和 对用户的服务质量。 附图说明 It can be seen from the technical solution provided by the present invention that the present invention simulates the test service flow with the same format as the specific service application in the input direction of the service inflow port of the network test starting device, and inserts it into the normal service flow and sends it to the normal service flow. Testing the end point device; the test service flow is the same as the normal service flow, and the normal forwarding process of the actual network device between the test starting point and the test end point reaches the test end point device; the test service flow is extracted at the out port of the test end point device, It performs OAM statistics to implement end-to-end service OAM testing, such as connectivity testing, packet loss testing, and bandwidth testing. Since the test service flow is the same as the service flow format of the actual application, the OAM function of the network above the MAC layer can be detected; the address information and the data frame size and/or the return data frame in the extracted test service flow are replaced by the test destination device. The number of the test service flows is returned to the test starting device through a symmetric path or an asymmetric path to perform asymmetric service testing, and the backhaul link is further detected. Therefore, with the present invention, It can provide real-time, end-to-end O AM testing for users or network operators to diagnose and locate network faults comprehensively, quickly, and accurately, thereby improving network availability and quality of service to users. DRAWINGS
图 1 是 802.3ah标准描述的以太网的运行维护和管理机制示意 图;  Figure 1 is a schematic diagram of the operation, maintenance, and management mechanism of the Ethernet described in the 802.3ah standard;
图 2是 802.3ah标准中通过物理 PING或线路环回对链路监测过 程的示意图;  Figure 2 is a schematic diagram of the link monitoring process through physical PING or line loopback in the 802.3ah standard;
图 3是 802.3ah标准中通过远端告警对链路监测过程的示意图; 图 4是本发明方法的一个实施例的实现流程图;  3 is a schematic diagram of a link monitoring process by a remote alarm in the 802.3ah standard; FIG. 4 is a flowchart of an implementation of an embodiment of the method of the present invention;
图 5是本发明方法的另一个实施例的实现流程图;  Figure 5 is a flow chart showing an implementation of another embodiment of the method of the present invention;
图 6是同一 L2TP的 VPN组网结构示意图;  6 is a schematic structural diagram of a VPN networking of the same L2TP;
图 7是本发明系统的一个实施例的組网示意图;  7 is a schematic diagram of networking of an embodiment of the system of the present invention;
图 8是本发明系统的另一个实施例的组网示意图。 具体实施方式  Figure 8 is a block diagram of another embodiment of the system of the present invention. detailed description
本发明的核心在于在测试起点设备的业务流入端口的输入方向, 模拟一个承载有具体业务应用的测试业务流,并使该测试业务流中携 带测试标识或时间戳等信息,然后在测试起点将其插入到正常业务流 中发往测试业务流的测试终点设备;测试业务流经过正常转发到达测 试终点设备;在测试终点设备处根据测试标识提取出该测试业务流后 可直接进行基于业务的分析 ,也可以将测试业务流环回到测试起点设 备, 由测试起点设备对从测试终点返回的测试业务流进行分析。  The core of the present invention is to simulate a test service flow carrying a specific service application in the input direction of the service inflow port of the test starting device, and carry the test service flow carrying the test identifier or time stamp and the like, and then at the test starting point The test end device is inserted into the normal service flow and sent to the test service flow; the test service flow is normally forwarded to the test end point device; and the test end point device extracts the test service flow according to the test identifier, and the service-based analysis can be directly performed. The test service flow can also be looped back to the test start device, and the test start flow device analyzes the test service flow returned from the test end point.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图 和实施方式对本发明作进一步的详细说明。  In order to make those skilled in the art better understand the present invention, the present invention will be further described in detail below in conjunction with the drawings and embodiments.
本技术领域人员知道,一方面随着用户需求的不断提升和以太网 带宽技术的发展以及整网 QoS (服务质量)保障能力的提高, 网络对 用户提供端到端的、 具有 SLA (服务等级协议)保障的业务已是一种 要求和趋势。 另外一方面, 运营商的网络虽然在不断扩容完善, 网络 吞吐能力相当巨大, 但这并不意味着,接入用户的各种实际应用业务 都能在运营商网络上顺利传输, 如前所述, 网络的好坏不能决定业务 的好坏。 但如何验证网络提供的服务是否满足 SLA的要求, 目前还 没有一种方法能够对网络提供的服务质量实现端到端基于业务的测 试, 本发明即是适应这种需求而提出的。 在测试开始前,首先需要对发起测试的起点设备以及终点设备进 行测试设定,至少需要让测试起点设备知道测试终点设备的正确的地 址信息以及如何生成业务流, 即模拟配置,模拟配置可通过向起点设 备的寄存器中写入可以表征待测试的业务应用的特定长度的字节,然 后生成测试业务流, 进而将其通过硬件插入; 其次双方需要知道如何 标识和识别收到测试业务流,即设定测试标识或者时间戳或者数据包 ID, 以及是否环回测试等设定, 识别和环回设定可以通过下发 ACL 规则实现; 如果测试和用户正常业务是分开的, 也可以不设定测试标 识, 因为只有测试业务流存在的情况下不需要进行识别, 可以通过设 定测试业务流的时间戳或者数据包 ID来配合测试; 如果仅仅需要进 行单程测试也不需要进行环回设定; 如果进行带内测试, 可以进行插 入速率的设定; 如果要进行非对称流量测试, 可以将环回设定的速率 或者数据包大小进行相应的修改;以上描述表明本发明在测试设定上 具有相当的灵活性。上述测试设定一般由测试管理中心或网管通过测 试管理通道对测试起点和终点设备进行配置,测试设定本身也可以通 过设备相互协商的方法进行,如管理设备只需要将终点设备地址信息 和需要测试的业务类型等基本信息告知起点设备,其他的测试设定可 通过设备双方相互协商确定或者事先静态配置实现。以下进一步描述 本发明的具体实施: Those skilled in the art know that on the one hand, as the demand of users continues to increase and the development of Ethernet bandwidth technology and the QoS (Quality of Service) support capability of the entire network are improved, the network provides end-to-end (SLA) service level agreements to users. The guaranteed business is already a requirement and trend. On the other hand, although the network of operators is constantly expanding and improving, the network throughput is quite large, but this does not mean that all kinds of practical application services of access users can be transmitted smoothly on the carrier network, as mentioned above. The quality of the network cannot determine the quality of the business. However, how to verify whether the services provided by the network meet the requirements of the SLA, there is currently no way to implement end-to-end service-based testing of the quality of service provided by the network, and the present invention is adapted to meet such needs. Before the test starts, it is first necessary to test the starting device and the terminal device that initiate the test. At least the test starting device needs to know the correct address information of the test terminal device and how to generate the service flow, that is, the simulation configuration, and the simulation configuration can be passed. Write a byte of a specific length that can characterize the service application to be tested to the register of the starting device, and then generate a test service flow, and then insert it through hardware; then both parties need to know how to identify and identify the received test service flow, ie Set the test ID or timestamp or packet ID, and whether to set the loopback test. The identification and loopback settings can be implemented by issuing ACL rules. If the test is separate from the normal service of the user, you can also set it. Test identification, because only the test traffic flow does not need to be identified, you can set the test service flow timestamp or packet ID to match the test; if you only need one-way test, you do not need to perform loopback setup; If you perform an in-band test, you can set the insertion rate. ; If you want to test asymmetric traffic, the rate may be set or loopback packet size to be amended; described above shows that the present invention has a considerable flexibility in the test set. The above test settings are generally configured by the test management center or the network management system through the test management channel. The test settings themselves can also be negotiated by the device. For example, the management device only needs to address the terminal device address and needs. The basic information such as the type of service to be tested is informed to the starting device, and other test settings can be determined by mutual agreement between the two parties or static configuration in advance. The specific implementation of the invention is further described below:
参照图 4所示本发明方法的流程图, 本发明方法包括以下步骤: 首先, 在完成测试设定以后, 在步骤 401: 生成测试业务流。 在 测试起点设备的业务流的入端口,根据测试设定模拟生成一个基于该 业务应用的测试业务流,这样该测试业务流就可以包含表征该应用的 信息, 即 MAC层以上 (包括 IP层、 TCP/UDP层以及更高层次) 的 一些信息, 例如当业务是 FTP (文件传输协议)时, 测试业务流的报 文格式就是根据 FTP协议以及地址信息生成的,一般来说端口为 21。  Referring to the flowchart of the method of the present invention shown in Fig. 4, the method of the present invention comprises the following steps: First, after the test setup is completed, in step 401: a test service flow is generated. In the ingress port of the service flow of the test starting device, a test service flow based on the service application is generated according to the test setting, so that the test service flow may include information indicating the application, that is, the MAC layer or more (including the IP layer, Some information about the TCP/UDP layer and higher level, for example, when the service is FTP (File Transfer Protocol), the message format of the test service flow is generated according to the FTP protocol and the address information, and the port is generally 21.
步骤 402: 在测试起点的入端口处插入测试业务流。  Step 402: Insert a test service flow at the ingress port of the test start point.
考虑带内测试的优势,可以根据测试设定在业务数据包的正常转 发流程前, 按一定比例将测试业务流插入到正常业务流中, 如测试业 务流和正常业务流各占 50%的流量。当然也可以中止正常业务流后插 入测试业务流。  Considering the advantages of in-band testing, the test service flow can be inserted into the normal service flow according to a certain proportion before the normal forwarding process of the service data packet, for example, the test service flow and the normal service flow each account for 50% of the traffic. . Of course, it is also possible to suspend the normal service flow and insert the test service flow.
测试业务流的插入可以通过硬件配合来完成 (当然也可以通过软 件的方式实现), 具体过程如下:  The insertion of the test service flow can be done by hardware cooperation (of course, it can also be implemented by software). The specific process is as follows:
根据需要模拟的业务应用类型以及测试设定,将生成的测试业务 流的数据包特征字节内容, 如包头前一定字节的内容: 目的 MAC地 址、 源 MAC地址、 目的 IP地址、 源 IP地址、 长度 /类型、 子类型、 版本号、 端口号、 编码等信息写入测试业务流特征寄存器, 硬件读取 这些特征寄存器, 并且自动插入净荷及填充字(净荷和填充字设定可 以包含在测试设定中), 以及自动根据测试设定插入测试标识、 时间 戳或者数据包 ID中至少一个, 这些信息可以插在净荷中, 或者是数 据包的 MAC头或者是 IP头等任何的指定位置。 According to the type of business application to be simulated and the test settings, the data packet characteristic byte content of the generated test service flow, such as the content of a certain byte before the packet header: Destination MAC address The address, source MAC address, destination IP address, source IP address, length/type, subtype, version number, port number, encoding, etc. are written into the test traffic stream feature register, the hardware reads these feature registers, and the payload is automatically inserted. And a padding word (the payload and padding settings can be included in the test settings), and automatically inserting at least one of a test flag, a timestamp, or a packet ID according to the test settings, the information can be inserted in the payload, or Is the MAC header of the packet or any specified location such as the IP header.
测试流数据包所需的净荷数据可预先写入存储器中,插入时根据 测试业务流特征寄存器中的数据包长度信息从存储器中读取相应长 度的净荷数据 , 也可以随机产生测试流数据包所需的净荷数据。  The payload data required for testing the stream data packet may be pre-written in the memory. When inserted, the payload data of the corresponding length is read from the memory according to the packet length information in the test traffic stream feature register, and the test stream data may also be randomly generated. The payload data required for the package.
测试业务流的插入速度可以根据测试业务流的流量大小进行调 节。 测试业务流的插入可以与正常业务流互斥, 也就是说, 根据实际 需要, 在测试时需要停掉正常的业务流; 也可以按照一定的比例同时 进行, 比如测试业务流和正常业务流各占 50%的流量等。  The insertion speed of the test service flow can be adjusted according to the traffic volume of the test service flow. The insertion of the test service flow can be mutually exclusive with the normal service flow. That is to say, according to the actual needs, the normal service flow needs to be stopped during the test; or it can be performed at a certain ratio, for example, the test service flow and the normal service flow. 50% of the traffic, etc.
在步骤 403: 按照业务的正常转发流程在网络的节点间转发测试 业务流。  In step 403: the test service flow is forwarded between nodes of the network according to the normal forwarding process of the service.
这些测试业务流模拟了具体业务应用的业务流,所以从测试起点 设备发往测试终点设备的过程中,各网络设备对测试业务流转发决策 是相同的, 在网络节点设备看来, 就好像正常业务流一样, 根据其包 含的目的地址, 进行正常业务流的转发流程。  These test service flows simulate the service flow of a specific business application, so in the process of sending the test start device to the test end device, each network device has the same decision for the test service flow forwarding, and it seems to be normal in the network node device. Like the service flow, the normal service flow forwarding process is performed according to the destination address it contains.
当测试业务流转发到测试终点设备后,就可将这些业务 提取出 来, 对其进行分析, 从而确定网络运行状况。  Once the test traffic is forwarded to the test endpoint, these services can be extracted and analyzed to determine network health.
步骤 404: 在测试终点根据获取的测试业务流检测网络性能。 如前所述, 测试终点设备可以根据测试设定利用 ACL去识别测 试业务流的测试标识、 或者时间戳或者数据包 ID, 从而提取出相应 的测试业务流, 送往上层软件进行行分析, 比如, 当测试业务流包含 时间戳时,可根据单位时间内接收到数据包的个数确定起点设备和终 点设备的连接速度、 或时间延迟等, 这些将在后面分别详细说明。  Step 404: Detect network performance according to the obtained test service flow at the test end point. As described above, the test endpoint device can use the ACL to identify the test identifier of the test service flow, or the timestamp or the packet ID according to the test setting, thereby extracting the corresponding test service flow and sending it to the upper layer software for line analysis, such as When the test service flow includes a timestamp, the connection speed and time delay of the starting device and the destination device may be determined according to the number of received data packets per unit time, which will be described in detail later.
或者说,所述测试设定包括由测试管理设备预先配置的测试终点 出端口的访问控制表, 在该表中包含发送方和接收方的地址信息、 测 试流 ID等信息。 在测试设备的出端口处, 测试设备根据这些信息提 取出相应的测试数据流, 然后, 对提取的测试数据流进行运行管理和 维护统计, 比如, 网络的连通性、 错误统计、 丢包率统计(根据包的 个数或者时戳对应的 ID顺序)等。  In other words, the test setting includes an access control list of the test destination port pre-configured by the test management device, and the address information of the sender and the receiver, the test stream ID, and the like are included in the table. At the outbound port of the test device, the test device extracts the corresponding test data stream according to the information, and then performs operation management and maintenance statistics on the extracted test data stream, for example, network connectivity, error statistics, and packet loss rate statistics. (Depending on the number of packets or the ID order corresponding to the time stamp).
请一并参阅图 5, 除了直接处理以外, 考虑到大部分情况下用户 上下行的路径是不对称的, 还可以转入步骤 405。 步骤 405: 进行环回测试, 在本步驟中, 终点设备将提取到的测 试业务流处理后环回到测试起点, 进行返程业务测试, 返回的过程只 是依据测试设定, 利用 ACL规则将包头的 的和源地址等作相应的 修改后反向发送给起点设备。 当需要进行流量非对称测试的时候, 比 如用户使用的是 ADSL接入或者上下行不对称 VPN接入时, 其上下 行的带宽是非对称的,终点设备可根据测试设定中的模拟配置改变发 送速率或者数据包的长度,以模拟出承诺给用户上下行的速率进行测 试, 这样整个测试将更加接近用户真实的实用情况, 网络故障的定位 将更加准确和完整。 Referring to FIG. 5 together, in addition to the direct processing, in consideration of the fact that the path of the user's uplink and downlink is asymmetrical in most cases, it is also possible to proceed to step 405. Step 405: Perform a loopback test. In this step, the terminal device processes the extracted test service flow and returns it to the test starting point to perform a return service test. The return process is based on the test setting, and the ACL rule is used to perform the packet header. And the source address and so on are modified accordingly and sent back to the starting device. When traffic asymmetry testing is required, for example, when the user uses ADSL access or uplink and downlink asymmetric VPN access, the bandwidth of the uplink and downlink is asymmetric, and the terminal device can change according to the analog configuration in the test setting. The rate or the length of the data packet is simulated to test the rate of the user's uplink and downlink, so that the whole test will be closer to the user's actual practical situation, and the location of the network fault will be more accurate and complete.
测试终点和测试起点主要可以进行如下的网络性能测试。  The test end point and the test starting point can mainly perform the following network performance tests.
连通性和丟包率的统计:  Statistics of connectivity and packet loss rate:
根据一定时间内接收到的数据包个数与发送的数据包个数进行 比较获得。 由硬件统计出一定时间内接收到的数据包的个数, 再由软 件根据硬件统计出的个数计算丟包率。  It is obtained by comparing the number of data packets received within a certain period of time with the number of transmitted data packets. The number of data packets received in a certain period of time is counted by the hardware, and the packet loss rate is calculated by the software according to the number of hardware statistics.
( 2 ) 实际使用带宽的计算:  (2) Calculation of actual use bandwidth:
根据单位时间内接收到的业务流量计算获得。  Calculated based on the traffic received in the unit time.
( 3 ) 网络传输时延的测试:  (3) Test of network transmission delay:
根据测试数据包中携带的时间我信息, 计算网络传输的时间延 迟。 可以分为单程时延测试和往返时延测试两种情况。  Calculate the time delay of network transmission based on the time I carry information in the test packet. Can be divided into two-way delay test and round-trip delay test.
进行单程时延测试时,测试起点设备和测试终点设备通过网络时 间协议, 进行网络时间的同步。 然后各设备将时间配置到各自的时间 寄存器中, 由硬件自动递增计时。 测试起始点设备在发送测试业务流 时, 在测试数据帧中打上当地的时间戳标记, 这个带有时间戳标记的 数据包通过网络的过程中, 时间戳的信息不会改变。 到了测试终点设 备后, 测试终点设备从测试业务流中将时间戳提取出来, 并与当地的 当前时间进行比较, 就可以得到两者之间的时间间隔, 也即这个数据 包的网络传输时延。  When performing the one-way delay test, the test start device and the test end device synchronize the network time through the network time protocol. Each device then configures the time into its own time register, which is automatically incremented by hardware. When the test starting point device sends the test service flow, the test data frame is marked with a local timestamp. During the process of passing the time-stamped data packet through the network, the timestamp information does not change. After the test end device is reached, the test end device extracts the time stamp from the test service flow and compares it with the current local time to obtain the time interval between the two, that is, the network transmission delay of the data packet. .
如果进行单程传输时延测试,由于发送和接收是在两个异地不同 设备之间进行的, 而且网络时间协议本身存在一定的时间误差, 两台 异地设备的时钟并不是精确同步的,因此采用单程传输进行时延测试 时, 测试结果会存在一定的时间误差。  If the one-way transmission delay test is performed, since the transmission and reception are performed between two different devices, and the network time protocol itself has a certain time error, the clocks of the two remote devices are not accurately synchronized, so one-way operation is adopted. When the transmission is tested for delay, there will be a certain time error in the test results.
为了更精确地得到网络传输时延, 可以进行往返时延测试。 测试 终点设备收到测试数据包后,不改变测试起点设备打上的时间戳信息 标志, 将测试数据包按原路环回。 当测试起点设备从回程接收到自身 发出的带有时间戳标志的测试数据包后, 提取出该时间戳, 并根据接 收该测试数据包时的当前时间信息, 得到准确的往返传输时延。 由于进行往返时延测试时测试业务流的发送和接收都是使用的 一个设备的参考时间, 所以可以得到准确的测试值。 In order to obtain network transmission delay more accurately, round-trip delay testing can be performed. After receiving the test data packet, the test endpoint device does not change the timestamp information flag marked on the test start device, and loops the test data packet according to the original path. When the test starting device receives the test packet with the time stamp marked by itself from the backhaul, the timestamp is extracted, and according to the connection The current time information when the test packet is received, and the accurate round-trip transmission delay is obtained. Since the test traffic flow is sent and received during the round-trip delay test, the reference time of one device used is obtained, so that an accurate test value can be obtained.
( 4 )返程业务测试:  (4) Return business test:
根据测试终点访问控制表的配置,对收到的测试数据包作相应的 处理, 然后将其环回到测试起点, 可以进行非对称路径、 非对称业务 流流量等的测试。  According to the configuration of the test endpoint access control list, the received test data packet is processed accordingly, and then looped back to the test starting point, and the asymmetric path, asymmetric traffic flow, and the like can be tested.
本发明对于不同的业务测试,通过模拟与该业务流相同的测试业 务流, 从而实现了对任何业务的、基于实际网络的端到端测试, 为网 络的 QoS提供更好的监测手段。  The present invention performs end-to-end testing of any service based on actual network by simulating the same test service flow as the service flow for different service tests, and provides better monitoring means for network QoS.
下面以二层隧道协议 L2TP的封装格式为例, 说明本发明中生成 的测试业务流。  The following describes the test service flow generated in the present invention by taking the encapsulation format of the Layer 2 tunneling protocol L2TP as an example.
本技术领域人员知道, L2TP的封装格式有两种, 一种是封装在 IP数据包中, 另一种是封装在 IP后的 UDP (用户数据报协议 )数据 包中。 下面以 L2TP封装在 IP数据中为例进行说明。  Those skilled in the art know that there are two types of L2TP encapsulation formats, one is encapsulated in IP data packets, and the other is encapsulated in IP UDP (User Datagram Protocol) data packets. The following is an example of L2TP encapsulation in IP data.
L2TP的封装格式如下表 1所示, 是一个以太网数据帧封装在 IP 隧道中的一个格式, 包含两层 MAC头和两层 IP头。  The L2TP encapsulation format is as shown in Table 1. It is a format in which an Ethernet data frame is encapsulated in an IP tunnel, and includes a two-layer MAC header and two layers of IP headers.
表 1: 目的 MAC地址 48比特 源 MAC地址 48比特 以太网封装头格式 固定的 8100 16比特 Table 1: Destination MAC address 48 bits Source MAC address 48 bits Ethernet encapsulation header format Fixed 8100 16 bits
( 18个字节) VLAN ID和优先级 16比特 (18 bytes) VLAN ID and priority 16 bits
EtherType 16比特 版本号 4比特 EtherType 16 bit version number 4 bits
IP包头长度 4比特 服务类型 8比特IP header length 4 bits Service type 8 bits
IP 头封装格式 IP 包总长度 16比特 ( 20个字节) IP包标志 16比特 IP header encapsulation format IP packet total length 16 bits (20 bytes) IP packet flag 16 bits
IP分段标志 3比特 IP分段偏移 13比特 IP segmentation flag 3 bits IP segment offset 13 bits
TTL生存时间 8比特 TTL survival time 8 bits
IP协议域 8比特IP protocol domain 8 bits
IP 源地址 32比特IP source address 32 bits
IP 目的地址 32比特IP destination address 32 bits
L2TP 头控制 12比特L2TP header control 12 bits
L2TP 头版本 4比特L2TP header version 4 bits
L2TP 头封装格式 保留字段 16比特 ( 16个字节) Session ID 32比特 L2TP header encapsulation format reserved field 16 bits (16 bytes) Session ID 32 bits
Cookie (可选 ) 最大 64比 特 以太网 Over PPP 头 固定的 00-31 16比特 ( 4个字节) 标志和填充 8比特  Cookie (optional) Max 64 Bit Ethernet Over PPP Head Fixed 00-31 16 bits (4 bytes) Flag and padding 8 bits
类型 (固定为 01 ) 8比特 目的 MAC地址 48比特 源 MAC地址 48比特 用户的以太网封装头格式(18 固定的 8100 16比特 个字节) VLAN ID和优先级 16比特  Type (fixed to 01) 8 bits Destination MAC address 48 bits Source MAC address 48 bits User Ethernet encapsulation header format (18 fixed 8100 16-bit bytes) VLAN ID and priority 16 bits
EtherType 16比特 版本号 4比特 EtherType 16 bit version number 4 bits
IP包头长度 4比特 服务类型 8比特 用户的 IP 头封装格式 ( 20个字 IP 包总长度 16比特 节) IP包标志 16比特 IP header length 4-bit service type 8-bit user IP header encapsulation format (20 words IP packet total length 16 bits) Section) IP packet flag 16 bits
IP分段标志 3比特 IP segmentation flag 3 bits
IP 分段偏移 13比特 IP segment offset 13 bits
TTL生存时间 8比特 TTL survival time 8 bits
IP协议域 8比特IP protocol domain 8 bits
IP 源地址 32比特 IP source address 32 bits
IP 目的地址 32比特 用户的静负荷 用户的静负荷 长度可变 用户的 IP包校验 ( 4Byte ) IP数据包的校验 32比特 用户 的以太网数据帧校验 以太网数据帧的校验 32比特 ( 4Byte ) 封装隧道的 IP包校验 ( 4B te ) IP数据包的校驗 32比特 封装隧道的以太网数据帧校验 以太网数据帧的校验 32比特 ( 4Byte ) 由于标准中以太网 Over PPP (承载点对点协议) 的 CRC (循环 冗余校验) 是可选的, 所以上表中最后的校验为 4个部分, 分别是 针对封装隧道的 MAC 头和 IP头、以及用户业务的 MAC 头和 IP头 的校验。 L2TP封装头的格式为 92个字节。 IP destination address 32-bit user static load user static load length variable user IP packet check (4 Byte) IP packet check 32-bit user Ethernet data frame check Ethernet data frame check 32-bit (4Byte) Encapsulation tunnel IP packet check (4B te) IP packet check 32-bit encapsulated tunnel Ethernet data frame check Ethernet data frame check 32 bits (4Byte) Due to standard Ethernet Over PPP The CRC (Cyclic Redundancy Check) of the (bearing point-to-point protocol) is optional, so the last check in the above table is 4 parts, which are the MAC header and IP header for the encapsulated tunnel, and the MAC header of the user service. And the verification of the IP header. The format of the L2TP encapsulation header is 92 bytes.
例如, 用户 A和用户 B处于同一个 L2TP的 VPN (虚拟专用网) 内, 两者通过网络进行 VPN内的业务互通, 其组网结构如图 6所示: 用户 A通过网关 A接入网络, 用户 B通过网关 B接入网络。 用户 A向用户 B发送业务时, 用户 A的 MAC地址和 IP地址 作为里层 MAC 头和 IP 头的源 MAC地址和源 IP地址,而用户 B 的 MAC地址和 IP地址作为里层 MAC 头和 IP 头的目的 MAC地址和 IP地址。  For example, user A and user B are in the same L2TP VPN (Virtual Private Network), and the two communicate with each other through the network. The networking structure is shown in Figure 6. User A accesses the network through gateway A. User B accesses the network through gateway B. When user A sends a service to user B, user A's MAC address and IP address are used as the source MAC address and source IP address of the inner MAC header and IP header, and user B's MAC address and IP address are used as the inner MAC header and IP address. The destination MAC address and IP address of the header.
外层的 MAC地址和 IP地址, 是由外层隧道的网关 A和网关 B 的地址决定的,在用户 A向用户 B发送业务时,网关 A的 MAC地 址和 IP地址作为外层封装的源 MAC地址和源 IP地址,而网关 B 的 MAC地址和 IP地址作为外层封装的目的 MAC地址和 D的 IP地 址。 The MAC address and IP address of the outer layer are determined by the addresses of gateway A and gateway B of the outer tunnel. When user A sends traffic to user B, the MAC address of gateway A The address and IP address are used as the source MAC address and source IP address of the outer package, and the MAC address and IP address of the gateway B are used as the destination MAC address of the outer package and the IP address of the D.
在进行测试之前, 网关 A应当与网关 B进行测试规则的协商, 或者由网管或人工进行配置进行测试设定。例如对于测试标识可选用 L2PT头的 16个比特的保留字段来表示, 如选用数值 20; 通过协商 或者配置终点设备 ACL, 选择进行环回。  Before conducting the test, gateway A should negotiate with the gateway B for test rules, or be configured by the network administrator or manually for test setup. For example, the test identifier can be represented by a reserved field of 16 bits of the L2PT header, such as the value 20; by negotiation or by configuring the destination device ACL, the loopback is selected.
当进行常规测试时, 终点设备根据配置好的 ACL的动作, 将测 试业务流中的包头前面 92个字节全部替换成寄存器中的内容, 并修 改或维持原来的时戳内容,从测试终点网络设备的出端口环回到上行 处理 , 从而让该测试业务流自动返回到测试起点。  When performing the routine test, the terminal device replaces the 92 bytes in front of the packet header in the test service flow with the contents of the register according to the configured ACL action, and modifies or maintains the original time stamp content from the test endpoint network. The egress port of the device loops back to the upstream processing, so that the test service flow automatically returns to the test starting point.
当进行非对称业务流量测试时, 根据 ACL (访问控制表) 的动 作, 将测试业务流中的包头前面 92个字节全部替换成寄存器中的内 容, 并修改或维持原来的时戳内容。 并且同时可以根据配置, 改变测 试数据包的长度、或者是改变发送数据包的个数。 然后再从测试终点 网络设备的出端口环回到上行处理,从而让该测试业务流自动返回到 测试起点。  When performing asymmetric traffic test, according to the action of the ACL (access control list), all 92 bytes of the header in the test service flow are replaced with the contents of the register, and the original time stamp content is modified or maintained. At the same time, depending on the configuration, the length of the test packet can be changed, or the number of transmitted packets can be changed. Then, from the test terminal network device's egress port loop back to the upstream processing, the test service flow is automatically returned to the test starting point.
假设现在用户 A发现其与用户 B不能进行正常的业务连接; 其 将这一情况投诉到运营商; 如果运营商利用传统方法从网关 A发起 到网关 B的连通测试,结果并未发现自身网络有任何异常,无法解决 客户投诉。造成这样的问题原因很可能就在运营商的测试是站在没有 承载应用的网络本身;而客户的问题是承载了具体应用的网络连接不 正常。 例如网关 A和网关 B之间的某个网络设备阻断了用户 A的私 有 IP地址, 这在传统的测试中是无法发现的。  Assume that user A now finds that it cannot perform normal service connection with user B; it complains to the operator about this situation; if the operator initiates the connectivity test from gateway A to gateway B by using the traditional method, the network does not find that the network has Any exceptions cannot resolve customer complaints. The reason for this problem is that the operator's test is based on the network itself that does not carry the application; and the customer's problem is that the network connection carrying the specific application is not normal. For example, a network device between gateway A and gateway B blocks user A's private IP address, which cannot be found in traditional tests.
而利用本发明的上述的具体测试方法只要模拟出封装有用户数 据包的测试业务流进行测试即可快速找到问题设备所在。  By using the above specific test method of the present invention, as long as the test service flow encapsulated with the user data packet is simulated and tested, the problem device can be quickly found.
更进一步地说, 假设用户 A和用户 B之间的 FTP业务不通, 而 其他业务转发正常。 此时需要重新进行测试设定, 然后起点设备根据 模拟配置, 生成基于 FTP协议的测试业务流, 以表征测试业务流是 基于 FTP应用的。 接下来, 运营商可选择从网关 A开始逐个进行测 试, 也可以采用更快捷的二分法, 即假设网关 AB之间存在 4N个设 备, 先进行起点设备与第 2N设备之间的测试, 若测试通过, 则与第 3N设备进行测试, 若没有通过, 则与第 N设备进行测试 .....如此反 复进行测试直到找到阻断 FTP业务的网络设备。 一般来说, 此时运 营商管理员察看该设备的配置, 如 ACL规则, 寻找到 FTP业务被阻 断原因,假设该网络设备的 ACL规则配置失当导致 FTP业务被阻断, 管理员只要作相应的修改即可恢复用户的 FTP业务。 假设用户 FTP 业务并没有被阻断, 只是传输速率相当緩慢, 同样可以修改测试设定 后, 釆用上述方法找到导致传输速率緩慢的瓶颈设备, 相应修改网络 设备配置或通过更换设备软硬件, 恢复用户正常的传输速率。 Further, it is assumed that the FTP service between User A and User B is unreachable, and other services are forwarded normally. At this point, the test setup needs to be re-executed, and then the starting device generates a test service flow based on the FTP protocol according to the simulation configuration, so that the test service flow is based on the FTP application. Next, the operator can choose to start the test one by one from the gateway A, or use the faster dichotomy, that is, if there are 4N devices between the gateways AB, the test between the starting device and the 2N device is performed first, if the test After passing, the test is performed with the 3N device, and if it is not passed, the test is performed with the Nth device..... The test is repeated until the network device blocking the FTP service is found. Generally speaking, the operator administrator checks the configuration of the device, such as the ACL rule, and finds that the FTP service is blocked. If the ACL rule of the network device is incorrectly configured, the FTP service is blocked. The administrator can restore the FTP service of the user by making the corresponding modification. Assume that the user FTP service is not blocked, but the transmission rate is quite slow. After the test settings can be modified, use the above method to find the bottleneck device that causes the transmission rate to be slow. Modify the network device configuration or restore the device hardware and software. The normal transmission rate of the user.
参照图 7, 图 7示出了本发明系统的一个实施例的组网框图: 该系统包括: 测试管理设备 600、 测试起点设备 601及测试终点 设备 602, 这些设备通过网络链路相连, 比如, 同轴电线、 光缆等。  Referring to Figure 7, there is shown a block diagram of an embodiment of a system of the present invention: The system includes: a test management device 600, a test origin device 601, and a test endpoint device 602, which are connected by a network link, for example, Coaxial wires, optical cables, etc.
不同网络的互联需要不同的网络节点设备来实现,业务数据从源 节点到目的节点可能就需要多个节点设备的转发。根据网络拓朴结构 的不同,在测试起点网络设备 601和测试终点网络设备 602之间可能 有一个或多个网络节点设备(图中未示出), 比如, 中继器、 网桥、 路由器、 网关、 网络交换机等。  The interconnection of different networks requires different network node devices to implement, and the service data may need to be forwarded by multiple node devices from the source node to the destination node. Depending on the network topology, there may be one or more network node devices (not shown) between the test origin network device 601 and the test endpoint network device 602, such as repeaters, bridges, routers, Gateways, network switches, etc.
测试管理设备 600完成对测试起点网络设备 601及测试终点网络 设备 602的参数配置及测试过程的管理。  The test management device 600 completes the parameter configuration and test process management of the test start network device 601 and the test end network device 602.
在进行网络服务质量测试时,首先由测试管理设备 600将测试设 定信息通过专用的测试管理通道或者网管使用的物理通道发送给测 试起点设备 601和测试终点设备 602。 比如, 用于生成测试业务流的 模拟配置, 测试流与正常业务流的比例, 需要插入的测试数据流、 需 要检测的性能及统计信息、 测试标识或者时间戳或者数据包 ID。 终 点设备 602的测试设定包括非对称的环回设定,即终点测试处理单元 发送的测试业务流的数据包在速率或者大小上不同于接收到的测试 业务流。  When performing the network service quality test, the test management device 600 first sends the test setting information to the test start device 601 and the test end device 602 through a dedicated test management channel or a physical channel used by the network management. For example, the simulation configuration used to generate the test traffic, the ratio of test flows to normal traffic, the test data flow that needs to be inserted, the performance and statistics that need to be detected, the test ID or timestamp, or the packet ID. The test setup of the endpoint device 602 includes an asymmetric loopback setting, i.e., the packet of the test traffic stream sent by the endpoint test processing unit differs in rate or magnitude from the received test traffic.
在测试起点设备 601的入端口处,根据配置的参数信息插入测试 业务流, 这些测试业务流是基于应用的, 也就是说, 测试业务流的数 据包是 载三层以上的内容。然后将测试业务流与业务流一起发往测 试终点设备。 这些测试业务流同业务流一样, 经过测试起点设备 601 和测试终点设备 602之间的网络节点设备转发后 ,到达测试终点设备 602。  At the ingress port of the test origin device 601, the test service flow is inserted according to the configured parameter information, and the test service flow is application-based, that is, the test service flow data packet is content containing more than three layers. The test traffic is then sent along with the service flow to the test endpoint. These test traffic flows, like the traffic flow, are forwarded by the network node device between the test origin device 601 and the test endpoint device 602 to the test endpoint device 602.
测试终点设备 602收到这些数据后,根据配置的参数信息提取出 其中的测试业务流, 并根据提取的测试业务流检测网络的服务质量。 通常, 可由测试管理设备 600在测试前将出端口 ACL发送给测试终 点设备 602, 测试终点设备 602根据该出端口 ACL识别出测试业务 流的特征并作相应的测试处理, 比如,才艮据配置的发送方和接收方的 地址信息、测试业务流 ID信息等进行错误统计、丟包率统计等操作。 由于在测试起点设备和测试终点设备都需要一些软件或硬件的 处理, 因此,一般来说测试起点设备和测试终点设备都需要具有 CPU (中央处理单元)及存储功能, 比如, 带有 CPU的网絡交换机或其 他网络设备。 同时起点或者终点设备需要具备网络管理接口, 用于接 受测试管理设备或者其他网络管理设备下发的测试设定。 After receiving the data, the test endpoint device 602 extracts the test service flow according to the configured parameter information, and detects the service quality of the network according to the extracted test service flow. Generally, the test management device 600 can send the outbound port ACL to the test end point device 602 before the test, and the test end point device 602 identifies the characteristics of the test service flow according to the egress port ACL and performs corresponding test processing, for example, according to the configuration. The address information of the sender and the receiver, the test service stream ID information, and the like perform operations such as error statistics and packet loss rate statistics. Since both the test start device and the test end device require some software or hardware processing, in general, both the test start device and the test end device need to have a CPU (Central Processing Unit) and storage functions, for example, a network with a CPU. Switch or other network device. At the same time, the starting point or destination device needs to have a network management interface for accepting test settings issued by the test management device or other network management devices.
如图 7所示, 测试起点设备 601包括: 测试设定存储单元 611、 测试流插入单元 612、 起点业务流提取单元 613。  As shown in FIG. 7, the test starting point device 601 includes: a test setting storage unit 611, a test flow inserting unit 612, and a starting point business flow extracting unit 613.
测试起点设备 601接收到测试管理设备 600发送的测试设定后, 将其存储到测试设定存储单元 611中, 需要插入时, 在其出端口处由 测试流插入单元 612读取这些数据,并将其按一定比例插入到正常的 业务流中。 在业务流插入过程中, 可以根据测试业务流的流量大小调 节测试业务流插入到正常业务流中的速度,也可以中止正常业务流后 插入测试业务流。  After receiving the test setting sent by the test management device 600, the test start device 601 stores it in the test setting storage unit 611, and when it needs to be inserted, the test stream insertion unit 612 reads the data at its out port, and Insert it into a normal business flow in a certain proportion. During the insertion of the service flow, the test service flow can be inserted into the normal service flow according to the traffic volume of the test service flow, or the test service flow can be inserted after the normal service flow is aborted.
测试终点设备 602包括: 测试设定存储单元 621、 测试业务流提 取单元 622和终点测试处理单元 623。  The test endpoint device 602 includes: a test setup storage unit 621, a test traffic flow extraction unit 622, and an endpoint test processing unit 623.
测试终点设备 602接收到测试管理设备 600发送的测试设定后, 将其存储到测试设定存储单元 621中, 当收到网络节点设备转发来的 业务流后,测试业务流提取单元 622根据存储的测试设定从这些业务 流中提取出对应的测试业务流。测试处理单元 623根据测试流特征信 息对提取出的测试业务流作直接分析或者转入环回处理。  After receiving the test settings sent by the test management device 600, the test destination device 602 stores them in the test setting storage unit 621. After receiving the service flow forwarded by the network node device, the test service flow extraction unit 622 stores the data according to the storage. The test setup extracts the corresponding test traffic from these traffic flows. The test processing unit 623 performs direct analysis or loopback processing on the extracted test traffic according to the test flow feature information.
如果对测试业务流需要做环回处理,则可由测试管理设备 600将 包含环回设定(可用 ACL实现) 的测试设定通过出端口下发给测试 终点设备 602, 测试终点设备 602提取出相应的测试业务流后, 根据 ACL 的动作, 作相应的数据包处理, 如根据动作指示, 替换包头中 的一些字节, 并打上相应的时戳内容,从测试终点网络设备的出端口 环回到测试起点网络设备;或者如果测试设定包括非对称流量测试设 定, 则可修改返回数据包的速率或者大小,使返回的测试业务流不同 于原始的测试业务流, 模拟出非对称流量比例设定。  If loopback processing is required for the test service flow, the test setting including the loopback setting (available by the ACL) may be sent by the test management device 600 to the test endpoint device 602 through the egress port, and the test endpoint device 602 extracts the corresponding After testing the service flow, according to the action of the ACL, perform corresponding packet processing, such as replacing some bytes in the packet header according to the action indication, and putting the corresponding time stamp content, and returning from the exit port of the test destination network device. Test the starting network device; or if the test setting includes an asymmetric traffic test setting, modify the rate or size of the returned packet so that the returned test traffic is different from the original test traffic, simulating the asymmetric traffic ratio setting set.
测试起点设备 601 接收到网络节点设备转发来的返回测试业务 流后,由起点测试流提取单元 613从这些业务流中提取出对应的返回 测试业务流, 对其作性能分析, 从而可以得知回程链路的运行状况。  After the test start device 601 receives the return test service flow forwarded by the network node device, the start test flow extraction unit 613 extracts the corresponding return test service flow from the service flows, and performs performance analysis on the flowback, so that the backhaul can be known. The health of the link.
上述起点和终点设备中包含的测试设定存储单元 611、 测试流插 入单元 612、 起点业务流提取单元 613、 起点测试处理单元 614、 测 试设定存储单元 621、 测试业务流提取单元 622和终点测试处理单元 623都是基于逻辑划分的, 其在软硬件的实现形式上是可变的, 本领 域的技术人员可以通过上迷的介绍具有不同的软硬件实现方式,但这 些方式皆属于不脱离本发明精神的形式变化。特别是前文中提到测试 设定的静态配置,此时除了测试终点设备的地址信息以及本次测试的 业务类型,其他完全可以通过事先配置的方式把各种应用本身的模拟 配置、 环回设定、 插入速率设定等存储在测试设定存储单元中, 而且 可以进行多组测试设定以实现多个测试任何的设定,如设定单程测试 任务、 环回测试任务以及非对称流量测试任务。 The test setting storage unit 611, the test flow insertion unit 612, the start service flow extraction unit 613, the start point test processing unit 614, the test setting storage unit 621, the test service flow extraction unit 622, and the end point test included in the above-described start point and destination devices are included. The processing unit 623 is based on logical division, which is variable in the implementation form of software and hardware. The technical personnel of the domain can have different software and hardware implementations through the introduction of the above, but these methods all belong to the form changes without departing from the spirit of the present invention. In particular, the static configuration of the test settings mentioned in the previous section. In addition to the address information of the test destination device and the service type of the test, the simulation configuration and loopback of various applications can be completely configured in advance. The setting, insertion rate setting, etc. are stored in the test setting storage unit, and multiple sets of test settings can be made to implement any of the settings for multiple tests, such as setting one-way test tasks, loopback test tasks, and asymmetric flow tests. task.
本发明系统可以应用在多种网络中, 比如, 以太网, RPR (弹性 分组环) 网等。 而前述识别技术不仅仅局限于 ACL规则的利用, 还 可以采用其他技术, 如思科公司的 NBAR (基于应用识别 )技术来实 现; 模拟配置不仅仅可以通过硬件实现, 也可以通过软件来实现。  The system of the present invention can be applied to a variety of networks, such as Ethernet, RPR (Flexible Packet Ring) networks, and the like. The aforementioned identification technology is not limited to the use of ACL rules, but can also be implemented by other technologies, such as Cisco's NBAR (application-based identification) technology; analog configuration can be implemented not only in hardware, but also in software.
本发明测试起点网络设备及测试终点网络设备的原理可参照图 7 中的测试起点设备 601和测试终点设备 602, 在此不再赘述。  For the principle of the test starting point network device and the test end point network device of the present invention, reference may be made to the test starting point device 601 and the test end point device 602 in FIG. 7 , and details are not described herein again.
请参阅图 8, 是本发明的系统的另一实施例的框图。 该实施例与 图 7所示的实施例大致相同, 区别在于: 该实施例中的测试起点设备 未设置起点测试流提取单元, 此不赘述。  Please refer to FIG. 8, which is a block diagram of another embodiment of the system of the present invention. The embodiment is substantially the same as the embodiment shown in FIG. 7. The difference is that the test starting point device in the embodiment does not have a starting point test stream extracting unit, which is not described here.
虽然通过实施例描绘了本发明, 本领域普通技术人员知道, 本发 明有许多变形和变化而不脱离本发明的精神,希望所附的权利要求包 括这些变形和变化而不脱离本发明的精神。  While the invention has been described by the embodiments of the invention, it will be understood that

Claims

权 利 要 求 Rights request
1、 一种网络性能测试方法, 其特征在于, 所述方法包括步骤: A 对测试起点设备和测试终点设备进行测试设定; A network performance testing method, characterized in that the method comprises the steps of: A: testing and setting a test starting device and a test end device;
B、 在测试起点处, 根据测试设定模拟承载有具体业务应用的测 试业务流 ;  B. At the test starting point, simulate the test service flow carrying the specific service application according to the test setting;
C、 将所述测试业务流从所述网络的测试起点发往测试终点; C. Sending the test service flow from a test starting point of the network to a test end point;
D、 在所述测试终点获取测试业务流, 以供分析使用; 或者将获 得的测试业务流环回到所述测试起点, 进行返程业务测试。 D. Obtain a test service flow at the test end point for analysis use; or loop the obtained test service flow back to the test starting point to perform a return service test.
2、 根据权利要求 1所述的网络性能测试方法, 其特征在于, 所 述步骤 B包括:  2. The network performance testing method according to claim 1, wherein the step B comprises:
按预定比例将所述测试业务流插入到正常业务流中 , 或者 中止正常业务流后插入所述测试业务流。  The test service flow is inserted into the normal service flow in a predetermined proportion, or the test service flow is inserted after the normal service flow is aborted.
3、 根据权利要求 1所述的网络性能测试方法, 其特征在于, 所 述测试设定包括用于生成测试业务流的模拟配置、测试业务流的标识 信息; 所述步骤 B中的模拟是基于该模拟配置进行的;还包括插入标 识信息。  3. The network performance testing method according to claim 1, wherein the test setting comprises: an analog configuration for generating a test service flow, and identification information of a test service flow; and the simulation in the step B is based on The simulation configuration is performed; it also includes inserting identification information.
4、 根据权利要求 3所述的网络性能测试方法, 其特征在于, 所 述模拟配置包括测试终点信息和测试业务流生成方式; 所述步骤 B 插入的标识信息包括测试标识、时间戳或数据包标识三个中的至少一 个; 所述标识信息插在数据包的指定位置。  The network performance testing method according to claim 3, wherein the simulation configuration includes test end point information and a test service flow generation manner; and the identification information inserted in the step B includes a test identifier, a time stamp, or a data packet. Identifying at least one of the three; the identification information is inserted at a specified location of the data packet.
5、 根据权利要求 4所述的网络性能测试方法, 其特征在于, 所 述测试设定还包括环回设定; 所述步骤 D的环回是基于环回设定进 行的。  The network performance testing method according to claim 4, wherein the test setting further comprises a loopback setting; and the loopback of the step D is performed based on a loopback setting.
6、 根据权利要求 5所述的网絡性能测试方法, 其特征在于, 所 述环回设定为非对称的环回设定, 所述步骤 D 包括对测试业务流中 的数据包返回速率或数据包大小进行设定。  The network performance testing method according to claim 5, wherein the loopback is set to an asymmetric loopback setting, and the step D includes returning a data packet rate or data in the test service flow. The package size is set.
7、 根据权利要求 1所述的网络性能测试方法, 其特征在于, 所 述测试设定还包括访问控制表; 所述步驟 D 中获取测试业务流是基 于访问控制表进行的。  The network performance testing method according to claim 1, wherein the test setting further comprises an access control table; and the obtaining the test service flow in the step D is performed based on the access control list.
8、 一种网络性能测试系统, 包括: 通过网络相连的测试起点设 备和测试终点设备, 以及用于管理测试过程的测试管理设备; 其特征 在于:所述测试起点设备根据测试设定模拟并插入承载有具体业务症 用的测试业务流, 并将所述测试业务流发往所述测试终点设备; 所述 测试终点设备根据配置的测试设定提取所述测试业务流,并根据提取 的测试业务流以供分析所述网络的服务质量,或者将获得的测试业务 流环回到所述测试起点, 进行返程业务测试。 8. A network performance test system, comprising: a test start device and a test end device connected through a network, and a test management device for managing a test process; wherein the test start device simulates and inserts according to a test setting Carrying a test service flow for a specific service symptom, and sending the test service flow to the test end point device; The test end point device extracts the test service flow according to the configured test configuration, and analyzes the service quality of the network according to the extracted test service flow, or loops the obtained test service flow back to the test starting point, and performs a return journey. Business testing.
9、 根据权利要求 8所述的网络性能测试系统, 其特征在于, 所 述测试设定是由测试管理设备对测试起点设备和测试终点设备配置 的;或者是由测试管理设备配置测试设定中的测试终点设备地址信息 和测试业务类型,测试起点设备和测试终点设备协商其余设施设定或 者事先静态配置测试设定。  9. The network performance testing system according to claim 8, wherein the test setting is configured by the test management device for the test start device and the test end device; or by the test management device configuration test setting. The test endpoint address information and the test service type, the test start device and the test endpoint device negotiate the remaining facility settings or statically configure the test settings in advance.
10、根据权利要求 8或 9所述的网络性能测试系统,其特征在于, 所述测试起点设备包括:  The network performance testing system according to claim 8 or 9, wherein the test starting device comprises:
测试设定存储单元, 用于存储测试设定;  a test setting storage unit for storing test settings;
. 测试流插入单元,耦合于所述测试设定存储单元, 用于根据存储 的测试设定模拟生成测试业务流,并将其插入到测试起点设备发送的 正常业务流中;  a test stream insertion unit coupled to the test setting storage unit, configured to generate a test service flow according to the stored test set simulation, and insert the test service flow into a normal service flow sent by the test starting device;
所述测试终点设备包括:  The test endpoint device includes:
测试设定存储单元, 用于存储测试设定;  a test setting storage unit for storing test settings;
终点测试流提取单元,用于根据所述测试设定从所述测试终点设 备接收的业务流中提取出对应的测试业务流;  And an end point test stream extracting unit, configured to extract a corresponding test service flow from the service flow received by the test end point device according to the test setting;
终点测试处理单元,分别耦合于所述测试设定存储单元及所述测 试流提取单元, 用于根据测试设定对测试业务流进行分析处理。  The end point test processing unit is coupled to the test setting storage unit and the test stream extraction unit, respectively, for performing analysis processing on the test service flow according to the test setting.
11、 根据权利要求 10所述的网络性能测试系统, 其特征在于, 所述重点测试处理单元进行的分析处理包括将测试业务流环回给测 试起点设备; 所述测试起点设备还包括起点测试流提取单元, 用于从 所述测试起点设备接收的正常业务流中提取出从测试终点返回的测 试业务流。  The network performance testing system according to claim 10, wherein the analyzing process performed by the key test processing unit comprises looping the test service flow back to the test starting device; the test starting device further includes a starting test flow And an extracting unit, configured to extract, from the normal service flow received by the test starting device, a test service flow returned from the test end point.
12、 根据权利要求 9所述的网络性能测试系统, 其特征在于, 所 述测试起点设备和所述测试终点设备分别为具有中央处理单元及存 储功能的网络设备。  12. The network performance testing system according to claim 9, wherein the test starting point device and the test end point device are respectively network devices having a central processing unit and a storage function.
13、 根据权利要求 9所述的网络性能测试系统, 其特征在于, 所 述测试终点设备存储的测试设定包括非对称的环回设定。  13. The network performance testing system of claim 9, wherein the test settings stored by the test endpoint device comprise asymmetric loopback settings.
14、 一种网络性能测试系统, 包括网络管理设备, 测试起点设备 以及测试终点设备, 其特征在于:  14. A network performance test system, comprising a network management device, a test start device, and a test end device, wherein:
所述网络管理设备用于向指定的测试起点设备和终点设备下发 测试设定;  The network management device is configured to send test settings to the specified test start device and the end device;
所述测试起点设备根据上述测试设定生成测试业务流; 所述测试终点设备根据测试设定识别测试起点设备发来的测试 业务流,并根据测试设定生成返回测试业务流向所述测试起点设备方 向发送。 The test starting device generates a test service flow according to the test setting described above; The test end point device identifies the test service flow sent by the test start device according to the test setting, and generates a return test service flow to send to the test start device according to the test setting.
15、 根据权利要求 14所述的网络性能测试系统, 其特征在于, 所述测试终点设备存储的测试设定包括非对称流量的测试设定,测试 终点设备依据上述设定生成的返回测试业务流的数据包速率或大小 不同于测试设备发送的测试业务流。  The network performance testing system according to claim 14, wherein the test setting stored by the test end point device comprises a test setting of asymmetric traffic, and the test end service device generates a return test service flow according to the foregoing setting. The packet rate or size is different from the test traffic sent by the test equipment.
16、 一种测试起点网络设备, 具有网络管理接口, 用于接收测试 管理设备发送的测试设定, 其特征在于, 该网络设备还包括:  A test start network device, having a network management interface, configured to receive test settings sent by the test management device, wherein the network device further includes:
测试设定存储单元, 用于存储从测试管理设备接收到的测试设 定;  a test setting storage unit for storing test settings received from the test management device;
测试流插入单元,根据所述测试设定模拟出基于具体应用的测试 业务流, 并将该测试业务流向测试设定指定的测试终点网络设备发 送。  The test stream insertion unit simulates a specific application-based test service flow according to the test setting, and sends the test service flow to the test end point network device specified by the test setting.
17、 根据权利要求 16所述的测试起点网络设备, 其特征在于, 所述测试起点网络设备还包括:  The test starting point network device according to claim 16, wherein the test starting point network device further comprises:
起点测试流提取单元,用于识别从测试终点网络设备接收返回的 测试业务流,并将该返回的测试业务流提取出来,以供管理分析使用。  The starting point test stream extracting unit is configured to identify the test service flow received from the test end network device, and extract the returned test service flow for use in management analysis.
18、 根据权利要求 16所述的测试起点网络设备, 其特征在于, 所述测试设定包括用于生成测试业务流的模拟配置,测试业务流与正 常业务流的比例设定, 以及测试标识、 时间戳或数据包标识三个中的 至少一个。  18. The test starting point network device according to claim 16, wherein the test setting comprises an analog configuration for generating a test service flow, a ratio setting of a test service flow to a normal service flow, and a test identifier, The timestamp or packet identifies at least one of three.
19. 根据权利要求 16所述的测试起点网络设备, 其特征在于, 所述具体应用是高于网络层的业务。  The test starting point network device according to claim 16, wherein the specific application is a service higher than a network layer.
20. 根据权利要求 16所述的测试起点网络设备, 其特征在于, 所述测试业务流的模拟是通过根据测试设定包括的模拟配置向设备 硬件寄存器中写入相应的参数, 以使其快速地生成测试业务流。  20. The test starting point network device according to claim 16, wherein the simulation of the test service flow is performed by writing a corresponding parameter to a device hardware register according to an analog configuration included in the test setting. Generate test traffic.
21、 一种测试终点网络设备, 具有网络管理接口, 用于接收测试 管理设备发送的测试设定, 其特征在于, 该网络设备还包括:  A test end network device, having a network management interface, configured to receive test settings sent by the test management device, wherein the network device further includes:
测试设定存储单元, 用于存储从测试管理设备接收到的测试设 定;  a test setting storage unit for storing test settings received from the test management device;
终点测试流提取单元,用于根据所述测试设定从所述测试终点网 络设备接收的业务流中提取出对应的测试业务流。  And an endpoint test stream extracting unit, configured to extract a corresponding test service flow from the service flow received by the test end network device according to the test setting.
22、 根据权利要求 21所述的测试终点网络设备, 其特征在于, 所述测试终点网络设备还包括: 终点测试处理单元,用于根据测试设定将测试业务流环回给测试 终点网络设备。 The test end point network device according to claim 21, wherein the test end point network device further comprises: The end point test processing unit is configured to loop back the test service flow to the test end network device according to the test setting.
PCT/CN2006/000175 2005-04-04 2006-01-26 A network performance testing method and the system, the device thereof WO2006105707A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN200510059982.2 2005-04-04
CNB2005100599822A CN100382517C (en) 2005-04-04 2005-04-04 Network QoS test method and system
CN200510123357.X 2005-11-23
CNB200510123357XA CN100463418C (en) 2005-11-23 2005-11-23 Network performance test method, system and network device

Publications (1)

Publication Number Publication Date
WO2006105707A1 true WO2006105707A1 (en) 2006-10-12

Family

ID=37073084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/000175 WO2006105707A1 (en) 2005-04-04 2006-01-26 A network performance testing method and the system, the device thereof

Country Status (1)

Country Link
WO (1) WO2006105707A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486780A (en) * 2014-12-30 2015-04-01 郑州向心力通信技术股份有限公司 Wireless local area network environment testing method
CN105490879A (en) * 2015-12-08 2016-04-13 重庆金美通信有限责任公司 Automatic distributed performance test system of large-scale integrated network
CN107769986A (en) * 2016-08-15 2018-03-06 中国移动通信有限公司研究院 A kind of network performance testing system, extension system and method for testing
CN111262749A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Method and equipment for detecting network reliability
CN112881826A (en) * 2021-01-12 2021-06-01 国网山东省电力公司经济技术研究院 Method for testing performance of power-bearing service based on SPN technology
CN114339856A (en) * 2021-12-03 2022-04-12 国家电网有限公司信息通信分公司 Test method and device for power inspection service, terminal equipment and network equipment
CN114978959A (en) * 2022-05-27 2022-08-30 西安电子科技大学 Network equipment performance test method and device
CN115484209A (en) * 2022-09-23 2022-12-16 绿盟科技集团股份有限公司 Network flow playback method, device, medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417986A (en) * 2001-11-06 2003-05-14 华为技术有限公司 Business intercommunication test method and device for asynchronous transferring mode exchange
EP1496648A1 (en) * 2003-07-10 2005-01-12 Siemens Aktiengesellschaft Cost effective traffic generators for a complex IP network
GB2404314A (en) * 2002-01-25 2005-01-26 Actix Ltd Identifying data packets by using a header pattern

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417986A (en) * 2001-11-06 2003-05-14 华为技术有限公司 Business intercommunication test method and device for asynchronous transferring mode exchange
GB2404314A (en) * 2002-01-25 2005-01-26 Actix Ltd Identifying data packets by using a header pattern
EP1496648A1 (en) * 2003-07-10 2005-01-12 Siemens Aktiengesellschaft Cost effective traffic generators for a complex IP network

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486780A (en) * 2014-12-30 2015-04-01 郑州向心力通信技术股份有限公司 Wireless local area network environment testing method
CN105490879A (en) * 2015-12-08 2016-04-13 重庆金美通信有限责任公司 Automatic distributed performance test system of large-scale integrated network
CN107769986A (en) * 2016-08-15 2018-03-06 中国移动通信有限公司研究院 A kind of network performance testing system, extension system and method for testing
CN107769986B (en) * 2016-08-15 2020-02-07 中国移动通信有限公司研究院 Network performance test system, extension system and test method
CN111262749A (en) * 2018-11-30 2020-06-09 华为技术有限公司 Method and equipment for detecting network reliability
CN111262749B (en) * 2018-11-30 2023-05-23 华为技术有限公司 Method and equipment for detecting network reliability
CN112881826B (en) * 2021-01-12 2023-04-28 国网山东省电力公司经济技术研究院 SPN technology-based method for testing performance of load-bearing power service
CN112881826A (en) * 2021-01-12 2021-06-01 国网山东省电力公司经济技术研究院 Method for testing performance of power-bearing service based on SPN technology
CN114339856A (en) * 2021-12-03 2022-04-12 国家电网有限公司信息通信分公司 Test method and device for power inspection service, terminal equipment and network equipment
CN114339856B (en) * 2021-12-03 2024-03-12 国家电网有限公司信息通信分公司 Test method and device for power inspection service, terminal equipment and network equipment
CN114978959A (en) * 2022-05-27 2022-08-30 西安电子科技大学 Network equipment performance test method and device
CN114978959B (en) * 2022-05-27 2024-01-23 西安电子科技大学 Performance test method and device for network equipment
CN115484209A (en) * 2022-09-23 2022-12-16 绿盟科技集团股份有限公司 Network flow playback method, device, medium and electronic equipment
CN115484209B (en) * 2022-09-23 2024-04-02 绿盟科技集团股份有限公司 Network traffic playback method and device, medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN100382517C (en) Network QoS test method and system
CN100463418C (en) Network performance test method, system and network device
Bryant et al. Pseudo wire emulation edge-to-edge (PWE3) architecture
US8130661B2 (en) Systems and methods for intelligent probe testing
US8913623B2 (en) Method and apparatus for processing labeled flows in a communications access network
EP3139560B1 (en) Packet processing method, device and computer storage medium
US8654790B2 (en) Method of remote active testing of a device or network
US8730822B2 (en) Method for supporting SDH/SONET OAMP on ethernet
US9331920B2 (en) Media path monitoring over a secure network
WO2006105707A1 (en) A network performance testing method and the system, the device thereof
CN101595686B (en) Triggering flow analysis at intermediary devices
US20080273472A1 (en) Ethernet resource management
CN106385344A (en) Message monitoring method and device
JP6332544B1 (en) Network management apparatus, network system, method, and program
US20060013226A1 (en) Technique for transferring data over a packet switched network
WO2021052280A1 (en) Network measurement system and method, device and storage medium
WO2022121638A1 (en) Packet processing method and device
WO2022132208A1 (en) Performance measurement in a segment routing network
Silalahi et al. Application of MPLS Tunnel Service L2TP-VPN Optimization Concept with Traffic Engineering Method for Looping-Protection Service Analysis
Bryant et al. RFC 3985: Pseudo wire emulation edge-to-edge (PWE3) architecture
Saputra et al. Implementation of Layer 2 MPLS VPN on the SDN Hybrid Network using Ansible and ONOS Controllers
WO2023240438A1 (en) Packet processing
Tang et al. A performance monitoring architecture for IP videoconferencing
Ruotsalainen L3 Latency in Regional Networks: Preparing 5G launch
EP1683301B1 (en) Systems and methods for intelligent probe testing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

NENP Non-entry into the national phase

Ref country code: RU

WWW Wipo information: withdrawn in national office

Country of ref document: RU

122 Ep: pct application non-entry in european phase

Ref document number: 06705596

Country of ref document: EP

Kind code of ref document: A1

WWW Wipo information: withdrawn in national office

Ref document number: 6705596

Country of ref document: EP