CN107835109B - Method and system for testing packet transport network defined by software - Google Patents

Method and system for testing packet transport network defined by software Download PDF

Info

Publication number
CN107835109B
CN107835109B CN201711216077.2A CN201711216077A CN107835109B CN 107835109 B CN107835109 B CN 107835109B CN 201711216077 A CN201711216077 A CN 201711216077A CN 107835109 B CN107835109 B CN 107835109B
Authority
CN
China
Prior art keywords
service
sptn
tester
target
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711216077.2A
Other languages
Chinese (zh)
Other versions
CN107835109A (en
Inventor
杜振方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201711216077.2A priority Critical patent/CN107835109B/en
Publication of CN107835109A publication Critical patent/CN107835109A/en
Application granted granted Critical
Publication of CN107835109B publication Critical patent/CN107835109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/208Port mirroring

Abstract

The invention discloses a method and a system for testing a packet transport network defined by software, which comprises the following steps: sending a service message of which the target receiving party is a second target tested device to a first target tested device in a packet transport network defined by software; issuing a service opening instruction for a first target tested device and a second target tested device to a software-defined packet transport network controller in a software-defined packet transport network; and determining the performance of the packet transport network defined by the software according to the time of issuing the service opening instruction and the time of receiving the service message at the second target tested equipment. The invention can ensure the accuracy of the test result by calculating the difference value between the issuing time of the user terminal service opening instruction and the service effective time between the software-defined packet transmission network devices as the main index of the service opening performance test.

Description

Method and system for testing packet transport network defined by software
Technical Field
The invention relates to the technical field of computer communication, in particular to a method and a system for testing a packet transport network defined by software.
Background
SDN (Software Defined Network ) is a new Network innovation architecture, and is an implementation manner of Network virtualization, and a control plane and a data plane of a Network device are separated, so that flexible control of Network traffic is realized, and a Network becomes more intelligent as a pipeline.
The PTN (Packet Transport Network) is a Packet Transport technology that takes a Packet service as a core, provides operation, Administration, and Maintenance (OAM) protection at a carrier level, and can more effectively transmit the Packet service at a Transport layer. The PTN supports a plurality of bidirectional point-to-point connection channels based on the packet switching service and has end-to-end networking capability; the PTN supports various protection modes, and ensures that the network has the capabilities of monitoring, fault switching, error detection and the like; the PTN supports a flexible SLA (Service-Level Agreement) monitoring means, enriches QoS (Quality of Service) strategies, and can provide various differentiated services for users.
With the wide application of high-definition video on demand and AR/VR (Augmented Reality/Virtual Reality) Virtual experience, the requirement standard of a user on network bandwidth is higher and higher, so that a higher appeal is provided for a PTN (packet transport network) network.
The SDN of the PTN network can uniformly manage and schedule the whole network resources by means of the characteristics of centralized control and control forwarding separation in the SDN technology, thereby realizing flexible adjustment of network flow and well solving the problems. The SDN of the PTN network is SPTN (software defined packet transport network), so that the control of equipment of multiple manufacturers can be effectively realized, the deployment of network services is simplified, the operation and maintenance experience of customers is improved, the network which is moved as required is constructed, diversified service requirements are met, and the operation capacity of operators is further improved.
In the SDN solution, an SDN controller is an application program in the SDN and is responsible for flow control to ensure an intelligent network. SDN controllers are based on protocols such as OpenFlow, allowing servers to tell switches where to send packets. In fact, an SDN controller is an Operating System (OS) that is a network. The controller does not control the network hardware but operates as software, which facilitates network automation management. Software-based network control makes it easier to integrate service applications and networks. The performance of controllers as core components of future network architectures is receiving increasing attention. Many protocol organizations have proposed test methods for the performance of controllers.
But the defects of the prior art are as follows: no relevant test scheme is proposed in terms of overall performance of the SPTN.
Disclosure of Invention
The invention provides a method and a system for testing a packet transport network defined by software, which are used for solving the problem of testing the overall performance of SPTN.
The embodiment of the invention provides a method for testing an SPTN network, which comprises the following steps:
sending a service message of which the target receiving party is a second target tested device to a first target tested device in the SPTN network;
issuing a service opening instruction for a first target tested device and a second target tested device to an SPTN controller in an SPTN network, wherein the service opening instruction comprises parameter information required for generating a flow group table of the first target tested device and the second target tested device, and the parameter information required by the flow group table is used for configuring service message transmission between the first target tested device and the second target tested device in the SPTN network by the SPTN controller;
determining first time for issuing a service opening instruction to an SPTN controller in an SPTN network;
determining a second time when the second target tested device receives the service message;
and determining the performance of the SPTN network according to the first time and the second time.
Preferably, the service opening instruction for determining the first time and the service message for determining the second time are acquired from the same monitoring port of the tester for determining the first time and the second time.
Preferably, the service provisioning instruction issued to the SPTN controller in the SPTN network is sent to the SPTN controller through the mirroring device.
Preferably, the first time for issuing the service enabling instruction to the SPTN controller in the SPTN network is determined according to the time for capturing the data packet of the service enabling instruction by the tester.
Preferably, the data packet of the service provisioning instruction reaches the tester through the mirror image device to the device which issues the service provisioning instruction to the SPTN controller in the SPTN network.
Preferably, the data packet of the service provisioning instruction reaches the tester through the convergence switch after passing through the mirror image device to the device which issues the service provisioning instruction to the SPTN controller in the SPTN network.
Preferably, the determining of the second time when the second target device under test receives the service packet is determined according to the time when the tester captures the data packet of the service packet sent by the second target device under test.
Preferably, the data packet of the service packet is sent to the tester by the second target device under test.
Preferably, the data packet of the service packet is sent to the tester by the second target device under test via the aggregation switch.
Preferably, the data length difference between the service message and the service opening instruction is within a set range.
Preferably, after the length of the service enabling instruction is obtained by the tester, a service message with a data length difference value with the service enabling instruction within a set range is generated, so that the data length difference value between the service message and the service enabling instruction is within the set range.
Preferably, obtaining the data length of the service provisioning instruction at the tester includes:
issuing a service opening instruction for the first target tested equipment and the second target tested equipment to a tester in the SPTN network, and not issuing the service opening instruction for the first target tested equipment and the second target tested equipment to an SPTN controller in the SPTN network;
and after the tester receives the service opening instruction, checking the data length of the service opening instruction through a wireshark component tool.
The embodiment of the invention provides a system for testing an SPTN network, which comprises: business indicating equipment, first target equipment to be tested, second target equipment to be tested, an SPTN controller, and a tester respectively connected with the business indicating equipment, the first target equipment to be tested, and the second target equipment to be tested, wherein:
the tester is used for sending a service message of which the target receiving party is a second target tested device to the first target tested device in the SPTN network;
the system comprises a service indicating device and a service switching device, wherein the service indicating device is used for issuing a service switching instruction for a first target tested device and a second target tested device to an SPTN controller in an SPTN network, the service switching instruction comprises parameter information required for generating a flow group table of the first target tested device and the second target tested device, and the parameter information required by the flow group table is used for configuring service message transmission between the first target tested device and the second target tested device in the SPTN network by the SPTN controller;
the tester is also used for determining the first time for issuing a service opening instruction to the SPTN controller in the SPTN network;
the tester is also used for determining the second time when the second target tested device receives the service message;
the tester is also used for determining the performance of the SPTN network according to the first time and the second time.
Preferably, further comprising: the service indicating equipment is respectively connected with the tester and the SPTN controller through the mirroring equipment; wherein:
and the mirror image equipment is used for sending the service opening instruction to the SPTN controller and the tester after receiving the service opening instruction sent by the service indicating equipment to the SPTN controller in the SPTN network.
Preferably, further comprising: the tester is respectively connected with the mirror image equipment and the second target tested equipment through the convergence switch; wherein:
the convergence switch is used for forwarding the service opening instruction sent by the mirror image equipment to the tester after receiving the service opening instruction; and after receiving the service message sent by the second target tested device, forwarding the service message to the tester.
The invention has the following beneficial effects:
in the technical scheme provided by the invention, a service message with a target receiving party as a second target tested device is sent to the first target tested device in the SPTN network; issuing a service opening instruction for the first target tested equipment and the second target tested equipment to an SPTN controller in an SPTN network; and then determining the performance of the SPTN network by the first time of issuing a service opening instruction to the SPTN controller in the SPTN network and the second time of receiving the service message by the target tested equipment of the second station.
Furthermore, the scheme also adopts mirror image equipment and a convergence switch, and service opening instructions and service messages are converged in the same monitoring port through the equipment, so that the problem that the service opening instructions and the service messages are not synchronous in time is solved, and the accuracy of a test result is ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram illustrating an implementation flow of a method for testing an SPTN network according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a system for testing an SPTN network in the embodiment of the present invention;
fig. 3 is a schematic diagram of an SPTN network test environment in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a scheme for opening a performance test for an end-to-end service in the overall performance of the SPTN, and the performance of the SPTN product can be effectively measured. The following describes embodiments of the present invention with reference to the drawings.
Fig. 1 is a schematic flow chart of an implementation process of a method for testing an SPTN network, as shown in the figure, the method may include:
step 101, sending a service message of which the target receiving party is a second target tested device to a first target tested device in an SPTN network;
102, issuing a service opening instruction for a first target tested device and a second target tested device to an SPTN controller in an SPTN network, wherein the service opening instruction comprises parameter information required for generating a flow group table of the first target tested device and the second target tested device, and the parameter information required by the flow group table is used for configuring service message transmission between the first target tested device and the second target tested device in the SPTN network by the SPTN controller;
103, determining a first time for issuing a service opening instruction to an SPTN controller in the SPTN network;
step 104, determining a second time when the second target tested device receives the service message;
and 105, determining the performance of the SPTN network according to the first time and the second time.
In the specific implementation, how to generate the flow group table according to the parameter information in the service provisioning instruction and how to forward the service packet using the flow group table may be implemented in a manner known to those skilled in the art, examples in each embodiment are only to describe how to implement, and they are taken as examples because they are more common implementations, but it is not meant to adopt the manners in the embodiments. In the embodiment of the present invention, the target device to be tested can generate the flow group table based on the SPTN technology according to the service activation instruction issued by the device such as the PC performing the service indication, and the accurate forwarding of the service packet is realized by using the flow group table.
In the specific implementation, for the implementation of determining the performance of the SPTN network according to the first time and the second time, the first time is the time of issuing the service activation instruction, and the second time is the time of receiving, by the second device under test, the service packet sent by the first device under test, and those skilled in the art can measure and evaluate the network performance according to the two times, for example, the difference between the first time and the second time may be used as an end-to-end service provisioning performance to determine network performance, however, it is also possible to measure and evaluate the network performance according to the technical meaning of the two parameters by using other rules, and the implementation will be mainly described by the difference between the first time and the second time, this method is for teaching one skilled in the art how to practice the invention, and it is not intended to be the only method used, and it may be determined that the method is suitable for practical use.
In an implementation, the service opening instruction for determining the first time and the service message for determining the second time are acquired from the same monitoring port of the tester for determining the first time and the second time.
Specifically, the first time and the second time are determined by using a service opening instruction and a service message reaching the same monitoring port on the tester, so as to solve the problem that the two times are not synchronous, and ensure the accuracy of the test result. In implementation, as long as means and network devices capable of achieving the purpose are available, in the following embodiments, network devices that are relatively easy to obtain are mainly used: the method is realized by the mirror image equipment and the convergence switch, namely, the service opening instruction and the service message are converged at the same monitoring port by using the mirror image function of the mirror image equipment and the convergence function of the convergence switch to obtain the receiving time of the service opening instruction and the service message, so that the problem that the time for capturing the service opening instruction and the time for capturing the service message are not synchronous by different monitoring ports is solved. However, the mode of the mirroring device and the aggregation switch is only used for teaching a person skilled in the art how to implement the present invention specifically, but not only this usage mode is implied, and the corresponding mode may be determined according to practical needs in the implementation process, as long as the service provisioning instruction and the service packet that reach the same monitoring port on the tester can be implemented to determine the first time and the second time.
In implementation, the service provisioning instruction is issued to the SPTN controller in the SPTN network, and may be sent to the SPTN controller through the mirroring device.
In the implementation, the first time for issuing the service opening instruction to the SPTN controller in the SPTN network is determined according to the time for capturing the data packet of the service opening instruction by the tester.
In implementation, the data packet of the service provisioning instruction reaches the tester through the mirror image device to the device which issues the service provisioning instruction to the SPTN controller in the SPTN network.
In a specific implementation, mirroring device refers to copying a packet of a specified port or a packet that meets a specified rule to a destination port, that is, copying a packet of one or more ports (source ports) of the device to a monitoring port (destination port) of the device, where the source port and the destination port are on the same device.
After the mirroring device receives the service opening instruction, the mirroring device can directly mirror the convergence switch and the SPTN controller without any processing on the service opening instruction. After the mirror image equipment is adopted, the service opening instruction and the service message can be converged in the same monitoring port through the mirror image function of the mirror image equipment, and the problem that the service opening instruction and the service message are not synchronous in time is solved. Furthermore, the forwarding speed of the mirror image equipment to the service opening instruction is high, and the forwarding time delay value of the service opening on the equipment can be ignored. In specific implementation, a network port of a PC that issues a service provisioning instruction may be connected to a network port of an SPTN controller through a mirroring device, one mirroring port of the mirroring device is connected to a convergence switch, and a management instruction that interacts between the SPTN controller and a PC that is a user side is mirrored to the convergence switch by configuring the mirroring device. The implementation of the aggregation switch is further described in the following embodiments.
In implementation, the data packet of the service provisioning instruction reaches the tester through the convergence switch after passing through the mirror image device to the device which issues the service provisioning instruction to the SPTN controller in the SPTN network.
In implementation, the second time when the second target device under test receives the service packet is determined according to the time when the tester captures the data packet of the service packet.
In implementation, the data packet of the service packet is sent to the tester by the second target device under test.
In implementation, the data packet of the service packet is sent to the tester by the second target device under test via the aggregation switch.
In particular implementations, for a convergence switch, the convergence layer switch layer is a convergence point for multiple access layer switches, which is capable of handling all traffic from the access layer devices and providing an uplink to the core layer, and the convergence switch has higher performance, fewer interfaces, and higher switching rates than the access layer switch.
In implementation, a mirror port of the mirroring device may be connected to the aggregation switch, and the mirroring device is configured to mirror the management instruction exchanged between the SPTN controller and the PC serving as the user side to the aggregation switch. In the process, the time delay introduced by equipment forwarding can be effectively reduced by adopting the high-performance aggregation switch.
After the convergence switch forwards the service opening instruction to the tester, the tester can receive the service opening instruction sent by the convergence switch through the interface, and the tester can record the first time. The convergence switch forwards the service message sent by the second target device under test, and the tester can record the second time after the service message is sent to the tester through the port.
In implementation, the data length difference between the service message and the service opening instruction is within a set range.
Specifically, the data length difference between the service message and the service opening instruction is within a set range, so as to reduce the test error. The forwarding speed of the mirror image equipment to the service opening instruction is high, so that the forwarding time delay value of the service opening on the equipment can be ignored. However, considering that the service activation instruction packet and the service packet arrive at the aggregation switch, both the service activation instruction packet and the service packet may wait for a long time before being forwarded by the aggregation switch, and if the forwarding delay values of the service activation instruction packet and the service packet are different, the error of the calculation result of the service activation time determined according to the arrival time of the service packet and the service activation instruction packet may be large. To solve the error problem, the following methods are generally adopted: the aggregation switch is improved, and the forwarding time delay is minimized as much as possible; or, the tester accurately calculates the forwarding delay values of the two, and corrects the original service opening time calculation result according to the forwarding delay values. However, both schemes are very complicated and difficult to implement. The inventor finds that the forwarding delay value of the message in the aggregation switch is related to the message length in the research process, and the larger the message length is, the longer the forwarding delay value is.
In order to ensure the accuracy of the test, in view of that part of the tester is limited by the hardware structure design, and does not support direct intercommunication with the PC, or although the tester supports, the interface is not enough, the embodiment further provides an implementation manner for intelligently acquiring the service opening instruction length, and constructs a service test message with the same length according to the service opening instruction length, specifically including:
the tester acquires the length of a service opening instruction;
and the tester generates a service message with the same length as the service opening instruction. Therefore, the service opening instruction and the forwarding delay of the service message on the convergence switch can be mutually offset.
That is, after the length of the service opening instruction is obtained by the tester, a service message with the data length difference value with the service opening instruction within the set range is generated, so that the data length difference value between the service message and the service opening instruction is within the set range.
In the implementation, the obtaining, at the tester, the data length of the service provisioning instruction includes:
issuing a service opening instruction for the first target tested equipment and the second target tested equipment to a tester in the SPTN network, and not issuing the service opening instruction for the first target tested equipment and the second target tested equipment to an SPTN controller in the SPTN network;
and after the tester receives the service opening instruction, checking the data length of the service opening instruction through a wireshark component tool.
Specifically, the process of acquiring the service provisioning instruction length may be as follows:
the PC used as the service indication equipment sends a port disabling signal to the mirror image equipment; after receiving the port disabling signal, the mirror image equipment sets a port between the mirror image equipment and the SPTN controller to be in a down state so as to close a communication channel between the mirror image equipment and the SPTN controller;
after the mirror image equipment informs the PC port that the disabling is successful, the PC sends a service opening instruction to the tester through the mirror image equipment and the convergence switch;
the tester receives the service opening instruction, checks the length of the service opening instruction, and specifically, can see the length of a service opening instruction message through a wireshark component tool;
after waiting for a preset time, the PC sends a port starting signal to the mirror image equipment; after receiving the port enabling signal, the mirror device sets a port between the mirror device and the SPTN controller to be in an up state so as to open a communication channel between the mirror device and the SPTN controller.
The preset time length needs to be longer than the time length which is taken from the time when the service opening instruction is sent from the PC to the time when the tester obtains the length of the service opening instruction through the received service opening instruction, and the preset time length can be determined by a person skilled in the art according to the time from the setting of the up/down command of the port of the mirror image device to the actual effective time of the port state, and the preset time length is usually 3 minutes.
Based on the same inventive concept, the embodiment of the invention also provides a system for testing the SPTN network, and because the principle of solving the problems of the system is similar to the method for testing the SPTN network, the implementation contents of the system can be referred to the implementation of the method, and repeated parts are not described again.
Fig. 2 is a schematic structural diagram of a system for testing an SPTN network, including: the device comprises a service indicating device 201, a first target device under test 202, a second target device under test 203, an SPTN controller, and a tester 204 connected with the service indicating device, the first target device under test, and the second target device under test, wherein:
the tester is used for sending a service message of which the target receiving party is a second target tested device to the first target tested device in the SPTN network;
the system comprises a service indicating device and a service switching device, wherein the service indicating device is used for issuing a service switching instruction for a first target tested device and a second target tested device to an SPTN controller in an SPTN network, the service switching instruction comprises parameter information required for generating a flow group table of the first target tested device and the second target tested device, and the parameter information required by the flow group table is used for configuring service message transmission between the first target tested device and the second target tested device in the SPTN network by the SPTN controller;
the tester is also used for determining the first time for issuing a service opening instruction to the SPTN controller in the SPTN network;
the tester is also used for determining the second time when the second target tested device receives the service message;
the tester is also used for determining the performance of the SPTN network according to the first time and the second time.
Specifically, in the embodiment of the present invention, the target device to be tested may generate the flow group table according to the service activation instruction issued by the device for performing service indication such as the PC based on the SPTN technology, and may accurately forward the service packet by using the flow group table.
In the implementation, the method can further comprise the following steps: the mirror image device 205, the service indication device is connected with the tester and the SPTN controller through the mirror image device; wherein:
and the mirror image equipment is used for sending the service opening instruction to the SPTN controller and the tester after receiving the service opening instruction sent by the service indicating equipment to the SPTN controller in the SPTN network.
In specific implementation, the service indication device issues the service activation instruction to an SPTN controller in an SPTN network through the mirror image device;
the tester determines first time according to the time of capturing the data packet of the service opening instruction, and the data packet of the service opening instruction is sent to the tester by the service indicating equipment through the mirror image equipment.
In the implementation, the method can further comprise the following steps: the aggregation switch 206, through which the tester is respectively connected with the mirror image device and the second target device under test; wherein:
the convergence switch is used for forwarding the service opening instruction sent by the mirror image equipment to the tester after receiving the service opening instruction; and after receiving the service message sent by the second target tested device, forwarding the service message to the tester.
In specific implementation, a tester determines first time according to the time of capturing a data packet of the service enabling instruction, wherein the data packet of the service enabling instruction is arrived at the tester through a convergence switch after a service indicating device passes through a mirror image device;
and the tester determines second time according to the time of capturing the data packet of the service message, wherein the data packet of the service message is sent to the tester by the second target tested device through the aggregation switch.
The following description is provided as an example of testing the SPTN network in a system for testing the SPTN network to better understand the implementation of the scheme presented in the embodiments of the present invention. However, this does not mean that only the system can be used for testing, and actually, other alternative means and alternative devices can be selected for implementation based on the principles disclosed in the embodiments or the functions of the technical means, which is easily understood by those skilled in the art, and only when the system for testing the SPTN network and the method for testing the SPTN network are used in combination, the better technical effect can be obtained.
Fig. 3 is a schematic diagram of an SPTN network test environment, in an example, a time difference from triggering service provisioning to actually taking effect of a service between two SPTN devices in an SPTN network is measured, and then the performance of end-to-end service provisioning of an SPTN product is measured, which is described below with reference to fig. 3.
1. Hardware requirements:
the system comprises an SPTN controller, two SPTN devices to be tested (a first target device to be tested and a second target device to be tested respectively), a mirror image device, a convergence switch, a PC (serving as a service indicating device for issuing service opening instructions to the first target device to be tested and the second target device to be tested to the SPTN controller in the SPTN network), a tester, an Ethernet direct-connection network cable and the like.
2. And (3) environment configuration:
A) the two tested SPTN devices are network-connected (the connection mode may be direct connection or indirect connection, in fig. 3, the two devices are directly connected through a port by a network cable), and there is a physical device with service interworking requirement, and the network port of the SPTN controller is directly connected to the network ports of the two tested SPTN devices respectively;
B) the method comprises the following steps that a PC network port is connected with an SPTN controller network port through a mirror image device, one mirror image port of the mirror image device is connected with a convergence switch, and management instructions interacted between the SPTN controller and a PC serving as a user side are mirrored to the convergence switch through configuration of the mirror image device;
C) the PC, the SPTN controller and the tested SPTN equipment can ensure network intercommunication among the PC, the SPTN controller and the tested SPTN equipment in a mutual ping mode;
D) the UNI port of one tested SPTN device 1 is connected with the tester interface x, and the UNI port of the other tested SPTN device 2 is connected with the convergence switch;
E) the y interface of the tester is connected to the aggregation switch.
3. The testing process comprises the following steps:
(1) in the preparation stage, the tester continuously sends the service message of which the destination receiver is the second target tested device (SPTN device 2) to the first target tested device (SPTN device 1) in the SPTN network through the port X, and starts the packet capturing function of the interface y.
(2) The flow direction of the service opening instruction is as follows:
the PC sends a service provisioning instruction for two target devices to be tested to an SPTN controller in an SPTN network through a mirror device, where the service provisioning instruction includes parameter information required for generating a flow group table of the target devices to be tested, and the parameter information may include:
an equipment identifier corresponding to a first target tested equipment, mpls (Multi-Protocol label switching) label information, service vlan (Virtual Local Area Network) information, outer layer service encapsulation vlan information, service message input and output port information and the like are used as first type parameter information;
and the equipment identifier, the mpls label information, the service vlan information, the outer layer service encapsulation vlan information, the service message ingress and egress port information and the like corresponding to the second target tested equipment are used as second type parameter information.
After the mirroring device receives the service opening instruction, the mirroring device directly mirrors the convergence switch and the SPTN controller without processing the service opening instruction.
The convergence switch forwards the service opening instruction to the tester; and when the tester receives a service opening instruction sent by the convergence switch through the interface y, the tester records the current time T1.
After receiving the service opening instruction, the SPTN controller respectively performs the following processing for two types of parameter information in the service opening instruction:
carrying out validity check on the parameters, and finding a parameter template matched with the current class of parameter information after the check is successful;
then, filling and converting the matched parameter template by using the current type parameter information to obtain OFPT _ FLOW _ MOD and OFPT _ GROUP _ MOD; and sending the conversion result to the corresponding target tested device based on the target tested device identification in the current class parameter information.
The process of validity checking is mainly to check whether each parameter is within a reasonable setting range, and the process can be implemented by a person skilled in the art according to the prior art, and is not described herein again.
(3) And (3) flow direction of the service message:
the first target tested device 1 receives the service message continuously sent by the tester. Before receiving no OFPT _ FLOW _ MOD1 and OFPT _ GROUP _ MOD1 conversion results issued by the SPTN controller, the first target device under test 1 cannot forward the service packet due to lack of the FLOW GROUP table, and therefore will discard the received service packet.
After receiving the OFPT _ FLOW _ MOD1 and the OFPT _ GROUP _ MOD1 information sent by the SPTN controller, the first target device under test 1 obtains a FLOW GROUP table by using the information, and if receiving a service message sent by the tester again, encapsulates the service message by using the FLOW GROUP table, determines a forwarding outlet of the service message, and sends the encapsulated service message through the forwarding outlet.
Specifically, the service packet forwarding process includes:
the method comprises the steps that a service message sent by a port X of a tester reaches a first target tested device in the SPTN network, the first target tested device matches information such as an input port of the service message, service vlan information and a service id value through a locally generated flow group table, after matching is successful, packaging of Mpls label information, outer layer service packaging vlan information and source and destination mac address information is carried out on the service message, a forwarding outlet of the service message is determined, and the service message is forwarded through the forwarding outlet until the service message reaches a second target tested device. The determining processes of the matching, encapsulating and forwarding outlets can be implemented according to the existing SPTN technology, and are not described in detail herein.
The second target tested equipment receives the service message sent by the first target tested equipment in the SPTN network, and performs decapsulation operation on the service message after successful matching according to a FLOW GROUP table generated by OFPT _ FLOW _ MOD2 and OFPT _ GROUP _ MOD2 issued by the SPTN controller, the ingress port of the service message, outer service encapsulation vlan information, source and destination mac address information, and the like, wherein the decapsulation operation comprises the following steps:
the pop drops the source and destination mac address information, the outer layer service encapsulation vlan information, and the mpls label information of the target device under test 1(SPTN device 1), determines a forwarding exit of the service packet, and forwards the service packet to the aggregation switch. The determining processes of the matching, the decapsulation, and the forwarding exit may be implemented according to the existing SPTN technology, and are not described in detail herein.
The convergence switch forwards a service message sent by another target device under test 2, and the service message is sent to the tester through the port y.
In the implementation, the implementation scheme of how to generate the flow group table according to the parameter information in the service provisioning instruction and how to forward the service packet by using the flow group table is not specifically limited, which is described above only in an exemplary form, as long as the target device to be tested can generate the flow group table according to the service provisioning instruction issued by the PC based on the SPTN technology, and accurately forward the service packet by using the flow group table.
(4) Treating by a tester:
after receiving the service opening instruction, the tester records the current time T2 when receiving the service message sent by the aggregation switch for the first time through the interface y;
and the tester calculates the service opening time tn as T2-T1, and gives an alarm to prompt that the test is finished.
(5) Service deletion:
after receiving a test completion instruction input by a user, the PC issues a service deletion instruction to delete a service that is opened by a service opening instruction on two target devices to be tested (SPTN device 1 and SPTN device 2), wherein the flow direction of the service deletion instruction is the same as that of the service opening instruction, and finally, the flow group tables on the two target devices to be tested are deleted.
(6) Repeatedly performing the processes (2) - (6) n times; where n can be set by one skilled in the art in combination with test conditions and test accuracy, and typically n is an integer greater than 4.
(7) The tester calculates the average service opening time t as (t1+ t2+ …. tn)/n, and the time t is the time required by service opening between the two target tested devices.
The forwarding speed of the mirror image equipment to the service opening instruction is high, so that the forwarding time delay value of the service opening on the equipment can be ignored. However, considering that the service activation instruction packet and the service packet both have a long waiting time after arriving at the aggregation switch, and then are forwarded, if the forwarding delay values of the service activation instruction packet and the service packet are different, the error of the calculation result of the service activation time is large. To solve the error problem, the following methods are generally adopted: the aggregation switch is improved, and the forwarding time delay is minimized as much as possible; or, the tester accurately calculates the forwarding delay values of the two, and corrects the original service opening time calculation result according to the forwarding delay values. However, both schemes are very complicated and difficult to implement. The inventor finds that the forwarding delay value of the message in the aggregation switch is related to the message length in the research process, and the larger the message length is, the longer the forwarding delay value is. In order to ensure the accuracy of the test, before the above process (1), the method may further include:
the tester acquires the length of a service opening instruction;
and the tester generates a service message with the same length as the service opening instruction. Therefore, the service opening instruction and the forwarding delay of the service message on the convergence switch can be mutually offset.
The acquiring process of the service opening instruction length comprises the following steps:
the PC issues a port disabling signal to the mirror image equipment; after receiving the port disabling signal, the mirror image equipment sets a port between the mirror image equipment and the SPTN controller to be in a down state so as to close a communication channel between the mirror image equipment and the SPTN controller;
after the mirror image equipment informs the PC port that the disabling is successful, the PC sends a service opening instruction to the tester through the mirror image equipment and the convergence switch;
the tester receives the service opening instruction, checks the length of the service opening instruction, and specifically, can see the length of a service opening instruction message through a wireshark component tool;
after waiting for a preset time, the PC sends a port starting signal to the mirror image equipment; after receiving the port enabling signal, the mirror device sets a port between the mirror device and the SPTN controller to be in an up state so as to open a communication channel between the mirror device and the SPTN controller.
The preset time length needs to be longer than the time length which is taken from the time when the service opening instruction is sent from the PC to the time when the tester obtains the length of the service opening instruction through the received service opening instruction, and the preset time length can be determined by a person skilled in the art according to the actual effective time from the setting of the port up/down command of the mirror image device to the port state, and the preset time length is usually 3 minutes.
In summary, in the technical solution provided in the embodiment of the present invention, the difference between the issuing time of the service enabling instruction at the user end and the time when the service becomes effective between the SPTN devices is calculated to serve as a main indicator of the service enabling performance test, and the calculation of the time difference needs to solve the problem that the time for capturing the service enabling instruction at different monitoring ports is not synchronous with the time for capturing the service packet, that is, if two different monitoring ports are used to capture the service enabling instruction and the service packet respectively; this would make the calculated time for the service to go into effect less accurate, since the clocks of the different monitoring ports would most likely be out of synchronization. In the scheme provided by the embodiment, the service opening instruction and the service message are converged in the same monitoring port through the mirror image function of the mirror image device, so that the problem that the service opening instruction and the service message are not synchronized in time is solved.
Furthermore, in the process, the time delay introduced by equipment forwarding is effectively reduced by adopting high-performance forwarding mirror image equipment and a convergence switch, and further, the time difference is measured for multiple times to obtain an average value, and the service message and the service opening instruction message are ensured to have the same length and the like, so that the error can be effectively reduced, and the test is stable and reliable.
Therefore, aiming at the problems that the service opening instruction time and the service effective time are not synchronous and the time difference between the service opening instruction time and the service effective time is calculated accurately, the method is realized by sharing the same testing tool and analyzing the message for opening the service instruction and the service message on the same tool through the mirror image equipment, and the average value is calculated through multiple times, and the service message and the service opening instruction message have the same length, so that the accuracy of the testing result is ensured.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A method of testing a software defined packet transport network, SPTN, network, comprising:
the tester sends a service message with a target receiver as a second target tested device to a first target tested device in the SPTN network;
the method comprises the steps that a service indicating device issues a service opening instruction for a first target tested device and a second target tested device to an SPTN controller in an SPTN network, wherein the service opening instruction comprises parameter information required for generating a flow group table of the first target tested device and the second target tested device, and the parameter information required by the flow group table is used for the SPTN controller to configure service message transmission between the first target tested device and the second target tested device in the SPTN network;
the method comprises the steps that a tester determines first time for issuing a service opening instruction to an SPTN controller in an SPTN network;
the tester determines a second time when the second target tested device receives the service message;
and the tester determines the performance of the SPTN network according to the first time and the second time.
2. The method of claim 1, wherein the service provisioning instructions to determine the first time and the service messages to determine the second time are obtained on the same monitoring port of the tester to determine the first time and the second time.
3. The method of claim 2, wherein issuing the service provisioning instruction to the SPTN controller in the SPTN network is sent to the SPTN controller through a mirroring device.
4. The method of claim 2, wherein determining the first time to issue a service provisioning instruction to an SPTN controller in the SPTN network is determined based on a time at which a tester captures a data packet of the service provisioning instruction.
5. The method of claim 4, wherein the data packet of the service provisioning instruction reaches the tester through a mirroring device to a device issuing the service provisioning instruction to an SPTN controller in the SPTN network.
6. The method of claim 5, wherein the data packet of the service provisioning instruction reaches the tester through the aggregation switch after passing through a mirror device to a device issuing the service provisioning instruction to an SPTN controller in the SPTN network.
7. The method of claim 2, wherein determining the second time at which the device under test at the second target receives the service packet is determined based on a time at which the tester captures a data packet of the service packet sent by the device under test at the second target.
8. The method of claim 7, wherein the data packet of the service message is sent to the tester by a second target device under test.
9. The method of claim 8, wherein the data packet of the service message is sent by a second target device under test to the tester via an aggregation switch.
10. The method according to any one of claims 1 to 9, wherein the difference between the data lengths of the service packet and the service activation instruction is within a set range.
11. The method according to claim 10, wherein after the tester obtains the length of the service opening instruction, the tester generates the service message with the data length difference value with the service opening instruction within the set range, so that the data length difference value between the service message and the service opening instruction is within the set range.
12. The method of claim 11, wherein obtaining the service provisioning instruction data length at the tester comprises:
issuing a service opening instruction for the first target tested equipment and the second target tested equipment to a tester in the SPTN network, and not issuing the service opening instruction for the first target tested equipment and the second target tested equipment to an SPTN controller in the SPTN network;
and after the tester receives the service opening instruction, checking the data length of the service opening instruction through a wireshark component tool.
13. A system for testing an SPTN network, comprising: business indicating equipment, first target equipment to be tested, second target equipment to be tested, an SPTN controller, and a tester respectively connected with the business indicating equipment, the first target equipment to be tested, and the second target equipment to be tested, wherein:
the tester is used for sending a service message of which the target receiving party is a second target tested device to the first target tested device in the SPTN network;
the system comprises a service indicating device and a service switching device, wherein the service indicating device is used for issuing a service switching instruction for a first target tested device and a second target tested device to an SPTN controller in an SPTN network, the service switching instruction comprises parameter information required for generating a flow group table of the first target tested device and the second target tested device, and the parameter information required by the flow group table is used for configuring service message transmission between the first target tested device and the second target tested device in the SPTN network by the SPTN controller;
the tester is also used for determining the first time for issuing a service opening instruction to the SPTN controller in the SPTN network;
the tester is also used for determining the second time when the second target tested device receives the service message;
the tester is also used for determining the performance of the SPTN network according to the first time and the second time.
14. The system of claim 13, further comprising: the service indicating equipment is respectively connected with the tester and the SPTN controller through the mirroring equipment; wherein:
and the mirror image equipment is used for sending the service opening instruction to the SPTN controller and the tester after receiving the service opening instruction sent by the service indicating equipment to the SPTN controller in the SPTN network.
15. The system of claim 14, further comprising: the tester is respectively connected with the mirror image equipment and the second target tested equipment through the convergence switch; wherein:
the convergence switch is used for forwarding the service opening instruction sent by the mirror image equipment to the tester after receiving the service opening instruction; and after receiving the service message sent by the second target tested device, forwarding the service message to the tester.
CN201711216077.2A 2017-11-28 2017-11-28 Method and system for testing packet transport network defined by software Active CN107835109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711216077.2A CN107835109B (en) 2017-11-28 2017-11-28 Method and system for testing packet transport network defined by software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711216077.2A CN107835109B (en) 2017-11-28 2017-11-28 Method and system for testing packet transport network defined by software

Publications (2)

Publication Number Publication Date
CN107835109A CN107835109A (en) 2018-03-23
CN107835109B true CN107835109B (en) 2020-06-16

Family

ID=61646085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711216077.2A Active CN107835109B (en) 2017-11-28 2017-11-28 Method and system for testing packet transport network defined by software

Country Status (1)

Country Link
CN (1) CN107835109B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629833B (en) * 2022-03-31 2023-05-02 中国电子科技集团公司第三十四研究所 Automatic test system and method for SPTN equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357046A (en) * 2015-11-23 2016-02-24 北京邮电大学 Network information detection method for software defined networking (SDN)
CN105359462A (en) * 2014-05-13 2016-02-24 华为技术有限公司 Method and device for testing new flow creating speed of sdn
CN105515895A (en) * 2015-11-30 2016-04-20 东南大学 Method for measuring hop-by-hop delay on end-to-end path based on software-defined network
WO2017142862A1 (en) * 2016-02-18 2017-08-24 Idac Holdings, Inc. Open flow functionality in a software-defined network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105359462A (en) * 2014-05-13 2016-02-24 华为技术有限公司 Method and device for testing new flow creating speed of sdn
CN105357046A (en) * 2015-11-23 2016-02-24 北京邮电大学 Network information detection method for software defined networking (SDN)
CN105515895A (en) * 2015-11-30 2016-04-20 东南大学 Method for measuring hop-by-hop delay on end-to-end path based on software-defined network
WO2017142862A1 (en) * 2016-02-18 2017-08-24 Idac Holdings, Inc. Open flow functionality in a software-defined network

Also Published As

Publication number Publication date
CN107835109A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN105723657B (en) Switch, controller, system and link quality detection method
CN108234235B (en) Method, network device and computer-readable storage medium for data monitoring
EP2398188B1 (en) Method of Remote Active Testing of a Device or Network
US9306819B2 (en) Controller driven OAM for split architecture network
US20220217051A1 (en) Method, Device, and System for Determining Required Bandwidth for Data Stream Transmission
CN103416022B (en) Throughput testing approach and system in service in distribution router/exchange board structure
CN109660414B (en) End-to-end service monitoring method and device based on SDN network
WO2014101185A1 (en) Method, apparatus and system for detecting performance of multicast channel
WO2019085809A1 (en) Method, relevant device and system for acquiring a target transmission path
US10972309B2 (en) Method and device for automatically discovering cross-node service topology on transoceanic multiple section shared protection ring
CN107835109B (en) Method and system for testing packet transport network defined by software
CN104320322A (en) Message control method and equipment
CN114884811B (en) Method for realizing centralized user configuration of time sensitive network
Wang et al. A SDN-based heterogeneous networking scheme for profinet and Modbus Networks
RU2687040C1 (en) Method and apparatus for monitoring a backbone network
EP2898630B1 (en) Network services testing with pluggable transceivers
EP3131344A1 (en) Method and system for discovery of access aggregation points for bonding approaches in a telecommunication network
CN117579540A (en) Network end-to-end deterministic control system, method and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

GR01 Patent grant
GR01 Patent grant