CN116938766A - TWAMP (time wavelength division multiplexing) measuring method and system for network slice - Google Patents

TWAMP (time wavelength division multiplexing) measuring method and system for network slice Download PDF

Info

Publication number
CN116938766A
CN116938766A CN202311051735.2A CN202311051735A CN116938766A CN 116938766 A CN116938766 A CN 116938766A CN 202311051735 A CN202311051735 A CN 202311051735A CN 116938766 A CN116938766 A CN 116938766A
Authority
CN
China
Prior art keywords
twamp
message
slice
network
inner layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311051735.2A
Other languages
Chinese (zh)
Inventor
单哲
姚佳毅
方胜龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications 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 Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202311051735.2A priority Critical patent/CN116938766A/en
Publication of CN116938766A publication Critical patent/CN116938766A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • 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/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/20Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The embodiment of the application provides a TWAMP (time varying amplitude) measuring method and system for a network slice, which belong to the technical field of communication, and a transmitting terminal device generates a TWAMP detection message according to a slice ID of the network slice to be measured and transmits the TWAMP detection message from a transmitting port. After receiving the TWAMP detection message, the end network device of the network slice to be detected generates a TWAMP reflection message by combining the slice ID after the TWAMP session is successfully matched under the condition that the end network device confirms that the end network device is the reflection end device, and reflects the TWAMP reflection message back to the sending end device. And under the condition that the sending end equipment confirms that the sending end equipment is the end equipment of the TWAMP reflected message, after the TWAMP session is successfully matched, the sending end equipment carries out detection statistics based on the second inner layer message to obtain TWAMP measurement data of the network slice to be detected. And realizing session discrimination of TWAMP of the network slice based on the slice ID of the network slice to be detected, and completing TWAMP packet loss and time delay statistics of the network slice.

Description

TWAMP (time wavelength division multiplexing) measuring method and system for network slice
Technical Field
The application relates to the technical field of communication, in particular to a TWAMP (time signal amplitude modulation) measuring method and system for network slices.
Background
The network slicing is an on-demand networking manner, so that operators can process a plurality of virtual end-to-end networks on the same infrastructure, and each network slicing logically isolates from a wireless access network to a bearing network and then to a core network to serve specific service types or industry users. TWAMP (Two-Way Active Measurement Protocol ) is a performance measurement technique for IP links that accurately measures various parameters of network performance, delay and bandwidth, such as packet loss detection, delay detection and bandwidth detection, by exchanging test traffic between Two network devices.
In SRv network slicing application scenarios, especially in application scenarios of channel subinterfaces, how to use TWAMP to perform delay and packet loss measurement of a slicing path is a problem to be solved.
Disclosure of Invention
Accordingly, an object of the present application is to provide a TWAMP measurement method and system for network slicing, which can use TWAMP to perform delay and packet loss measurement of a slicing path in SRv network slicing application scenario.
In order to achieve the above object, the technical scheme adopted in the embodiment of the application is as follows:
In a first aspect, an embodiment of the present application provides a TWAMP measurement method of a network slice, which is applied to a system including a plurality of network devices, where the plurality of network devices are communicatively connected to each other, and the method includes:
the method comprises the steps that a transmitting terminal device obtains a slice ID of a network slice to be detected, searches a transmitting port, generates a TWAMP detection message based on the slice ID and the network slice to be detected, and transmits the TWAMP detection message from the transmitting port; the sending end equipment is any one of the plurality of network equipment and is the starting point network equipment of the network slice to be detected;
after receiving the TWAMP detection message, under the condition that the receiving end equipment confirms that the receiving end equipment is a reflecting end equipment of the TWAMP detection message, decapsulating the TWAMP detection message to obtain a first inner layer message and a slice ID, matching a TWAMP session of the first inner layer message, generating a TWAMP reflecting message by combining the slice ID after the TWAMP session is successfully matched, determining a reflecting port, and reflecting the TWAMP reflecting message from the reflecting port; the sending end equipment is any one of the plurality of network equipment and is the starting point network equipment of the network slice to be detected;
After receiving the TWAMP reflection message, the transmitting end device performs decapsulation processing on the TWAMP reflection message to obtain a second inner layer message and a slice ID under the condition that the transmitting end device confirms that the transmitting end device is the terminal device of the TWAMP reflection message, performs TWAMP session matching according to the second inner layer message and the slice ID, and performs detection statistics based on the second inner layer message after the matching is successful to obtain TWAMP measurement data.
Optionally, the sending end device includes a message sending module and a route searching module;
the step of searching the transmitting port and generating a TWAMP detection message based on the slice ID and the network slice to be detected includes:
the slice ID is added in the message configuration through the message sending module, an initial TWAMP message is generated according to the IPv6 header, the UDP header and the TWAMP data corresponding to the network slice organization to be detected, and the initial TWAMP message is sent to the route searching module of the sending end device;
and performing route searching through the route searching module to determine a sending port, acquiring a SRv path corresponding to the slice ID, and editing an inner layer message and an outer layer message of the initial TWAMP message according to the SRv path to obtain a TWAMP detection message.
Optionally, the step of obtaining the SRv path corresponding to the slice ID includes:
finding out a corresponding SRv path based on the slice ID; the SRv path is SRv path selected based on the slice ID after performing forwarding resource management, where the forwarding resource management includes priority and forwarding bandwidth of the network slice to be detected.
Optionally, the step of editing the inner layer message and the outer layer message of the initial TWAMP message according to the SRv path to obtain a TWAMP detection message includes:
and based on the slice ID, generating a hop-by-hop extension header of the initial TWAMP message, writing the SRv6 path into a segment routing message header of the initial TWAMP message, and editing an outer IPv6 header and a next hop MAC header of the initial TWAMP message to obtain a TWAMP detection message.
Optionally, the step of the receiving end device confirming that the receiving end device is the reflecting end device of the TWAMP detection message includes:
after receiving the TWAMP detection message, performing SID searching based on the TWAMP detection message to confirm whether the receiving end device is a reflecting end device of the TWAMP detection message.
Optionally, the step of matching the TWAMP session of the first inner layer packet includes:
And acquiring a quintuple of the first inner layer message, and carrying out TWAMP session matching on the quintuple and the receiving end equipment.
Optionally, the step of matching the TWAMP session of the second inner layer packet and the slice ID includes:
and acquiring a quintuple of the second inner layer message, and carrying out TWAMP session matching on the transmitting terminal equipment according to the quintuple and the slice ID.
Optionally, the step of generating the TWAMP reflection packet in combination with the slice ID includes:
extracting TWAMP data from the TWAMP detection message, and editing the TWAMP data to obtain TWAMP reflection data;
extracting IPv6 information from the first inner layer message, and performing IPDA exchange or IPDA exchange on the IPv6 information to obtain feedback address information;
adding the slice ID in the message configuration, and generating an initial feedback message according to IPv6 header, UDP header and TWAMP reflection data corresponding to the network slice tissue to be detected;
and acquiring a SRv path corresponding to the slice ID, and editing an inner layer message and an outer layer message of the initial TWAMP message according to the SRv path and the feedback address information to obtain a TWAMP reflected message.
Optionally, the step of editing the inner layer message and the outer layer message of the initial TWAMP message according to the SRv path and the feedback address information to obtain a TWAMP reflection message includes:
and based on the slice ID, generating a hop-by-hop extension header of the initial feedback message, writing the SRv path into a segment routing message header of the initial TWAMP message, and editing an outer IPv6 header and a next hop MAC header of the initial feedback message according to the feedback address information to obtain a TWAMP reflection message.
In a second aspect, an embodiment of the present application provides a TWAMP measurement system for network slicing, including a plurality of network devices that are communicatively connected, where the plurality of network devices includes a transmitting end device and a receiving end device;
the transmitting terminal device is configured to obtain a slice ID of a network slice to be detected, search a transmitting port, generate a TWAMP detection message based on the slice ID and the network slice to be detected, and transmit the TWAMP detection message from the transmitting port;
the receiving end device is configured to, after receiving the TWAMP detection message, de-encapsulate the TWAMP detection message to obtain a first inner layer message and a slice ID under the condition that the receiving end device confirms that the TWAMP detection message is a reflecting end device of the TWAMP detection message, and after matching is successful, generate a TWAMP reflection message in combination with the slice ID, and determine a reflecting port, and reflect the TWAMP reflection message from the reflecting port;
The sending end device is further configured to, after receiving the TWAMP reflection packet, de-encapsulate the TWAMP reflection packet to obtain a second inner layer packet and a slice ID under the condition that the sending end device confirms that the sending end device is the end device of the TWAMP reflection packet, and perform TWAMP session matching according to the second inner layer packet and the slice ID, and perform detection statistics based on the second inner layer packet after the matching is successful, so as to obtain TWAMP measurement data.
According to the TWAMP measurement method and system of the network slice, starting network equipment of the network slice to be measured generates a TWAMP detection message according to the slice ID of the network slice to be measured, a sending port is searched for, the TWAMP detection message is sent out from the sending port, after the end network equipment of the network slice to be measured receives the TWAMP detection message, under the condition that the end network equipment confirms that the end network equipment is the TWAMP detection message, a first inner layer message and the slice ID are obtained from the TWAMP detection message, after TWAMP session matching of the first inner layer message is successful, a TWAMP reflection message is generated by combining the slice ID, the TWAMP reflection message is reflected back to the starting network equipment of the network slice to be measured, under the condition that the end network equipment confirms that the end network equipment is the TWAMP reflection message, a second inner layer message and the slice ID of the TWAMP message are obtained, detection is carried out on the basis of the second inner layer message after the TWAMP session of the second inner layer message and the slice ID is successfully matched, TWAMP measurement data of the network slice to be measured is obtained, and network loss statistics of the network slice to be measured is achieved based on the network slice of the network slice.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of a communication system according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a network slice in a communication system according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of a TEAMP measurement method of a network slice according to an embodiment of the present application.
Fig. 4 shows one of the schematic structural diagrams of the TWAMP packet provided in the embodiment of the present application.
Fig. 5 shows a second schematic structural diagram of a TWAMP packet according to an embodiment of the present application.
Fig. 6 is a schematic flow chart of a partial sub-step of step S11.
Fig. 7 shows a schematic flow chart of a partial sub-step of step S13 in fig. 3.
Fig. 8 shows a schematic flow chart of a TEAMP measurement system for network slice according to an embodiment of the present application.
Fig. 9 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals illustrate: a 100-communication system; 10-a network device; 20-a control device; 200-TWAMP measurement system of network slice; 101-a transmitting end device; 102-receiving end equipment; 30-an electronic device.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to fall within the scope of the present application.
It is noted that relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Network slicing is a mode of networking on demand, and can enable operators to handle multiple virtual end-to-end networks on the same infrastructure, and each network slice logically isolates from a radio access network to a bearer network and then to a core network to serve specific service types or industry users, such as mobile communication services, smart grid services, live video services, industrial control services and the like.
The method for measuring network slices provided by the embodiment of the application can be applied to the communication system 100 as shown in the figure, and the communication system 100 can comprise a control device 20 and a plurality of network devices 10, wherein the network devices 10 are in communication connection. Each network device 10 may have a corresponding control device 20, or one control device 20 may correspond to all network devices 10.
Wherein the network device 10 may be, but is not limited to being: switches, routers, bridges, hubs, gateways, VPN servers, base stations, etc. The control device 20 includes, but is not limited to, an independent server and a server cluster, and the TWAMP measurement central control system may be operated on the control device 20.
The communication link between any one network device 10 to another network device 10 is divided into a plurality of network slices to serve service types or industry users of different quality of service requirements. For example, the end-to-end network of devices 1-5 in fig. 2 may be divided into 2 network slices, one for serving mobile communication traffic, one for serving smart grid traffic, and another for serving industrial control traffic.
In one possible embodiment, a TWAMP measurement method of a network slice is provided, and referring to fig. 3, the following steps may be included. In the present embodiment, the TWAMP measurement method of the network slice is applied to the communication system 100 in fig. 1 for illustration.
S11, the transmitting terminal equipment 101 obtains the slice ID of the network slice to be detected, searches the transmitting port, generates a TWAMP detection message based on the slice ID and the network slice to be detected, and transmits the TWAMP detection message from the transmitting port.
In the present embodiment, the transmitting-end device 101 is any one of the plurality of network devices 10 of the communication system 100, and is the originating network device 10 of the network slice to be measured.
S13, after receiving the TWAMP detection message, the receiving end device 102 performs decapsulation processing on the TWAMP detection message to obtain a first inner layer message and a slice ID under the condition that the receiving end device confirms that the TWAMP detection message is a reflecting end device of the TWAMP detection message, and generates a TWAMP reflecting message by combining the slice ID after the TWAMP session of the first inner layer message is matched successfully, and determines a reflecting port and reflects the TWAMP reflecting message from the reflecting port.
In this embodiment, the receiving end device 102 is one network device 10 of the plurality of network devices 10 of the communication system 100 in fig. 1, and is the end network device 10 of the network slice to be measured.
S15, after receiving the TWAMP reflected message, the sending end device 101 performs decapsulation processing on the TWAMP reflected message to obtain a second inner layer message and a slice ID under the condition that the sending end device confirms that the sending end device is a terminal device of the TWAMP reflected message, performs TWAMP session matching according to the second inner layer message and the slice ID, and performs detection statistics based on the second inner layer message after the matching is successful to obtain TWAMP measurement data.
Taking an example that an end-to-end network between network equipment A and network equipment D comprises a network slice to be detected, the network equipment A is a transmitting end equipment 101 of the network slice to be detected, the network equipment D is a reflecting end equipment of the network slice to be detected, and the network equipment B and the network equipment C are intermediate network equipment of the end-to-end network. The control device 20 may issue a TWAMP measurement instruction of the network slice to the network device a, the TWAMP measurement instruction including the slice ID of the network slice to be measured. When the network equipment A determines to perform TWAMP measurement of the network slice to be detected, acquiring a slice ID of the network slice to be detected, searching a transmitting port, generating a TWAMP detection message based on the slice ID and the network slice to be detected, and transmitting the TWAMP detection message from the transmitting port.
After receiving the TWAMP detection message, the network device B edits the TWAMP detection message, for example, updates TWAMP data, outer layer IPv6, and a next-hop MAC header in the TWAMP detection message, and then sends the edited TWAMP detection message to the network device C. After receiving the TWAMP detection message, the network device C edits the TWAMP detection message, and sends out the TWAMP detection message after the editing.
It should be noted that editing of TWAMP data includes, but is not limited to: updating a packet loss detection sequence number; and (II) updating the receiving time of the delay detection.
After receiving the TWAMP detection message sent by the network device C, the network device D confirms whether the TWAMP detection message is a reflecting end of the TWAMP detection message, if yes, the TWAMP detection message is unpacked to obtain a first inner layer message and a slice ID, TWAMP session of the first inner layer message is matched, after the matching is successful, a TWAMP reflecting message is generated by combining the slice ID, a reflecting port is determined, and the TWAMP reflecting message is reflected from the reflecting port. The reflected TWAMP reflection message is reflected back along the original path to finally reach the network device a.
After receiving the TWAMP reflection message, the network device a confirms whether the network device a is a terminal device of the TWAMP reflection message, if yes, the network device a decapsulates the TWAMP reflection message to obtain a second inner layer message and a slice ID, matches the TWAMP session of the second inner layer message and the slice ID, and then carries out detection statistics based on the second inner layer message after successful matching to obtain TWAMP measurement data.
In the TWAMP measurement method of the network slice, the TWAMP detection message and the TAWMP reflection message are generated based on the slice ID of the network slice to be measured, so that session distinction of the TWAMP of the network slice is realized, and TWAMP packet loss and delay statistics of the network slice are completed.
In order to enable TWAMP detection of a network slice, in the present embodiment, data carrying information identifying the network slice is introduced into TWAMP messages (including TWAMP detection messages and TWAMP reflection messages) for identification and processing in a forwarding path. Referring to the figures, the inner layer message format of the TWAMP message may be as shown in fig. 4 and 5, where the inner layer message includes an IPv6 (Internet Protocol Version, internet protocol version 6) header, a Hop-by-Hop (Hop-by-Hop) extension header, an SRH (Segment Routing Header ), and an IPv6 payload.
The Hop-by-Hop extension header may be a Hop-by-Hop extension header of SRv (Segment Routing IPv, segment routing based on IPv6 forwarding plane). The Hop-by-Hop extension header carries the Slice ID (Slice ID) of the network Slice.
The IPv6 payload may include an IPv6 header, a UDP (User Datagram Protocol ) header, and TWAMP data.
In one possible implementation, any of the network devices 10 may include a messaging module and a route lookup module. On this basis, referring to fig. 6, in step S11, the transmitting end device 101 may find the transmitting port and generate a TWAMP detection message based on the slice ID and the network slice to be detected.
S111, adding slice ID in the message configuration through the message sending module, generating an initial TWAMP message according to IPv6 header, UDP header and TWAMP data corresponding to the network slice organization to be detected, and sending the initial TWAMP message to the route searching module of the sending terminal equipment.
It should be appreciated that the IPv6 header and UDP header in the initial TWAMP message are empty and have no corresponding data.
S112, route searching is carried out through a route searching module to determine a sending port, a SRv path corresponding to the slice ID is obtained, and an inner layer message and an outer layer message are edited for the initial TWAMP message according to the SRv path, so that the TWAMP detection message is obtained.
The path for acquiring the SRv path corresponding to the slice ID may be flexibly set, for example, SRv paths, that is, SID (Segment ID) List, of each network slice may be preconfigured, or SRv paths may be selected according to a certain rule, which is not specifically limited in this embodiment.
In one possible implementation, the SRv path may be SRv path selected based on the slice ID after forwarding resource management, which may include any one or any several of priority, forwarding bandwidth, and column management of the network slice to be detected. For example, in the forwarding resource management, a path whose forwarding bandwidth satisfies the forwarding bandwidth threshold may be selected from multiple paths formed by multiple network devices 10 according to a preset forwarding bandwidth threshold.
Note that, the TWAMP measurement instruction issued by the control device 20 to the network slice of the sender device 101 may include a path SRv corresponding to the slice ID, and the path SRv may be a path SRv selected based on the slice ID after the control device 20 performs forwarding resource management.
The inner layer message of the initial TWAMP message comprises an IPv6 message header, a Hop-by-Hop extension header, an SRH, an IPv6 header, a UDP header and TWAMP data.
In step S112, the inner layer message and the outer layer message are edited for the initial TWAMP message according to the SRv path, and the TWAMP detection message may be further implemented as: and generating a hop-by-hop extension header of the initial TWAMP message based on the slice ID, writing a SRv path into a segment routing message header of the initial TWAMP message, and editing an outer IPv6 header and a next hop MAC header of the initial TWAMP message to obtain the TWAMP detection message.
Writing the slice ID into a hop-by-hop extension header of the initial TWAMP message, writing a SRv path into a segment routing message header of the initial TWAMP message, and editing an outer IPv6 header and a next hop MAC header to obtain the TWAMP detection message.
In this way, a TWAMP detection message carrying a slice ID for distinguishing the network slice to be measured may be obtained, where the TWAMP detection message may indicate the related network device 10 (including the intermediate network device 10 and the end network device 10) of the network slice to be measured to update TWAMP data, such as a receiving time, a packet loss, and the like, of the TWAMP detection message received from the network slice to be measured when the TWAMP detection message is received, so as to perform TWAMP measurement of the network slice to be measured.
Each network device 10 receives the TWAMP detection message, and may perform SID lookup based on the SRv path (i.e., SID (Segment ID) List) recorded in the SRH portion of the TWAMP detection message, to confirm whether it is the intermediate network device 10 or the end network device 10 in the SRv path. If the intermediate network device 10 is the intermediate network device, according to the receiving time and packet loss condition of the TWAMP detection message received from the network slice to be detected corresponding to the slice ID, the TWAMP data in the TWAMP detection message is updated, and the next hop MAC header of the outer layer is edited and then forwarded.
In a possible implementation manner, in step S13, after the receiving end device 102 receives the TWAMP detection message, the manner of confirming that the receiving end device is the reflecting end device of the TWAMP detection message may be further implemented as follows: after receiving the TWAMP detection message, SID search is performed based on the TWAMP detection message to confirm whether the receiving end device 102 is a reflecting end device of the TWAMP detection message.
That is, based on the SRv path (i.e., SID path table) recorded in the SRH portion of the TWAMP detection message, SID search is performed to determine that the network device is the last network device 10 in the SRv path, and if yes, the receiving end device 102 can be confirmed to be the reflecting end device of the TWAMP detection message.
It is considered that the reflection side device needs to perform TWAMP measurement according to the TWAMP detection message, and TWAMP needs to be performed in a TWAMP session. In step S13, the manner of matching the TWAMP session of the first inner layer packet may be flexibly set, for example, the matching may be performed according to a preset rule, or the matching may be performed according to a five-tuple.
In an alternative embodiment, in order to improve the accuracy of the matching, in step S13, the TWAMP session matching for the first inner layer packet may be further implemented as: and acquiring a quintuple of the first inner layer message, and performing TWAMP session matching on the quintuple and the receiving end device 102. I.e. for all TWAMP sessions of the receiving end device 102, whether there is a TWAMP session with a five-tuple consistent with the five-tuple of the first inner layer packet, if so, the TWAMP session matching is successful, indicating that the receiving end device 102 has opened a TWAMP measurement session of the network slice to be measured.
By the method, the matching is performed without using the slice ID in TWAMP session matching, so that the matched data size is reduced, and the resource consumption can be reduced.
In order to further improve the matching accuracy of the TWAMP session, in a possible implementation manner, the five-tuple of the first inner layer packet and the slice ID may also be matched together.
After the receiving end device obtains the first inner layer message and the slice ID, the first inner layer message can be used for TWAMP session matching, and the slice ID is transmitted to a subsequent processing module for subsequent processing, namely, after TWAMP session matching is successful, TWAMP reflection messages are generated by combining with the slice ID.
In a possible implementation, referring to fig. 7, the generation of the TWAMP reflection packet in combination with the slice ID in step S13 may be further implemented as the following steps.
S131, extracting TWAMP data from the TWAMP detection message, and editing the TWAMP data to obtain TWAMP reflection data.
Editing the TWAMP data includes: writing a receiving time stamp and a response time stamp of the TWAMP detection message by the network slice to be detected corresponding to the slice ID, and writing the number of the sending and receiving messages. It should be noted that, the method for editing the TWAMP data to obtain the TWAMP reflection data (i.e., the TWAMP feedback data) may be a method for generating the TWAMP reflection data by a common TWAMP reflection terminal, which is not specifically limited in this embodiment.
S132, extracting IPv6 information from the first inner layer message, and performing IPDA exchange or IPDA exchange on the IPv6 information to obtain feedback address information.
S133, adding slice ID in the message configuration, and generating an initial feedback message according to IPv6 header, UDP header and TWAMP reflection data corresponding to the network slice tissue to be detected.
S134, acquiring a SRv path corresponding to the slice ID, and editing an inner layer message and an outer layer message of the initial TWAMP message according to the SRv path and the feedback address information to obtain a TWAMP reflection message.
In S134, the path SRv in the SRH of the TWAMP detection message may be reversely processed, so as to obtain the reflected SRv path corresponding to the slice ID. And then reflecting SRv path and feeding back address information to edit the message, thus obtaining TWAMP reflected message.
Similarly, the manner of obtaining the TWAMP reflection packet in step S134 is the same as that of obtaining the TWAMP detection packet in step S111, that is, the generation of the hop-by-hop extension header of the initial feedback packet based on the slice ID, writing the SRv path into the segment routing packet header of the initial TWAMP packet, and editing the outer layer IPv6 header and the next-hop MAC header of the initial feedback packet according to the feedback address information, so as to obtain the TWAMP reflection packet.
For the TWAMP reflection packet obtained in steps S131-S134, the receiving end device sends the TWAMP reflection packet out from the found reflection port, and the TWAMP reflection packet may be transmitted to the sending end device 101 according to the reverse path of the TWAMP detection packet.
Since the transmitting end device 101 cannot predict whether itself is the end (destination) network device 10 of the received TWAMP reflection packet, after receiving the TWAMP reflection packet, the transmitting end device 101 performs SID search based on the reflection SRv path in the SRH of the TWAMP reflection packet, and when determining that itself is the last device in the path of the reflection SRv, confirms that itself is the end device of the TWAMP reflection packet. Furthermore, the transmitting end device 101 decapsulates the TWAMP reflection packet to obtain a second inner layer packet and a slice ID, and performs TWAMP session matching according to the second inner layer packet and the slice ID.
The sending end device 101 needs to count TWAMP information such as delay, packet loss rate, and the like of the network slice to be measured according to the TWAMP reflection packet, and feed back the WAMP information to the control device 20, so that TWAMP session processing of distinguishing different network slices is needed. Therefore, the transmitting end device 101 needs to obtain the TWAMP session that matches both the quintuple and the slice ID of the second inner layer packet, so as to be able to perform corresponding statistics on the TWAMP data in the TWAMP reflection packet and the network slice to be measured corresponding to the slice ID.
Based on the above consideration, the manner of TWAMP session matching for the second inner layer packet and the slice ID in step S15 may be further implemented as: and acquiring a quintuple of the second inner layer message, and performing TWAMP session matching on the transmitting terminal equipment 101 according to the quintuple and the slice ID.
In this way, a TWAMP session that coincides with the quintuple and slice ID of the second inner layer packet is determined from among the TWAMP sessions of the transmitting end device 101 as a matching TWAMP session. And according to the statistics database of the matched TWAMP session and TWAMP data in the TWAMP reflection message, according to the statistics rule of the TWAMP, calculating and recording the packet loss and the time delay to obtain TWAMP measurement data (comprising the time delay and the packet loss rate). And reports the TWAMP measurement data to the control device 20.
In the TWAMP measurement method of the network slice, in SRv network slices, a slice ID (SliceID) is configured for each network slice, a Hop-by-Hop extension header is added in an inner layer message of the TWAMP message to write the slice ID of the network slice to be measured, and path searching and selecting are performed according to the slice ID, so as to generate a TWAMP detection message for TWAMP measurement on the network slice corresponding to the slice ID. Meanwhile, in the measurement process of the network slice, the network device 10 performs TWAMP session matching based on the slice ID, so as to realize that TWAMP sessions corresponding to the slice ID can be matched, thereby performing TWAMP measurement of the network slice, and completing data statistics such as TWAMP packet loss and time delay of the network slice.
Based on the same concept as the TWAMP measurement method of the network slice described above, in one possible embodiment, there is also provided a TWAMP measurement system 200 of the network slice, referring to fig. 8, including a plurality of network devices 10 communicatively connected, the plurality of network devices 10 including a transmitting-end device 101 and a receiving-end device.
The transmitting end device 101 is configured to obtain a slice ID of a network slice to be detected, search a transmitting port, generate a TWAMP detection message based on the slice ID and the network slice to be detected, and transmit the TWAMP detection message from the transmitting port.
And the receiving terminal equipment is used for carrying out decapsulation processing on the TWAMP detection message to obtain a first inner layer message and a slice ID under the condition that the receiving terminal equipment confirms that the TWAMP detection message is the reflecting terminal equipment of the TWAMP detection message after receiving the TWAMP detection message, generating a TWAMP reflecting message by combining the slice ID after matching the TWAMP session of the first inner layer message successfully, determining a reflecting port and reflecting the TWAMP reflecting message from the reflecting port.
The sending end device 101 is further configured to, after receiving the TWAMP reflection packet, de-encapsulate the TWAMP reflection packet to obtain a second inner layer packet and a slice ID under the condition that the TWAMP reflection packet is confirmed to be a terminal device of the TWAMP reflection packet, perform TWAMP session matching according to the second inner layer packet and the slice ID, and perform detection statistics based on the second inner layer packet after the matching is successful, to obtain TWAMP measurement data.
In the TWAMP measurement system 200 of the network slice, in SRv network slices, a slice ID (SliceID) is configured for each network slice, a Hop-by-Hop extension header is added in an inner layer packet of the TWAMP packet to write the slice ID of the network slice to be measured, and path searching and selecting are performed according to the slice ID, so as to generate a TWAMP detection packet for TWAMP measurement on the network slice corresponding to the slice ID. Meanwhile, in the measurement process of the network slice, the network equipment performs TWAMP session matching based on the slice ID, so that TWAMP session corresponding to the slice ID can be matched, TWAMP measurement of the network slice is performed, and data statistics such as TWAMP packet loss and time delay of the network slice are completed.
For a specific implementation of the TWAMP measurement system 200 of the network slice, reference may be made to the implementation of the TWAMP measurement method of the network slice above, which is not described herein.
An electronic device provided in an embodiment of the present application includes: a first processing unit and a second processing unit.
The first processing unit is configured to obtain a slice ID of a network slice to be detected, search a transmitting port, generate a TWAMP detection message based on the slice ID and the network slice to be detected, and transmit the TWAMP detection message from the transmitting port.
And the second processing unit is used for carrying out unpacking processing on the TWAMP detection message to obtain a first inner layer message and a slice ID under the condition that the TWAMP detection message is confirmed to be a reflecting end device of the TWAMP detection message after receiving the TWAMP detection message, generating a TWAMP reflecting message by combining the slice ID after the TWAMP session of the first inner layer message is matched successfully, determining a reflecting port, and reflecting the TWAMP reflecting message from the reflecting port.
The first processing unit is further configured to, after receiving the TWAMP reflection packet, de-encapsulate the TWAMP reflection packet to obtain a second inner layer packet and a slice ID under the condition that the TWAMP reflection packet is confirmed to be a terminal device of the TWAMP reflection packet, perform TWAMP session matching according to the second inner layer packet and the slice ID, and perform detection statistics based on the second inner layer packet after the matching is successful, to obtain TWAMP measurement data.
It should be noted that, the electronic device provided in this embodiment may execute the method flow shown in the TWAMP measurement method flow embodiment of the network slice, so as to achieve the corresponding technical effects. For a brief description, reference is made to the corresponding parts of the above embodiments where they are not mentioned in this section.
Alternatively, the first processing unit and the second processing unit may be separately provided, or may be integrated in one unit, that is, the processing unit, and the specific implementation manner of the first processing unit and the second processing unit is not specifically limited in the present application.
Optionally, the electronic device may further include a storage unit, where the storage unit stores programs or instructions. The program or instructions, when executed by the first processing unit and the second processing unit, enable the electronic device to perform any one of the possible implementations of the TWAMP measurement method of the network slice of the application.
The electronic device may be a central control system of a switch, a router, a network bridge, a gateway and a base station, or may be a computer device connected to the switch, such as a mobile phone, a driving computer, a server, etc., which is not limited in the present application.
In addition, the technical effects of the electronic device may be the technical effects of the method shown in the TWAMP measurement method embodiment of the network slice, which are not described herein.
The present application provides a computer-readable storage medium storing computer instructions, a program that when read and executed perform the method of the above embodiments. The storage medium may include memory, flash memory, registers, combinations thereof, or the like.
An electronic device is provided below, which may be a central control system of a switch, a router, a bridge, a gateway and a base station, or may be a computer device connected to the switch, such as a mobile phone, a driving computer, a server, etc. The electronic device is as shown in fig. 9, and the method can be implemented; specifically, the electronic device includes a processor, a memory, and a communication module connected by a system bus. The processor may be a CPU. The memory is used for storing one or more programs, and when the one or more programs are executed by the processor, the motor angle sampling method provided by the embodiment is executed. The memory, the processor and the communication module are electrically connected with each other directly or indirectly so as to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
Wherein the memory is used for storing programs or data. The Memory may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor is configured to read/write data or programs stored in the memory, such as the above-described LVDS, TDC, and programs and data for realizing the functions of the processing unit, and perform the method provided in any embodiment of the present application.
The communication module is used for establishing communication connection between the electronic equipment and other communication terminals through a network and is used for receiving and transmitting data through the network.
It should be understood that the structure shown in fig. 8 is merely a schematic structural diagram of an electronic device that may also include more or fewer components than those shown in fig. 8, or have a different configuration than that shown in fig. 8.
Embodiments of the present application provide a computer program product comprising: a computer program (which may also be referred to as code, or instructions), when executed, causes a computer to perform the TWAMP measurement method of a network slice according to any one of the possible implementations of the method embodiments of the application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device 10, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, and various modifications and variations may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A TWAMP measurement method of a network slice, applied to a system including a plurality of network devices, the plurality of network devices being communicatively connected to each other, the method comprising:
the method comprises the steps that a transmitting terminal device obtains a slice ID of a network slice to be detected, searches a transmitting port, generates a TWAMP detection message based on the slice ID and the network slice to be detected, and transmits the TWAMP detection message from the transmitting port; the sending end equipment is any one of the plurality of network equipment and is the starting point network equipment of the network slice to be detected;
after receiving the TWAMP detection message, under the condition that the receiving end equipment confirms that the receiving end equipment is a reflecting end equipment of the TWAMP detection message, decapsulating the TWAMP detection message to obtain a first inner layer message and a slice ID, matching a TWAMP session of the first inner layer message, generating a TWAMP reflecting message by combining the slice ID after the TWAMP session is successfully matched, determining a reflecting port, and reflecting the TWAMP reflecting message from the reflecting port; the sending end equipment is any one of the plurality of network equipment and is the starting point network equipment of the network slice to be detected;
After receiving the TWAMP reflection message, the transmitting end device performs decapsulation processing on the TWAMP reflection message to obtain a second inner layer message and a slice ID under the condition that the transmitting end device confirms that the transmitting end device is the terminal device of the TWAMP reflection message, performs TWAMP session matching according to the second inner layer message and the slice ID, and performs detection statistics based on the second inner layer message after the matching is successful to obtain TWAMP measurement data.
2. The TWAMP measurement method of network slicing according to claim 1, wherein the sender device includes a message sending module and a route searching module;
the step of searching the transmitting port and generating a TWAMP detection message based on the slice ID and the network slice to be detected includes:
the slice ID is added in the message configuration through the message sending module, an initial TWAMP message is generated according to the IPv6 header, the UDP header and the TWAMP data corresponding to the network slice organization to be detected, and the initial TWAMP message is sent to the route searching module of the sending end device;
and performing route searching through the route searching module to determine a sending port, acquiring a SRv path corresponding to the slice ID, and editing an inner layer message and an outer layer message of the initial TWAMP message according to the SRv path to obtain a TWAMP detection message.
3. The TWAMP measurement method of network slices according to claim 2, wherein the step of acquiring a SRv path corresponding to the slice ID comprises:
finding out a corresponding SRv path based on the slice ID; the SRv path is SRv path selected based on the slice ID after performing forwarding resource management, where the forwarding resource management includes priority and forwarding bandwidth of the network slice to be detected.
4. The TWAMP measurement method of claim 2, wherein the step of performing inner layer message and outer layer message editing on the initial TWAMP message according to the SRv path to obtain a TWAMP detection message includes:
and based on the slice ID, generating a hop-by-hop extension header of the initial TWAMP message, writing the SRv6 path into a segment routing message header of the initial TWAMP message, and editing an outer IPv6 header and a next hop MAC header of the initial TWAMP message to obtain a TWAMP detection message.
5. The TWAMP measurement method of claim 1, wherein the step of the receiving end device confirming itself as a reflecting end device of the TWAMP detection message comprises:
After receiving the TWAMP detection message, performing SID searching based on the TWAMP detection message to confirm whether the receiving end device is a reflecting end device of the TWAMP detection message.
6. The TWAMP measurement method of claim 1, wherein the step of matching TWAMP sessions for the first inner layer message comprises:
and acquiring a quintuple of the first inner layer message, and carrying out TWAMP session matching on the quintuple and the receiving end equipment.
7. The TWAMP measurement method of claim 1, wherein the step of matching TWAMP sessions for the second inner layer message and the slice ID comprises:
and acquiring a quintuple of the second inner layer message, and carrying out TWAMP session matching on the transmitting terminal equipment according to the quintuple and the slice ID.
8. The TWAMP measurement method of claim 1, wherein the step of generating a TWAMP reflection message in combination with the slice ID comprises:
extracting TWAMP data from the TWAMP detection message, and editing the TWAMP data to obtain TWAMP reflection data;
extracting IPv6 information from the first inner layer message, and performing IPDA exchange or IPDA exchange on the IPv6 information to obtain feedback address information;
Adding the slice ID in the message configuration, and generating an initial feedback message according to IPv6 header, UDP header and TWAMP reflection data corresponding to the network slice tissue to be detected;
and acquiring a SRv path corresponding to the slice ID, and editing an inner layer message and an outer layer message of the initial TWAMP message according to the SRv path and the feedback address information to obtain a TWAMP reflected message.
9. The TWAMP measurement method of claim 8, wherein the step of performing inner layer message and outer layer message editing on the initial TWAMP message according to the SRv path and the feedback address information to obtain a TWAMP reflection message comprises the following steps:
and based on the slice ID, generating a hop-by-hop extension header of the initial feedback message, writing the SRv path into a segment routing message header of the initial TWAMP message, and editing an outer IPv6 header and a next hop MAC header of the initial feedback message according to the feedback address information to obtain a TWAMP reflection message.
10. A TWAMP measurement system for network slicing, comprising a plurality of network devices in communication connection, wherein the plurality of network devices comprise a transmitting end device and a receiving end device;
The transmitting terminal device is configured to obtain a slice ID of a network slice to be detected, search a transmitting port, generate a TWAMP detection message based on the slice ID and the network slice to be detected, and transmit the TWAMP detection message from the transmitting port;
the receiving end device is configured to, after receiving the TWAMP detection message, de-encapsulate the TWAMP detection message to obtain a first inner layer message and a slice ID under the condition that the receiving end device confirms that the TWAMP detection message is a reflecting end device of the TWAMP detection message, and after matching is successful, generate a TWAMP reflection message in combination with the slice ID, and determine a reflecting port, and reflect the TWAMP reflection message from the reflecting port;
the sending end device is further configured to, after receiving the TWAMP reflection packet, de-encapsulate the TWAMP reflection packet to obtain a second inner layer packet and a slice ID under the condition that the sending end device confirms that the sending end device is the end device of the TWAMP reflection packet, and perform TWAMP session matching according to the second inner layer packet and the slice ID, and perform detection statistics based on the second inner layer packet after the matching is successful, so as to obtain TWAMP measurement data.
CN202311051735.2A 2023-08-21 2023-08-21 TWAMP (time wavelength division multiplexing) measuring method and system for network slice Pending CN116938766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311051735.2A CN116938766A (en) 2023-08-21 2023-08-21 TWAMP (time wavelength division multiplexing) measuring method and system for network slice

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311051735.2A CN116938766A (en) 2023-08-21 2023-08-21 TWAMP (time wavelength division multiplexing) measuring method and system for network slice

Publications (1)

Publication Number Publication Date
CN116938766A true CN116938766A (en) 2023-10-24

Family

ID=88389815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311051735.2A Pending CN116938766A (en) 2023-08-21 2023-08-21 TWAMP (time wavelength division multiplexing) measuring method and system for network slice

Country Status (1)

Country Link
CN (1) CN116938766A (en)

Similar Documents

Publication Publication Date Title
KR100916288B1 (en) Method and apparatus for determination of network topology
EP3958521A1 (en) Method and apparatus for providing service for service flow
CN110034971B (en) Method and device for detecting service chain
CN110138618B (en) Message processing method, device and system
US20020055999A1 (en) System and method for measuring quality of service
EP2291950B1 (en) Traffic monitoring by lowest transmission layer marking
EP1463245A2 (en) Ethernet path verification
US8599692B2 (en) System, apparatus and method for removing unwanted information from captured data packets
US11962491B2 (en) Source routing tunnel ingress protection
CN114430386A (en) Method and related device for detecting multicast service flow
CN107241378B (en) Apparatus and method for unified data networking across heterogeneous networks and storage medium
EP3016322B1 (en) Packet forwarding method and device
US20230327983A1 (en) Performance measurement in a segment routing network
CN116800672B (en) Method, device, electronic equipment and storage medium for accelerating message forwarding
JP4905122B2 (en) Communication performance measuring method, communication performance collecting method, communication system, and repeater
CN116095197B (en) Data transmission method and related device
CN116527592A (en) Application layer stream following detection method and device based on APN (access point) and related equipment
CN116938766A (en) TWAMP (time wavelength division multiplexing) measuring method and system for network slice
CN111600798B (en) Method and equipment for sending and obtaining assertion message
US20100177772A1 (en) Method and system for deriving tunnel path information in mpls networks
WO2023093227A1 (en) Information collection method and apparatus, and storage medium and electronic apparatus
US11405315B2 (en) Multi-hop physical layer data collection protocol
EP4358483A1 (en) Method and apparatus for determining slice information, and storage medium and electronic apparatus
CN117527667A (en) Service function chain processing method and device
CN115551042A (en) Message forwarding method and device, storage medium and electronic equipment

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