Transmission quality detection method and apparatus, and device, system and storage medium
By recording transmission information at the network edge node between the BNG and the terminal, the problem of difficulty in detecting the transmission quality between the broadband network gateway and the terminal in the prior art is solved, and rapid fault location and efficient operation and maintenance are achieved.
Patent Information
- Application Number
- PCT/CN2024/103852
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-19
- Filing Date
- 2024-07-05
- Publication Date
- 2025-03-27
AI Technical Summary
The prior art is difficult to effectively detect the quality of hop-by-hop network transmission between the broadband network gateway (BNG) and the terminal, especially in the event of a network failure, the fault location cannot be quickly located.
The detection request message is sent to the terminal through BNG, triggering the network edge node to record transmission information, and obtain recorded transmission information by collecting the request message, thereby detecting the hop-by-hop network transmission quality between the BNG and the terminal based on this information.
It realizes rapid detection of the transmission quality between the BNG and the terminal without relying on terminal service traffic, and can quickly locate the fault location when a network failure occurs, thereby improving operation and maintenance efficiency.
Smart Images

Figure CN2024103852_27032025_PF_FP_ABST
Abstract
Description
Transmission quality detection method, device, equipment, system and storage medium
[0001] This application claims priority to Chinese patent application No. 202311213199.1 filed on September 19, 2023, entitled “Transmission quality detection method, device, equipment, system and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a method, apparatus, device, system and storage medium for detecting transmission quality. Background Art
[0003] A broadband network gateway (BNG) bridges the gap between terminals and broadband networks. The connection between the BNG and the terminals spans multiple networks, for example, requiring the terminals to traverse both the access network and the aggregation network to reach the BNG. During network operation, factors such as fiber aging and network failures can degrade transmission quality, leading to service disruption for the terminals. Therefore, a method is urgently needed to monitor the transmission quality of the hop-by-hop network between the BNG and the terminals, enabling timely repairs when transmission quality is compromised.
[0004] Summary of the Invention
[0005] The present application provides a method, apparatus, device, system, and storage medium for detecting transmission quality, which are used to detect the transmission quality of a hop-by-hop network between a BNG and a terminal.
[0006] In a first aspect, a method for detecting transmission quality is provided. Taking a BNG performing the method as an example, the BNG is connected to a terminal through at least one network including an aggregation network. The method includes: obtaining first transmission information and / or second transmission information, the first transmission information including transmission information from the BNG to the aggregation network and transmission information from the aggregation network to the terminal, the transmission information from the BNG to the aggregation network is recorded by a first network edge node in the aggregation network close to the BNG side, and the transmission information from the aggregation network to the terminal is recorded by a second network edge node in the aggregation network close to the terminal side, the second transmission information including transmission information from the terminal to the aggregation network and transmission information from the aggregation network to the BNG, the transmission information from the terminal to the aggregation network is recorded by a third network edge node in the aggregation network close to the terminal side, and the transmission information from the aggregation network to the BNG is recorded by a fourth network edge node in the aggregation network close to the BNG side; and detecting the transmission quality of the hop-by-hop network between the BNG and the terminal based on the first transmission information and / or the second transmission information.
[0007] In this method, because the acquired first and / or second transmission information is transmission information about the hop-by-hop network between the BNG and the terminal, the transmission quality of the hop-by-hop network between the BNG and the terminal can be detected based on the first and / or second transmission information. This means that the transmission quality between the terminal and the converged network can be detected, as well as the transmission quality between the converged network and the BNG, thereby obtaining the hop-by-hop transmission quality between the BNG and the terminal. In the event of a network failure, the hop-by-hop transmission quality can be used to quickly determine whether the failure occurred between the terminal and the converged network, within the converged network, between the converged network and the BNG, or within the BNG. Furthermore, this method does not require terminal cooperation and is unaffected by terminal configuration or the presence of service traffic on the terminal. This method offers high operational efficiency and is simple and quick to implement.
[0008] In one possible implementation, a method for obtaining the first transmission information includes: the BNG sending a detection request message to the terminal, the detection request message triggering a first network edge node to record transmission information from the BNG to the aggregation network, and triggering a second network edge node to record transmission information from the aggregation network to the terminal; the BNG sending a first collection request message to the aggregation network, receiving the transmission information from the BNG to the aggregation network returned by the first network edge node based on the first collection request message, and receiving the transmission information from the aggregation network to the terminal returned by the second network edge node based on the first collection request message. By triggering the network edge node to record the first transmission information by sending the detection request message, and triggering the network edge node to send the recorded first transmission information to the BNG by sending the first collection request message, the BNG can obtain the first transmission information without relying on service traffic.
[0009] That is, when the BNG sends a detection request message to the terminal via the converged network, the first network edge node in the converged network, close to the BNG, will receive the detection request message, enabling the first network edge node to record the transmission information from the BNG to the converged network based on the received detection request message. The second network edge node in the converged network, close to the terminal, will also receive the detection request message, enabling the second network edge node to record the transmission information from the converged network to the terminal based on the received detection request message. The transmission information from the BNG to the converged network may refer to the transmission information of the detection request message entering the converged network, and the transmission information from the converged network to the terminal may refer to the transmission information of the detection request message leaving the converged network.
[0010] In one possible implementation, the transmission information from the BNG to the aggregation network includes at least one of the first input count and the first input time of a detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of the first output count and the first output time of a detection request message exiting the aggregation network. For example, the BNG may send multiple detection request messages to the terminal, and the first network edge node may record the first input count of each received detection request message and the first input time of each received detection request message, while the second network edge node may record the first output count of each received detection request message and the first output time of each received detection request message. That is, the first transmission information includes the input / output counts and input / output times of the detection request message, allowing the BNG to detect transmission quality, such as packet loss rate and latency, of the hop-by-hop network from the BNG to the terminal based on the first transmission information.
[0011] In one possible embodiment, the method for obtaining the second transmission information includes: the BNG receiving a detection response message returned by the terminal based on the detection request message, the detection response message triggering a third network edge node to record transmission information from the terminal to the aggregation network, and triggering a fourth network edge node to record transmission information from the aggregation network to the BNG; the BNG sending a second collection request message to the aggregation network, receiving the transmission information from the terminal to the aggregation network returned by the third network edge node based on the second collection request message, and receiving the transmission information from the aggregation network to the BNG returned by the fourth network edge node based on the second collection request message. Receiving the detection response message returned by the terminal triggers the network edge node to record the second transmission information, and sending the second collection request message triggers the network edge node to send the recorded second transmission information to the BNG, allowing the BNG to obtain the second transmission information without relying on service traffic.
[0012] After the terminal receives the detection request message sent by the BNG, the terminal will return a corresponding detection response message to the BNG through the converged network based on the detection request message. The third network edge node close to the terminal in the converged network will receive the detection response message, so that the third network edge node can record the transmission information from the terminal to the converged network based on the received detection response message. The fourth network edge node close to the BNG in the converged network will also receive the detection response message, so that the fourth network edge node can record the transmission information from the converged network to the BNG based on the received detection response message. Among them, the transmission information from the terminal to the converged network can refer to the transmission information of the detection response message entering the converged network, and the transmission information from the converged network to the BGN can refer to the transmission information of the detection response message leaving the converged network.
[0013] In one possible implementation, the transmission information from the terminal to the aggregation network includes at least one of the second input count and the second input time of the detection response message entering the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of the second output count and the second output time of the detection response message exiting the aggregation network. For example, if the BNG sends multiple detection request messages to the terminal, the terminal will also return multiple detection response messages to the BNG. The third network edge node records the second input count of each received detection response message and the second input time of each received detection response message, and the fourth network edge node records the second output count of each received detection response message and the second output time of each received detection response message. That is, the second transmission information includes the input / output counts and input / output times of the detection response message, allowing the BNG to detect the transmission quality, such as the packet loss rate and delay, of the hop-by-hop network from the terminal to the BNG based on the second transmission information. If both the first transmission information and the second transmission information are obtained, the BNG can detect the transmission quality, such as the round-trip packet loss rate and round-trip delay, of the hop-by-hop network between the terminal and the BNG based on the first and second transmission information.
[0014] In one possible implementation, the method further includes recording transmission information of detection request messages and reception information of detection response messages, wherein the transmission information includes at least one of a transmission count and a transmission time, and the reception information includes at least one of a reception count and a reception time. In this case, in addition to detecting the hop-by-hop network transmission quality between the BNG and the terminal based on the first transmission information and the second transmission information, the end-to-end transmission quality between the BNG and the terminal can also be detected based on the transmission information and the reception information. Furthermore, based on the transmission information, the first transmission information, the second transmission information, and the reception information, the transmission quality between the terminal and the BNG, the transmission quality between the terminal and the aggregation network, the transmission quality within the aggregation network, and the transmission quality between the aggregation network and the BNG can be detected.
[0015] In one possible implementation, a first collection request message includes a first type, length, and value field (TLV field for short). The type field in the first TLV field indicates that the first collection request message is used to obtain transmission information from the BNG to the aggregation network or from the aggregation network to the terminal. A second collection request message includes a second TLV field. The type field in the second TLV field indicates that the second collection request message is used to obtain transmission information from the terminal to the aggregation network or from the aggregation network to the BNG. By carrying the TLV field in the collection request message and indicating the transmission information to be obtained through the type field in the TLV field, the collection request message can accurately obtain transmission information as required. Because different transmission information is recorded by different or the same network edge nodes, sending collection request messages carrying different TLV fields can trigger different network edge nodes to return corresponding transmission information.
[0016] In one possible implementation, if the protocol type of the terminal is Point-to-Point Protocol over Ethernet (PPPOE), the detection request message and the first collection request message may be echo request messages of the Link Control Protocol (LCP); if the protocol type of the terminal is Internet Protocol over Ethernet version 4 (IPOE V4), the detection request message and the first collection request message may be ARP request messages of the Address Resolution Protocol (ARP); if the protocol type of the terminal is Internet Protocol over Ethernet version 6 (IPOE V6), the detection request message and the first collection request message may be neighbor solicitation (NS) messages of the Neighbor Discovery (ND) protocol. The terminal may be an optical modem.
[0017] For terminals of different protocol types, the detection request message and the collection request message can use the request type message corresponding to the protocol type, so that the method can be implemented based on the request message defined by the existing protocol without the need for additional expansion. And because the detection request message is a request message defined by the existing protocol, the terminal can return the corresponding detection response message based on the existing protocol after receiving the detection request message, and the terminal can return the detection response message without additional configuration of the terminal. That is, in the case where the detection request message is an echo request message, the detection response message is an echo reply message; in the case where the detection request message is an ARP request message, the detection response message is an ARP reply message; in the case where the detection request message is an NS message, the detection response message is a neighbor advertisement (NA) message.
[0018] In one possible implementation, a detection request message may be sent to a terminal by sending the detection request message to the terminal according to packet sending parameters, where the packet sending parameters include at least one of a packet sending frequency, a packet sending number, a packet sending time interval, a message length, and a message priority. The packet sending frequency, the packet sending number, the packet sending time interval, the message length, and the message priority may all be flexibly set according to the application scenario, so that the detection request message sent to the terminal according to the packet sending parameters can detect the transmission quality. For example, the number of packets sent is 5, the packet sending time interval is 1 second, and the message priority corresponds to the priority of the terminal, so that the detection request message for detecting transmission quality of the same terminal matches the priority of the transmitted service message.
[0019] In one possible implementation, before the BNG sends a detection request message to the terminal, the keep-alive detection mechanism configured in the terminal can be disabled, and the keep-alive detection messages corresponding to the keep-alive detection mechanism can be stopped from being sent to the terminal. After the transmission quality of the hop-by-hop network between the BNG and the terminal is detected based on the first transmission information and / or the second transmission information, the keep-alive detection mechanism configured in the terminal can be restarted, and the keep-alive detection messages corresponding to the keep-alive detection mechanism can be continued to be sent to the terminal. This ensures that during the detection of the transmission quality of the hop-by-hop network between the BNG and the terminal, the detection request message sent by the BNG to the terminal does not include the keep-alive detection message, that is, the obtained first transmission information and / or second transmission information will not be interfered with by the keep-alive detection mechanism of the terminal, thereby improving the accuracy of the obtained first transmission information and / or second transmission information, and thereby improving the accuracy of the detected transmission quality of the hop-by-hop network.
[0020] The first network edge node and the third network edge node may be the same or different, and the second network edge node and the fourth network edge node may be the same or different.
[0021] In a second aspect, a method for detecting transmission quality is provided. Taking the execution of the method by a network edge node in an aggregation network as an example, at least one network including the aggregation network is used to connect a terminal and a BNG. The method includes: when a received message meets a detection request condition, determining that the received message is a detection request message sent by the BNG to the terminal; if the network edge node is located on a side of the aggregation network close to the BNG, recording the transmission information from the BNG to the aggregation network in the first transmission information; if the network edge node is located on a side of the aggregation network close to the terminal, recording the transmission information from the aggregation network to the terminal in the first transmission information; when the received message meets the detection response condition, determining that the received message is a detection request message sent by the BNG to the terminal. Determine that the received message is a detection response message sent by the terminal to the BNG. If the network edge node is located on the side of the aggregation network close to the terminal, record the transmission information from the terminal to the aggregation network in the second transmission information. If the network edge node is located on the side of the aggregation network close to the BNG, record the transmission information from the aggregation network to the BNG in the second transmission information. If the received message meets the collection request condition, determine that the received message is a collection request message sent by the BNG, and send the recorded transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG to the BNG based on the collection request message.
[0022] In this method, the network edge node can record and return transmission information from the BNG to the aggregation network, from the aggregation network to the terminal, from the terminal to the aggregation network, or from the aggregation network to the BNG, allowing the BNG to obtain first transmission information and / or second transmission information. Because the first transmission information and / or second transmission information are hop-by-hop network transmission information between the BNG and the terminal, the BNG can detect the hop-by-hop transmission quality between the BNG and the terminal based on the first transmission information and / or second transmission information. This means that the BNG can detect both the transmission quality between the terminal and the aggregation network and the transmission quality between the aggregation network and the BNG. Furthermore, in the event of a network failure, the hop-by-hop transmission quality can be used to quickly determine whether the failure occurred between the terminal and the aggregation network, within the aggregation network, between the aggregation network and the BNG, or within the BNG itself. Furthermore, this method does not require terminal cooperation and is unaffected by terminal configuration or the presence of service traffic on the terminal, resulting in high operational efficiency and simple and quick implementation.
[0023] In one possible implementation, the detection request condition may include a destination address being the address of the terminal and a message type being a request message; the detection response condition may include a source address being the address of the terminal and a message type being a response message; and the collection request condition may include a destination address being a reference multicast address and a message type being a request message, wherein the reference multicast address includes the address of a network node within a bridge domain (BD) corresponding to the terminal. The detection request condition enables the network edge node to identify the detection request message and, based on the detection request message, record transmission information from the BNG to the aggregation network or from the aggregation network to the terminal; the detection response condition enables the network edge node to identify the detection response message and, based on the detection response message, record transmission information from the terminal to the aggregation network or from the aggregation network to the BNG; and the collection request condition enables the network edge node to identify the collection request message and, based on the collection request message, return recorded transmission information from the terminal to the aggregation network, from the aggregation network to the BNG, from the terminal to the aggregation network, or from the aggregation network to the BNG.
[0024] In one possible implementation, the transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time for a detection request message entering the aggregation network; the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time for a detection request message exiting the aggregation network; the transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time for a detection reply message entering the aggregation network; and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time for a detection reply message exiting the aggregation network. In other words, the first transmission information includes the input / output counts and input / output time of the detection request message, and the second transmission information includes the input / output counts and input / output time of the detection reply message. This allows the BNG, upon obtaining both the first and second transmission information, to detect transmission quality, such as the round-trip packet loss rate and round-trip delay, of the hop-by-hop network between the terminal and the BNG based on the first and second transmission information.
[0025] In one possible implementation, if the protocol type of the terminal is PPPOE, the detection request message and the collection request message may be an echo request message of LCP; if the protocol type of the terminal is IPOE V4, the detection request message and the collection request message may be an ARP request message of ARP; if the protocol type of the terminal is IPOE V6, the detection request message and the collection request message may be an NS message of the ND protocol. The terminal may refer to an optical modem. For terminals of different protocol types, the detection request message and the collection request message may use a request type message corresponding to the protocol type, so that the method can be implemented based on a request message defined based on an existing protocol without the need for additional expansion.
[0026] In one possible implementation, a collection request message includes a TLV field, where the type field in the TLV field indicates whether the collection request message is used to obtain transmission information from the BNG to the converged network, transmission information from the converged network to the terminal, transmission information from the terminal to the converged network, or transmission information from the converged network to the BNG. For example, collection request message 1 includes TLV field 1, where the type field in TLV field 1 indicates that the message is used to obtain transmission information from the BNG to the converged network; collection request message 2 includes TLV field 2, where the type field in TLV field 1 indicates that the message is used to obtain transmission information from the converged network to the terminal; collection request message 3 includes TLV field 3, where the type field in TLV field 3 indicates that the message is used to obtain transmission information from the terminal to the converged network; and collection request message 4 includes TLV field 4, where the type field in TLV field 4 indicates that the message is used to obtain transmission information from the converged network to the BNG.
[0027] In this case, the network edge node sends the BNG transmission information from the BNG to the converged network, the transmission information from the converged network to the terminal, the transmission information from the terminal to the converged network, or the transmission information from the converged network to the BNG based on the collection request message. The method includes: changing the destination address of the collection response message to the source address of the collection request message, changing the source address of the collection request message to the address of the network edge node, changing the message type of the collection request message to a response message, adding the transmission information from the BNG to the converged network, the transmission information from the converged network to the terminal, the transmission information from the terminal to the converged network, or the transmission information from the converged network to the BNG to the value field of the TLV field to obtain a collection response message corresponding to the collection request message; and sending the collection response message to the BNG. Modifying the received collection request message to obtain the collection response message, and returning the recorded transmission information to the BNG by sending the collection response message provides an implementation method for a network edge node to return recorded transmission information to the BNG.
[0028] In a third aspect, a transmission quality detection device is provided. The device is applied to a BNG, where the BNG is connected to a terminal via at least one network including a converged network. The device includes:
[0029] a transceiver module, configured to perform operations related to receiving and / or sending in the first aspect or any possible implementation manner of the first aspect;
[0030] The processing module is used to perform other operations besides the receiving and / or sending related operations in the first aspect or any possible implementation manner of the first aspect.
[0031] In a possible implementation, the transceiver module includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.
[0032] In one possible implementation, a transceiver module is configured to obtain first transmission information and / or second transmission information, where the first transmission information includes transmission information from the BNG to the aggregation network and transmission information from the aggregation network to the terminal, the transmission information from the BNG to the aggregation network is recorded by a first network edge node in the aggregation network close to the BNG side, and the transmission information from the aggregation network to the terminal is recorded by a second network edge node in the aggregation network close to the terminal side, the second transmission information includes transmission information from the terminal to the aggregation network and transmission information from the aggregation network to the BNG, the transmission information from the terminal to the aggregation network is recorded by a third network edge node in the aggregation network close to the terminal side, and the transmission information from the aggregation network to the BNG is recorded by a fourth network edge node in the aggregation network close to the BNG side; and a processing module is configured to detect the transmission quality of the hop-by-hop network between the BNG and the terminal based on the first transmission information and / or the second transmission information.
[0033] In one possible implementation, the transceiver module is configured to send a detection request message to the terminal, the detection request message triggering the first network edge node to record the transmission information from the BNG to the aggregation network, and triggering the second network edge node to record the transmission information from the aggregation network to the terminal; send a first collection request message to the aggregation network, receive the transmission information from the BNG to the aggregation network returned by the first network edge node based on the first collection request message, and receive the transmission information from the aggregation network to the terminal returned by the second network edge node based on the first collection request message.
[0034] In one possible implementation, the transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time of the detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time of the detection request message exiting the aggregation network.
[0035] In one possible implementation, the transceiver module is configured to send a detection response message to the receiving terminal based on the detection request message, wherein the detection response message triggers the third network edge node to record the transmission information from the terminal to the aggregation network, and triggers the fourth network edge node to record the transmission information from the aggregation network to the BNG; send a second collection request message to the aggregation network, receive the transmission information from the terminal to the aggregation network returned by the third network edge node based on the second collection request message, and receive the transmission information from the aggregation network to the BNG returned by the fourth network edge node based on the second collection request message.
[0036] In one possible implementation, the transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time for the detection response message to enter the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time for the detection response message to exit the aggregation network.
[0037] In one possible embodiment, the processing module is further used to record the sending information of the detection request message and the receiving information of the detection response message, the sending information includes at least one of the sending count and the sending time, and the receiving information includes at least one of the receiving count and the receiving time; based on the sending information, the first transmission information, the second transmission information and the receiving information, the transmission quality of the hop-by-hop network between the BNG and the terminal is detected.
[0038] In one possible implementation, the first acquisition request message includes a first TLV field, and the type field in the first TLV field indicates that the first acquisition request message is used to obtain transmission information from the BNG to the aggregation network or transmission information from the aggregation network to the terminal; the second acquisition request message includes a second TLV field, and the type field in the second TLV field indicates that the second acquisition request message is used to obtain transmission information from the terminal to the aggregation network or transmission information from the aggregation network to the BNG.
[0039] In a possible implementation, the protocol type of the terminal is PPPOE, and the detection request message and the first collection request message are both echo request messages of LCP; or, the protocol type of the terminal is IPOE V4, and the detection request message and the first collection request message are both ARP request messages of ARP; or, the protocol type of the terminal is IPOE V6, and the detection request message and the first collection request message are both NS messages of the ND protocol.
[0040] In a possible implementation, the transceiver module is used to send a detection request message to the terminal according to the packet sending parameters, where the packet sending parameters include at least one of the packet sending frequency, packet sending quantity, packet sending time interval, message length and message priority, and the message priority corresponds to the priority of the terminal.
[0041] In a possible implementation manner, the processing module is further configured to disable a keep-alive detection mechanism configured for the terminal, and stop sending keep-alive detection messages corresponding to the keep-alive detection mechanism to the terminal.
[0042] In a possible implementation, the processing module is further configured to restart a keep-alive detection mechanism configured for the terminal, and continue to send keep-alive detection messages corresponding to the keep-alive detection mechanism to the terminal.
[0043] In a fourth aspect, a transmission quality detection device is provided. The device is applied to a network edge node in a converged network, where at least one network including the converged network is used to connect a terminal and a BNG. The device includes:
[0044] a transceiver module, configured to perform operations related to receiving and / or sending in the second aspect or any possible implementation manner of the second aspect;
[0045] The processing module is used to perform other operations besides the receiving and / or sending related operations in the second aspect or any possible implementation manner of the second aspect.
[0046] In a possible implementation, the transceiver module includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.
[0047] In one possible implementation, the processing module is configured to, if a received message meets a detection request condition, determine that the received message is a detection request message sent by the BNG to the terminal; if the network edge node is located on a side of the convergence network close to the BNG, record the transmission information from the BNG to the convergence network in the first transmission information; if the network edge node is located on a side of the convergence network close to the terminal, record the transmission information from the convergence network to the terminal in the first transmission information; if the received message meets a detection response condition, determine that the received message is a detection response message sent by the terminal to the BNG; if the network edge node is located on a side of the convergence network close to the terminal, record the transmission information from the terminal to the convergence network in the second transmission information; if the network edge node is located on a side of the convergence network close to the BNG, record the transmission information from the convergence network to the BNG in the second transmission information; and if the network edge node is located on a side of the convergence network close to the BNG, record the transmission information from the convergence network to the BNG in the second transmission information. The transceiver module is configured to, if the received message meets a collection request condition, determine that the received message is a collection request message sent by the BNG; and send, based on the collection request message, the recorded transmission information from the BNG to the convergence network, the transmission information from the convergence network to the terminal, the transmission information from the terminal to the convergence network, or the transmission information from the convergence network to the BNG to the BNG.
[0048] In one possible implementation, the detection request condition includes that the destination address is the address of the terminal and the message type is a request message; the detection response condition includes that the source address is the address of the terminal and the message type is a response message; the collection request condition includes that the destination address is a reference multicast address, the message type is a request message, and the reference multicast address includes the address of a network node within the BD corresponding to the terminal.
[0049] In one possible implementation, the transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time of a detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time of a detection request message exiting the aggregation network; the transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time of a detection response message entering the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time of a detection response message exiting the aggregation network.
[0050] In a possible implementation, the protocol type of the terminal is PPPOE, and the detection request message and the collection request message are both LCP return request messages; or, the protocol type of the terminal is IPOE V4, and the detection request message and the collection request message are both ARP request messages of ARP; or, the protocol type of the terminal is IPOE V6, and the detection request message and the collection request message are both NS messages of the ND protocol.
[0051] In one possible implementation, the collection request message includes a TLV field, where a type field in the TLV field indicates that the collection request message is used to obtain transmission information from the BNG to the aggregation network, transmission information from the aggregation network to the terminal, transmission information from the terminal to the aggregation network, or transmission information from the aggregation network to the BNG; a processing module is configured to change the destination address of the collection response message to the source address of the collection request message, change the source address of the collection request message to the address of the network edge node, change the message type of the collection request message to a response message, and add the transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG to the value field of the TLV field to obtain a collection response message corresponding to the collection request message; and a transceiver module is configured to send the collection response message to the BNG.
[0052] In a fifth aspect, a network device is provided, comprising: a processor, the processor being coupled to a memory, the memory storing at least one program instruction or code, the at least one program instruction or code being loaded and executed by the processor, so that the network device implements the transmission quality detection method as described in any one of the first or second aspects above.
[0053] Optionally, there are one or more processors and one or more memories.
[0054] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0055] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor or be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.
[0056] In a sixth aspect, a transmission quality detection system is provided, the transmission quality detection system comprising a BNG, at least one network edge node in a convergence network, and a terminal, wherein the BNG is connected to the terminal via at least one network including the convergence network;
[0057] The BNG is used to execute the method described in the first aspect or any possible implementation of the first aspect, any network edge node among the at least one network edge node is used to execute the method described in the second aspect or any possible implementation of the second aspect, and the terminal is used to receive a detection request message sent by the BNG and return a detection response message to the BNG based on the detection request message.
[0058] In the seventh aspect, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to enable the computer to implement the method in the above-mentioned first aspect or any possible implementation of the first aspect, or to implement the method in the above-mentioned second aspect or any possible implementation of the second aspect.
[0059] In an eighth aspect, a computer program (product) is provided, which includes: computer program code, which, when executed by a computer, enables the computer to execute the methods in the above aspects.
[0060] In a ninth aspect, a chip is provided, comprising a processor for calling and executing instructions stored in a memory from the memory, so that a communication device equipped with the chip executes the methods in the above aspects.
[0061] In the tenth aspect, another chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the methods in the above aspects.
[0062] It should be understood that the beneficial effects achieved by the technical solutions of the third to tenth aspects of this application and the corresponding possible implementation methods can be referred to the technical effects of the first and second aspects and their corresponding possible implementation methods mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] FIG1 is a schematic diagram of a network architecture for terminal access provided in an embodiment of the present application;
[0064] FIG2 is a flow chart of a method for detecting transmission quality provided in an embodiment of the present application;
[0065] FIG3 is a schematic diagram of a message format of an echo message provided in an embodiment of the present application;
[0066] FIG4 is a schematic diagram of a message format of an ARP message provided in an embodiment of the present application;
[0067] FIG5 is a schematic diagram of the message format of an ICMP message provided in an embodiment of the present application;
[0068] FIG6 is a schematic diagram of a value field of a TLV provided in an embodiment of the present application;
[0069] FIG7 is a schematic diagram of another message format of an echo message provided in an embodiment of the present application;
[0070] FIG8 is a schematic diagram of another ARP message format provided in an embodiment of the present application;
[0071] FIG9 is a schematic diagram of another ICMP message format provided in an embodiment of the present application;
[0072] FIG10 is a flowchart of another method for detecting transmission quality provided in an embodiment of the present application;
[0073] FIG11 is a schematic diagram of a method for detecting transmission quality provided in an embodiment of the present application;
[0074] FIG12 is a schematic structural diagram of a transmission quality detection device provided in an embodiment of the present application;
[0075] FIG13 is a schematic diagram of the structure of a network device provided in an embodiment of the present application;
[0076] FIG14 is a schematic diagram of the structure of another network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0077] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0078] As a traditional gateway device for accessing broadband networks, BNGs are crucial for users accessing broadband networks. With the development of software-defined networking (SDN) and network function virtualization (NFV) technologies, there is a need to decouple the forwarding and control functions of the BNG. This involves separating the control plane (control) and user plane (user), also known as CU separation, to improve BNG performance. A BNG with CU separation is also called a virtual broadband network gateway (vBNG). The vBNG system includes at least one control plane (CP) device and at least one user plane (UP) device. The CP device manages at least one UP device, and any UP device forwards traffic from terminal devices.
[0079] For example, referring to Figure 1, Figure 1 shows a schematic diagram of a network architecture for terminal access provided by an embodiment of the present application. As shown in Figure 1, the network architecture includes a terminal 11, an access network 12, a convergence network 13, a BNG system 14, and a core network 15. Exemplarily, the terminal 11 can be an optical modem; the access network 12 can include an optical line terminal (OLT) device and a switch (SW) device. The SW device, as a switching device, can connect multiple terminals 11 to the aggregation network 13; the aggregation network 13 can include an access leaf (aleaf) device, a backbone (spine) device and a service leaf (sleaf) device. The aleaf device and the sleaf device are network edge nodes of the aggregation network 13. The aleaf device is the network edge node of the aggregation network 13 close to the terminal 11 side, and the sleaf device is the network edge node of the aggregation network 13 close to the BNG system 14 side; the BNG system 14 can include a UP device, that is, BNG. When the BNG system 14 is CU-separated, the BNG system 14 can also include a CP device; the core network 15 can include a core (CR) device.
[0080] In this embodiment of the present application, terminal 11 accesses core network 15 through BNG system 14. Multiple networks are traversed between terminal 11 and the UP devices of BNG system 14. As shown in Figure 1, terminal 11 passes through access network 12 and aggregation network 13 before reaching gateway BNG. During network operation, factors such as fiber aging and network failures can degrade transmission quality, leading to service disruptions for the terminal. Therefore, a method for detecting the transmission quality of the hop-by-hop network between BNG and the terminal is urgently needed to enable timely repairs when transmission quality is low.
[0081] In related technologies, a packet internet groper (PING) connectivity test is used to determine whether any two network devices are reachable, and transmission quality is then determined based on whether any two network devices are reachable. Alternatively, operations administration and maintenance (OAM) technologies, such as in-situ operations administration and maintenance (IOAM) or in-situ flow information telemetry (IFIT), are used to implement real-time monitoring of the network's service level agreement (SLA), and transmission quality is then determined based on the real-time monitoring results.
[0082] However, some terminals are set to disable PING for security reasons. After the PING is disabled, the terminal discards the echo request messages under the Internet Control Message Protocol (ICMP) received on the interface, making it impossible to measure transmission quality through PING. As for IOAM technology and IFIT technology, first, they can only detect the transmission quality of the aggregation network between aleaf and sleaf, and cannot detect the transmission quality between aleaf and terminal or between sleaf and BNG. Secondly, emergency deployment requires application with the terminal user. If equipment from different manufacturers is used during deployment, it may affect the business, resulting in limited scenarios and poor versatility. In addition, it depends on the terminal user to provide the destination address of the business and on the terminal to have continuous business traffic. However, after the actual business fails, the terminal may no longer send business traffic, making it impossible to detect transmission quality. In addition, relying on business traffic also makes the cost of detecting transmission quality high.
[0083] The embodiment of the present application provides a method for detecting transmission quality. When the terminal is set to prohibit PING, the transmission quality of the hop-by-hop network between the BNG and the terminal can still be quickly detected. This method can be applied to the scenario where the BNG is connected to the terminal through at least one network including a converged network. For example, it is applied to the network architecture shown in Figure 1, where the BNG is connected to the terminal through an access network and a converged network. The embodiment of the present application is described by taking the BNG being connected to the terminal through the converged network as an example. For the case where the BNG is connected to the terminal through multiple networks including the converged network, reference can be made to the implementation method of the BNG being connected to the terminal through the converged network provided in the embodiment of the present application. Taking the BNG executing this method as an example, a flow chart of a transmission quality detection method provided in the embodiment of the present application is shown in Figure 2. The transmission quality detection method includes but is not limited to the following steps 201 and 202.
[0084] Step 201: Obtain first transmission information and / or second transmission information. The first transmission information includes transmission information from the BNG to the aggregation network and transmission information from the aggregation network to the terminal. The transmission information from the BNG to the aggregation network is recorded by a first network edge node in the aggregation network close to the BNG side, and the transmission information from the aggregation network to the terminal is recorded by a second network edge node in the aggregation network close to the terminal side. The second transmission information includes transmission information from the terminal to the aggregation network and transmission information from the aggregation network to the BNG. The transmission information from the terminal to the aggregation network is recorded by a third network edge node in the aggregation network close to the terminal side, and the transmission information from the aggregation network to the BNG is recorded by a fourth network edge node in the aggregation network close to the BNG side.
[0085] In the embodiment of the present application, since the BNG is connected to the terminal through at least one network including a convergence network, all messages transmitted between the BNG and the terminal will pass through the convergence network. Therefore, the network edge node in the convergence network can record the corresponding first transmission information and / or second transmission information based on the received or sent messages transmitted between the BNG and the terminal. The network edge node refers to the first hop node for a message entering the convergence network or the last hop node for a message exiting the convergence network. For example, aleaf1, aleaf2, sleaf1, and sleaf2 shown in Figure 1 are all network edge nodes. Aleaf1 and aleaf2 are network edge nodes on the convergence network side close to the terminal, and sleaf1 and sleaf2 are network edge nodes on the convergence network side close to the BNG.
[0086] In one possible implementation, the BNG may trigger the first network edge node and the second network edge node to record the first transmission information based on the received detection request message by sending a detection request message to the terminal. Furthermore, the terminal may trigger the third network edge node and the fourth network edge node to record the second transmission information based on the received detection response message by returning a corresponding detection response message to the BNG based on the detection request message. If the network edge node has recorded the first transmission information and / or the second transmission information, the network edge node may proactively report the recorded first transmission information and / or the second transmission information to the BNG, or the BNG may request the network edge node to record the first transmission information and / or the second transmission information.
[0087] Optionally, the method for obtaining the first transmission information includes: the BNG sending a detection request message to the terminal, the detection request message triggering the first network edge node to record the transmission information from the BNG to the aggregation network, and triggering the second network edge node to record the transmission information from the aggregation network to the terminal; the BNG sending a first collection request message to the aggregation network, receiving the transmission information from the BNG to the aggregation network returned by the first network edge node based on the first collection request message, and receiving the transmission information from the aggregation network to the terminal returned by the second network edge node based on the first collection request message. By sending the detection request message to trigger the network edge node to record the first transmission information, and by sending the first collection request message to trigger the network edge node to send the recorded first transmission information to the BNG, the first transmission information can be obtained without relying on service traffic.
[0088] That is, when the BNG sends a detection request message to the terminal via the converged network, the first network edge node in the converged network, close to the BNG, will receive the detection request message, enabling the first network edge node to record the transmission information from the BNG to the converged network based on the received detection request message. The second network edge node in the converged network, close to the terminal, will also receive the detection request message, enabling the second network edge node to record the transmission information from the converged network to the terminal based on the received detection request message. The transmission information from the BNG to the converged network may refer to the transmission information of the detection request message entering the converged network, and the transmission information from the converged network to the terminal may refer to the transmission information of the detection request message leaving the converged network.
[0089] Optionally, the transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time of a detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time of a detection request message exiting the aggregation network. For example, the BNG may send multiple detection request messages to the terminal, and the first network edge node may record the first input count of each received detection request message and the first input time of each received detection request message, while the second network edge node may record the first output count of each received detection request message and the first output time of each received detection request message. In other words, the first transmission information includes recording the input / output counts and input / output times of the detection request message as the first transmission information, so that the BNG can detect the transmission quality, such as the packet loss rate and latency, of the hop-by-hop network from the BNG to the terminal based on the first transmission information.
[0090] In an embodiment of the present application, the BNG may send a detection request message to a terminal according to packet transmission parameters, where the packet transmission parameters include at least one of a packet transmission frequency, a packet transmission quantity, a packet transmission interval, a message length, and a message priority. The packet transmission frequency, the packet transmission quantity, the packet transmission interval, the message length, and the message priority may all be flexibly set according to the application scenario, so that the detection request message sent to the terminal according to the packet transmission parameters is capable of detecting transmission quality. For example, the packet transmission quantity may be 5, the packet transmission interval may be 1 second, and the message priority may correspond to the priority of the terminal, so that the detection request message for detecting transmission quality of the same terminal matches the priority of the transmitted service message.
[0091] Optionally, the method for obtaining the second transmission information includes: the BNG receiving a detection response message returned by the terminal based on the detection request message, the detection response message triggering the third network edge node to record the transmission information from the terminal to the aggregation network, and triggering the fourth network edge node to record the transmission information from the aggregation network to the BNG; the BNG sending a second collection request message to the aggregation network, receiving the transmission information from the terminal to the aggregation network returned by the third network edge node based on the second collection request message, and receiving the transmission information from the aggregation network to the BNG returned by the fourth network edge node based on the second collection request message. The network edge node is triggered to record the second transmission information by receiving the detection response message returned by the terminal, and is triggered to send the recorded second transmission information to the BNG by sending the second collection request message, so that the second transmission information can be obtained without relying on service traffic.
[0092] After the terminal receives the detection request message sent by the BNG, the terminal will return a corresponding detection response message to the BNG through the aggregation network based on the detection request message. The third network edge node close to the terminal side in the aggregation network will receive the detection response message, so that the third network edge node can record the transmission information from the terminal to the aggregation network based on the received detection response message. The fourth network edge node close to the BNG side in the aggregation network will also receive the detection response message, so that the fourth network edge node can record the transmission information from the aggregation network to the BNG based on the received detection response message. Among them, the transmission information from the terminal to the aggregation network can refer to the transmission information of the detection response message entering the aggregation network, and the transmission information from the aggregation network to the BGN can refer to the transmission information of the detection response message leaving the aggregation network. It should be noted that the first network edge node and the third network edge node in the embodiment of the present application can be the same or different, and the second network edge node and the fourth network edge node can be the same or different.
[0093] In one possible implementation, the transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time for detection response messages entering the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time for detection response messages exiting the aggregation network. For example, if the BNG sends multiple detection request messages to the terminal, the terminal will also return multiple detection response messages to the BNG. The third network edge node records the second input count of each received detection response message and the second input time of each received detection response message, and the fourth network edge node records the second output count of each received detection response message and the second output time of each received detection response message. By recording the input / output counts and input / output times of the detection response messages as the second transmission information, the transmission quality, such as the packet loss rate and delay, of the hop-by-hop network from the terminal to the BNG can be detected based on the second transmission information. If both the first transmission information and the second transmission information are obtained, the transmission quality, such as the round-trip packet loss rate and round-trip delay, of the hop-by-hop network between the terminal and the BNG can be detected based on the first and second transmission information.
[0094] The embodiments of the present application do not limit the type of detection request message sent by the BNG. The type of detection request message used can be determined based on the protocol type used by the terminal. That is, different detection request messages are used for terminals using different protocol types. For example, if the terminal's protocol type is PPPoE, the detection request message can be an LCP echo request message; if the terminal's protocol type is IPOE V4, the detection request message can be an ARP request message; if the terminal's protocol type is IPOE V6, the detection request message can be an NS message of the ND protocol.
[0095] Because the detection request message is a request message defined in the above-mentioned LCP, ARP, or ND protocol, the terminal is also configured with the above-mentioned LCP, ARP, or ND protocol, so that after receiving the detection request message, the terminal can return a corresponding detection response message based on the corresponding protocol, and the terminal can return a detection response message without additional configuration of the terminal. In other words, the detection response message corresponds to the detection request message. In the case where the detection request message is an echo request message, the detection response message is an echo reply message; in the case where the detection request message is an ARP request message, the detection response message is an ARP reply message; in the case where the detection request message is an NS message, the detection response message is an NA message.
[0096] For example, referring to the echo message format shown in FIG3 , an echo message includes an Ethernet (ETH) header field, a code field, an identifier (ID) field, a length field, a magic number field, and a data field. The ETH header includes a field indicating the protocol type is LCP; the code field indicates a request or response, for example, the number 9 indicates an echo request, and the number 10 indicates an echo reply; the id field is used to match echo requests with echo replies, and increments by 1 for each echo request sent; the length field is the length of the entire echo message; the magic number field is used to avoid loopbacks; and the content and length of the data field are variable and can be customized.
[0097] Referring to the message format of an ARP message shown in Figure 4, an ARP message includes a destination address (DA) field, a source address (SA) field, a frame type field, a hardware type field, a protocol type field, and an operation (OP) field. The frame type field indicates the type of the ARP message. For an ARP request or reply, the value of this field is 0x0806. The hardware type field indicates the type of hardware address. For Ethernet, the value of this field is 1. The protocol type field indicates the type of protocol address to be mapped by the sender. The OP field indicates the operation type. For example, the number 1 indicates an ARP request, and the number 2 indicates an ARP reply.
[0098] Referring to the message format of an ICMP message shown in Figure 5, an ICMP message includes an Ethernet (ETH) header field, a type field, a code field, a checksum field, and a reserved field. The ETH header includes a field indicating the protocol type is LCP; the code field indicates a request or response. For example, a value of 135 indicates an NS message, while a value of 136 indicates an NA message. The checksum field is used to verify data integrity in the ICMP message; and the reserved field is not used.
[0099] The embodiments of the present application do not limit the types of the first and second collection request messages. New message types for collecting transmission information can be defined, or they can be determined based on the protocol type used by the terminal, namely, the aforementioned LCP echo request message, ARP ARP request message, or ND protocol NS message. Since the collection request message is sent to the converged network, the destination address of the collection request message can use a reference multicast address. The reference multicast address includes the address of the network node within the BD corresponding to the terminal, so that all network nodes in the converged network that connect the BNG and the terminal can receive the collection request message sent by the BNG.
[0100] In one possible implementation, the first acquisition request message includes a first TLV field, and the type field in the first TLV field indicates that the first acquisition request message is used to obtain transmission information from the BNG to the aggregation network or transmission information from the aggregation network to the terminal; the second acquisition request message includes a second TLV field, and the type field in the second TLV field indicates that the second acquisition request message is used to obtain transmission information from the terminal to the aggregation network or transmission information from the aggregation network to the BNG.
[0101] Optionally, an embodiment of the present application provides 8 types of TLVs, which are used to obtain 8 types of transmission information, namely, a first input count, a first input time, a first output count, a first output time, a second input count, a second input time, a second output count, and a second output time. By carrying a TLV field in a collection request message and indicating which transmission information is to be obtained through the type field in the TLV field, the collection request message can accurately obtain the transmission information as required. Since different transmission information is recorded by different network edge nodes, by sending a collection request message carrying different TLV fields, different network edge nodes can be triggered to return the corresponding transmission information.
[0102] Exemplarily, Type 1: The type field corresponds to 1, and the value field represents the first input count. For example, if a Type 1 TLV is in an echo request message corresponding to PPPOE, the value field is the statistical count of echo request messages received by the first network edge node. Type 2: The type field corresponds to 2, and the value field represents the first output count. For example, if a Type 2 TLV is in an echo request message corresponding to PPPOE, the value field is the statistical count of echo request messages sent by the second network edge node. Type 3: The type field corresponds to 3, and the value field represents the second input count. For example, if a Type 3 TLV is in an echo reply message corresponding to PPPOE, the value field is the statistical count of echo reply messages received by the third network edge node. Type 4: The type field corresponds to 4, and the value field represents the second output count. For example, if a Type 4 TLV is in an echo reply message corresponding to PPPOE, the value field is the statistical count of echo reply messages sent by the fourth network edge node. The value field format of Type 1-Type 4 TLVs can be a 32-bit integer.
[0103] Type 5: The type field corresponds to 5, and the value field indicates the first input time. Since there are multiple detection request messages, the timestamps of the recorded detection request messages are also multiple, that is, the first input time includes the times corresponding to the multiple detection request messages received by the first network edge node. Type 6: The type field corresponds to 6, and the value field indicates the first output time. Similarly, the first output time includes the times corresponding to the multiple detection request messages sent by the second network edge node. Type 7: The type field corresponds to 7, and the value field indicates the second input time. Similarly, the second input time includes the times corresponding to the multiple detection response messages received by the third network edge node. Type 8: The type field corresponds to 8, and the value field indicates the second output time. Similarly, the second output time includes the times corresponding to the multiple detection response messages sent by the fourth network edge node.
[0104] Among them, the format of the value field of type 5-type 8 TLV is similar. Taking the value field of type 5 TLV as an example, the format of the value field includes a combination of multiple 8 bytes, and each 8-byte corresponds to the input time of a detection request message. As shown in Figure 6, each 8-byte includes an id field, a date field, an hour field, a minute field, a second field, and a millisecond field. Among them, the id field represents the message sequence number of the detection request message, and the date field, hour field, minute field, second field, and millisecond field represent the reception time of the detection request message with the message sequence number id.
[0105] Exemplarily, a collection request message may carry at least one type of TLV. When the collection request message is an LCP echo request message, FIG7 is a schematic diagram of a message format of a collection request message provided in an embodiment of the present application, which is expanded with an additional TLV field compared to FIG3. When the collection request message is an ARP request message, FIG8 is a schematic diagram of another message format of a collection request message provided in an embodiment of the present application, which is expanded with an additional TLV field compared to FIG4. When the collection request message is an NS message, FIG9 is a schematic diagram of another message format of an ICMP message provided in an embodiment of the present application, i.e., a schematic diagram of the message format of an NS message, which is expanded with an additional TLV field compared to FIG5.
[0106] In an embodiment of the present application, the transmission quality detection scenario can be a home broadband user scenario, and the terminal can be an optical modem. Since multiple terminals access the network through the BNG, the BNG manages the bandwidth access of multiple terminals. In the event of a terminal failure, the user information of the terminal can be entered into the BNG so that the BNG can find the corresponding terminal based on the user information and then detect the hop-by-hop network transmission quality between the BNG and the terminal. For example, before obtaining the first transmission information and / or the second transmission information, the terminal whose transmission quality is to be detected is determined based on the user information. The user information can include at least one of a media access control (MAC) address, an internet protocol (IP) address, or a virtual private network (VPN) identifier.
[0107] Optionally, when obtaining the first transmission information by sending a detection request message to the terminal, before the BNG sends the detection request message to the terminal, the keepalive detection mechanism configured for the terminal can be disabled, and the keepalive detection messages corresponding to the keepalive detection mechanism can be stopped from being sent to the terminal. Therefore, during the detection of the transmission quality of the hop-by-hop network between the BNG and the terminal, the detection request message sent by the BNG to the terminal does not include the keepalive detection message. This means that the obtained first transmission information will not be interfered with by the keepalive detection mechanism of the terminal, thereby improving the accuracy of the obtained first transmission information. Since the keepalive detection message is not sent, there is no response message corresponding to the keepalive detection message. This means that the obtained second transmission information will not be interfered with by the keepalive detection mechanism of the terminal, thereby improving the accuracy of the obtained second transmission information and, in turn, improving the accuracy of the detected hop-by-hop network transmission quality. The keepalive detection mechanism includes a point-to-point protocol (PPP) detection mechanism, an ARP detection mechanism, or an ND detection mechanism.
[0108] Step 202: Detect the transmission quality of the hop-by-hop network between the BNG and the terminal based on the first transmission information and / or the second transmission information.
[0109] In an embodiment of the present application, when obtaining first transmission information, since the first transmission information includes transmission information from the BNG to the aggregation network and transmission information from the aggregation network to the terminal, the hop-by-hop network transmission quality from the BNG to the terminal can be detected based on the first transmission information. When obtaining second transmission information, since the second transmission information includes transmission information from the terminal to the aggregation network and transmission information from the aggregation network to the BNG, the hop-by-hop network transmission quality from the terminal to the BNG can be detected based on the second transmission information. Furthermore, when obtaining the first and second transmission information, the round-trip hop-by-hop network transmission quality between the BNG and the terminal can be detected based on the first and second transmission information. Optionally, the transmission quality may include the number of packet losses, packet loss rate, latency, or jitter.
[0110] In one possible implementation, the BNG may also record transmission information of the detection request message when sending a detection request message, and record reception information of the detection response message when receiving a detection response message. The transmission information includes at least one of a transmission count and a transmission time, and the reception information includes at least one of a reception count and a reception time. In this case, in addition to detecting the hop-by-hop network transmission quality between the BNG and the terminal based on the first transmission information and the second transmission information, the end-to-end transmission quality between the BNG and the terminal can also be detected based on the transmission information and the reception information. Furthermore, based on the transmission information, the first transmission information, the second transmission information, and the reception information, the transmission quality between the terminal and the BNG, the transmission quality between the terminal and the aggregation network, the transmission quality within the aggregation network, and the transmission quality between the aggregation network and the BNG can be detected.
[0111] Exemplarily, the first transmission information includes a first input time and a first output time, the second transmission information includes a second input time and a second output time, the first round-trip delay between the terminal and the aleaf side of the aggregation network is calculated as the time difference between the second input time and the first output time, the second round-trip delay between the terminal and the sleaf side of the aggregation network is calculated as the time difference between the second output time and the first input time, the third round-trip delay between the terminal and the BNG is calculated as the time difference between the receiving time and the sending time, then the fourth round-trip delay between the sleaf side of the aggregation network and the BNG is the time difference between the third round-trip delay and the second round-trip delay, and the fifth round-trip delay between the aleaf side of the aggregation network and the seaf side of the aggregation network is the time difference between the second round-trip delay and the first round-trip delay.
[0112] If the keepalive detection mechanism configured in the terminal is disabled and the sending of keepalive detection messages corresponding to the keepalive detection mechanism to the terminal is stopped before the BNG sends the detection request message to the terminal, then after detecting the transmission quality of the hop-by-hop network between the BNG and the terminal based on the first transmission information and / or the second transmission information, the keepalive detection mechanism configured in the terminal may be restarted and the keepalive detection messages corresponding to the keepalive detection mechanism may be continued to be sent to the terminal, thereby restoring the original implementation of the keepalive detection mechanism.
[0113] In the method provided in the embodiments of the present application, since the first transmission information and / or second transmission information obtained is transmission information of the hop-by-hop network between the BNG and the terminal, the transmission quality of the hop-by-hop network between the BNG and the terminal can be detected based on the first transmission information and / or the second transmission information. This means that the transmission quality between the terminal and the converged network can be detected, as well as the transmission quality between the converged network and the BNG, thereby obtaining the hop-by-hop transmission quality between the BNG and the terminal. In the event of a network failure, the hop-by-hop transmission quality can be used to quickly determine whether the network failure occurred between the terminal and the converged network, within the converged network, between the converged network and the BNG, or within the BNG. Furthermore, this method does not require terminal cooperation and is unaffected by terminal configuration or the presence of service traffic on the terminal. It offers high operational efficiency and is simple and quick to implement.
[0114] Taking the method executed by a network edge node in a converged network as an example, at least one network including the converged network is used to connect the terminal and the BNG. Referring to Figure 10, Figure 10 is a flowchart of another transmission quality detection method provided in an embodiment of the present application. As shown in Figure 10, the transmission quality detection method includes the following steps 1001-1003.
[0115] Step 1001: If the received message meets the detection request conditions, determine that the received message is a detection request message sent by the BNG to the terminal. If the network edge node is located on the side of the aggregation network close to the BNG, record the transmission information from the BNG to the aggregation network in the first transmission information. If the network edge node is located on the side of the aggregation network close to the terminal, record the transmission information from the aggregation network to the terminal in the first transmission information.
[0116] In an embodiment of the present application, the detection request condition is used to identify a detection request message. Optionally, the detection request condition may include a destination address of the terminal and a message type of request message. The detection request condition enables the network edge node to identify the detection request message and, based on the detection request message, record transmission information from the BNG to the converged network or from the converged network to the terminal.
[0117] Step 1002: If the received message meets the detection response condition, determine that the received message is a detection response message sent by the terminal to the BNG. If the network edge node is located on the side of the aggregation network close to the terminal, record the transmission information from the terminal to the aggregation network in the second transmission information. If the network edge node is located on the side of the aggregation network close to the BNG, record the transmission information from the aggregation network to the BNG in the second transmission information.
[0118] In an embodiment of the present application, the detection response condition is used to identify the detection response message. Optionally, the detection response condition may include a source address of the terminal and a message type of a response message. The detection response condition enables the network edge node to identify the detection response message and, based on the detection response message, record transmission information from the terminal to the aggregation network or from the aggregation network to the BNG.
[0119] Step 1003: If the received message meets the collection request conditions, determine that the received message is a collection request message sent by the BNG, and send the recorded transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG to the BNG based on the collection request message.
[0120] In an embodiment of the present application, a collection request condition is used to identify a collection request message. Optionally, the collection request condition includes that the destination address is a reference multicast address, the message type is a request message, and the reference multicast address includes the address of the network node in the BD corresponding to the terminal. The collection request condition enables the network edge node to identify the collection request message, and then can return the recorded transmission information from the terminal to the aggregation network, the transmission information from the aggregation network to the BNG, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG to the BNG based on the collection request message. Optionally, when the network edge node receives the collection request message, if the local record has the transmission information to be collected by the collection request message, it generates and returns a collection response message to the BNG; optionally, if there is no record of the transmission information to be collected by the collection request message, no processing is performed, for example, the collection request message is directly discarded.
[0121] For example, based on the three different protocols used by the above-mentioned terminals, the network edge node in the BD domain where the terminal is located enables the transmission quality detection method provided by the embodiment of the present application, and the forwarding plane of the network edge node that enables this method can be configured with the following 9 packet capture rules. The forwarding plane can match the message with the 9 packet capture rules every time it receives or sends a message, and copy the message that matches any of the 9 packet capture rules to the control plane of the network edge node. Among them, the effective time of the packet capture rule can be flexibly configured. For example, if the effective time of the packet capture rule is 30 minutes, the forwarding plane will perform packet capture according to the following 9 packet capture rules within 30 minutes after the method is enabled. After more than 30 minutes, the 9 packet capture rules will become invalid, and the forwarding plane will no longer perform packet capture according to the following 9 packet capture rules.
[0122] The nine packet capture rules include: Rule 1: The destination MAC address is the terminal's MAC address, and the message type is an LCP echo request message; Rule 2: The source MAC address is the terminal's MAC address, and the message type is an LCP echo replay message; Rule 3: The destination MAC address is the terminal's MAC address, and the message type is an ARP request message; Rule 4: The source MAC address is the terminal's MAC address, and the message type is an ARP reply message; Rule 5: The destination MAC address is the terminal's MAC address, and the message type is an ICMP request message, that is, the code field of the message is 135; Rule 6: The destination MAC address is the terminal's MAC address, and the message type is an ICMP reply message, that is, the code field of the message is 136; Rule 7: The destination MAC address is the reference multicast MAC address, and the message type corresponds to PPPoE; Rule 8: The destination MAC address is the reference multicast MAC address, and the message type corresponds to the ARP protocol; Rule 9: The destination MAC address is the reference multicast MAC address, and the message type corresponds to ICMP.
[0123] Among them, rules 1, 3 and 5 correspond to the detection request conditions in the embodiment of the present application, rules 2, 4 and 6 correspond to the detection response conditions in the embodiment of the present application, and rules 7, 8 and 9 correspond to the collection request conditions in the embodiment of the present application. After the forwarding plane copies the message that matches any of the 9 packet capture rules and sends it to the control plane, the control plane receives the sent message and distinguishes whether the message is a detection message or a collection request message based on whether the destination MAC is multicast or unicast. If it is a detection message, it further distinguishes whether it is a detection request message or a detection response message based on the type identifier in the detection message.
[0124] For detection request messages, record the message count and timestamp of the detection request messages entering the converged network, as well as the first input count and the first input time, and record the message count and timestamp of the detection request messages entering the converged network, as well as the first output count and the first output time; for detection response messages, record the message count and timestamp of the detection response messages entering the converged network, as well as the second input count and the second input time, and record the message count and timestamp of the detection response messages entering the converged network, as well as the second output count and the second output time. Among them, the IDs of the detection request messages corresponding to the same terminal in the same direction are all counted cumulatively starting from 1, and the IDs of the detection response messages corresponding to the same terminal in the same direction are all counted cumulatively starting from 1. For example, the ID of the first detection request message entering the converged network to the terminal is counted starting from 1, and the IDs of subsequent detection request messages of the same type entering the converged network to the terminal are incremented in sequence.
[0125] In an embodiment of the present application, after recording the corresponding first transmission information and / or second transmission information, the network edge node will perform aging processing on the cache recording the first transmission information and / or second transmission information. Optionally, an aging time is set for the cache recording the first transmission information and / or the second transmission information. If the aging time is exceeded, the cached first transmission information and / or the second transmission information will be deleted. The aging time can start timing after receiving the first acquisition request message, or after sending the first acquisition response message. The embodiment of the present application does not limit the conditions for starting the aging time. Among them, the aging time can be set according to experience or flexibly adjusted according to the application scenario. For example, the aging time is 5 minutes. In addition, within the aging time, the cache recording the first transmission information and / or the second transmission information can also be manually cleared, or the cache recording the first transmission information and / or the second transmission information can be cleared by the deletion operation of the packet capture rule.
[0126] In one possible implementation, a collection request message includes a TLV field, where the type field in the TLV field indicates whether the collection request message is used to obtain transmission information from the BNG to the converged network, transmission information from the converged network to the terminal, transmission information from the terminal to the converged network, or transmission information from the converged network to the BNG. For example, collection request message 1 includes TLV field 1, where the type field in TLV field 1 indicates that the message is used to obtain transmission information from the BNG to the converged network; collection request message 2 includes TLV field 2, where the type field in TLV field 1 indicates that the message is used to obtain transmission information from the converged network to the terminal; collection request message 3 includes TLV field 3, where the type field in TLV field 3 indicates that the message is used to obtain transmission information from the terminal to the converged network; and collection request message 4 includes TLV field 4, where the type field in TLV field 4 indicates that the message is used to obtain transmission information from the converged network to the BNG.
[0127] In this case, the network edge node sends the BNG transmission information from the BNG to the converged network, the transmission information from the converged network to the terminal, the transmission information from the terminal to the converged network, or the transmission information from the converged network to the BNG based on the collection request message. The method includes: changing the destination address of the collection response message to the source address of the collection request message, changing the source address of the collection request message to the address of the network edge node, changing the message type of the collection request message to a response message, adding the transmission information from the BNG to the converged network, the transmission information from the converged network to the terminal, the transmission information from the terminal to the converged network, or the transmission information from the converged network to the BNG to the value field of the TLV field to obtain a collection response message corresponding to the collection request message; and sending the collection response message to the BNG. Modifying the received collection request message to obtain the collection response message, and returning the recorded transmission information to the BNG by sending the collection response message provides an implementation method for a network edge node to return recorded transmission information to the BNG.
[0128] For example, for the eight types of TLVs that may be carried by the above-mentioned collection request message, if the TLV carried by the collection request message is type 1 to type 4, the value field is filled with the corresponding message count according to the TLV type, and a collection response message carrying the message count is generated and sent. The message count corresponding to type 1 is the first input count, the message count corresponding to type 2 is the first output count, the message count corresponding to type 3 is the second input count, and the message count corresponding to type 4 is the second output count. If the TLV carried by the collection request message is type 5 to type 8, the value field is filled with the corresponding timestamp according to the id included in the value field of the TLV type. One TLV includes one id, and one id corresponds to one message. After the timestamps are filled for the ids in all TLVs, a collection response message carrying the timestamp is generated and sent. The timestamp corresponding to type 4 is the first input time, the timestamp corresponding to type 6 is the first output time, the timestamp corresponding to type 7 is the second input time, and the timestamp corresponding to type 8 is the second output time.
[0129] Compared to the collection request message, the collection reply message uses the system MAC address of the network edge node as the source MAC address and the destination MAC address as the source MAC address of the collection request message. The message type is changed from request to reply. For example, in PPPoE LCP echo request messages, the code field value is changed to reply type; in IPOE V4 ARP request messages, the op field value is changed to reply type; and in IPOE V6 NS messages, the code field value is changed to 136, indicating an NA message.
[0130] In this method, the network edge node can record and return transmission information from the BNG to the aggregation network, from the aggregation network to the terminal, from the terminal to the aggregation network, or from the aggregation network to the BNG, allowing the BNG to obtain first transmission information and / or second transmission information. Because the first transmission information and / or second transmission information are hop-by-hop network transmission information between the BNG and the terminal, the BNG can detect the hop-by-hop transmission quality between the BNG and the terminal based on the first transmission information and / or second transmission information. This means that the BNG can detect both the transmission quality between the terminal and the aggregation network and the transmission quality between the aggregation network and the BNG. Furthermore, in the event of a network failure, the hop-by-hop transmission quality can be used to quickly determine whether the failure occurred between the terminal and the aggregation network, within the aggregation network, between the aggregation network and the BNG, or within the BNG itself. Furthermore, this method does not require terminal cooperation and is unaffected by terminal configuration or the presence of service traffic on the terminal, resulting in high operational efficiency and simple and quick implementation.
[0131] The following example illustrates the method of interactive execution of the method by BNG, the first network edge node, the second network edge node, the third network edge node, the fourth network edge node, and the terminal. As shown in Figure 11, the transmission quality of the hop-by-hop network between BNG and terminal 1 is detected as an example. Among them, the BD where terminal 1 is located is configured with user-check usermac <xx-xx-xx>enable[timeout <x>][multicast-mac <xx-xx-xx>] command to issue the above 9 packet capture rules to the interface bound to this BD. Optionally, set the timeout period of the 9 packet capture rules to 30 minutes. The reference multicast MAC range is 01-00-5e-00-00-00 to 01-00-5e-00-00-ff. For example, 1-00-5e-01-01-01 is used by default. On BNG, execute ping user user-ip XXXX[–vpnname <vpnname>][-count <number>][-interval <time>The [-pri<0-7>][-len<0-1400>] command sets user information for terminal 1 to be tested, including its private IP address and VPN, as well as packet parameters such as the number of packets sent, interval, and length. Terminal 1 is then located based on the entered user information. Based on the protocol type of terminal 1, the normal keepalive detection mechanism for terminal 1 is first disabled. Furthermore, the BNG starts monitoring the transmission quality of terminal 1.
[0132] S1: The BNG sends a detection request message according to the packet parameters. Each time a detection request message is sent, the sending count and sending time are recorded.
[0133] S2, the sleaf1 node determines that the detection request message has been received according to the packet capture rule, and then records the first input count and the first input time of the detection request message for the inbound direction according to the detection request message. The sleaf1 node corresponds to the first network edge node.
[0134] Taking PPPoE as an example, if the sleaf1 node captures an LCEP echo request packet in the inbound direction of the interface, the node increments the first input count and the first input time. Each time an LCEP echo request packet is captured, the first input count is incremented by 1. For example, each time an LCEP echo request packet is captured, the node adds a record as shown in Table 1, where the message ID corresponds to the first input count and the timestamp corresponds to the first input time.
[0135] Table 1
[0136] S3, the aleaf1 node determines that the detection request message has been received according to the packet capture rule, and then records the first output count and the first output time of the detection request message for the outbound direction according to the detection request message. The aleaf1 node corresponds to the second network edge node.
[0137] Taking PPPoE as an example, if aleaf1 captures an LCEP echo request packet in the outbound direction of the interface, the node increments the first output count and the first output time. Each time an LCEP echo request packet is captured, the first output count is incremented by 1. For example, each time an LCEP echo request packet is captured, the node adds a record as shown in Table 2, where the packet ID corresponds to the first output count and the timestamp corresponds to the first output time.
[0138] Table 2
[0139] S4, after receiving the detection request message, terminal 1 returns a detection response message based on the detection request message.
[0140] S5, the aleaf2 node determines that the detection response message has been received according to the packet capture rule, and then records the second input count and the second input time of the detection response message for the inbound direction according to the detection response message. The aleaf2 node corresponds to the third network edge node.
[0141] Taking PPPoE as an example, if aleaf2 captures an LCEPhoA replay message in the inbound direction of the interface, the node increments the second input count and the second input time. Each time an LCEPhoA replay message is captured, the second input count is incremented by 1. For example, each time an LCEPhoA request message is captured, the node adds a record as shown in Table 3, where the message ID corresponds to the second input count and the timestamp corresponds to the second input time.
[0142] Table 3
[0143] S6, the sleaf2 node determines that the detection request message has been received according to the packet capture rule, and then records the second output count and the second output time of the detection request message for the outbound direction according to the detection request message. The sleaf2 node corresponds to the fourth network edge node.
[0144] Taking PPPoE as an example, if the sleaf2 node captures an LCEP echo replay packet in the outbound direction of the interface, the node increments the second output count and the second output time. Each time an LCEP echo replay packet is captured, the second output count increments by 1. For example, each time an LCEP echo replay packet is captured, the node adds a record as shown in Table 4, where the packet ID corresponds to the second output count and the timestamp corresponds to the second output time.
[0145] Table 4
[0146] S7: The BNG receives a detection response message and records the reception count and reception time for each detection response message received.
[0147] In an embodiment of the present application, after the BNG completes sending the set number of detection request messages, it calculates the end-to-end packet loss rate based on the recorded sending count and receiving count, and the end-to-end packet loss rate = (sending count - receiving count) / sending count; the end-to-end delay is calculated based on the sending time of the detection request message and the receiving time of the detection response message corresponding to the detection request message, and the end-to-end delay = the receiving time of the detection response message - the sending time of the detection request message.
[0148] S8, after sending the detection request message for completing the set number of packets sent, the BNG sends a collection request message for obtaining corresponding transmission information.
[0149] Each collection request message includes at least one type of TLV, each type of TLV being used to obtain a type of transmission information. The eight types of TLVs are described above and are not further elaborated here. For example, when the end-to-end packet loss rate is 0, the BNG sequentially sends eight collection request messages of type 1 to type 8. When the end-to-end packet loss rate is greater than 0, the BNG sequentially sends four collection request messages of type 1 to type 4. Optionally, after sending a set number of detection request messages, the collection request message can be sent with a delay of a reference time, allowing the detection band message to be transmitted within the delayed reference time. The reference time can be flexibly defined based on the application scenario; for example, the reference time can be 5 seconds.
[0150] Because the length of the corresponding collection response message for type 5 through type 8 collection request messages is limited, the number of timestamps that each collection response message can carry is also restricted. For example, using the collection request message of an existing protocol as an example, for PPPoE and IPOE V6, a collection response message can collect timestamps corresponding to 100 message IDs at a time; while for IPOE V4, a collection response message can only collect timestamps corresponding to two message IDs at a time. If timestamps corresponding to more message IDs need to be collected, the BNG needs to send more collection request messages.
[0151] In step S9, the sleaf1, aleaf1, aleaf2, or sleaf2 node determines, based on the packet capture rules, that it has received the collection request message. It then determines the transmission information to collect based on the TLV type in the collection request message. If the local cache contains the transmission information corresponding to the TLV type, it adds the transmission information to the value field of the TLV and returns a collection response message. If the local cache does not contain the transmission information corresponding to the TLV type, it discards the information and does not respond with a collection response message.
[0152] S10, the BNG receives collection response messages returned by the sleaf1 node, the aleaf1 node, the aleaf2 node, and the sleaf2 node respectively, obtains first transmission information and second transmission information according to the transmission information carried in the collection response messages, and calculates the transmission quality of the hop-by-hop network between terminal 1 and the BNG based on the first transmission information and the second transmission information.
[0153] Taking transmission quality, including packet loss rate, as an example, for collection response messages of TLVs type 1 through type 4, the recording node is determined based on the source MAC address of the collection response message. The recording node, data type (type), and message count (count) are summarized and displayed, as shown in Table 5. Table 5 shows that no packet loss occurs on any hop between the BNG and Terminal 1, and the packet loss rate is 0.
[0154] Table 5
[0155] Taking transmission quality including latency as an example, for collection response messages of type 5 to type 8 TLVs, the recording node is determined based on the source MAC address of the collection response message. The recording node, data type (type), message ID, and timestamp are saved. After obtaining the send time, first input time, first output time, second input time, second output time, and receive time corresponding to different message IDs, the end-to-end latency, network sleaf-side latency, and network aleaf-side latency are calculated and summarized, as shown in the latency statistics summary table in Table 6. The end-to-end latency corresponds to the third round-trip latency between the terminal and the BNG, the network sleaf-side latency corresponds to the fourth round-trip latency between the aggregation network sleaf side and the BNG, and the network aleaf-side latency corresponds to the first round-trip latency between the terminal and the aggregation network aleaf side.
[0156] Table 6
[0157] In the embodiment of the present application, the implementation of the above steps 1 to 10 can refer to the implementation of the method shown in Figure 2 or Figure 10, and will not be repeated here. Therefore, through the above steps 1 to 10, the BNG can detect the transmission quality of the hop-by-hop network between the BNG and the terminal. When the user terminal prohibits PING, the method provided in the embodiment of the present application can be used to end-to-end demarcate the connection and disconnection of the terminal. By detecting the transmission quality of the hop-by-hop network, such as packet loss rate and latency, it can be quickly demarcated whether the problem is in the access network, the aggregation network, or the BNG gateway. This method does not require the cooperation of the end user, has high operation and maintenance efficiency, is simple and fast to use, and improves the demarcation and recovery speed of end-to-end faults.
[0158] The above describes the transmission quality detection method of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a transmission quality detection device. Figure 12 is a structural schematic diagram of a transmission quality detection device provided by an embodiment of the present application. Based on the following multiple modules shown in Figure 12, the transmission quality detection device shown in Figure 12 can perform all or part of the operations of the method shown in Figure 2 or Figure 10. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown therein, and the embodiment of the present application is not limited to this. As shown in Figure 12, the device includes:
[0159] The transceiver module 1201 is configured to perform the reception and / or transmission related operations performed by the BNG in the method shown in FIG2 , or to perform other operations other than the reception and / or transmission related operations performed by the network edge node in the method shown in FIG10 ;
[0160] The processing module 1202 is used to perform other operations other than the reception and / or transmission related operations performed by the BNG in the method shown in Figure 2, or to perform other operations other than the reception and / or transmission related operations performed by the network edge node in the method shown in Figure 10.
[0161] In a possible implementation, the transceiver module includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.
[0162] When the transmission quality detection device shown in Figure 12 is applied to the BNG in the method shown in Figure 2, the transceiver module 1201 is used to obtain first transmission information and / or second transmission information, where the first transmission information includes transmission information from the BNG to the aggregation network and transmission information from the aggregation network to the terminal. The transmission information from the BNG to the aggregation network is recorded by a first network edge node close to the BNG side in the aggregation network, and the transmission information from the aggregation network to the terminal is recorded by a second network edge node close to the terminal side in the aggregation network. The second transmission information includes transmission information from the terminal to the aggregation network and transmission information from the aggregation network to the BNG. The transmission information from the terminal to the aggregation network is recorded by a third network edge node close to the terminal side in the aggregation network, and the transmission information from the aggregation network to the BNG is recorded by a fourth network edge node close to the BNG side in the aggregation network. The processing module 1202 is used to detect the transmission quality of the hop-by-hop network between the BNG and the terminal based on the first transmission information and / or the second transmission information.
[0163] In one possible implementation, the transceiver module 1201 is configured to send a detection request message to the terminal, the detection request message triggering the first network edge node to record the transmission information from the BNG to the aggregation network, and triggering the second network edge node to record the transmission information from the aggregation network to the terminal; sending a first collection request message to the aggregation network, receiving the transmission information from the BNG to the aggregation network returned by the first network edge node based on the first collection request message, and receiving the transmission information from the aggregation network to the terminal returned by the second network edge node based on the first collection request message.
[0164] In one possible implementation, the transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time of the detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time of the detection request message exiting the aggregation network.
[0165] In one possible implementation, the transceiver module 1201 is configured to receive a detection response message returned by the terminal based on the detection request message, wherein the detection response message triggers the third network edge node to record the transmission information from the terminal to the aggregation network, and triggers the fourth network edge node to record the transmission information from the aggregation network to the BNG; send a second collection request message to the aggregation network, receive the transmission information from the terminal to the aggregation network returned by the third network edge node based on the second collection request message, and receive the transmission information from the aggregation network to the BNG returned by the fourth network edge node based on the second collection request message.
[0166] In one possible implementation, the transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time for the detection response message to enter the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time for the detection response message to exit the aggregation network.
[0167] In one possible implementation, the processing module 1202 is further used to record the sending information of the detection request message and the receiving information of the detection response message, the sending information includes at least one of the sending count and the sending time, and the receiving information includes at least one of the receiving count and the receiving time; based on the sending information, the first transmission information, the second transmission information and the receiving information, the transmission quality of the hop-by-hop network between the BNG and the terminal is detected.
[0168] In one possible implementation, the first acquisition request message includes a first TLV field, and the type field in the first TLV field indicates that the first acquisition request message is used to obtain transmission information from the BNG to the aggregation network or transmission information from the aggregation network to the terminal; the second acquisition request message includes a second TLV field, and the type field in the second TLV field indicates that the second acquisition request message is used to obtain transmission information from the terminal to the aggregation network or transmission information from the aggregation network to the BNG.
[0169] In a possible implementation, the protocol type of the terminal is PPPOE, and the detection request message and the first collection request message are both echo request messages of LCP; or, the protocol type of the terminal is IPOE V4, and the detection request message and the first collection request message are both ARP request messages of ARP; or, the protocol type of the terminal is IPOE V6, and the detection request message and the first collection request message are both NS messages of the ND protocol.
[0170] In one possible implementation, the transceiver module 1201 is configured to send a detection request message to the terminal according to the packet sending parameters, where the packet sending parameters include at least one of the packet sending frequency, packet sending quantity, packet sending time interval, message length, and message priority, and the message priority corresponds to the priority of the terminal.
[0171] In a possible implementation, the processing module 1202 is further configured to disable a keep-alive detection mechanism configured for the terminal, and stop sending keep-alive detection messages corresponding to the keep-alive detection mechanism to the terminal.
[0172] In a possible implementation, the processing module 1202 is further configured to restart the keep-alive detection mechanism configured for the terminal, and continue to send keep-alive detection messages corresponding to the keep-alive detection mechanism to the terminal.
[0173] In the case where the transmission quality detection device shown in FIG12 is applied to the network edge node in the method shown in FIG10, the processing module 1202 is used to determine that the received message is a detection request message sent by the BNG to the terminal when the received message meets the detection request condition, and if the network edge node is located on the side of the convergence network close to the BNG, record the transmission information from the BNG to the convergence network in the first transmission information; if the network edge node is located on the side of the convergence network close to the terminal, record the transmission information from the convergence network to the terminal in the first transmission information; if the received message meets the detection response condition, determine that the received message is a detection request message sent by the terminal to the BNG. The detection response message records the transmission information from the terminal to the aggregation network in the second transmission information if the network edge node is located on the side of the aggregation network close to the terminal; if the network edge node is located on the side of the aggregation network close to the BNG, the transmission information from the aggregation network to the BNG in the second transmission information is recorded; the transceiver module 1201 is used to determine that the received message is a collection request message sent by the BNG when the received message meets the collection request condition, and send the recorded transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG to the BNG based on the collection request message.
[0174] In one possible implementation, the detection request condition includes that the destination address is the address of the terminal and the message type is a request message; the detection response condition includes that the source address is the address of the terminal and the message type is a response message; the collection request condition includes that the destination address is a reference multicast address, the message type is a request message, and the reference multicast address includes the address of a network node within the BD corresponding to the terminal.
[0175] In one possible implementation, the transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time of a detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time of a detection request message exiting the aggregation network; the transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time of a detection response message entering the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time of a detection response message exiting the aggregation network.
[0176] In a possible implementation, the protocol type of the terminal is PPPOE, and the detection request message and the collection request message are both LCP return request messages; or, the protocol type of the terminal is IPOE V4, and the detection request message and the collection request message are both ARP request messages of ARP; or, the protocol type of the terminal is IPOE V6, and the detection request message and the collection request message are both NS messages of the ND protocol.
[0177] In one possible implementation, the collection request message includes a TLV field, where the type field in the TLV field indicates that the collection request message is used to obtain transmission information from the BNG to the aggregation network, transmission information from the aggregation network to the terminal, transmission information from the terminal to the aggregation network, or transmission information from the aggregation network to the BNG. The processing module 1202 is configured to change the destination address of the collection response message to the source address of the collection request message, change the source address of the collection request message to the address of the network edge node, change the message type of the collection request message to a response message, and add the transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG to the value field of the TLV field to obtain a collection response message corresponding to the collection request message. The transceiver module 1201 is configured to send the collection response message to the BNG.
[0178] It should be understood that the device provided in FIG12 is only illustrated by the division of the above-mentioned functional modules when realizing its functions. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here. The beneficial effects of the device provided in FIG12 can be referred to the beneficial effects of the method shown in FIG2 or FIG10, and will not be repeated here.
[0179] Referring to Figure 13 , Figure 13 shows a schematic diagram of the structure of a network device 2000 provided in an exemplary embodiment of the present application. The network device 2000 shown in Figure 13 is used to perform the operations involved in the transmission quality detection method shown in Figure 2 or Figure 10 . The network device 2000 is, for example, a switch, a router, etc., and can be implemented using a general bus architecture.
[0180] As shown in FIG. 13 , the network device 2000 includes at least one processor 2001 , a memory 2003 , and at least one communication interface 2004 .
[0181] The processor 2001 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute the various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present invention. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0182] Optionally, network device 2000 also includes a bus. The bus is used to transmit information between the various components of network device 2000. The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses can be categorized as address buses, data buses, control buses, and the like. For ease of illustration, FIG13 shows only one line, but this does not imply that there is only one bus or only one type of bus.
[0183] The memory 2003 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2003 is, for example, independent and connected to the processor 2001 via a bus. The memory 2003 can also be integrated with the processor 2001.
[0184] The communication interface 2004 uses any transceiver-like device for communicating with other devices or communication networks. The communication network can be Ethernet, a radio access network (RAN), or a wireless local area network (WLAN). The communication interface 2004 can include a wired communication interface or a wireless communication interface. Specifically, the communication interface 2004 can be an Ethernet interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a wireless local area network (WLAN) interface, a cellular network communication interface, or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. In the embodiment of the present application, the communication interface 2004 can be used for the network device 2000 to communicate with other devices.
[0185] In a specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG13 . Each of these processors may be a single-core CPU processor or a multi-core CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0186] In a specific implementation, as an embodiment, the network device 2000 may include multiple processors, such as the processor 2001 and the processor 2005 shown in Figure 13. Each of these processors may be a single-core CPU or a multi-core CPU. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0187] In a specific implementation, as an embodiment, the network device 2000 may further include an output device and an input device. The output device communicates with the processor 2001 and can display information in a variety of ways. For example, the output device can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 2001 and can receive user input in a variety of ways. For example, the input device can be a mouse, a keyboard, a touch screen device, or a sensor device.
[0188] In some embodiments, the memory 2003 is used to store program code 2010 for executing the solution of the present application, and the processor 2001 can execute the program code 2010 stored in the memory 2003. That is, the network device 2000 can implement the transmission quality detection method provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003. The program code 2010 may include one or more software modules. Optionally, the processor 2001 itself may also store program code or instructions for executing the solution of the present application.
[0189] In a specific embodiment, the network device 2000 of the embodiment of the present application may correspond to the BNG in the above-mentioned method embodiments. The processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that the network device 2000 shown in Figure 13 can execute all or part of the operations performed by the BNG.
[0190] Specifically, the processor 2001 is used to obtain first transmission information and / or second transmission information, the first transmission information includes transmission information from the BNG to the aggregation network and transmission information from the aggregation network to the terminal, the transmission information from the BNG to the aggregation network is recorded by the first network edge node close to the BNG side in the aggregation network, and the transmission information from the aggregation network to the terminal is recorded by the second network edge node close to the terminal side in the aggregation network, the second transmission information includes transmission information from the terminal to the aggregation network and transmission information from the aggregation network to the BNG, the transmission information from the terminal to the aggregation network is recorded by the third network edge node close to the terminal side in the aggregation network, and the transmission information from the aggregation network to the BNG is recorded by the fourth network edge node close to the BNG side in the aggregation network; based on the first transmission information and / or the second transmission information, the transmission quality of the hop-by-hop network between the BNG and the terminal is detected.
[0191] For the sake of brevity, other optional implementations will not be described here in detail.
[0192] For another example, the network device 2000 in an embodiment of the present application may correspond to the network edge node in the above-mentioned method embodiments. The processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that the network device 2000 shown in Figure 13 can execute all or part of the operations performed by the network edge node.
[0193] Specifically, the processor 2001 is configured to, if a received message meets a detection request condition, determine that the received message is a detection request message sent by the BNG to the terminal; if the network edge node is located on a side of the aggregation network close to the BNG, record the transmission information from the BNG to the aggregation network in the first transmission information; if the network edge node is located on a side of the aggregation network close to the terminal, record the transmission information from the aggregation network to the terminal in the first transmission information; if the received message meets a detection response condition, determine that the received message is a detection response message sent by the terminal to the BNG; if the network edge node is located on a side of the aggregation network close to the terminal, record the transmission information from the terminal to the aggregation network in the second transmission information; if the network edge node is located on a side of the aggregation network close to the BNG, record the transmission information from the aggregation network to the BNG in the second transmission information; if the received message meets a collection request condition, determine that the received message is a collection request message sent by the BNG, and send the recorded transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG to the BNG based on the collection request message.
[0194] For the sake of brevity, other optional implementations will not be described here in detail.
[0195] The network device 2000 may also correspond to the transmission quality detection apparatus shown in FIG12 , and each functional module in the transmission quality detection apparatus is implemented using software of the network device 2000. In other words, the functional modules included in the transmission quality detection apparatus are generated by the processor 2001 of the network device 2000 after reading the program code 2010 stored in the memory 2003.
[0196] Among them, each step of the transmission quality detection method shown in Figure 2 or Figure 10 is completed by the hardware integrated logic circuit or software instructions in the processor of the network device 2000. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0197] Referring to Figure 14, Figure 14 shows a schematic diagram of the structure of a network device 2100 provided in another exemplary embodiment of the present application. The network device 2100 shown in Figure 14 is used to perform all or part of the operations involved in the transmission quality detection method shown in Figure 2 or Figure 10. The network device 2100 is, for example, a switch, a router, etc., and the network device 2100 can be implemented using a general bus architecture.
[0198] As shown in FIG. 14 , the network device 2100 includes a main control board 2110 and an interface board 2130 .
[0199] The main control board (MCB), also known as the main processing unit (MPU) or route processor card, is used to control and manage various components in network device 2100, including routing calculations, device management, device maintenance, and protocol processing. MCB 2110 includes a central processing unit (CPU) 2111 and memory 2112.
[0200] Interface board 2130 is also known as a line processing unit (LPU), line card, or service board. It provides various service interfaces and implements data packet forwarding. Service interfaces include, but are not limited to, Ethernet interfaces and POS (Packet over SONET / SDH) interfaces. Ethernet interfaces, for example, are Flexible Ethernet Clients (FlexE Clients) interfaces. Interface board 2130 includes a central processing unit (CPU) 2131, a network processor (NPU) 2132, a forwarding table memory 2134, and a physical interface card (PIC) 2133.
[0201] The central processing unit 2131 on the interface board 2130 is used to control and manage the interface board 2130 and communicate with the central processing unit 2111 on the main control board 2110 .
[0202] The network processor 2132 is used to implement message forwarding processing. The network processor 2132 can be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented using an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 2132 is used to forward received messages based on the forwarding table stored in the forwarding entry memory 2134. If the destination address of the message is the address of the network device 2100, the message is sent to the CPU (such as the central processing unit 2131) for processing. If the destination address of the message is not the address of the network device 2100, the next hop and outgoing interface corresponding to the destination address are searched in the forwarding table based on the destination address, and the message is forwarded to the outgoing interface corresponding to the destination address. The processing of uplink messages may include processing the message inbound interface and forwarding table lookup; the processing of downlink messages may include forwarding table lookup, etc. In some embodiments, the central processing unit may also perform the functions of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, thereby eliminating the need for a forwarding chip in the interface board.
[0203] Physical interface card 2133 implements physical layer interconnection. Raw traffic enters interface board 2130 through this card, and processed packets are sent out from this physical interface card 2133. Physical interface card 2133, also known as a daughter card, can be installed on interface board 2130. It converts optical and electrical signals into packets, performs a validity check on these packets, and then forwards them to network processor 2132 for processing. In some embodiments, central processing unit 2131 can also perform the functions of network processor 2132, such as implementing software forwarding based on a general-purpose CPU, thus eliminating the need for network processor 2132 in physical interface card 2133.
[0204] Optionally, the network device 2100 includes multiple interface boards. For example, the network device 2100 further includes an interface board 2140. The interface board 2140 includes a central processing unit 2141, a network processor 2142, a forwarding table entry memory 2144, and a physical interface card 2143. The functions and implementation of each component in the interface board 2140 are the same as or similar to those of the interface board 2130 and are not described in detail here.
[0205] Optionally, network device 2100 further includes a switching fabric board 2120. Switching fabric board 2120 may also be referred to as a switch fabric unit (SFU). If network device 2100 includes multiple interface boards, switching fabric board 2120 is used to exchange data between the interface boards. For example, interface board 2130 and interface board 2140 can communicate via switching fabric board 2120.
[0206] The main control board 2110 is coupled to the interface board. For example, the main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane via a system bus to achieve intercommunication. In one possible implementation, an inter-process communication (IPC) channel is established between the main control board 2110 and the interface boards 2130 and 2140, and communication is performed between the main control board 2110 and the interface boards 2130 and 2140 via the IPC channel.
[0207] Logically, network device 2100 includes a control plane and a forwarding plane. The control plane includes a main control board 2110 and a central processing unit (CPU) 2111. The forwarding plane includes various components that perform forwarding, such as a forwarding table entry memory 2134, physical interface cards 2133, and a network processor 2132. The control plane performs routing functions, generates forwarding tables, processes signaling and protocol messages, and configures and maintains the network device's status. The control plane sends the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 2132 forwards messages received by the physical interface card 2133 based on the forwarding tables sent by the control plane. The forwarding tables sent by the control plane can be stored in the forwarding table entry memory 2134. In some embodiments, the control plane and forwarding plane can be completely separate and not located on the same network device.
[0208] It's worth noting that there may be one or more main control boards (SPUs), which can include both active and standby SPUs. There may also be one or more interface boards. The higher the network device's data processing capabilities, the more interface boards it provides. Interface boards can also have one or more physical interface cards. There may be no SPUs, one or more SPUs, and multiple SPUs can provide load balancing and redundancy. In a centralized forwarding architecture, network devices may not require SPUs; the interface boards handle service data processing for the entire system. In a distributed forwarding architecture, network devices may have at least one SPU, which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Therefore, network devices with distributed architectures have greater data access and processing capabilities than those with centralized architectures. Alternatively, a network device can consist of a single card, without a switching fabric board (SFB), integrating the functions of the interface board and the main control board. In this case, the central processing unit (CPU) on the interface board and the CPU on the main control board can be combined into a single CPU on this card, performing the combined functions of the two. This type of network device has lower data exchange and processing capabilities (for example, low-end network devices such as switches or routers). The specific architecture used depends on the specific network deployment scenario and is not specified here.
[0209] In a specific embodiment, the network device 2100 corresponds to the transmission quality detection device shown in Figure 12. In some embodiments, the transceiver module 1201 in the transmission quality detection device shown in Figure 12 corresponds to the physical interface card 2133 in the network device 2100, and the processing module 1202 corresponds to the central processing unit 2111 or the network processor 2132 in the network device 2100.
[0210] The present application also provides a transmission quality detection system, comprising a BNG, at least one network edge node in a converged network, and a terminal. The BNG is connected to the terminal via at least one network including the converged network. For example, the BNG is network device 2000 shown in FIG. 13 or network device 2100 shown in FIG. 14 , and the at least one network edge node in the converged network is network device 2000 shown in FIG. 13 or network device 2100 shown in FIG. 14 . The transmission quality detection method performed by the BNG, at least one network edge node in the converged network, and the terminal can be found in the description of the embodiments shown in FIG. 2 or FIG. 10 , and will not be further elaborated here.
[0211] An embodiment of the present application further provides a communication device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via an internal connection path. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and to control the transceiver to send signals. When the processor executes the instructions stored in the memory, the processor performs the method shown in FIG. 2 or FIG. 10 .
[0212] It should be understood that the processor described above may be a CPU, or other general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced Reduced Instruction Set Machine (ARM) architecture.
[0213] Furthermore, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store device type information.
[0214] The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM), which is used as an external cache memory. By way of example and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0215] An embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction is stored. The instruction is loaded and executed by a processor to enable a computer to implement any of the above transmission quality detection methods.
[0216] The embodiments of the present application further provide a computer program (product), which, when executed by a computer, can enable a processor or computer to execute the corresponding steps and / or processes in the above method embodiments.
[0217] An embodiment of the present application also provides a chip, including a processor, for calling and executing instructions stored in a memory from the memory, so that a communication device equipped with the chip executes any of the above transmission quality detection methods.
[0218] An embodiment of the present application also provides another chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute any of the above transmission quality detection methods.
[0219] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive).
[0220] Those skilled in the art will appreciate that the various method steps and modules described in conjunction with the embodiments disclosed herein can be implemented in software, hardware, firmware, or any combination thereof. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0221] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0222] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the method of the embodiment of the present application can be described in the context of a machine executable instruction, and the machine executable instruction is such as included in the program module executed in the device on the real or virtual processor of the target. Generally speaking, a program module includes a routine, a program, a library, an object, a class, a component, a data structure, etc., which performs a specific task or realizes a specific abstract data structure. In various embodiments, the function of the program module can be merged or split between the described program modules. The machine executable instruction for the program module can be executed in a local or distributed device. In a distributed device, the program module can be located in both a local and a remote storage medium.
[0223] The computer program code for realizing the method for the embodiment of the application can be written in one or more programming languages.These computer program codes can be provided to the processor of general-purpose computer, special-purpose computer or other programmable data processing device, so that program code, when being executed by computer or other programmable data processing device, causes the function / operation specified in flow chart and / or block diagram to be implemented.Program code can be executed completely on computer, partly on computer, as independent software package, partly on computer and partly on remote computer or completely on remote computer or server.
[0224] In the context of the embodiments of the present application, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like.
[0225] Examples of signals may include electrical, optical, radio, acoustic or other forms of propagated signals, such as carrier waves, infrared signals, etc.
[0226] A machine-readable medium may be any tangible medium that contains or stores a program for or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0227] Those skilled in the art will clearly understand that, for the sake of convenience and brevity of description, the specific working processes of the above-described systems, devices, and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0228] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or can be electrical, mechanical or other forms of connection.
[0229] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0230] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0231] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0232] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same role and function. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the various examples, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image. The first image and the second image may both be images, and in some cases, may be separate and different images.
[0233] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0234] As used herein, the term "at least one" means one or more, and the term "plurality" means two or more. For example, "plurality of second messages" means two or more second messages. The terms "system" and "network" are often used interchangeably herein.
[0235] It should be understood that the terminology used in the description of the various examples herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0236] It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the listed items. The term "and / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exists simultaneously, or B exists alone. Furthermore, the character " / " in this application generally indicates that the associated objects are in an "or" relationship.
[0237] It will also be understood that the term “comprise” (also known as “includes,” “including,” “comprises,” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0238] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that..." or "if [stated condition or event] is detected" may be interpreted to mean "upon determining that..." or "in response to determining that..." or "upon detecting [stated condition or event]" or "in response to detecting [stated condition or event]," depending on the context.
[0239] It should be understood that determining B based on A does not mean determining B based solely on A. B can also be determined based on A and / or other information.
[0240] It should also be understood that references throughout this specification to "one embodiment," "an embodiment," or "one possible implementation" mean that specific features, structures, or characteristics associated with that embodiment or implementation are included in at least one embodiment of this application. Therefore, the appearance of "in one embodiment," "in an embodiment," or "one possible implementation" throughout this specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0241] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application should be included in the scope of protection of the present application.< / time> < / number> < / vpnname> < / x>
Claims
1. A method for detecting transmission quality, characterized in that: Applied to a broadband network gateway BNG, the BNG is connected to a terminal via at least one network including a converged network, and the method comprises: Acquire first transmission information and / or second transmission information, wherein the first transmission information includes transmission information from the BNG to the converged network and transmission information from the converged network to the terminal, the transmission information from the BNG to the converged network is recorded by a first network edge node in the converged network close to the BNG side, and the transmission information from the converged network to the terminal is recorded by a second network edge node in the converged network close to the terminal side; acquire second transmission information, wherein the second transmission information includes transmission information from the terminal to the converged network and transmission information from the converged network to the BNG, the transmission information from the terminal to the converged network is recorded by a third network edge node in the converged network close to the terminal side, and the transmission information from the converged network to the BNG is recorded by a fourth network edge node in the converged network close to the BNG side; The transmission quality of the hop-by-hop network between the BNG and the terminal is detected based on the first transmission information and / or the second transmission information.
2. The method according to claim 1, characterized in that The obtaining of the first transmission information includes: Sending a detection request message to the terminal, wherein the detection request message triggers the first network edge node to record the transmission information from the BNG to the aggregation network, and triggers the second network edge node to record the transmission information from the aggregation network to the terminal; Send a first collection request message to the aggregation network, receive the transmission information from the BNG to the aggregation network returned by the first network edge node based on the first collection request message, and receive the transmission information from the aggregation network to the terminal returned by the second network edge node based on the first collection request message.
3. The method according to claim 2, characterized in that The transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time of the detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time of the detection request message leaving the aggregation network.
4. The method according to claim 2 or 3, characterized in that: The obtaining of the second transmission information includes: receiving a detection response message returned by the terminal based on the detection request message, wherein the detection response message triggers the third network edge node to record transmission information from the terminal to the aggregation network, and triggers the fourth network edge node to record transmission information from the aggregation network to the BNG; Send a second collection request message to the aggregation network, receive the transmission information from the terminal to the aggregation network returned by the third network edge node based on the second collection request message, and receive the transmission information from the aggregation network to the BNG returned by the fourth network edge node based on the second collection request message.
5. The method according to claim 4, characterized in that The transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time of the detection response message entering the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time of the detection response message leaving the aggregation network.
6. The method according to claim 4 or 5, characterized in that: The method further comprises: Recording sending information of sending the detection request message and receiving information of receiving the detection response message, wherein the sending information includes at least one of a sending count and a sending time, and the receiving information includes at least one of a receiving count and a receiving time; The detecting, based on the first transmission information and the second transmission information, the transmission quality of the hop-by-hop network between the BNG and the terminal comprises: The transmission quality of the hop-by-hop network between the BNG and the terminal is detected based on the sending information, the first transmission information, the second transmission information and the receiving information.
7. The method according to claim 5, characterized in that The first acquisition request message includes a first type, length, and value TLV field, wherein the type field in the first TLV field indicates that the first acquisition request message is used to obtain transmission information from the BNG to the converged network or transmission information from the converged network to the terminal; The second acquisition request message includes a second TLV field, and the type field in the second TLV field indicates that the second acquisition request message is used to obtain transmission information from the terminal to the aggregation network or transmission information from the aggregation network to the BNG.
8. The method according to any one of claims 2 to 7, characterized in that: The protocol type of the terminal is Point-to-Point Protocol over Ethernet (PPPOE), and the detection request message and the first acquisition request message are both echo request messages of Link Control Protocol (LCP); Alternatively, the protocol type of the terminal is Internet Protocol Version 4 (IPOE V4) based on Ethernet, and both the detection request message and the first collection request message are ARP request messages of the Address Resolution Protocol (ARP); Alternatively, the protocol type of the terminal is Internet Protocol Version 6 (IPOE V6) based on Ethernet, and the detection request message and the first collection request message are both neighbor request NS messages of a neighbor discovery ND protocol.
9. The method according to any one of claims 2 to 8, characterized in that: The sending a detection request message to the terminal includes: A detection request message is sent to the terminal according to a packet sending parameter, wherein the packet sending parameter includes at least one of a packet sending frequency, a packet sending quantity, a packet sending time interval, a message length, and a message priority, and the message priority corresponds to the priority of the terminal.
10. The method according to any one of claims 2 to 9, characterized in that: Before sending the detection request message to the terminal, the method further includes: The keep-alive detection mechanism configured for the terminal is disabled, and the keep-alive detection message corresponding to the keep-alive detection mechanism is stopped from being sent to the terminal.
11. The method according to claim 10, characterized in that After detecting the transmission quality of the hop-by-hop network between the BNG and the terminal based on the first transmission information and / or the second transmission information, the method further includes: Restart the keep-alive detection mechanism configured for the terminal, and continue to send the keep-alive detection message corresponding to the keep-alive detection mechanism to the terminal.
12. A method for detecting transmission quality, characterized in that: Applied to a network edge node in a converged network, wherein at least one network including the converged network is used to connect a terminal and a broadband network gateway BNG, the method comprising: In the case where the received message meets the detection request condition, determining that the received message is a detection request message sent by the BNG to the terminal, if the network edge node is located on a side of the aggregation network close to the BNG, recording the transmission information from the BNG to the aggregation network in the first transmission information, if the network edge node is located on a side of the aggregation network close to the terminal, recording the transmission information from the aggregation network to the terminal in the first transmission information; In the case where the received message meets the detection response condition, determine that the received message is a detection response message sent by the terminal to the BNG, if the network edge node is located on a side of the aggregation network close to the terminal, record the transmission information from the terminal to the aggregation network in the second transmission information, if the network edge node is located on a side of the aggregation network close to the BNG, record the transmission information from the aggregation network to the BNG in the second transmission information; In the case that the received message meets the collection request condition, it is determined that the received message is a collection request message sent by the BNG, and based on the collection request message, the recorded transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG is sent to the BNG.
13. The method according to claim 12, characterized in that The detection request condition includes that the destination address is the address of the terminal and the message type is a request message; the detection response condition includes that the source address is the address of the terminal and the message type is a response message; the collection request condition includes that the destination address is a reference multicast address and the message type is a request message, and the reference multicast address includes the address of a network node within the broadcast domain bridge domain BD corresponding to the terminal.
14. The method according to claim 12 or 13, characterized in that The transmission information from the BNG to the aggregation network includes at least one of a first input count and a first input time of the detection request message entering the aggregation network, and the transmission information from the aggregation network to the terminal includes at least one of a first output count and a first output time of the detection request message leaving the aggregation network; The transmission information from the terminal to the aggregation network includes at least one of a second input count and a second input time of the detection response message entering the aggregation network, and the transmission information from the aggregation network to the BNG includes at least one of a second output count and a second output time of the detection response message leaving the aggregation network.
15. The method according to any one of claims 12 to 14, characterized in that: The protocol type of the terminal is Point-to-Point Protocol over Ethernet (PPPOE), and the detection request message and the collection request message are both return request messages of Link Control Protocol (LCP); Alternatively, the protocol type of the terminal is Internet Protocol Version 4 (IPOE V4) based on Ethernet, and both the detection request message and the collection request message are ARP request messages of the Address Resolution Protocol (ARP); Alternatively, the protocol type of the terminal is Internet Protocol Version 6 (IPOE V6) based on Ethernet, and both the detection request message and the collection request message are neighbor request NS messages of a neighbor discovery ND protocol.
16. The method according to any one of claims 12 to 15, characterized in that: The collection request message includes a type, length, and value TLV field, wherein the type field in the TLV field indicates that the collection request message is used to obtain transmission information from the BNG to the converged network, transmission information from the converged network to the terminal, transmission information from the terminal to the converged network, or transmission information from the converged network to the BNG; The sending, based on the collection request message, to the BNG, transmission information from the BNG to the converged network, transmission information from the converged network to the terminal, transmission information from the terminal to the converged network, or transmission information from the converged network to the BNG, includes: The destination address of the collection response message is changed to the source address of the collection request message, the source address of the collection request message is changed to the address of the network edge node, the message type of the collection request message is changed to a reply message, and the transmission information from the BNG to the aggregation network, the transmission information from the aggregation network to the terminal, the transmission information from the terminal to the aggregation network, or the transmission information from the aggregation network to the BNG is added to the value field of the TLV field to obtain a collection response message corresponding to the collection request message; Send the collection response message to the BNG.
17. A transmission quality detection device, characterized in that: The device comprises: A transceiver module, used to perform the operations related to receiving and / or sending performed by the method described in any one of claims 1 to 11, or used to perform the operations related to receiving and / or sending performed by the method described in any one of claims 12 to 16; A processing module, used to perform other operations besides the operations related to receiving and / or sending performed by the method described in any one of claims 1-11, or used to perform other operations besides the operations related to receiving and / or sending performed by the method described in any one of claims 12-16.
18. A network device, characterized in that: The network device includes: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor so that the network device implements the transmission quality detection method described in any one of claims 1-11, or so that the network device implements the transmission quality detection method described in any one of claims 12-16.
19. A transmission quality detection system, characterized in that: The transmission quality detection system includes a broadband network gateway BNG, at least one network edge node in a convergence network, and a terminal, wherein the BNG is connected to the terminal through at least one network including the convergence network; The BNG is used to execute the transmission quality detection method described in any one of claims 1-11, any network edge node among the at least one network edge node is used to execute the transmission quality detection method described in any one of claims 12-16, and the terminal is used to receive a detection request message sent by the BNG, and return a detection response message to the BNG based on the detection request message.
20. A computer-readable storage medium, characterized in that: The computer storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor so that the computer implements the transmission quality detection method as described in any one of claims 1-16.
21. A computer program product, characterized in that The computer program product comprises: a computer program code, wherein the computer program code is loaded and executed by a computer so as to enable the computer to implement the transmission quality detection method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Transmission quality detection method, device, equipment, system and storage medium
CN119676106A
Sink node linkage switching method, sink node and system
CN101998191A
Method and system to enable re-routing for home networks upon connectivity failure
CN104541483A
Networking method, device and equipment and storage medium
CN111526059A
Business protection system
CN116054929A