CN112714036A - Network quality measurement method, apparatus, device and medium for bundled link - Google Patents

Network quality measurement method, apparatus, device and medium for bundled link Download PDF

Info

Publication number
CN112714036A
CN112714036A CN202010376249.8A CN202010376249A CN112714036A CN 112714036 A CN112714036 A CN 112714036A CN 202010376249 A CN202010376249 A CN 202010376249A CN 112714036 A CN112714036 A CN 112714036A
Authority
CN
China
Prior art keywords
session
node
link
test
member link
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.)
Granted
Application number
CN202010376249.8A
Other languages
Chinese (zh)
Other versions
CN112714036B (en
Inventor
李振强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Publication of CN112714036A publication Critical patent/CN112714036A/en
Application granted granted Critical
Publication of CN112714036B publication Critical patent/CN112714036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • 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
    • H04L43/087Jitter

Landscapes

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

Abstract

The invention discloses a method, a device, equipment and a medium for measuring network quality of a bundled link. The binding link is positioned between a first node and a second node, and the method is applied to the first node and comprises the following steps: establishing a test session of a plurality of member links of a binding link; on the basis of the test session of each member link, sending a session sender test message to the second node through each member link; receiving a session reflector test message sent by the second node over each member link; and detecting the network transmission quality information of each member link according to the session reflector test message of each member link. According to the method, the device, the equipment and the medium for measuring the network quality of the bundled link, provided by the embodiment of the invention, the detection precision of the network transmission quality of the bundled link can be improved.

Description

Network quality measurement method, apparatus, device and medium for bundled link
Cross Reference to Related Applications
This application claims priority to chinese patent application 201911024904.7 entitled "network quality measurement method, apparatus, device, and medium for bundled links" filed on 25/10/2019, the entire contents of which are incorporated herein by reference.
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, a device, and a medium for measuring network quality for a bonded link.
Background
Currently, the quality between two points in a network is mainly measured by means of an Internet Packet explorer (ping) command. Because the ping command cannot control the forwarding path of the data packet in the network, when a binding link (sometimes also called a binding group) exists between two points to be tested, it cannot be determined which member link the measured quality index is, and the difference between the quality indexes of different member links in the binding group, such as time delay, is often large due to different transmission paths, different load conditions, and the like, so that the quality index result obtained by ping measurement cannot represent the quality of all the member links, and the measurement accuracy of the network transmission quality of the binding link is low.
Disclosure of Invention
The network quality measuring method, the device, the equipment and the medium provided by the embodiment of the invention can improve the detection precision of the network transmission quality of the binding link.
In a first aspect, a method for measuring network quality of a bundled link is provided, which includes: establishing a test session of a plurality of member links of a binding link; on the basis of the test session of each member link, sending a session sender test message to the second node through each member link; receiving a session reflector test message sent by the second node over each member link; and detecting the network transmission quality information of each member link according to the session reflector test message of each member link.
According to the network quality measuring method in the embodiment of the invention, after a plurality of member links between a first node and a second node establish a test session, the first node can send a session sender test message to the second node through each member link, and obtains a session reflector test message through the member links. And detecting the network transmission quality of each member link according to the session sender test message and the session reflector test message of each member link. Therefore, the network transmission quality of each member link in the binding link can be tested, and the detection precision of the network transmission quality of the binding link is improved.
In an alternative embodiment, the establishing a test session of a plurality of member links of a bundled link includes:
receiving a test command of a binding link; detecting whether a port of a first node is a port of a binding link according to a test command of the binding link; if the port is the binding link port, sending a member link test request to the second node; and receiving a response success message of the member link test request sent by the second node, and establishing a test session of a plurality of member links according to the response success message.
In this embodiment, whether to establish a test session of a member link may be determined according to whether the port of the first node supports the port of the bundled link and the response state of the second node, so that the validity of the test session is improved.
In an optional embodiment, the method further comprises: determining a target link matched with the traffic to be transmitted in the plurality of member links according to the service quality requirement information of the traffic to be transmitted and the network transmission quality information of the plurality of member links; and dispatching the traffic to be transmitted to a target link.
In this embodiment, the corresponding target link may be determined according to the qos requirement information of the traffic to be transmitted. Due to the fact that the transmission quality of each member link in the binding link is different, through the embodiment, the most suitable link can be selected from the binding link to transmit the flow to be transmitted, and the information transmission quality is improved.
In an alternative embodiment, the network transmission quality information of the member links includes one or more of the following quality information: time delay, jitter, packet loss rate.
In an alternative embodiment, the session sender test message and the session reflector test message are TWAMP protocol information, TWAMP Light protocol information, OWAMP protocol information, or STAMP protocol information.
In this embodiment, the session sender test message and the session reflector test message may be generated based on the existing protocol information, and the practicability of the session sender test message and the session reflector test message as TWAMP protocol information, TWAMP Light protocol information, OWAMP protocol information, or STAMP protocol information may be expanded.
In an optional implementation manner, the session sender test message and the session reflector test message both carry the identity of the corresponding member link.
Through the embodiment, after the session sender test message and the session reflector test message carry the identity of the corresponding member link, the session sender test message and the session reflector test message can be transmitted on the corresponding member link.
In an alternative embodiment, the member link test Request is a command type defined in the Request-TW-Session information of the TWAMP protocol, and the command number field of the Request-TW-Session information indicates the command type.
By the embodiment, the type of the Request-TW-Session information can be effectively expanded.
In an optional implementation manner, the response success message is a response message type defined in the Accept-Session information of the TWAMP protocol, and an Accept field of the Accept-Session information indicates the response message type.
By the embodiment, the type of Accept-Session information can be effectively expanded.
In an optional implementation manner, after receiving the response success message of the member link test request sent by the second node, the method further includes: determining first port identification information of each member link of the node, and determining second port identification information of each member link according to a response success message of a member link conversation request sent by a second node; wherein the first port is a physical port of the first node and the second port is a physical port of the second node.
In an optional implementation manner, before the response success message of the member link session request sent by the second node, the method further includes: sending a member link session request to a second node through each member link, wherein the member link session request carries first port identification information of each member link; and receiving a response success message of the member link session request sent by the second node, wherein the response success message of the member link session request carries the second port identification information of each member link.
In an optional implementation manner, after receiving the response success message of the member link test request sent by the second node, the method further includes: and receiving configuration information of each member link, wherein the configuration information comprises first port identification information and second port identification information of each member link.
In a second aspect, a method for measuring network quality of a bundled link is provided, where the bundled link is located between a first node and a second node, the method is applied to the first node, and the method is applied to the second node, and includes: establishing a test session of a plurality of member links; receiving a session sender test message sent by a first node through each member link on the basis of the test session of each member link; generating a session reflector test message according to the session sender test message; a session reflector test message is sent to the first node over each member link.
In an optional embodiment, the method further comprises:
responding to a member link test request sent by a first node, and detecting whether a plurality of member links support member link test; if the member link test is supported and the member link test request is correct, a response success message is returned to the first node; if the member link test request supporting the member link test is wrong, returning a first response failure message representing the member link test request is wrong to the first node; and if the member link test is not supported, returning a second response failure message to the first node.
In this embodiment, the second node may respond to the request of the first node according to its configuration and state, and transmit its state to the first node through the response information, thereby improving the response efficiency.
In an optional implementation manner, after returning a response success message of the member link test request to the first node, the method further includes: receiving a member link session request sent by a first node through each member link; responding to the member link conversation request, and acquiring first port identification information of each member link from the member link conversation request; determining second port identification information of each member link of the self; wherein the first port is a physical port of the first node and the second port is a physical port of the second node.
In an optional embodiment, the method further comprises: generating a response success message of the member link session request, wherein the response success message of the member link session request carries the second port identification information; and sending a response success message of the member link session request to the first node through each member link.
In an optional implementation manner, after returning a response success message of the member link test request to the first node, the method further includes: and receiving configuration information of each member link, wherein the configuration information comprises first port identification information and second port identification information of each member link.
In a third aspect, an apparatus for measuring network quality for a bonded link between a first node and a second node is provided, the apparatus comprising:
the session establishing module is used for establishing a test session of a plurality of member links of the binding link; the information sending module is used for sending a session sender test message to the second node through each member link on the basis of the test session of each member link; an information receiving module, configured to receive a session reflector test message sent by the second node through each member link; and the quality detection module is used for detecting the network transmission quality information of each member link according to the session reflector test message of each member link.
In a fourth aspect, an apparatus for measuring network quality for a bonded link between a first node and a second node is provided, the apparatus comprising:
the session establishing module is used for establishing a test session of a plurality of member links; the information receiving module is used for receiving a session sender test message sent by the first node through each member link on the basis of the test session of each member link; the information generating module is used for generating a session reflector test message according to the session sender test message; and the information sending module is used for sending the session reflector test message to the first node through each member link.
In a fifth aspect, a network quality measurement device is provided, the device comprising:
a memory for storing a program;
a processor configured to execute a program stored in the memory to perform the network quality measurement method provided by the first aspect or any of the alternative embodiments of the first aspect, or to perform the network quality measurement method provided by the second aspect or any of the alternative embodiments of the second aspect.
A sixth aspect provides a computer storage medium having computer program instructions stored thereon, which when executed by a processor, implement the network quality measurement method provided by the first aspect or any of the optional implementations of the first aspect, or implement the network quality measurement method provided by the second aspect or any of the optional implementations of the second aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an exemplary bundled link according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a network quality measurement method for a bundled link according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a format structure of Request-TW-Session information of an exemplary TWAMP protocol according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a format structure of Accept-Session information of an exemplary TWAMP protocol according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a format structure of an exemplary member link session request according to an embodiment of the present invention;
fig. 6 is a structural diagram illustrating a format of an exemplary response message of a member link session request according to an embodiment of the present invention;
fig. 7 is a structural diagram illustrating a format of an exemplary acknowledgement message of a member link session request according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating an exemplary format structure of a test message of a session sender according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a format structure of another exemplary test message of a session sender according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating a format structure of a test message of a session sender according to still another exemplary embodiment of the present invention;
fig. 11 is a schematic diagram illustrating a format structure of a test message of a session sender according to still another exemplary embodiment of the present invention;
fig. 12 is a schematic diagram illustrating a format structure of an exemplary session reflector test message according to an embodiment of the present invention;
fig. 13 is a schematic diagram illustrating a format structure of another exemplary session reflector test message according to an embodiment of the present invention;
FIG. 14 is a diagram illustrating a format structure of a still further exemplary session reflector test message according to an embodiment of the present invention;
fig. 15 is a schematic diagram illustrating a format structure of a still another exemplary session reflector test message according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of a network quality measurement apparatus for a bonded link according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of another network quality measurement device for bundled links according to an embodiment of the present invention;
fig. 18 is a block diagram of an exemplary hardware architecture of a network quality measurement device for bundled links in an embodiment of the invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the invention provides a network performance test scheme aiming at a binding link, which can measure the network performance of the binding link on the basis of the existing network performance measurement protocol.
The existing network performance Measurement Protocol, such as Two-way Active Measurement Protocol (TWAMP Protocol), (Two-way Active Measurement Protocol Light, TWAMP Light) lightweight Two-way Active Measurement Protocol, One-way Active Measurement Protocol (OWAMP Protocol), or Simple Two-way Active Measurement Protocol (STAMP Protocol), is processed and responded by dedicated hardware directly on the interface board, and does not use the CPU of the main control board to process, and the Measurement accuracy is much higher than ping. However, the forwarding path of the data packet in the network cannot be controlled, when a bundled link exists between two points, the existing network performance measurement protocol only measures the quality index of one member link, and because the quality indexes such as time delay of different member links are different and sometimes different even very much, the measurement result of the existing network performance measurement protocol also cannot represent the quality of the whole bundled link, therefore, a technical scheme capable of measuring the quality index of each specific member link in the bundled link is required.
To facilitate understanding of the bundled links, member links, and the relationship between the two. Fig. 1 is a schematic structural diagram of an exemplary bundled link according to an embodiment of the present invention. If N information transmission paths exist between two communication nodes in the communication network and the information transmission paths logically form one transmission path, it is indicated that a binding link exists between the two communication nodes, and the binding link includes N member links. The N information transmission paths respectively correspond to N member links. N is an integer of 2 or more.
As shown in fig. 1, the beijing node and the shanghai node serve as two communication nodes in a communication network. When information is transmitted between the Shanghai node and the Beijing node, three different information transmission paths are provided. Respectively as follows:
a first transmission path, beijing-tianjin-jonan-nanjing-suzhou-shanghai;
a second transmission path, Beijing, Heshui, Kaifeng, Hefei, Huzhou, Shanghai;
the third transmission path, Beijing-Shijiazhu-Zhengzhou-Wuhan-Nanchang-Hangzhou-Shanghai.
Correspondingly, three member links exist between the Shanghai node and the Beijing node, and respectively correspond to the first transmission path, the second transmission path and the third transmission path. The three member links form a binding link between the Beijing node and the Shanghai node.
Because the Beijing node and the Shanghai node can be in two-way communication, any one of the Beijing node and the Shanghai node can be used as a first node, and the other one of the Beijing node and the Shanghai node can be used as a second node.
Further, for a bundled link between the first node and the second node, the bundled link includes N member links. Each member link corresponds to a physical port on the first node, and then N physical ports of the N member links on the first node form a logical port, for example, a trunk (trunk) port, and at this time, the logical port may be a port of the binding link on the first node. Similarly, the N physical ports of the N member links on the second node form a logical port, such as a trunk (trunk) port, and the logical port may be a port of the binding link on the second node.
For better understanding of the present invention, a network quality measurement method, apparatus, device and medium for bundled links according to embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be noted that these embodiments are not intended to limit the scope of the present disclosure.
Fig. 2 is a schematic flowchart of a network quality measurement method for a bonded link according to an embodiment of the present invention. As shown in fig. 2, the method 200 for measuring network quality for bundled links in the present embodiment may include S210 to S250:
s210, establishing a test session of a plurality of member links of the binding link. If a testing session is established in a member link, it indicates that a connection required for network transmission quality detection on the member link is maintained between the first node and the second node. It should be noted that, the following steps of performing network transmission quality detection on each member link need to be established on the basis of the test session established by the member link.
In the process of establishing the test sessions of the plurality of member links, if the bundled link includes N member links, in S210, respective test sessions may be established for at least some of the member links in the bundled link. Preferably, a respective test session may be established for each member link of the bundled link at the same time.
In some embodiments, S210 may be embodied as S211 to S215.
S211, the first node receives a test command of the binding link. Wherein the test command of the bundled link is used for instructing the first node to start executing the test method of the bundled link.
S212, the first node detects whether the port of the first node is a binding link port according to the test command of the binding link. For example, the first node may determine whether the port of the first node is a bundled link port according to the configuration parameter of the port of the first node. If the result of the detection is yes, the process proceeds to S213. If the detection result is negative, the method can be converted into a common test method, or the test can be directly stopped, and a prompt message of port configuration error is generated. The common test method is established on the basis of the original network performance measurement protocol, and cannot measure the designated member link.
S213, if the port is the binding link port, the first node sends a member link test request to the second node. Wherein the member link test request may be an extension enhancement based on an already deployed network performance measurement protocol between the first node and the second node. The network performance measurement protocol deployed between the first node and the second node may be a TWAMP protocol, a TWAMP Light protocol, an OWAMP protocol, or a STAMP protocol, and the like, which is not limited in particular.
For example, fig. 3 is a schematic diagram of a format structure of Request-TW-Session information of a TWAMP protocol according to an embodiment of the present invention. Taking the example that the TWAMP protocol is deployed between the first node and the second node, the member link test Request is a command type defined in the two-way Session Request (Request-TW-Session) information of the TWAMP protocol, as shown in fig. 3, a command number (command number) field of the Request-TW-Session information indicates the command type. For example, Request-TW-Session information with a command number field of 11 may be defined as a member link test Request. It should be noted that, an undefined value of The command number field may also be defined by The Internet Assigned Numbers Authority (IANA) as The member link test request, which is not limited in particular. At present, the value of 11-255 in the command number field of the Request-TW-Session information defines the corresponding command type. That is, a value may be selected from the range of values 11-255, and the corresponding command type may be defined as the member link test request.
Further, with continued reference to fig. 3, the Request-TW-Session information in fig. 3 further includes a null (Must Be Zero, MBZ) field, an Internet Protocol (IP) version number (IPVN) field, a Sender profile (Conf-Sender) field, a Receiver profile (Conf-Receiver) field, a Sender Port (Sender Port) field, a Receiver Port (timer Port) field, a Sender Address (Sender Address) field, a Receiver Address (Receiver Address) field, a Session identification information (SID) field, a Padding Length (Padding Length) field, a Session initiation Time (Start) field, a latency threshold (out) field, a Hash-based Message Authentication Code (HMAC) field.
It should be noted that the format of the Request-TW-Session information in this example is only one possible specific implementation, and the specific format may be adjusted according to specific scenarios and requirements, which is not limited herein.
S214, the second node receives the member link test request, determines that the plurality of member links support member link test and the member link test request is normal based on the member link test request, and sends a response success message of the member link test request to the first node.
Before executing S214, S210 may further include a step of determining whether the plurality of member links support the member link test based on the member link test request, and determining whether the member link test request is correct, corresponding to S214. Whether the plurality of member links support the member link test can be judged by detecting whether the port of the second node supports the member link test. And if the port of the second node supports the member link test, proving that all the member links between the first node and the second node support the member link test. Wherein, whether the member link test request is correct can be determined by checking whether the configuration parameters of the member link test request have errors. If the parameters of the member link test request have errors, the member link test request is proved to be wrong; and if the parameters of the member link test request have no errors, the member link test request is proved to be correct.
Correspondingly, if the port of the second node does not support the member link test, the second node sends a second response failure message which represents that the port of the second node does not support the member link test to the first node.
And if the parameters of the member link test request have errors, the second node sends a first response failure message representing the error of the member link test request to the first node. Specifically, different parameters in the member link test request correspond to different error codes, and if a certain parameter of the member link test request is wrong, the error code corresponding to the parameter is set to the first response failure message.
In some embodiments, the response success message, the first response failure message, and the second response failure message may be implemented on the basis of a network performance measurement protocol.
Fig. 4 is a schematic diagram of a format structure of Accept-Session (Accept-Session) information of an exemplary TWAMP protocol according to an embodiment of the present invention. Taking the example that the TWAMP protocol is deployed between the first node and the second node, the response success message, the first response failure message, and the second response failure message may be three different types of response message types defined in the Accept-Session information. As shown in fig. 4, the Accept field of the Accept-Session information indicates the type of the response message. For example, if the Accept field is 0, the Accept-Session information corresponds to the response success message. If the Accept field is 3, the Accept-Session information corresponds to the second response failure message. Further, the first response failure message may correspond to a plurality of values of the Accept field, considering that the first response failure message may correspond to different error types. Different values may correspond to different parameter errors.
In addition, with continued reference to fig. 4, the Accept-Session information in fig. 4 further includes a null (MBZ) field, a Port (Port) field, a Session identification information (SID) field, and a Hash-based Message Authentication Code (HMAC) field.
It should be noted that the format of the Accept-Session information in this example is only one feasible specific implementation, and the specific format may be adjusted according to specific scenarios and requirements, which is not limited herein.
S215, the first node receives the response success message of the member link test request, and responds to the response success message of the member link test request to establish the test session of the plurality of member links. Illustratively, after receiving the response success message of the member link test request, the first node sends a test Session Start (Start-Session) request to the second node, and after the second node returns the information confirming the Start of the test Session (Start-Ack), the test sessions of the plurality of member links are established.
In some embodiments, in order to ensure the normal execution of the network quality test flow of each member link, after receiving the response success message of the member link test request, the first port of each member link on the first node and the second port of each member link on the second node need to be confirmed. The specific confirmation method may include: and confirming by using the interactive negotiation process of each member link, or confirming according to the configuration information. The above confirmation process will be specifically described below by two specific examples.
In the first embodiment, for example, the first node and the second node communicate based on TWAMP protocol, before performing the network quality test, an interactive negotiation process for each member link may be further performed. In the interactive negotiation process, both the first node and the second node need to determine the first port identification information and the second port identification of each member link. Wherein the first port is a physical port of the first node and the second port is a physical port of the second node. The first port identification information can uniquely identify each port of the first node, and the second port identification information can uniquely identify each port of the second node. Illustratively, the first port identification information and the second port identification information may each be an Identity Document (ID) of the port.
For the first node and the second node, both the nodes can determine the port identifier of each member link of the nodes, and the nodes can also determine the port identifier information of each member link of the other node according to the information sent by the other node. Specifically, the first node may determine first port identification information of each member link of the first node, and determine second port identification information of each member link according to a response success message of the member link session request sent by the second node. The second node may obtain the first port identification information of each member link from the member link session request, and may determine the second port identification information of each member link of the second node.
In one embodiment, the specific implementation of the interactive negotiation process includes the following steps:
the first step, the first node determines the first port identification information of each member link of the first node. And the first node sends a member link session request to the second node through each member link. Wherein, the member link session request carries the first port identification information of each member link.
In one example, fig. 5 is a schematic diagram illustrating a format structure of an exemplary member link session request according to an embodiment of the present invention. The Member link Session Request in fig. 5 is specifically implemented as a Request-Member-Session message. As shown in fig. 5, the Request-Member-Session Message may include a Member-link Session Request sequence number (RMS command) field, a null (MBZ) field, a Member-link ID (MY Member ID) field, a Member-link ID (content) (MY Member ID (Cont)) field, a Member-link ID (Your Member ID) field, a Member-link ID (content) (Your Member ID (Cont)) field, a Session identification information (SID) field, and a Hash-based Message Authentication Code (HMAC) field.
Wherein the RMS command field may represent a Request-Member-Session message with a predefined value. Wherein the predefined values may be defined upon normalization. The MBZ field is a reserved field and needs to be set to 0. The Your Member ID field may be written with the second port identification information of the Member link, and if the second port identification information is not preconfigured, the field is set to 0, and if the second port identification information is preconfigured, the field is written with a specific configuration value. The MY Member ID field may write first port identification information of the Member link.
It should be noted that the format of the Request-Member-Session message in this example is only one possible specific implementation, and the specific format may be adjusted according to specific scenarios and requirements, which is not limited herein.
And a second step, the second node receives a member link conversation request sent by the first node through each member link, and acquires the first port identification information of each member link from the member link conversation request. And the second node determines second port identification information of each member link of the second node. Illustratively, if the specific format of the Member link Session Request is as shown in fig. 5, the first port identification information of the Member link may be obtained from the MY Member ID field of the Request-Member-Session message shown in fig. 5. Specifically, if the bundled link includes member link a, member link B, and member link C. After receiving the Request-Member-Session message through the Member link B, the second node may obtain the identification information of the physical port of the Member link B on the first node from the MY Member ID field.
And step three, the second node generates a response success message of the member link session request, wherein the response success message of the member link session request carries the second port identification information.
In some embodiments, the second node returns a response message after receiving a successful link session request. The response success message described above is only one type of response message. In addition to the response success message, the response message may also be a response failure message.
Specifically, if the session identification information that the second node can obtain from the member link session request is wrong, a first response failure message is returned. Illustratively, the session identification information may be obtained from the SID field of the member link session request shown in fig. 5.
Specifically, if the second node can obtain the second port identification information of each member link from the member link session request and determine that the obtained second port identification information is wrong, a second response failure message of the member link session request is generated. Specifically, if the second port identification information obtained from the member link session request is inconsistent with the second port identification information preconfigured in the local terminal, or the second port identification information obtained from the member link session request is not 0, it is determined that the second port identification information is incorrect.
In an example, fig. 6 is a schematic structural diagram illustrating a format of an exemplary response message of a member link session request according to an embodiment of the present invention. The response message of the Member link Session request is specifically implemented as an Accept-Member-Session message. The specific format of the member link session request shown in fig. 5 is similar to that of the response message of the member link session request shown in fig. 6, except that fig. 6 includes a response status (Accept) field. When the state value of the Accept field is 0, the response message is specifically a response success message. When the state value of the Accept field is 1, the response message is specifically a first response failure message. When the state value of the Accept field is 2, the response message is specifically a second response failure message.
It is emphasized that the MY Member ID field of the Accept-Member-Session message fills out the second port identification information of the Member link. And the first port identification information of the Member link is filled in the Your number ID field of the Accept-number-Session message. The first port identification information is obtained from the MY Member ID field of the Member link session request shown in fig. 5.
In addition, it should be further noted that the format of the Accept-Member-Session message in this example is only one possible specific implementation, and the specific format may be adjusted according to specific scenarios and requirements, which is not limited herein.
And fourthly, the second node sends a response success message of the member link conversation request to the first node through each member link. That is, a response success message of the session request of the member link a needs to be transmitted to the first node through the member link a.
And step five, the first node receives a response success message of the member link session request sent by the second node, and acquires the second port identification information of each member link from the response success message of the member link session request. Illustratively, the second port identification information may be acquired from the MY Member ID field of the response success message of the Member link session request shown in fig. 6.
In some embodiments, the first node may further obtain the first port identification information of each member link from a response success message of the member link session request. The first node judges whether the received first port identification information is consistent with the first port identification information of the local terminal, and if so, returns a confirmation message of a response success message to the second node. The first node enters an interactive negotiation completion state after sending the confirmation message, and the second node enters an interactive negotiation completion state after receiving the confirmation message. After the first node and the second node both enter the interactive negotiation completion state, the subsequent network quality measurement process can be continuously executed. Optionally, if the first node determines that the received first port identification information is inconsistent with the first port identification information of the local terminal, the response success message is ignored.
In an example, fig. 7 is a schematic structural diagram illustrating a format of an acknowledgement message of a response success message of an exemplary member link session request according to an embodiment of the present invention. The acknowledgement message of the response success message of the Member link Session request is specifically implemented as an Ack-Member-Session message. The specific format of the acknowledgement message of the response success message of the Member link Session request shown in fig. 7 is similar to that of the Member link Session request shown in fig. 5, except that fig. 7 includes a Member link acknowledgement message sequence number (AMS command) field. The AMS command field may represent the Ack-Member-Session message with a predefined value. Wherein the predefined values may be defined upon normalization.
It is emphasized that the MY Member ID field of the Ack-Member-Session message fills out the second port identification information of the Member links of the first node. The MY Member ID field of the Ack-Member-Session message is consistent with the MY Member ID field of the Request-Member-Session message shown in fig. 5. The yourmember ID field of the Ack-Member-Session message fills in the second port identification information of the Member link acquired from the response success message shown in fig. 6.
In addition, it should be further noted that the format of the Accept-Member-Session message in this example is only one possible specific implementation, and the specific format may be adjusted according to specific scenarios and requirements, which is not limited herein.
In a second embodiment, for example, the first node and the second node communicate based on the TWAMP Light protocol, and the first node and the second node may confirm the first port identification information and the second port identification information of each member link based on the data channel before performing the network quality test because the TWAMP Light protocol has no corresponding control channel.
Specifically, the first node and the second node may receive configuration information of each member link, where the configuration information includes first port identification information and second port identification information of the member link. S220, on the basis of the test session of each member link, the first node sends a session sender test message to the second node through the member link.
In some embodiments of the invention, the type of the session sender test message may be related to a network performance testing protocol deployed between the first node and the second node. If the TWAMP protocol is deployed between the first node and the second node, the Session-Sender test message may be obtained by improving the original Session-Sender test (Session-Sender test) message. For example, the identity of the corresponding member link may be specifically added to the session sender test message. For example, if the bundled link includes N member links, S220 may generate N session sender test messages, where N data packets carry the identity identifiers of the N member links, and are sent to the second node through the respective corresponding member links.
For the ethernet member link, the identity may be a hardware Address (MAC Address) of the ethernet member link, or may be a serial number of the member link, such as an interface index. For POS (Packet Over SONET/SDH, which is a Packet data transmission technology applied in metropolitan area networks and wide area networks), the identity of the member link may be the number of the member link, such as interface index.
In the process of improving the original Session-Sender test packet to obtain the test message of the Session Sender, the test message of the Session Sender can be generated by adding a new field or changing the original field on the basis of the original Session-Sender test packet. In particular, the following section introduces a specific possible implementation of the above two session sender test messages by four examples.
As an example, fig. 8 is a schematic diagram illustrating a format structure of an exemplary session sender test message according to an embodiment of the present invention. For the Session-Sender test packet in the non-authentication mode, a Member link Identity identifier (Member ID) field may be added on the basis of the original Session-Sender test packet, and the Identity of the Member link is added into the Member ID field. As shown in fig. 8, a Member ID field may be added between an Error Estimate (Error Estimate) field and a Packet Padding (Packet Padding) field. The Member ID field of the Session-Sender test packet records the identity of the Member link where the Sender (i.e., the first node, Sender) transmits the Session Sender test message. It should be noted that the packet format in this example is only one possible specific implementation, and the specific format may be adjusted, which is not limited herein. In addition, the Session-Sender test packet shown in fig. 8 may further have a Sequence Number (Sequence Number) field, a timestamp (timestamp) field, and a MY Member ID (Cont) field.
As another example, fig. 9 is a schematic diagram illustrating a format structure of another exemplary session sender test message according to an embodiment of the present invention. Fig. 9 is also a Session-Sender test packet in a non-authentication mode, and is different from the Session-Sender test packet in the non-authentication mode shown in fig. 8 in that the Session-Sender test packet in the non-authentication mode shown in fig. 9 is added with a My number ID field and a Your number ID field on the basis of the original Session-Sender test packet. The My Member ID field is filled with the first port identification information of the Member link confirmed by the first node itself, and the Your Member ID field is filled with the second port identification information of the Member link obtained through the negotiation process. It should be noted that the packet format in this example is only one possible specific implementation, and the specific format may be adjusted, which is not limited herein.
As another example, fig. 10 is a schematic diagram illustrating a format structure of another exemplary session sender test message according to an embodiment of the present invention. For the Session-Sender test packet in the authentication and encryption mode, as shown in fig. 10, based on the original Session-Sender test packet, 6 bytes in the MBZ field may be used as the Member ID field, and the identity of the Member link is added to the Member ID field. It should be noted that the packet format in this example is only one possible specific implementation, and the specific format may be adjusted, which is not limited herein.
As another example, fig. 11 is a schematic diagram illustrating a format structure of a test message of a session sender according to another example provided in the embodiment of the present invention. Fig. 11 is also a Session-Sender test packet of an authentication and encryption mode, and is different from the Session-Sender test packet of the authentication and encryption mode shown in fig. 10 in that the Session-Sender test packet shown in fig. 11 represents a My number ID field, a My number ID (Cont) field, a younumber ID field, and a younumber ID (Cont) field with 12 bytes in an MBZ field on the basis of the original Session-Sender test packet. The My Member ID field is filled with the first port identification information of the Member link confirmed by the first node itself, and the Your Member ID field is filled with the second port identification information of the Member link obtained through the negotiation process. It should be noted that the packet format in this example is only one possible specific implementation, and the specific format may be adjusted, which is not limited herein.
And S230, the second node receives the session sender test message and generates a session reflector test message according to the session sender test message.
In some embodiments of the invention the same as the session sender test message is that the type of session reflector test message is also related to the network performance test protocol deployed between the first node and the second node. If the TWAMP protocol is deployed between the first node and the second node, the Session-Reflector test message may be obtained by modifying an original Session-Reflector test (Session-Reflector) packet. For example, the identity of the corresponding member link may be specifically added to the session reflector test message.
In the process of improving the original Session-Reflector test packet to obtain the Session-sender test message, the Session-Reflector test message may be obtained by adding a new field or changing the original field on the basis of the original Session-Reflector test packet. In particular, the following section describes, by way of four examples, a specific possible implementation of the two session reflector test messages described above.
As an example, fig. 12 is a schematic diagram illustrating a format structure of an exemplary session reflector test message according to an embodiment of the present invention. For the Session-Reflector test packet in the non-authentication mode, a Sender Member link Identity identifier (Sender Member Identity, Sender Member ID) Sender Member ID field may be added on the basis of the original Session-Reflector test packet, and the value of the Member ID field in the Session-Reflector test packet received from the corresponding Member link is added into the Sender Member ID field. As shown in fig. 12, a Sender Member ID field may Be added between a null (Must Be Zero, MBZ) field and a Sender Time-To-Live (Sender TTL) field. The number ID field of the Session-Reflector test data packet is the same as the number ID field of the Session-Sender test data packet received from the corresponding Member link. Specifically, the number ID field of the Session-Sender test packet received from the corresponding Member link may be copied by the second node, and the copied number ID field may be used as the Sender number ID field of the Session-Reflector test packet. The Member ID field of the Session-Reflector test packet records the identity of the Reflector (i.e., the second node, Reflector) edited for the Member link transmitting the Session Reflector test message.
In addition, with continued reference to fig. 12, a Member ID field may also be added on the basis of the original Session-Reflector test packet. For specific implementation of the Member ID field, reference may be made to relevant contents of the foregoing embodiments, and details are not described here. It should be noted that the packet format in this example is only one possible specific implementation, and the specific format may be adjusted, which is not limited herein.
As another example, fig. 13 is a schematic diagram illustrating a format structure of another exemplary session reflector test message according to an embodiment of the present invention. Fig. 13 is also a Session-Reflector test packet in the non-authentication mode, and as can be seen from a comparison between fig. 12 and fig. 13, the structures of the Session-Reflector test packet shown in fig. 12 and the Session-Reflector test packet shown in fig. 13 are substantially similar. The difference lies in that: for the number ID field of FIG. 12, the same location of FIG. 13 is the MY number ID field; for the number ID (Cont) field of FIG. 12, the same location of FIG. 13 is the MY number ID (Cont) field; for the Sender number ID field of fig. 12, the same location of fig. 13 is the Your number ID field; for the Sender number ID (Cont) field of FIG. 12, the same location of FIG. 13 is the Your number ID (Cont) field. The processing manner of the MY Member ID field and the Your Member ID field is the same as that of the Member ID and Sender Member ID fields shown in fig. 12, and will not be described herein again. It is emphasized that the MY Member ID field is written to the second port identification information of the Member link and the Your Member ID field is written to the first port identification information of the Member link.
As another example, fig. 14 is a schematic diagram illustrating a format structure of another exemplary session reflector test message according to an embodiment of the present invention. For the Session-Reflector test packet in the authentication and encryption mode, as shown in fig. 14, on the basis of the original Session-Reflector test packet, one of the two MBZ fields may be used as a Sender Member ID field, and the value of the Member ID field in the Session-Reflector test packet received from the corresponding Member link may be added to the Sender Member ID field. Alternatively, the other of the two MBZ fields may also be the Member ID field. As shown in fig. 14, the Session-Reflector test packet further includes: a Sequence Number (Sequence Number) field, a Timestamp (Timestamp) field, an Error Estimate (Error Estimate) field, a receiver Timestamp (Receive Timestamp) field, a Sender Sequence Number (Sender Sequence Number) field, a Sender Timestamp (Sender Timestamp) field, a Sender Error Estimate (Sender Error Estimate) field, a Sender time-to-live (Sender TTL) field, a Hash Message Authentication Code (HMAC) field. It should be noted that the packet format in this example is only one possible specific implementation, and the specific format may be adjusted, which is not limited herein.
As another example, fig. 15 is a schematic diagram illustrating a format structure of another exemplary session reflector test message according to an embodiment of the present invention. Fig. 15 is also a Session-Reflector test packet in an authentication and encryption mode, and as can be seen from a comparison between fig. 14 and fig. 15, the structures of the Session-Reflector test packet shown in fig. 14 and the Session-Reflector test packet shown in fig. 15 are substantially similar. The difference lies in that: for the Member ID field of FIG. 14, the same location of FIG. 15 is the MY Member ID field; for the number ID (Cont) field of FIG. 14, the same location of FIG. 15 is the MY number ID (Cont) field; for the Sender number ID field of fig. 14, the same location of fig. 15 is the Your number ID field; for the Sender number ID (Cont) field of FIG. 14, the same location of FIG. 15 is the Your number ID (Cont) field. The processing manner of the MY Member ID field and the Your Member ID field is the same as that of the Member ID and Sender Member ID fields shown in fig. 14, and will not be described herein again. It is emphasized that the MY Member ID field is written to the second port identification information of the Member link and the Your Member ID field is written to the first port identification information of the Member link.
In some embodiments, after receiving the Session Sender test message, the second node obtains the My number ID field and the yourmember ID field from the Session-Sender test packet shown in fig. 8-11. And the second node confirms whether the acquired My number ID field and the obtained Your number ID field are correct or not. Specifically, the second node determines whether the acquired My number ID field is consistent with the second port identification information of the Member link obtained through the negotiation process, and determines whether the acquired Your number ID field is consistent with the second port identification information of the Member link at the local end. If both are consistent, a session reflector test message is returned.
S240, the second node sends a session reflector test message to the first node through each member link. It should be noted that, if the second node receives the session sender test message sent by the first node through the ith member link, the second node still needs to return the session reflector test message to the first node through the same member link, that is, the ith member link.
And S250, the first node receives the session reflector test message and detects the network transmission quality information of each member link according to the session reflector test message of each member link. Wherein the network transmission quality information includes quality information capable of reflecting the performance of the IP network. Illustratively, the network transmission quality information may include one or more of latency, jitter, and packet loss rate. The time delay of the member link refers to the delay time of data transmission in the member link, and includes one-way time delay and round-trip time delay. The jitter of the member link, also referred to as IP latency variation, refers to the amount of variation in the successive arrival times of data packets as they travel from the first node to the second node over the member link. The packet loss rate refers to the time interval within which the first node and the second node pass through the member link
In some embodiments, the delay information may be divided into one-way delay information and two-way delay information. For ease of understanding, the measurement process is illustrated with a two-way time delay.
Illustratively, if the network transmission quality information includes two-way delay information, at the time of executing S220, that is, when the first node sends the session sender test message, the session sender test message is time-stamped with T1. When the session-sender test message arrives at the second node, the session-sender test message is time-stamped with a time stamp T2. In performing S230, the session reflector test message generated by the second node based on the session sender test message carries time stamps T1 and T2. In performing S240, i.e. sending a session reflector test message to the second node, time stamping T3 on the session reflector test message; and time stamp T4 is stamped on the session reflector test message when it is received by the first node.
Furthermore, upon receiving the session reflector test message, to ensure measurement accuracy, the session reflector test message may first be checked for matching with its transmitting member link. And if the member links are matched with each other, detecting the network transmission quality information of the member links according to the session reflector test message of each member link. If not, the session reflector test message is discarded, and the message can be optionally alarmed. Specifically, the method for determining whether the session reflector test message matches with the Member link transmitted by the session reflector test message may be to determine whether the Sender Member ID of the session reflector test message is consistent with the identity of the transmitting Member link.
It is emphasized that in S250 session reflector test messages for a plurality of member links may be received. The network transmission quality of each member link can be calculated separately according to the session reflector test message of the member link.
In some embodiments of the present invention, after determining the network transmission quality information of the member links of each member link, in order to ensure the transmission efficiency of the information to be transmitted, the method 200 further includes S260 and S270.
And S260, determining a target link matched with the flow to be transmitted in the plurality of member links according to the service quality requirement information of the flow to be transmitted and the network transmission quality information of the plurality of member links. The qos requirement information of the traffic to be transmitted may record a transmission quality requirement of the traffic to be transmitted on the transmission link. For example, the qos requirement information may include information about whether it is sensitive to delay, whether it is sensitive to jitter, and a requirement for packet loss rate.
In S260, a target link may be determined according to the qos requirement information of the traffic to be transmitted and the network transmission quality information of the plurality of member links by using a bundled link balancing load algorithm. Wherein, the bundled link balanced load algorithm may be a hash algorithm. For example, the member link with the shortest delay among all the member links of the bundled link may be used as the target link of the delay-sensitive traffic to be transmitted.
And S270, scheduling the traffic to be transmitted to a target link. After the traffic to be transmitted is scheduled to the target link, the traffic to be transmitted can be sent from the first node to the second node through the target link.
An apparatus according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
Based on the same inventive concept, the embodiment of the invention provides a network quality measuring device for a bundled link. The network quality measuring device provided by the embodiment of the invention realizes the function of the first node. Fig. 16 is a schematic structural diagram of a network quality measurement apparatus for a bonded link according to an embodiment of the present invention. As shown in fig. 16, the network quality measurement apparatus 1600 includes:
a session establishing module 1610 configured to establish a test session for a plurality of member links of a bundled link.
The information sending module 1620 is configured to send a session sender test message to the second node through each member link on the basis of the test session of each member link.
An information receiving module 1630, configured to receive the session reflector test message sent by the second node through each member link.
The quality detection module 1640 is configured to detect network transmission quality information of each member link according to the session reflector test message of each member link.
In some embodiments of the present invention, the session establishing module 1610 may be specifically configured to:
receiving a test command of a binding link; detecting whether a port of a first node is a port of a binding link according to a test command of the binding link; if the port is the binding link port, sending a member link test request to the second node; and receiving a response success message of the member link test request sent by the second node, and establishing a test session of the plurality of member links in response to the response success message.
In some embodiments of the invention, the network quality measurement apparatus 1600 further comprises:
the link matching module is used for determining a target link matched with the traffic to be transmitted in the plurality of member links according to the service quality requirement information of the traffic to be transmitted and the network transmission quality information of the plurality of member links;
and the traffic scheduling module is used for scheduling the traffic to be transmitted to the target link.
In some embodiments of the invention, the network transmission quality information for the member links includes one or more of the following quality information: time delay, jitter, packet loss rate.
In some embodiments of the invention, the session-sender test message and the session-reflector test message are TWAMP protocol information, TWAMP Light protocol information, OWAMP protocol information, or STAMP protocol information.
In some embodiments of the present invention, the session sender test message and the session reflector test message both carry the identity of the corresponding member link.
In some embodiments of the invention, the member link test Request is a command type defined in the Request-TW-Session information of the TWAMP protocol, and the command number field of the Request-TW-Session information indicates the command type.
In some embodiments of the present invention, the response success message is a response message type defined in the Accept-Session information of the TWAMP protocol, and the Accept field of the Accept-Session information indicates the response message type.
In some embodiments of the invention, the network quality measurement apparatus 1600 further comprises:
and the information determining module is used for determining the first port identification information of each member link of the information determining module, and determining the second port identification information of each member link according to the response success message of the member link session request sent by the second node.
Wherein the first port is a physical port of the first node and the second port is a physical port of the second node.
In some embodiments of the present invention, the information sending module 1620 is further configured to send a member link session request to the second node through each member link, where the member link session request carries the first port identification information of each member link.
The information receiving module 1630 is further configured to receive a response success message of the member link session request sent by the second node, where the response success message of the member link session request carries the second port identification information of each member link.
In some embodiments of the invention, the information receiving module 1630 is further configured to receive configuration information of each member link, where the configuration information includes first port identification information and second port identification information of each member link. In some embodiments of the invention, the network quality measurement device 1600 may invoke a state machine and/or a timer.
Other details of the network quality measurement apparatus according to the embodiment of the present invention are similar to the method according to the embodiment of the present invention described above with reference to fig. 1 to 15, and are not described again here.
Based on the same inventive concept, the embodiment of the invention provides another network quality measuring device for a bundled link. The network quality measuring device provided by the embodiment of the invention realizes the function of the second node. Fig. 17 is a schematic structural diagram of another network quality measurement apparatus for a bonded link according to an embodiment of the present invention. As shown in fig. 17, the network quality measurement apparatus 1700 includes:
a session establishing module 1710, configured to establish a test session for multiple member links.
The information receiving module 1720 is configured to receive, on the basis of the test session of each member link, a session sender test message sent by the first node through each member link.
The information generating module 1730 is configured to generate a session reflector test message according to the session sender test message.
An information sending module 1740 configured to send a session reflector test message to the first node through each member link.
In some embodiments of the present invention, the network quality measurement apparatus 1700 further comprises:
and the link detection module is used for responding to the member link test request sent by the first node and detecting whether the plurality of member links support member link test.
The response module is used for returning a response success message to the first node if the member link test is supported and the member link test request is correct; if the member link test is not supported, returning a second response failure message to the first node; and if the member link test request error of the member link test is supported, returning a first response failure message representing the member link test request error to the first node.
In some embodiments of the invention, the network transmission quality information for the member links includes one or more of the following quality information: time delay, jitter, packet loss rate.
In some embodiments of the invention, the session-sender test message and the session-reflector test message are TWAMP protocol information, TWAMP Light protocol information, OWAMP protocol information, or STAMP protocol information.
In some embodiments of the present invention, the session sender test message and the session reflector test message both carry the identity of the corresponding member link.
In some embodiments of the invention, the member link test Request is a command type defined in the Request-TW-Session information of the TWAMP protocol, and the command number field of the Request-TW-Session information indicates the command type.
In some embodiments of the present invention, the response success message is a response message type defined in the Accept-Session information of the TWAMP protocol, and the Accept field of the Accept-Session information indicates the response message type.
In some embodiments of the present invention, the information receiving module 1720 is further configured to receive a member link session request sent by the first node through each member link.
In this case, the network quality measuring apparatus 1700 further includes:
and the information extraction module is used for responding to the member link session request and acquiring the first port identification information of each member link from the member link session request.
And the information determining module is used for determining the second port identification information of each member link of the information determining module.
Wherein the first port is a physical port of the first node and the second port is a physical port of the second node.
In some embodiments of the present invention, the information generating module 1730 is further configured to generate a response success message of the member link session request, where the response success message of the member link session request carries the second port identification information.
The information sending module 1740 is further configured to send a response success message of the member link session request to the first node through each member link.
In some embodiments of the present invention, the information receiving module 1720 is further configured to receive configuration information of each member link, where the configuration information includes first port identification information and second port identification information of each member link.
In some embodiments of the invention, network quality measurement device 1700 may invoke a state machine and/or a timer.
Other details of the network quality measurement apparatus for bundled links according to the embodiment of the present invention are similar to the method according to the embodiment of the present invention described above with reference to fig. 1 to 15, and are not repeated herein.
Fig. 18 is a block diagram of an exemplary hardware architecture of a network quality measurement device for bundled links in an embodiment of the invention.
As shown in fig. 18, the network quality measurement device 1800 for bundled links includes an input device 1801, an input interface 1802, a central processor 1803, a memory 1804, an output interface 1805, and an output device 1806. The input interface 1802, the central processing unit 1803, the memory 1804, and the output interface 1805 are connected to each other through a bus 1810, and the input device 1801 and the output device 1806 are connected to the bus 1810 through the input interface 1802 and the output interface 1805, respectively, and further connected to other components of the network quality measurement device 1800 for the bundled link.
Specifically, the input device 1801 receives input information from the outside, and transmits the input information to the central processor 1803 through the input interface 1802; central processor 1803 processes input information based on computer-executable instructions stored in memory 1804 to generate output information, stores the output information temporarily or permanently in memory 1804, and then transmits the output information to output device 1806 via output interface 1805; the output device 1806 outputs the output information to the outside of the network quality measurement device 1800 for the bundled link for use by the user.
That is, the network quality measurement device for a bonded link shown in fig. 18 may also be implemented to include: a memory storing computer-executable instructions; and a processor which, when executing computer executable instructions, may implement the method of the network quality measurement device described in connection with fig. 1-15.
In one embodiment, the network quality measurement device 1800 shown in fig. 18 may be implemented as a device that may include: a memory for storing a program; a processor for executing the program stored in the memory to execute the network quality measurement method shown in fig. 1 to 15 according to the embodiment of the present invention.
An embodiment of the present invention further provides a computer storage medium, where computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by a processor, the network quality measurement method shown in fig. 1 to 15 is implemented in combination with the embodiment of the present invention.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

Claims (20)

1. A method for measuring network quality for a bonded link, wherein the bonded link is located between a first node and a second node, and the method is applied to the first node, and comprises:
establishing a test session of a plurality of member links of the bundled link;
on the basis of the test session of each member link, sending a session sender test message to a second node through each member link;
receiving a session reflector test message sent by the second node over each of the member links;
and detecting the network transmission quality information of each member link according to the session reflector test message of each member link.
2. The method of claim 1, wherein establishing the test session for the plurality of member links of the bundled link comprises:
receiving a test command of the bundled link;
detecting whether a port of the first node is a binding link port or not according to the test command of the binding link;
if the port is a binding link port, sending a member link test request to the second node;
receiving a response success message of the member link test request transmitted by the second node;
and establishing the test sessions of the plurality of member links according to the response success message.
3. The method of claim 1, further comprising:
determining a target link matched with the traffic to be transmitted in the plurality of member links according to the service quality requirement information of the traffic to be transmitted and the network transmission quality information of the plurality of member links;
and scheduling the flow to be transmitted to the target link.
4. The method of claim 1,
the network transmission quality information of the member link includes one or more of the following quality information: time delay, jitter, packet loss rate.
5. The method of claim 1,
the session sender test message and the session reflector test message are two-way active measurement TWAMP protocol information, lightweight two-way active measurement TWAMP Light protocol information, unidirectional active measurement OWAMP protocol information, or simple two-way active measurement STAMP protocol information.
6. The method of claim 1,
and the session sender test message and the session reflector test message both carry the identity of the corresponding member link.
7. The method of claim 2,
the member link test Request is a command type defined in two-way Session Request-TW-Session information of TWAMP protocol, and the command sequence number field of the Request-TW-Session information indicates the command type.
8. The method of claim 2,
the response success message is a response message type defined in the Accept Session Accept-Session information of the TWAMP protocol, and an Accept field of the Accept-Session information indicates the response message type.
9. The method of claim 2, wherein after receiving the response success message for the member link test request sent by the second node, the method further comprises:
determining first port identification information of each member link of the node, and determining second port identification information of each member link according to a response success message of a member link session request sent by the second node;
wherein the first port is a physical port of the first node and the second port is a physical port of the second node.
10. The method of claim 9, wherein before the response success message according to the member link session request sent by the second node, the method further comprises:
sending a member link session request to the second node through each member link, wherein the member link session request carries the first port identification information of each member link;
receiving a response success message of the member link session request sent by the second node, where the response success message of the member link session request carries the second port identification information of each member link.
11. The method of claim 2, wherein after receiving the response success message for the member link test request sent by the second node, the method further comprises:
and receiving configuration information of each member link, wherein the configuration information comprises first port identification information and second port identification information of each member link.
12. A method for measuring network quality for a bonded link, the bonded link being located between a first node and a second node, the method being applied to the first node and the method being applied to the second node, comprising:
establishing a test session of a plurality of member links;
receiving the session sender test message sent by the first node through each member link on the basis of the test session of each member link;
generating a session reflector test message according to the session sender test message;
sending the session reflector test message to the first node over each member link.
13. The method of claim 12, further comprising:
responding to a member link test request sent by a first node, and detecting whether the plurality of member links support member link test;
if the member link test is supported and the member link test request is correct, returning a response success message to the first node;
if the member link test is supported and the member link test request is wrong, returning a first response failure message representing the member link test request is wrong to the first node;
and if the member link test is not supported, returning a second response failure message to the first node.
14. The method of claim 13, wherein after returning a response success message to the first node, the method further comprises:
receiving a member link session request sent by the first node through each member link;
responding to the member link session request, and acquiring the first port identification information of each member link from the member link session request;
determining second port identification information of each member link of the self;
wherein the first port is a physical port of the first node and the second port is a physical port of the second node.
15. The method of claim 14, further comprising:
generating a response success message of the member link session request, wherein the response success message of the member link session request carries the second port identification information;
and sending a response success message of the member link session request to the first node through each member link.
16. The method of claim 13, wherein after returning a response success message to the first node, the method further comprises:
and receiving configuration information of each member link, wherein the configuration information comprises first port identification information and second port identification information of each member link.
17. An apparatus for network quality measurement for a bonded link, the bonded link located between a first node and a second node, the apparatus comprising:
the session establishing module is used for establishing a test session of a plurality of member links of the binding link;
the information sending module is used for sending a session sender test message to the second node through each member link on the basis of the test session of each member link;
an information receiving module, configured to receive a session reflector test message sent by the second node through each member link;
and the quality detection module is used for detecting the network transmission quality information of each member link according to the session reflector test message of each member link.
18. An apparatus for network quality measurement for a bonded link, the bonded link located between a first node and a second node, the apparatus comprising:
the session establishing module is used for establishing a test session of a plurality of member links;
an information receiving module, configured to receive, on the basis of a test session of each member link, the session sender test message sent by the first node through each member link;
the information generating module is used for generating a session reflector test message according to the session sender test message;
and an information sending module, configured to send the session reflector test message to the first node through each member link.
19. A network quality measurement device, the device comprising:
a memory for storing a program;
a processor for executing the program stored in the memory to perform the network quality measurement method of any one of claims 1 to 11 or to perform the network quality measurement method of any one of claims 12 to 16.
20. A computer storage medium having computer program instructions stored thereon, which when executed by a processor implement the network quality measurement method of any of claims 1-11 or the network quality measurement method of any of claims 12-16.
CN202010376249.8A 2019-10-25 2020-05-07 Network quality measurement method, apparatus, device and medium for bundled link Active CN112714036B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2019110249047 2019-10-25
CN201911024904 2019-10-25

Publications (2)

Publication Number Publication Date
CN112714036A true CN112714036A (en) 2021-04-27
CN112714036B CN112714036B (en) 2023-02-28

Family

ID=75541614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010376249.8A Active CN112714036B (en) 2019-10-25 2020-05-07 Network quality measurement method, apparatus, device and medium for bundled link

Country Status (1)

Country Link
CN (1) CN112714036B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534249A (en) * 2009-04-15 2009-09-16 杭州华三通信技术有限公司 Method for transmitting data on bound link and network equipment thereof
CN101815027A (en) * 2009-02-20 2010-08-25 中国移动通信集团公司 Method and device for determining availability of bundled link
CN102271048A (en) * 2010-06-02 2011-12-07 中兴通讯股份有限公司 Method and device for protecting services of aggregated link
CN102685007A (en) * 2012-05-04 2012-09-19 华为技术有限公司 Method and device for processing member links in multi-link bundled link group
US20150381466A1 (en) * 2014-06-25 2015-12-31 Broadcom Corporation Micro-OAM for Link Groups

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815027A (en) * 2009-02-20 2010-08-25 中国移动通信集团公司 Method and device for determining availability of bundled link
CN101534249A (en) * 2009-04-15 2009-09-16 杭州华三通信技术有限公司 Method for transmitting data on bound link and network equipment thereof
CN102271048A (en) * 2010-06-02 2011-12-07 中兴通讯股份有限公司 Method and device for protecting services of aggregated link
CN102685007A (en) * 2012-05-04 2012-09-19 华为技术有限公司 Method and device for processing member links in multi-link bundled link group
US20150381466A1 (en) * 2014-06-25 2015-12-31 Broadcom Corporation Micro-OAM for Link Groups

Also Published As

Publication number Publication date
CN112714036B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
WO2020259134A1 (en) Clock drift processing method, network function network elements, and storage medium
US8270309B1 (en) Systems for monitoring delivery performance of a packet flow between reference nodes
WO2016045098A1 (en) Switch, controller, system and link quality detection method
JP5833253B2 (en) Method and related network element for providing delay measurement of an optical transmission network
CN110311847B (en) Batch data transmission method and device
CN112534779A (en) Method for updating PFD rules for an application and related network nodes
CN105634937B (en) A kind for the treatment of method and apparatus of message
CN105103495A (en) Admission control for allowing or rejecting a measurement request between a first device and a second device
CN114338465A (en) Network anomaly determination method and device
CN111082953B (en) Configuration method, device and related equipment
CN113472601B (en) Connection state detection method and related equipment
CN113055193B (en) Data multicast transmission method, device, equipment and storage medium
US11509561B2 (en) Performance measurement using extended bidirectional forwarding control packet
WO2014029287A1 (en) Method and device for sharing tunnel load
CN112714036B (en) Network quality measurement method, apparatus, device and medium for bundled link
CN107278364B (en) Node authentication method and node authentication system
CN113708869A (en) Method, device and system for configuring port state
JP4732632B2 (en) Communications system
CN114126085B (en) Industrial field bus communication method and device, electronic equipment and storage medium
CN107171887B (en) Network bandwidth testing method, client and network bandwidth testing system
CN107666671B (en) Method and device for detecting wrong connection based on TWAMP
CN113875197B (en) Bidirectional forwarding detection authentication
US9203718B2 (en) Frame loss measurement device, communication device, communication system and performance measurement method
CN106789639B (en) Message processing method and device
CN118175566B (en) Link detection method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant