WO2017202177A1 - 双向测量控制方法、发送业务设备及接收业务设备 - Google Patents

双向测量控制方法、发送业务设备及接收业务设备 Download PDF

Info

Publication number
WO2017202177A1
WO2017202177A1 PCT/CN2017/082459 CN2017082459W WO2017202177A1 WO 2017202177 A1 WO2017202177 A1 WO 2017202177A1 CN 2017082459 W CN2017082459 W CN 2017082459W WO 2017202177 A1 WO2017202177 A1 WO 2017202177A1
Authority
WO
WIPO (PCT)
Prior art keywords
service device
active measurement
service
sending
packet
Prior art date
Application number
PCT/CN2017/082459
Other languages
English (en)
French (fr)
Inventor
陆群
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017202177A1 publication Critical patent/WO2017202177A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/062Generation of reports related to network traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps

Definitions

  • the present invention relates to the field of communications, and in particular, to a bidirectional measurement control method, a transmission service device, and a reception service device.
  • the currently carried IP service is usually a L2VPN (Virtual Private Network) + L3VPN solution, which requires a PE (Provider Edge, Edge Device) node in the L3VPN.
  • L2VPN Virtual Private Network
  • PE Public Edge, Edge Device
  • the L2-L3 bridge is implemented.
  • the IP service needs to implement L2 transparent transmission in the access aggregation L2VPN network.
  • the current practice is: after the base station is connected, initiate a ping to the base station from the L3 virtual interface of the L2-L3 bridge point, detect connectivity with the base station, and then initiate a service gateway (Serving GateWay) from the L2-L3 bridge point. SGW) ping, detecting connectivity with the SGW before.
  • SGW Service gateway
  • This detection mechanism uses segmentation detection, which is inefficient.
  • the connectivity of the L2VPN network cannot be detected.
  • the connectivity between the bridge point and the base station is abnormal, it cannot be determined that the base station is faulty. , or L2VPN network failure.
  • the circumvention or improvement approach is based on the RFC5357 (TWAMP) bidirectional active measurement protocol for end-to-end link connectivity and performance measurement.
  • TWAMP RFC5357
  • the embodiment of the invention provides a bidirectional measurement control method, a transmission service device and a reception service device, and how to identify a TWAMP measurement report corresponding to each service flow from a plurality of service flows.
  • the problem of the text is a bidirectional measurement control method, a transmission service device and a reception service device, and how to identify a TWAMP measurement report corresponding to each service flow from a plurality of service flows.
  • an embodiment of the present invention provides a bidirectional measurement control method, including:
  • the sending service device sends the first two-way active measurement packet configured in advance for the service flow to be measured to the receiving service device;
  • the second access control rule Receiving, by the sending service device, the second two-way active measurement packet that is sent by the receiving service device, and identifying the second two-way active measurement packet according to the pre-configured second access control rule; the second access control rule And configured according to the feature word of the service flow to be measured.
  • an embodiment of the present invention further provides a bidirectional measurement control method, including:
  • the receiving service device identifies the first two-way active measurement packet according to the first configured first access control rule, and processes the first first two-way active measurement packet to obtain a corresponding second two-way active measurement packet. Transmitting the service device; the first access control rule is configured according to the feature word of the service flow.
  • an embodiment of the present invention further provides a bidirectional measurement control method, including:
  • the sending service device sends the first two-way active measurement packet configured in advance for the service flow to be measured to the receiving service device;
  • the receiving service device identifies the first two-way active measurement packet according to the pre-configured first access control rule, and processes the first first two-way active measurement packet to obtain a corresponding second two-way active measurement packet. Transmitting the service device; the first access control rule is configured according to the feature word of the service flow;
  • the embodiment of the present invention further provides a sending service device, including:
  • the measurement launching module is configured to send the first two-way active measurement packet configured in advance for the service flow to be measured to the receiving service device;
  • the second processing unit is configured to receive the second two-way active measurement packet that is fed back by the receiving service device, and identify the second two-way active measurement packet according to the pre-configured second access control rule; the second access control The rule is configured according to the feature word of the service flow to be measured.
  • the embodiment of the present invention further provides a receiving service device, including:
  • a measurement response module configured to receive a first two-way active measurement message sent by the sending service device for the service flow to be measured
  • the measurement and analysis module is configured to: identify the first two-way active measurement message according to the first configured first access control rule; and process the first first two-way active measurement message to obtain a corresponding second two-way active measurement report.
  • the message is fed back to the sending service device; the first access control rule is configured according to the feature word of the service flow.
  • the embodiment of the present invention further provides a storage medium, where the storage medium stores an execution instruction, and the execution instruction is used to execute the method according to any one of the foregoing embodiments.
  • the first two-way active measurement message is configured for the service flow
  • the second access control rule for identifying the second two-way active measurement message is configured according to the feature word of the service flow ( That is, the second ACL rule is configured.
  • the receiving service device configures a first access control rule (ie, a first ACL rule) for identifying the first bidirectional active measurement packet according to the feature word of the service flow.
  • a first access control rule ie, a first ACL rule
  • the receiving service device may identify the first two-way active measurement packet according to the first configured access control rule, and process the identified first two-way active measurement packet to obtain a corresponding second two-way. Active measurement message feedback to the sending industry
  • the service device can identify the second bidirectional active measurement message according to the second access control rule.
  • the solution provided by the embodiment of the present invention can identify a bidirectional active measurement packet of each service flow by configuring a corresponding ACL rule for each service flow on the service sending end and the service receiving end; and is particularly applicable to having parallel to multiple service flows. Testing can not only improve the efficiency of the test, but also ensure the accuracy of the test message recognition.
  • FIG. 1 is a schematic flowchart of a bidirectional measurement and control method for a transmitting service device according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a bidirectional measurement and control method for a receiving service device according to a first embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a hardware structure of a service device according to a second embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a sending service device according to a second embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a receiving service device according to a second embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a method for processing a measurement packet according to a second embodiment of the present invention.
  • the sending service device before the Twamp protocol is enabled to measure the service flow, the sending service device (that is, the sending end) configures the bidirectional active measurement and measurement message (hereinafter referred to as the first bidirectional active measurement message) for the current service flow. Configured on the corresponding receiving service device (that is, the receiving end) The access control rule (hereinafter referred to as the first access control rule) for identifying the first two-way active measurement message. After receiving the first two-way active measurement packet, the receiving service device feeds back the corresponding two-way active measurement packet (hereinafter referred to as the second two-way active measurement packet) to the sending service device, and the embodiment of the present invention also configures the sending service device.
  • An access control rule (hereinafter referred to as a second access control rule) for identifying the second bidirectional active measurement message.
  • the foregoing access control rules are respectively configured on the devices at both ends, and in the process of testing the service flow, the two-way active measurement and detection of the received service flows can be performed on the devices at both ends according to the pre-configured azimuth control rules.
  • the message is identified. It is especially suitable for parallel measurement of multi-service flows, improving measurement efficiency and accuracy.
  • the following describes the packet processing and rule configuration process of the sending service device (that is, the transmitting end) and the receiving service device (that is, the receiving end).
  • the receiving end in this embodiment may serve as a transmitting end at the same time, and the transmitting end may also serve as a receiving end at the same time.
  • the sending service device configures the first two-way active measurement message for the service flow.
  • the ID can be tested as an index of each first bidirectional active measurement message for storage.
  • the sending service device further configures a second access control rule for identifying the second bidirectional active measurement message according to the feature word of the service flow.
  • the second bidirectional active measurement message in the step is an active measurement message corresponding to the feedback after the receiving service device receives the first bidirectional active measurement message.
  • the feature word that can be obtained after the sending service device obtains the feature word of the service flow constitutes a second access control rule.
  • the above configuration is not required for each measurement. It may only need to be configured once for a single business flow. It may also be needed according to the actual situation.
  • the previous configuration is completely reconfigured by updating or deleting the previous configuration.
  • the steps performed by the sending service device end in the measurement process are as shown in FIG. 1 , and include:
  • the sending service device sends the first two-way active measurement packet configured in advance for the service flow to be measured to the receiving service device.
  • the method for sending the first two-way active measurement packet by the sending service device may be sent according to the sending rule configured by the first two-way active measurement packet.
  • the sending service device may be configured to generate a first two-way active measurement packet according to the configured packet sending rule, the packet sending function, and the packet sending mode, and encapsulate the packet header according to the customer service mode, and send the sending time stamp to send out.
  • the client mode is the L2 mode
  • the generated first bidirectional active measurement packet needs to be encapsulated into an Ethernet packet format.
  • the client mode is L3
  • the generated first bidirectional active measurement packet needs to be encapsulated into an IP packet format.
  • the sending service device receives the second two-way active measurement packet that is received by the receiving service device, and identifies the second two-way active measurement packet according to the configured second access control rule. Including but not limited to verifying the information carried in the message, the receiving time stamp is marked. According to the TESTID, the timestamp value and the number of the received and sent packets in the message are extracted, and are calculated and sent to the user.
  • the sending service device configures the first bidirectional active measurement packet for the current service flow, including: configuring the address information of the packet, the port information, the packet sending, the sending mode, and the sending rule.
  • the address information includes, but is not limited to, a source IP address, a destination IP address, a source MAC address, and a destination MAC address.
  • the destination IP address in this embodiment can be obtained by sending a probe packet to the receiving service device.
  • the port information includes, but is not limited to, the source UDP (User Datagram Protocol) port number and the destination UDP port number.
  • the packet sending mode of the first bidirectional active measurement packet includes a standard packet sending mode and an extended packet sending module, which may be determined according to the service data type of the current service flow, and is an operator.
  • controllable data such as IP data or Ethernet data
  • the delivery mode is set to the extended delivery mode; when the operator is not controllable data, such as large customer data, the delivery mode is set to the standard delivery mode.
  • the value of the delivery enable can be adjusted in real time according to the delivery rules.
  • the delivery rule in this embodiment can be flexibly set according to a specific application scenario.
  • the sending rule can be set to periodically send packets. When the sending period is reached, the sending enable value is set to 1, and the sending is performed.
  • the first bidirectional active measurement message configured for each service flow may be stored as an index by using TESTID (test ID) for subsequent searching.
  • the configured access control rule may adopt a unified mode, which may include as many feature words as possible to facilitate accurate identification.
  • the operator's controllable data such as IP data or Ethernet data, can properly simplify the feature words to ensure the recognition accuracy and improve the recognition efficiency.
  • the obtained feature stream of the current service flow includes the source IP address, the destination IP address, the source UDP port number, the destination UDP port number, the VPN address (that is, the VPN ID), and the IP DSCP (Differentiated Services Code). Point, differential service code point).
  • the acquired feature words of the current service flow include the source UDP port number, the destination UDP port number, and the VPN address.
  • the receiving service device For the receiving service device, it needs to be configured before measurement.
  • the options are as follows:
  • the receiving service device configures a first access control rule for identifying the first bidirectional active measurement message according to the feature word of the service flow. It should be understood that for a service flow, the above configuration is not required for each measurement. It may only need to be configured once for a single business flow. It may also be necessary to completely reconfigure the previous configuration according to the actual situation or to update the previous configuration.
  • the receiving service device receives the first two-way active measurement packet sent by the sending service device, and identifies the first two-way active measurement packet according to the pre-configured first access control rule.
  • the processing includes, but is not limited to, parsing the first bidirectional active measurement message, and correspondingly updating the address information and the port information in the first bidirectional active measurement message (for example, exchanging mac, ip, and udp ports in the message content), And accessing the receiving timestamp and sending the timestamp to obtain the second bidirectional active measurement message.
  • the receiving service device processes the first two-way active measurement packet that is identified, and the corresponding second two-way active measurement packet is fed back to the sending service device.
  • the receiving the feature file of the current service flow by the receiving service device in this embodiment includes:
  • the obtained feature stream of the current service flow includes the destination IP address, the source IP address, the destination UDP port number, the source UDP port number, and the VPN address of the service flow.
  • IP DSCP IP DSCP
  • the acquired feature stream of the current service flow includes the destination UDP port number, the source UDP port number, and the VPN address of the service flow.
  • the value of the IP address and UDP port number on the receiving service device side is the same as the value on the transmitting service device side.
  • the feature word combination included in the above access control rule is only an example manner, and the specific combination manner can also flexibly adjust the setting according to specific requirements.
  • the sending service device and the receiving service device are in the same VPN, for example, in the L2VPN or in the L3VPN, the content of the first access control rule and the second access control rule are the same.
  • the sending service device and the receiving service device are in different VPNs, for example, when the sending service device and the receiving service device are respectively located in the L2VPN or the L3VPN, the content of the first access control rule and the second access control rule are different, for example, The destination UDP port number, source UDP port number, or VPNID is different.
  • the PE node when the PE node is bridged, the corresponding bidirectional active measurement packet needs to be “decapsulated” to facilitate transmission in different VPNs.
  • a Layer 2 Ethernet header is placed on the l3 bridge interface (where the source mac is the mac of the l3 bridge interface, and the destination mac is the mac address of the l2 bridge).
  • the l2 bridge interface strips the Ethernet header and puts the link mac header.
  • a storage medium is further provided, and the storage medium may store an execution instruction for executing the bidirectional measurement control method in the above embodiment.
  • the following describes the packet processing and rule configuration process of the sending service device (that is, the transmitting end) and the receiving service device (that is, the receiving end). .
  • the receiving end in this embodiment may serve as a transmitting end at the same time, and the transmitting end may also serve as a receiving end at the same time.
  • the sending service device and the receiving service device in this embodiment may be PTN core devices.
  • the hardware of the device is configured to include the main control board, the online monitor (OAM board), and the service board.
  • OAM board online monitor
  • the specific number and function of each board can be flexibly configured according to specific requirements. .
  • the sending service device in this embodiment includes:
  • the first configuration module 41 is configured to configure a first bidirectional active measurement message for the service flow before testing the service flow, and optionally is responsible for constructing the content of the first bidirectional measurement message.
  • the module can be configured on a service board or a monitoring board.
  • the first configuration module 41 is not required for each measurement to perform the above configuration.
  • the first configuration module 41 may only need to be configured once for one traffic flow. It may also be necessary to completely reconfigure the previous configuration according to the actual situation or to update the previous configuration.
  • the first configuration module 41 configures the first bidirectional active measurement packet for the current service flow, including: configuring the address information of the packet, the port information, the packet sending, the sending mode, and the sending rule; wherein the address information includes but is not limited to: the source IP address. Address, destination IP address, source MAC address, destination MAC address.
  • the port information includes, but is not limited to, the source UDP (User Datagram Protocol) port number and the destination UDP port number.
  • the delivery mode includes a standard delivery mode and an extended delivery module, which can be determined according to the service data type of the current service flow. When the business controllable data, such as IP data or Ethernet data, the delivery mode is set to the extended delivery mode; when the operator is uncontrollable data, such as large customer data, the delivery mode is set to the standard delivery mode.
  • the value of the delivery enable can be adjusted in real time according to the delivery rules.
  • the delivery rule in this embodiment can be flexibly set according to a specific application scenario.
  • the sending rule can be set to periodically send packets. When the sending period is reached, the sending enable value is set to 1, and the sending is performed.
  • the first two-way active measurement message configured for each service flow can be stored as an index by TESTID (test ID) for subsequent searching.
  • the first configuration module 41 is further configured to configure a second access control rule for identifying the second bidirectional active measurement message according to the feature word of the service flow, optionally:
  • the feature words of the current service flow acquired by the first configuration module 41 include the source IP address, the destination IP address, the source UDP port number, the destination UDP port number, the VPN ID, and the IP DSCP.
  • the feature words of the current service flow acquired by the first configuration module 41 include the source UDP port number, the destination UDP port number, and the VPN address.
  • the first rule configuration module 62 acquires the source IP address, the destination IP address, and the VPN ID in the feature word as the rule table matching feature word.
  • the measurement launching module 42 sends the first bidirectional active measurement message to the receiving service device during the measurement process.
  • the measurement processing module 43 is configured to receive the second bidirectional active measurement message fed back by the receiving service device during the measurement process.
  • the measurement launching module 42 and the measurement processing module 43 can be optionally disposed in the service board or in the monitoring board. It is further configured to perform identification processing on the second bidirectional active measurement message according to the second access control rule. After the second bidirectional active measurement message is identified and processed, it can be reported to the client layer.
  • the receiving service device in this embodiment includes:
  • the second configuration module 51 is configured to: before the testing of the service flow, set the first access control rule for identifying the first bidirectional active measurement message according to the feature word of the service flow before the measurement of the service flow to be measured .
  • the second configuration module 51 can be optionally configured in a service board. For a service flow, the second configuration module 51 is not required for each measurement to perform the above configuration. The second configuration module 51 may only need to be configured once for one traffic flow. It may also be necessary to completely reconfigure the previous configuration according to the actual situation or to update the previous configuration.
  • the acquiring, by the second configuration module 51, the feature words of the current service flow in this embodiment includes:
  • the feature word of the current service flow acquired by the second rule configuration module 71 includes the destination IP address, the source IP address, the destination UDP port number, and the source of the service flow.
  • the feature word of the current service flow acquired by the second rule configuration module 71 includes the destination UDP port number, the source UDP port number, and the VPN address of the service flow.
  • the value of the IP address and UDP port number on the receiving service device side is the same as the value on the transmitting service device side.
  • the feature word combination included in the above access control rule is only an example manner, and the specific combination manner can also flexibly adjust the setting according to specific requirements.
  • the measurement response module 52 is configured to receive the first bidirectional active measurement message sent by the sending service device during the testing process.
  • the measurement analysis module 53 is configured to feed back the second bidirectional active measurement message to the sending service device.
  • the measurement response module 52 and the measurement and analysis module 53 can be optionally disposed in the service board or in the monitoring board.
  • the measurement and analysis module 53 is configured to identify the first two-way active measurement message according to the first access control rule, and process the first first two-way active measurement message to obtain a corresponding second two-way active measurement message.
  • S601 Configure the Twamp message (that is, the first two-way active measurement packet) of the sending end on the L3VPN service device (the sending end), and configure the ACL rule (that is, the second access control rule) in the foregoing manner to select the OMA board.
  • the packet sending mode of the first bidirectional active measurement packet is "extended", and the packet sending and enabling period is 10 ms, the UPD port number, IP, and IP DSCP information are configured.
  • the ACL rule (that is, the first access control rule) of the Twamp receiving end is configured on the L2VPN service device (the receiving end), where the packet sending mode is “standard”. Its IP and UDP port values are the same as those of the sender.
  • the FPGA sending module of the transmitting end OMA board 1 periodically polls the Twamp message to send the packet enable identifier.
  • the packet enable flag is 1, the first bidirectional active measurement packet is sent according to the configured sending period. .
  • the FPGA of the OMA board 1 of the sending end searches for the destination line card according to the TEST ID of each first bidirectional active measurement packet, and encapsulates the Ethernet header (where the destination MAC address in the Ethernet header is the line card board MAC)
  • the source MAC address is the OAM card MAC address, and the first bidirectional active measurement packet is sent to the main control L3 switch module.
  • the L3 switch module on the main control board of the sending end finds the slot number of the destination line card according to the MAC learning, and sends the first bidirectional active measurement packet to the corresponding service board of the sending end for processing.
  • the APGA sends the first bidirectional active measurement packet to the NP according to the received first bidirectional active measurement packet.
  • the l2 bridge interface strips the Ethernet header and puts the link mac header.
  • the NP of the service board at the receiving end After receiving the first bidirectional active measurement packet of the sending end, the NP of the service board at the receiving end according to the first access control rule that is previously defined (the rule is a six-tuple ACL rule specified according to the standard mode, including the destination IP, The source IP address, the destination UDP port number, the source UDP port number, the VPN ID, and the IP DSCP mode identify the first bidirectional active measurement packet, and send the first bidirectional active measurement packet to the FPGA in the service board of the receiving end.
  • the rule is a six-tuple ACL rule specified according to the standard mode, including the destination IP, The source IP address, the destination UDP port number, the source UDP port number, the VPN ID, and the IP DSCP mode identify the first bidirectional active measurement packet, and send the first bidirectional active measurement packet to the FPGA in the service board of the receiving end.
  • S609 The FPGA in the service board of the receiving end exchanges the UDP port number and the IP (that is, the source becomes the destination, the destination becomes the source), and the received time stamp value and the transmitted time stamp value are used to obtain the second two-way active measurement packet. Sending the second bidirectional active measurement message.
  • the NP in the service board of the sending end After receiving the first two-way active measurement packet sent by the receiving end, the NP in the service board of the sending end, according to the second access control rule that is previously defined according to the extended mode, includes the purpose of the triplet ACL rule specified by the extended mode.
  • the UDP port number, the source UDP port number, and the VPN ID identify the second bidirectional active measurement packet, and send the second bidirectional active measurement packet to the FPGA in the service board of the sending end.
  • the FPGA in the service board of the sending end finds the home OAM board according to the TEST carried in the second bidirectional active measurement packet, and receives the time stamp and encapsulates the Ethernet header (where the destination MAC address in the Ethernet header is The OAM board MAC address and the source MAC address are the line card board MAC addresses.
  • the second bidirectional active measurement packet is sent out.
  • the L3 switch module on the main control board of the sending end finds the slot number of the destination line card according to the MAC learning, and sends the second bidirectional active measurement packet to the corresponding OMA board for processing.
  • the sending OAM board parses the content of the second bidirectional active measurement packet, including but not limited to parsing information in the packet content, extracting time stamp, receiving packet, and packet loss rate. And this information is presented to the user.
  • the time stamp calculation method can be calculated by the following formula (1):
  • the packet loss rate calculation can be calculated according to the following formula:
  • the intermediate process is inaccurate in the statistical result of the packet.
  • One of the reasons is that the packet sent is not received in time, resulting in inaccurate statistics of the packet loss in the intermediate process.
  • the following statistical methods are available:
  • the packet count is +1, the packet count is +1, and the transmission interval is ts (for example, 1 s).
  • the packet is counted +1, the packet count is not +1, and the next time after the timeout period is reached, the next packet is sent.
  • the Twamp can implement the detection of the L3VPN to the L2VPN full path, and also supports the L2VPN end-to-end detection, the L3VPN end-to-end detection, and the segmentation detection of the bridge point.
  • the access identification rule with the same rule table matching feature word is merged into one ACL by using the solution provided by the embodiment of the present invention, which can greatly reduce the number of ACLs, and thus can implement full path forwarding of a large number of specific services. Quick and accurate diagnosis of conditions and end-to-end network faults to ensure communication reliability.
  • modules or steps of the above embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed among multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in a storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some
  • the steps shown or described may be performed in an order different from that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, embodiments of the invention are not limited to any particular combination of hardware and software.
  • the present invention relates to the field of communication, and provides a bidirectional measurement control method, a transmission service device, and a reception service device, and identifies a two-way initiative of each service flow by configuring corresponding ACL rules for each service flow at the service sending end and the service receiving end.
  • the measurement message is especially suitable for parallel testing of multiple service flows, which not only improves the test efficiency, but also ensures the accuracy of the test message recognition.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种双向测量控制方法、发送业务设备及接收业务设备,在对业务流进行测试前,在业务发送端和业务接收端针对各业务流分别配置对应的ACL规则;在对业务流测试过程中,业务发送端和业务接收端则根据预先配置的ACL规则分别准确的识别出各业务流的双向主动测量报文。本发明实施例尤其适用于具有对多种业务流并行测试,既能提升测试效率的同时,又能保证测试报文识别的准确性。

Description

双向测量控制方法、发送业务设备及接收业务设备 技术领域
本发明涉及通信领域,尤其涉及一种双向测量控制方法、发送业务设备及接收业务设备。
背景技术
在分组传送网(Packet Optical Transport Network,简称PTN)中,目前承载的IP业务,通常采用L2VPN(Virtual Private Network,虚拟专用网络)+L3VPN方案,需要在L3VPN的PE(Provider Edge,边缘设备)节点进行L2-L3桥接,此时IP业务在接入汇聚L2VPN网络内需要实现L2透传。目前的做法是:在基站接入后,从L2-L3桥接点的L3虚接口发起向基站的ping,检测与基站之前的连通性,再从L2-L3桥接点发起向服务网关(Serving GateWay,SGW)的ping,检测与SGW之前的连通性。这种检测机制采用分段检测,效率低;且在基站未接入时,无法检测L2VPN网络的连通性;而在检测到桥接点与基站之间的连通性异常时,又无法判断是基站故障,还是L2VPN网络故障。针对上述问题,规避或改进的方法是依据RFC5357(TWAMP)双向主动测量协议实现端到端的链路连通性以及性能测量。随着目前业务流种类和数量的增加,在对各业务流进行主动测量时所采用的TWAMP测量报文也日益增加。因此如何准确可靠的从众多业务流中识别出各业务流对应的TWAMP测量报文是获取到准确测量结果的前提。而目前尚无任何实现如何从众多业务流中识别出各业务流对应的TWAMP测量报文的方案。
发明内容
本发明实施例提供了一种双向测量控制方法、发送业务设备及接收业务设备,解决如何从众多业务流中识别出各业务流对应的TWAMP测量报 文的问题。
为了解决上述问题,本发明实施例提供了一种双向测量控制方法,包括:
发送业务设备将预先针对待测量业务流配置的第一双向主动测量报文发给接收业务设备;
所述发送业务设备接收所述接收业务设备反馈的第二双向主动测量报文,根据预先配置的第二访问控制规则对所述第二双向主动测量报文进行识别;所述第二访问控制规则根据所述待测量业务流的特征字进行配置得到。
为了解决上述问题,本发明实施例还提供了一种双向测量控制方法,包括:
接收业务设备接收发送业务设备针对待测量业务流发送的第一双向主动测量报文;
接收业务设备根据预先配置的第一访问控制规则对所述第一双向主动测量报文进行识别;将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给所述发送业务设备;所述第一访问控制规则根据所述业务流的特征字进行配置得到。
为了解决上述问题,本发明实施例还提供了一种双向测量控制方法,包括:
发送业务设备将预先针对待测量业务流配置的第一双向主动测量报文发给接收业务设备;
接收业务设备根据预先配置的第一访问控制规则对所述第一双向主动测量报文进行识别,将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给所述发送业务设备;所述第一访问控制规则根据所述业务流的特征字进行配置得到;
所述发送业务设备根据预先配置的第二访问控制规则对所述第二双 向主动测量报文进行识别,所述第二访问控制规则根据所述待测量业务流的特征字进行配置得到。
为了解决上述问题,本发明实施例还提供了一种发送业务设备,包括:
测量发动模块,设置为将预先针对待测量业务流配置的第一双向主动测量报文发给接收业务设备;
测量处理模块,设置为接收所述接收业务设备反馈的第二双向主动测量报文,根据预先配置的第二访问控制规则对所述第二双向主动测量报文进行识别;所述第二访问控制规则根据所述待测量业务流的特征字进行配置得到。
为了解决上述问题,本发明实施例还提供了一种接收业务设备,包括:
测量响应模块,设置为接收发送业务设备针对待测量业务流发送的第一双向主动测量报文;
测量分析模块,设置为根据预先配置的第一访问控制规则对所述第一双向主动测量报文进行识别;将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给所述发送业务设备;所述第一访问控制规则根据所述业务流的特征字进行配置得到。
为了解决上述问题,本发明实施例中还提供了一种存储介质,所述存储介质存储有执行指令,所述执行指令用于执行上述实施例中任一项所述的方法。
本发明实施例具有以下有益效果:
发送业务设备对业务流进行测试前,为该业务流配置第一双向主动测量测报文,并根据该业务流的特征字配置用于识别第二双向主动测量报文的第二访问控制规则(即第二ACL规则);接收业务设备根据该业务流的特征字配置用于识别第一双向主动测量报文的第一访问控制规则(即第一ACL规则)。在对业务流测量时,接收业务设备可根据预先配置的第一访问控制规则对第一双向主动测量报文进行识别,将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给所述发送业 务设备;发送业务设备可根据第二访问控制规则对第二双向主动测量报文进行识别。因此本发明实施例提供的方案可通过在业务发送端和业务接收端针对各业务流分别配置对应的ACL规则识别出各业务流的双向主动测量报文;尤其适用于具有对多种业务流并行测试,既能提升测试效率的同时,又能保证测试报文识别的准确性。
附图说明
图1为本发明第一实施例提供的发送业务设备端双向测量控制方法流程示意图;
图2为本发明第一实施例提供的接收业务设备端双向测量控制方法流程示意图;
图3为本发明第二实施例提供的业务设备硬件结构示意图;
图4为本发明第二实施例提供的发送业务设备结构示意图;
图5为本发明第二实施例提供的接收业务设备结构示意图;
图6为本发明第二实施例提供的测量报文处理方法流程示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本发明中一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例在启用Twamp协议对业务流进行测量前,发送业务设备(也即发送端)在为当前业务流配置双向主动测量测报文(以下称为第一双向主动测量报文)时,在对应的接收业务设备(也即接收端)配置用 于识别该第一双向主动测量测报文的访问控制规则(以下简称第一访问控制规则)。接收业务设备接收到第一双向主动测量测报文后会向发送业务设备反馈对应的双向主动测量报文(以下简称第二双向主动测量报文),本发明实施例还在发送业务设备上配置用于识别第二双向主动测量报文的访问控制规则(以下称为第二访问控制规则)。本发明实施例通过在两端设备上分别配置上述访问控制规则,在对业务流测试过程中,即可在两端设备上根据预先配置的方位控制规则对接收到各业务流的双向主动测量检测报文进行识别。尤其适用于多业务流的并行测量,提升测量效率和准确率。
现通过可选实施方式结合附图的方式对本发明做出进一步的诠释说明。
第一实施例:
为了更好的理解本发明实施例,下面分别对发送业务设备(也即发送端)和接收业务设备(也即接收端)的报文处理及规则配置过程进行说明。但应当理解的是,在实际应用场景中,根据实际业务需求,本实施例中的接收端可以同时作为发送端,而发送端也可以同时作为接收端。
对于发送业务设备端,在测量前,其需要做以下配置:
对待测量业务流,发送业务设备为该业务流配置第一双向主动测量报文。本实施例中可以测试ID作为各第一双向主动测量报文的索引进行存储。
发送业务设备还根据该业务流的特征字配置用于识别第二双向主动测量报文的第二访问控制规则。该步骤中的第二双向主动测量报文为接收业务设备接收到第一双向主动测量报文后,对应反馈的主动测量报文。发送业务设备获取该业务流的特征字后可以获取的特征字组成第二访问控制规则。
应当理解的是,对于一个业务流,并不是每次测量都需要进行上述配置。可能针对一个业务流只需要一次配置。也可能根据实际情况需要对之 前的配置进行更新或删除之前的配置而完全重新配置。
基于上述配置,发送业务设备端在测量过程中执行的步骤如图1所示,包括:
S101:发送业务设备将预先针对待测量业务流配置的第一双向主动测量报文发给接收业务设备。
发送业务设备发送第一双向主动测量报文的方式可选可以根据该第一双向主动测量报文配置的发包规则进行发送。发送业务设备可选可以根据配置的发包规则、发包使能、发包模式等信息生成第一双向主动测量报文,并且按照客服模式封装报文头,打上发送时戳发送出去。当客户模式是L2模式时,生成的第一双向主动测量报文是需要封装为以太网报文格式。当客户模式是L3方式,生成的第一双向主动测量报文需要封装为IP报文格式。
S102:发送业务设备接收到接收业务设备反馈的第二双向主动测量报文,根据配置好的第二访问控制规则对第二双向主动测量报文进行识别处理。包括但不限于校验报文中携带的信息,打上接收时戳。根据TESTID提取报文中时戳值和收发包数,并计算后,上送给用户等。
本实施例中,发送业务设备为当前业务流配置第一双向主动测量报文包括:配置报文的地址信息、端口信息、发包使能、发包模式以及发包规则;其中:
地址信息包括但不限于:源IP地址、目的IP地址、源MAC地址、目的MAC地址;
本实施例中的目的IP地址可以通过向接收业务设备发送探测报文进行获取。
端口信息包括但不限于:源UDP(User Datagram Protocol,用户数据报协议)端口号、目的UDP端口号。
本实施例中,第一双向主动测量报文的发包模式包括标准发包模式和扩展发包模块,具体可根据当前业务流的业务数据类型确定,当为运营商 可控的数据时,例如IP数据或以太网数据时,设置发包模式为扩展发包模式;当为运营商不可控的数据,例如大客户数据时,设置发包模式为标准发包模式。
发包使能的值可以根据发包规则实时调整。本实施例中的发包规则可以根据具体的应用场景灵活设定。例如发包规则可以设置为周期性发包,当发包周期达到时,则将发包使能值设置为1,进行发包。
且本实施例中,针对各业务流配置的第一双向主动测量报文可以通过TESTID(测试ID)为索引进行存储,以便于后续查找。
本实施例中,针对各业务流,所配置的访问控制规则可以采用统一的一种模式,其可包含尽可能多的特征字以便于精准识别。但对于某一些业务流的业务数据为运营商的可控数据,例如IP数据或以太网数据,可以适当精简特征字,保证识别准确度的同时,提升识别效率。下面分别对发包模式为标准模式和扩展模式的访问控制规则进行说明。
当发包模式为标准模式时,获取的当前业务流的特征字依次包括源IP地址、目的IP地址、源UDP端口号、目的UDP端口号、VPN地址(即VPN ID)和IP DSCP(Differentiated Services Code Point,差分服务代码点)。
当发包模式为扩展模式时,获取的当前业务流的特征字依次包括源UDP端口号、目的UDP端口号和VPN地址。
应当理解的是,上述访问控制规则包含的特征字组合仅是一种示例方式,具体的组合方式还可以根据具体的需求灵活调整设定。
对于接收业务设备端,其在测量前也需要进行配置,可选如下:
对业务流进行测量前,接收业务设备根据该业务流的特征字配置用于识别第一双向主动测量报文的第一访问控制规则。且应当理解的是,对于一个业务流,也并不是每次测量都需要进行上述配置。可能针对一个业务流只需要一次配置。也可能根据实际情况需要对之前的配置进行更新或删除之前的配置而完全重新配置。
接收业务设备对测量报文控制过程参见图2所示,包括:
S201:接收业务设备接收发送业务设备发送的第一双向主动测量报文,根据预先配置的第一访问控制规则对第一双向主动测量报文进行识别处理。该处理包括但不限于解析第一双向主动测量报文,将第一双向主动测量报文中的地址信息和端口信息进行对应更新(例如将报文内容中mac、ip和udp端口进行交换),并接入接收时间戳以及发送时间戳得到第二双向主动测量报文。
S202:接收业务设备将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给发送业务设备。
对应的,本实施例中接收业务设备获取当前业务流的特征字包括:
当第一双向主动测量报文的发包模式为标准模式时,获取的当前业务流的特征字依次包括该业务流的目的IP地址、源IP地址、目的UDP端口号、源UDP端口号、VPN地址和IP DSCP;
当第一双向主动测量报文的发包模式为扩展模式时,获取的当前业务流的特征字依次包括该业务流的目的UDP端口号、源UDP端口号和VPN地址。
从上可以看出,在接收业务设备侧IP地址、UDP端口号值与发送业务设备侧的值相同。且上述访问控制规则包含的特征字组合仅是一种示例方式,具体的组合方式还可以根据具体的需求灵活调整设定。
本实施例中,当发送业务设备和接收业务设备在相同VPN中时,例如都在L2VPN中或L3VPN中时,第一访问控制规则和第二访问控制规则内容相同。发送业务设备和接收业务设备在不同VPN中时,例如发送业务设备和接收业务设备分别位于L2VPN中或L3VPN中时,第一访问控制规则和所述第二访问控制规则内容不同,例如二者的目的UDP端口号、源UDP端口号、或者VPNID等不同。在这种应用场景下,在PE节点桥接时,需要将对应的双向主动测量报文“解封装”,以便于在不同的VPN传输。例如,当报文在经过l2l3桥接网元时,在l3桥接口上打上二层以太网头(其中源mac是l3桥接口的mac,目的mac是l2桥接的mac地址), 发往l2桥接口。当报文是从l2vpn往l3vpn回送时,l2桥接口会把以太网头剥掉,打上链路mac头。
在本发明实施例中还提供了一种存储介质,该存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的双向测量控制方法。
第二实施例:
为了更好的理解本发明实施例,下面结合发送业务设备(也即发送端)和接收业务设备(也即接收端)的一种示例结构,对二者的报文处理及规则配置过程进行说明。但应当理解的是,在实际应用场景中,根据实际业务需求,本实施例中的接收端可以同时作为发送端,而发送端也可以同时作为接收端。
本实施例中的发送业务设备和接收业务设备可以是PTN核心设备。参见图3所示,假设该设备的硬件构成包含主控单板、在线监测(Online Monitor)单板(简称OAM板)以及业务单板;各单板的具体数量和功能可以根据具体需求灵活配置。
请参见图4所示,本实施例中的发送业务设备,包括:
第一配置模块41,设置为在对业务流测试之前,为该业务流配置第一双向主动测量报文,可选负责构造第一双向测量报文的内容。该模块可选可以设置于业务单板或监测单板中。对于一个业务流,并不是每次测量都需要第一配置模块41进行上述配置。第一配置模块41可能针对一个业务流只需要一次配置。也可能根据实际情况需要对之前的配置进行更新或删除之前的配置而完全重新配置。
第一配置模块41为当前业务流配置第一双向主动测量报文包括:配置报文的地址信息、端口信息、发包使能、发包模式以及发包规则;其中,地址信息包括但不限于:源IP地址、目的IP地址、源MAC地址、目的MAC地址。端口信息包括但不限于:源UDP(User Datagram Protocol,用户数据报协议)端口号、目的UDP端口号。发包模式包括标准发包模式和扩展发包模块,可选可根据当前业务流的业务数据类型确定,当为运 营商可控的数据时,例如IP数据或以太网数据时,设置发包模式为扩展发包模式;当为运营商不可控的数据,例如大客户数据时,设置发包模式为标准发包模式。
发包使能的值可以根据发包规则实时调整。本实施例中的发包规则可以根据具体的应用场景灵活设定。例如发包规则可以设置为周期性发包,当发包周期达到时,则将发包使能值设置为1,进行发包。针对各业务流配置的第一双向主动测量报文可以通过TESTID(测试ID)为索引进行存储,以便于后续查找。
第一配置模块41,还设置为根据业务流的特征字配置用于识别第二双向主动测量报文的第二访问控制规则,可选的:
当发包模式为标准模式时,第一配置模块41获取的当前业务流的特征字依次包括源IP地址、目的IP地址、源UDP端口号、目的UDP端口号、VPN ID和IP DSCP。
当发包模式为扩展模式时,第一配置模块41获取的当前业务流的特征字依次包括源UDP端口号、目的UDP端口号和VPN地址。
对应的,当发包模式为标准模式时,第一规则配置模块62获取特征字中的源IP地址、目的IP地址以及VPN ID作为规则表匹配特征字。
应当理解的是,上述访问控制规则包含的特征字组合仅是一种示例方式,具体的组合方式还可以根据具体的需求灵活调整设定。
测量发动模块42,在测量过程中,将第一双向主动测量报文发给接收业务设备。
测量处理模块43,设置为在测量过程中,接收所述接收业务设备反馈的第二双向主动测量报文。测量发动模块42和测量处理模块43可选可以设置于业务单板中或者监测单板中。还设置为根据第二访问控制规则对第二双向主动测量报文进行识别处理。其对第二双向主动测量报文进行识别处理后可以上报给客户层。
请参见图5所示,本实施例中的接收业务设备,包括:
第二配置模块51,设置为在对业务流测试前,设置为在对待测量的业务流测量前,根据该业务流的特征字配置用于识别第一双向主动测量报文的第一访问控制规则。第二配置模块51可选可以设置于业务单板中。对于一个业务流,并不是每次测量都需要第二配置模块51进行上述配置。第二配置模块51可能针对一个业务流只需要一次配置。也可能根据实际情况需要对之前的配置进行更新或删除之前的配置而完全重新配置。
本实施例中第二配置模块51获取当前业务流的特征字包括:
当第一双向主动测量报文的发包模式为标准模式时,第二规则配置模块71获取的当前业务流的特征字依次包括该业务流的目的IP地址、源IP地址、目的UDP端口号、源UDP端口号、VPN地址和IP DSCP;
当第一双向主动测量报文的发包模式为扩展模式时,第二规则配置模块71获取的当前业务流的特征字依次包括该业务流的目的UDP端口号、源UDP端口号和VPN地址。
从上可以看出,在接收业务设备侧IP地址、UDP端口号值与发送业务设备侧的值相同。且上述访问控制规则包含的特征字组合仅是一种示例方式,具体的组合方式还可以根据具体的需求灵活调整设定。
测量响应模块52,设置为在测试过程中,接收发送业务设备发送的第一双向主动测量报文。
测量分析模块53,设置为向发送业务设备反馈第二双向主动测量报文。测量响应模块52和测量分析模块53可选可以设置于业务单板中或者监测单板中。
测量分析模块53可选设置为根据第一访问控制规则对第一双向主动测量报文进行识别,将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文。
为了更好的理解本发明实施例,下面以上述业务设备硬件结构为基础,以一完整的测量报文控制过程为示例进行说明。
假设某一PTN设备,其主控单板、线卡单板(即业务单板)和OMA 单板(监测单板)都运行正常。在大量基站业务开通前,完成L2VPN+L3VPN的端到端的相关配置后,为了检测业务路径的连通性和性能是否正常,开启Twamp双向主动测量协议,可选处理流程参见图6所示,包括:
S601:在L3VPN业务设备(发送端)上配置发送端的Twamp报文(也即第一双向主动测量报文)和并按上述方式配置ACL规则(也即第二访问控制规则),选择OMA单板1发包,第一双向主动测量报文的发包模式为“扩展”方式,并配置发包使能、发包周期是10ms、UPD端口号、IP、IP DSCP信息。
S602:在L2VPN业务设备(接收端)按照上述方式配置Twamp接收端的ACL规则(也即第一访问控制规则),其中报文发包模式为“标准”。其IP、UDP端口值与发送端的值一样。
S603:发送端OMA单板1上FPGA发包模块定时轮询Twamp报文发包使能标识,当检测到报文使能标识为1时,则按照配置的发包周期,发送第一双向主动测量报文。
S604:发送端OMA单板1的FPGA根据每个第一双向主动测量报文的TEST ID查找到目的线卡单板,并封装以太网头(其中以太网头中目的MAC是线卡单板MAC,源MAC是OAM单板MAC),把第一双向主动测量报文发送给主控L3交换模块。
S605:发送端主控单板上的L3交换模块根据MAC学习,找到目的线卡单板槽位号,并把第一双向主动测量报文发给发送端相应的业务单板处理。
S606:发送端的业务单板中APGA根据收到的第一双向主动测量报文,把第一双向主动测量报文发送给NP转发。
S607:第一双向主动测量报文在经过l2l3桥接网元时,在l3桥接口上打上二层以太网头(其中源mac是l3桥接口的mac,目的mac是l2桥接的mac地址),发往l2桥接口。
对应的,当第一双向主动测量报文是从l2vpn往l3vpn回送时,l2桥接口会把以太网头剥掉,打上链路mac头。
S608:接收端的业务单板中NP收到发送端的第一双向主动测量报文后,根据之前制定的第一访问控制规则(该规则是根据标准模式指定的六元组ACL规则,包含目的IP、源IP、目的UDP端口号、源UDP端口号、VPN ID和IP DSCP)方式识别出第一双向主动测量报文,并且把第一双向主动测量报文上送给接收端的业务单板中FPGA。
S609:接收端的业务单板中FPGA,把UDP端口号和IP进行交换(即源变成目,目变成源),并且打上接收时戳值和发送时戳值得到第二双向主动测量报文,把第二双向主动测量报文发送出去。
S610:发送端的业务单板中NP接收到接收端回送的第一双向主动测量报文后,根据前制定的第二访问控制规则(该规则是根据扩展模式指定的三元组ACL规则,包含目的UDP端口号、源UDP端口号、VPN ID)识别出第二双向主动测量报文,并把第二双向主动测量报文上送给发送端的业务单板中FPGA。
S611:发送端的业务单板中FPGA根据携带的第二双向主动测量报文中携带的TEST,找到归宿的OAM单板,打上接收时戳,并封装以太网头(其中以太网头中目的MAC是OAM单板MAC,源MAC是线卡单板MAC),把第二双向主动测量报文发送出去。
S612:发送端主控单板上的L3交换模块根据MAC学习,找到目的线卡槽位号,并把第二双向主动测量报文发给相应的OMA单板处理。
S613:发送端OAM单板接收到第二双向主动测量报文后,解析第二双向主动测量报文内容,包括但不限于解析报文内容中信息、提取时戳、接收包和丢包率,并这些信息呈现给用户。
本实施例中,时戳计算方法可以采用以下公式(1)计算:
(发送端接收时戳-发送端发射时戳)-(接收端发射时戳-接受端接收时戳);…………………………………………………………………(1)
丢包率计算可以按照以下公式计算:
(发包数-收包数)/发包数;……………………………………(2)
在主动双向测量过程中,中间过程对报文统计结果不准确其中一个原因在于对于发出去的报文,还没有及时的收到,导致中间过程丢包统计结果不准确,对此,本实施例可采用以下统计方法:
主动双向测量中,发送携带序列号的主动双向测试报文后,在收到该序列号的反馈报文后,对于发包计数+1,收包计数+1,并在发送间隔ts(例如1s)后发第二个包,如果在超时时间T内(例如T=2t)未收到反射报文,则对发包计数+1,收包计数不+1,同时在超时时间到达后再发下一个报文。
本发明实施例采用Twamp可以实现L3VPN到L2VPN全路径的检测,也支持L2VPN端到端的检测、L3VPN端到端检测和桥接点的分段检测。在芯片资源有限情况下,通过本发明实施例提供的方案将具有相同规则表匹配特征字的访问识别规则合并到一个ACL中,可以大量降低ACL数量,因此也能实现大量特定业务的全路径转发情况和端到端网络故障的快速精准诊断,保证通讯的可靠性。
显然,本领域的技术人员应该明白,上述本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明实施例不限制于任何特定的硬件和软件结合。
以上仅是本发明的可选实施方式而已,并非对本发明做任何形式上的限制,凡是依据本发明的技术实质对以上实施方式所做的任意简单修改、等同变化、结合或修饰,均仍属于本发明技术方案的保护范围。
工业实用性:
本发明涉及通信领域,提供了一种双向测量控制方法、发送业务设备及接收业务设备,通过在业务发送端和业务接收端针对各业务流分别配置对应的ACL规则识别出各业务流的双向主动测量报文,尤其适用于具有对多种业务流并行测试,既能提升测试效率的同时,又能保证测试报文识别的准确性。

Claims (12)

  1. 一种双向测量控制方法,包括:
    发送业务设备将预先针对待测量业务流配置的第一双向主动测量报文发给接收业务设备;
    所述发送业务设备接收所述接收业务设备反馈的第二双向主动测量报文,根据预先配置的第二访问控制规则对所述第二双向主动测量报文进行识别;所述第二访问控制规则根据所述待测量业务流的特征字进行配置得到。
  2. 如权利要求1所述的双向测量控制方法,其中,发送业务设备为当前业务流配置第一双向主动测量报文包括:配置报文的地址信息、端口信息、发包使能、发包模式以及发包规则;
    所述地址信息包括源IP地址、目的IP地址、源MAC地址、目的MAC地址;所述端口信息包括源UDP端口号、目的UDP端口号。
  3. 如权利要求2所述的双向测量控制方法,其中,所述发包模式包括标准发包模式和扩展发包模块,发送业务设备配置发包模式包括:
    判断所述当前业务流的业务数据为IP数据或以太网数据时,设置发包模式为扩展发包模式;
    判断所述当前业务流的业务数据为大客户数据时,设置发包模式为标准发包模式。
  4. 如权利要求3所述的双向测量控制方法,其中,所述特征字包括:
    当所述发包模式为标准模式时,所述特征字包括源IP地址、目的IP地址、源UDP端口号、目的UDP端口号、VPN地址和IP DSCP;
    当所述发包模式为扩展模式时,所述特征字包括源UDP端口号、目的UDP端口号和VPN地址。
  5. 一种双向测量控制方法,包括:
    接收业务设备接收发送业务设备针对待测量业务流发送的第一双向主动测量报文;
    接收业务设备根据预先配置的第一访问控制规则对所述第一双向主动测量报文进行识别;将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给所述发送业务设备;所述第一访问控制规则根据所述业务流的特征字进行配置得到。
  6. 如权利要求5所述的双向测量控制方法,其中,所述特征字包括:
    当所述第一双向主动测量报文的发包模式为标准模式时,获取的所述当前业务流的访问控制规则特征字依次包括该业务流的目的IP地址、源IP地址、目的UDP端口号、源UDP端口号、VPN地址和IP DSCP;
    当所述第一双向主动测量报文的发包模式为扩展模式时,获取的所述当前业务流的访问控制规则特征字依次包括该业务流的目的UDP端口号、源UDP端口号和VPN地址。
  7. 一种双向测量控制方法,包括:
    发送业务设备将预先针对待测量业务流配置的第一双向主动测量报文发给接收业务设备;
    接收业务设备根据预先配置的第一访问控制规则对所述第一双向主动测量报文进行识别,将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给所述发送业务设备;所述第一访问控制规则根据所述业务流的特征字进行配置得到;
    所述发送业务设备根据预先配置的第二访问控制规则对所述第二双向主动测量报文进行识别,所述第二访问控制规则根据所述待测量业务流的特征字进行配置得到。
  8. 如权利要求7所述的双向测量控制方法,其中,所述发送业务设备和所述接收业务设备在相同VPN中时,所述第一访问控制规则和所述第二访问控制规则内容相同;
    所述发送业务设备和所述接收业务设备在不同VPN中时,所述第一访问控制规则和所述第二访问控制规则内容不同。
  9. 如权利要求8所述的双向测量控制方法,其中,所述接收业务设备将识别出的第一双向主动测量报文进行处理得到第二双向主动测量报文包括:
    解析所述第一双向主动测量报文,将所述第一双向主动测量报文中的地址信息和端口信息进行对应更新,并接入接收时间戳以及发送时间戳得到第二双向主动测量报文。
  10. 一种发送业务设备,包括:
    测量发动模块,设置为将预先针对待测量业务流配置的第一双向主动测量报文发给接收业务设备;
    测量处理模块,设置为接收所述接收业务设备反馈的第二双向主动测量报文,根据预先配置的第二访问控制规则对所述第二双向主动测量报文进行识别;所述第二访问控制规则根据所述待测量业务流的特征字进行配置得到。
  11. 一种接收业务设备,包括:
    测量响应模块,设置为接收发送业务设备针对待测量业务流发送的第一双向主动测量报文;
    测量分析模块,设置为根据预先配置的第一访问控制规则对所述第一双向主动测量报文进行识别;将识别出的第一双向主动测量报文进行处理得到对应的第二双向主动测量报文反馈给所述发送业务设备;所述第一访问控制规则根据所述业务流的特征字进行配置得到。
  12. 一种存储介质,所述存储介质存储有执行指令,所述执行指令用于执行权利要求1至9中任一项所述的方法。
PCT/CN2017/082459 2016-05-24 2017-04-28 双向测量控制方法、发送业务设备及接收业务设备 WO2017202177A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610353314.9 2016-05-24
CN201610353314.9A CN107425995A (zh) 2016-05-24 2016-05-24 双向测量控制方法、发送业务设备及接收业务设备

Publications (1)

Publication Number Publication Date
WO2017202177A1 true WO2017202177A1 (zh) 2017-11-30

Family

ID=60411725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082459 WO2017202177A1 (zh) 2016-05-24 2017-04-28 双向测量控制方法、发送业务设备及接收业务设备

Country Status (2)

Country Link
CN (1) CN107425995A (zh)
WO (1) WO2017202177A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844804A (zh) * 2022-06-01 2022-08-02 重庆奥普泰通信技术有限公司 网络测量方法、系统、电子设备及计算机可读存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191475B (zh) * 2018-02-23 2021-04-27 大唐移动通信设备有限公司 一种基站的数据处理方法和装置
CN108390797A (zh) * 2018-02-27 2018-08-10 盛科网络(苏州)有限公司 一种基于芯片实现主动测量协议的方法
CN109067625B (zh) * 2018-10-19 2020-07-28 瑞斯康达科技发展股份有限公司 一种业务通道性能的检测方法、设备及系统
CN113992551B (zh) * 2021-09-09 2023-07-14 新华三信息安全技术有限公司 一种信息上报方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744573A (zh) * 2005-08-30 2006-03-08 杭州华为三康技术有限公司 业务流的识别方法
EP2416527A1 (en) * 2009-04-04 2012-02-08 Huawei Technologies Co., Ltd. Method, apparatus and system for measuring ip network performance and controlling quality of service
US20140169183A1 (en) * 2012-12-14 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for augmenting twamp
CN105306284A (zh) * 2014-05-27 2016-02-03 中兴通讯股份有限公司 检测虚拟专用网络的用户网络侧接口连通性的方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752220B (zh) * 2012-07-19 2016-04-06 杭州华三通信技术有限公司 识别SSL VPN数据流的服务质量QoS业务类型的方法及设备
CN102780584B (zh) * 2012-07-25 2016-06-22 杭州华三通信技术有限公司 一种快速访问以太网设备网管系统的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744573A (zh) * 2005-08-30 2006-03-08 杭州华为三康技术有限公司 业务流的识别方法
EP2416527A1 (en) * 2009-04-04 2012-02-08 Huawei Technologies Co., Ltd. Method, apparatus and system for measuring ip network performance and controlling quality of service
US20140169183A1 (en) * 2012-12-14 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for augmenting twamp
CN105306284A (zh) * 2014-05-27 2016-02-03 中兴通讯股份有限公司 检测虚拟专用网络的用户网络侧接口连通性的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844804A (zh) * 2022-06-01 2022-08-02 重庆奥普泰通信技术有限公司 网络测量方法、系统、电子设备及计算机可读存储介质
CN114844804B (zh) * 2022-06-01 2023-07-25 重庆奥普泰通信技术有限公司 网络测量方法、系统、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN107425995A (zh) 2017-12-01

Similar Documents

Publication Publication Date Title
EP3334093B1 (en) Subscriber-aware twamp data monitoring in computer networks
WO2017202177A1 (zh) 双向测量控制方法、发送业务设备及接收业务设备
US9819511B2 (en) Bidirectional forwarding detection over a virtual extensible local area network
US10243778B2 (en) Method and system for debugging in a software-defined networking (SDN) system
US9667518B2 (en) Method and system for delay measurement of a traffic flow in a software-defined networking (SDN) system
EP3958521A1 (en) Method and apparatus for providing service for service flow
US10135678B2 (en) Mobile network IOT convergence
US9900233B2 (en) Test traffic interceptor
US11323312B1 (en) Software-defined network monitoring and fault localization
US9191290B2 (en) Methods and devices for monitoring a data path
WO2016045098A1 (zh) 交换机、控制器、系统及链路质量检测方法
US20150092564A1 (en) Validation of Chained Network Services
US8527663B2 (en) Methods and apparatus for performing non-intrusive network layer performance measurement in communication networks
WO2016184245A1 (zh) 一种隧道丢包检测方法、装置及网络通信设备
CN109428782B (zh) 网络监控的方法和设备
US9769011B2 (en) Bidirectional forwarding detection over network virtualization using generic routing encapsulation
CN102195832A (zh) 一种环回测试方法、装置及系统
WO2018150223A1 (en) A method and system for identification of traffic flows causing network congestion in centralized control plane networks
US9929966B2 (en) Preservation of a TTL parameter in a network element
US11032184B2 (en) Method and device for collecting traffic flow value of BGP community attribute or BGP extended community attribute
US8706862B2 (en) Methods and apparatus for performing non-intrusive data link layer performance measurement in communication networks
CN107846301A (zh) 一种端到端业务测试系统和方法
CN107835109B (zh) 一种测试软件定义的分组传送网网络的方法及系统
US10917326B1 (en) Methods, systems, and computer readable media for debugging test traffic generation
US20240098004A1 (en) Packet forwarding method and apparatus, and communication network

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17802023

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17802023

Country of ref document: EP

Kind code of ref document: A1