Communication test method, system, device, equipment, medium and program product
Automatically testing the connectivity and VLAN transparent transmission capabilities of optical network units through wireless access points solves the low efficiency of ONU data frame transparent transmission testing in existing technologies, achieving efficient and accurate network equipment testing and improving the stability of the whole-house Wi-Fi system.
Patent Information
- Application Number
- CN202511078678.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-10-17
AI Technical Summary
In the existing technology, the data frame transparent transmission test of the optical network unit (ONU) on the virtual local area network (VLAN) is inefficient, requires dedicated equipment and has high technical requirements for the tester.
Automatically test the connectivity of ONUs through wireless access points (APs), use the detection program between the first access node and the second access node to realize the automatic transmission and detection of data frames, and test the VLAN transparent transmission capability between the ports of network devices.
It improves the accuracy and efficiency of network device testing, reduces testing complexity and cost, enhances networking efficiency and accuracy, and strengthens the stability and adaptability of the whole-house Wi-Fi system.
Smart Images

Figure CN120811939A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of communication, and in particular, relate to a communication testing method, system, device, equipment, medium and program product. BACKGROUND
[0002] With the development of communication technology, there are some network deployment structures that require an Optical Network Unit (ONU) to support data frame transparent transmission on a Virtual Local Area Network (VLAN).
[0003] In the related art, when determining whether an ONU supports VLAN transparent transmission, a tester uses two test devices that can transmit test data with VLAN tags to implement transparent transmission testing of the ONU by operating test software.
[0004] However, the above test process is relatively cumbersome and the testing efficiency of the ONU is relatively low. SUMMARY
[0005] Embodiments of the present application provide a communication testing method, system, device, equipment, medium and program product. The technical solution is as follows:
[0006] In one aspect, a communication testing method is provided, the method comprising:
[0007] running a detection program, the detection program comprising a first detection interface and a second detection interface;
[0008] in response to detecting a first data frame sent by a second access node through the first detection interface, generating a first connectivity result corresponding to the network device, the first connectivity result being used to express the connectivity between ports of the network device;
[0009] in response to detecting a second data frame sent by the second access node through the second detection interface, and the second data frame being labeled with a transparent transmission label, generating a second connectivity result corresponding to the network device, the second connectivity result being used to express that the network device supports data frame transparent transmission on a VLAN.
[0010] In another aspect, a communication testing system is provided, the system comprising: a first access node and a second access node, the first access node and the second access node respectively accessing a network device;
[0011] the first access node is configured to run a detection program, the detection program comprising a first detection interface and a second detection interface;
[0012] the second access node is configured to run the detection procedure, send a first data frame to the first access node through the first detection interface, and send a second data frame to the first access node through the second detection interface, the second data frame being marked with a pass-through label;
[0013] the first access node is further configured to generate a first connectivity result corresponding to the network device in response to detecting the first data frame sent by the second access node through the first detection interface, the first connectivity result being used to express connectivity between ports of the network device, and generate a second connectivity result corresponding to the network device in response to detecting the second data frame sent by the second access node through the second detection interface and the second data frame being marked with a pass-through label, the second connectivity result being used to express that the network device supports data frame pass-through on a virtual local area network (VLAN).
[0014] In another aspect, a communication testing apparatus is provided, and the apparatus includes:
[0015] a running module configured to run a detection procedure, the detection procedure including a first detection interface and a second detection interface;
[0016] a generating module configured to generate a first connectivity result corresponding to a network device in response to detecting a first data frame sent by a second access node through the first detection interface, the first connectivity result being used to express connectivity between ports of the network device.
[0017] the generating module is further configured to generate a second connectivity result corresponding to the network device in response to detecting a second data frame sent by the second access node through the second detection interface and the second data frame being marked with a pass-through label, the second connectivity result being used to express that the network device supports data frame pass-through on a virtual local area network (VLAN).
[0018] In another aspect, a communication device is provided, and the communication device includes a processor and a memory, the memory storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement a communication testing method as described in any of the embodiments of the present application.
[0019] In another aspect, a computer-readable storage medium is provided, and the storage medium stores at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by a processor to implement a communication testing method as described in any of the embodiments of the present application.
[0020] In another aspect, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a communication device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the communication device to perform the communication test method according to any of the above embodiments.
[0021] The technical scheme provided by the embodiments of the present application has at least the following beneficial effects:
[0022] The data frame transmission and the detection between the first access node and the second access node are realized by the detection procedures in the first access node and the second access node, so that the test of the VLAN transparent transmission capability between the ports of the network device is realized automatically, the test accuracy and efficiency of the network device are improved, the subjective problems and uncertainties in the manual test of the VLAN transparent transmission capability are avoided, the efficiency in the test process of the VLAN transparent transmission capability of the network device is improved, and the downstream utilization efficiency of the test result of the VLAN transparent transmission capability is improved, such as the efficiency and accuracy of the access node networking based on the test result of the VLAN transparent transmission capability. BRIEF DESCRIPTION OF DRAWINGS
[0023] In order to more clearly illustrate the technical schemes in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0024] Figure 1 is a structural schematic diagram of a communication test system provided by an exemplary embodiment of the present application;
[0025] Figure 2 is a flowchart of a communication test method provided by an exemplary embodiment of the present application;
[0026] Figure 3 is a schematic diagram of the connection relationship between the ports and the interfaces provided by an exemplary embodiment of the present application;
[0027] Figure 4 is a schematic diagram of the configuration information of the first access node and the second access node provided by an exemplary embodiment of the present application;
[0028] Figure 5 is a schematic diagram of the first data frame transmission process provided by an exemplary embodiment of the present application;
[0029] Figure 6 is a schematic diagram of the second data frame transmission process provided by an exemplary embodiment of the present application;
[0030] Figure 7 is a flow chart of a communication test method provided by another example embodiment of the present application;
[0031] Figure 8 is a schematic diagram of a networking structure provided by an example embodiment of the present application;
[0032] Figure 9 is a schematic diagram of a networking structure provided by an example embodiment of the present application;
[0033] Figure 10 is a schematic diagram of a communication flow provided by an example embodiment of the present application;
[0034] Figure 11 is a schematic diagram of a forwarding process of a private protocol packet provided by an example embodiment of the present application;
[0035] Figure 12 is a flow chart of a hop count counting stage provided by an example embodiment of the present application;
[0036] Figure 13 is a schematic diagram of a communication test system provided by an example embodiment of the present application;
[0037] Figure 14 is a structural block diagram of a communication test device provided by an example embodiment of the present application;
[0038] Figure 15 is a structural block diagram of a communication test device provided by another example embodiment of the present application;
[0039] Figure 16 is a structural block diagram of a network device provided by an example embodiment of the present application.DETAILED DESCRIPTION
[0040] In order to make the objects, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0041] The terms used in the present application are merely for the purpose of describing particular embodiments and are not intended to limit the present application. The singular forms "a," "an," and "the" used in the present application and the appended claims are intended to include plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "and / or" as used herein refer to and encompass any or all possible combinations of one or more associated listed items.
[0042] With the development of communication technology, there are some network deployment structures that require an optical network unit (ONU) to support data frame transparent transmission on a virtual local area network (VLAN).
[0043] The ONU is a network device of a fiber access network, and is configured to provide one or more ports for an access point (AP) to access the network. However, due to the complexity of the ONU itself and the lack of unified standards for the support of the VLAN by the ONU, some ports of the ONU product do not support VLAN transparent transmission in the design, which causes data with a VLAN tag to be unable to be accurately transmitted between APs.
[0044] In the related art, when it is determined whether the ONU supports VLAN transparent transmission, a tester uses two test devices that can transmit data with a VLAN tag to perform transparent transmission testing on the ONU by operating test software. However, the above method (1) requires special test devices; (2) has low testing efficiency; and (3) has high technical requirements for the tester.
[0045] In the embodiments of the present application, a method for automatically testing the connectivity of an ONU by an AP and obtaining a connectivity test result is provided.
[0046] Schematically, Figure 1 is a structural schematic diagram of a communication test system provided by an exemplary embodiment of the present application, and the communication test system at least includes a first device 110, a second device 120, and a network device 130. The first device 110 and the second device 120 are implemented as an AP or a wireless access node. In some embodiments, the first device 110 and the second device 120 automatically complete networking based on the connectivity test result after accessing the network device 130, and implement whole-house Wi-Fi communication based on the networking.
[0047] The network device 130 is implemented as an ONU, and the first device 110 and the second device 120 access the network device 130 and complete networking based on the connectivity test result after the connectivity test result of the network device 130 is completed.
[0048] In some embodiments, the first device 110 and the second device 120 do not have an IP address configured when accessing the network device 130, and therefore, the first device 110 and the second device 120 use a two-layer data link layer to transmit a test data frame to perform connectivity testing.
[0049] As Figure 1As shown, when the network device 130 is tested for connectivity by the first device 110 and the second device 120, at least two stages are included as follows:
[0050] 1. Test whether the test data frame can be normally transmitted between different ports of the network device 130 connected with the first device 110 and the second device 120;
[0051] 2. Test whether the test data frame with a VLAN label can be forwarded in the network device 130.
[0052] The above two stages can be executed in sequence, i.e., stage 1 first and then stage 2, or can be executed synchronously, and the execution sequence of the two stages is not limited in the embodiments of the present application.
[0053] Taking the case of executing stage 1 first and then stage 2, when the test data frame can be transmitted between different ports connected with the first device 110 and the second device 120, it indicates that the different ports of the network device 130 are connected; and then the test data frame with a VLAN label is transmitted between the different ports to determine whether the network device 130 supports the transparent transmission on the VLAN.
[0054] In some embodiments, the VLAN label of the test data frame with a VLAN label is different from the default VLAN identifier.
[0055] In some embodiments, the first device 110 and the second device 120 are respectively installed with a test program, and the test program is used to automatically send and detect the test data frame, and the connectivity test result of the network device 130 is determined according to the sent and detected test data frame.
[0056] It is worth noting that the above communication test system takes the first device 110 and the second device 120 as an example to complete the test process, and in some embodiments, the communication test system can further include more devices to improve the test efficiency or the test accuracy, and the embodiments of the present application are not limited in this regard.
[0057] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards in relevant regions.
[0058] Based on the above, the communication test method provided by the embodiments of the present application is described.
[0059] First, the support capability of the ONU for VLAN transparent transmission is described:
[0060] In the case that the ONU supports VLAN pass-through: When the ONU receives a data frame marked with a VLAN tag, the ONU does not make any modification to the VLAN tag and directly forwards the data frame from one port to another port;
[0061] In the case that the ONU does not support VLAN pass-through: The ONU will strip or modify the VLAN tag and usually marks the data frame with a default VLAN identification.
[0062] In view of the above characteristics of the ONU, Figure 2 is a flow chart of a communication test method provided by an exemplary embodiment of the present application. The method is executed by a first access node, which can be implemented as the first device 110 or the second device 120 shown in Figure 1 . The first access node accesses a network device, for example, the first access node accesses an ONU, and there is a second access node accessing the network device. Illustratively, the first access node is implemented as the first device 110 shown in Figure 1 , and the second access node is implemented as the second device 120 shown in Figure 1 . For example, as shown in Figure 2 , the method comprises the following steps.
[0063] Step 220: running a detection program.
[0064] The detection program comprises a first detection interface and a second detection interface.
[0065] The first detection interface is used to test the connectivity between different ports of the network device, and the second detection interface is used to test the support capability of VLAN pass-through between different ports of the network device.
[0066] The detection program is a software program pre-installed in the first access node. In some embodiments, the detection program is automatically run in response to the power-on of the first access node. Alternatively, a start script is configured in the first access node, and the start script is configured to automatically run the detection program after the start of the first access node, so as to realize the automatic running of the detection program after the power-on of the first access node. In some embodiments, the detection program is automatically run in response to the power-on and access to the network device of the first access node. Alternatively, a start script is configured in the first access node, and the start script is configured to automatically run the detection program after the start and access to the network device of the first access node, so as to realize the automatic running of the detection program after the power-on and access to the network device of the first access node.
[0067] In some embodiments, the first access node and the network device are connected through a wired connection, i.e., the first access node accesses the network device through a wired connection. Optionally, there is a second access node connected to the network device through a wired connection, i.e., the second access node accesses the network device through a wired connection. The second access node has the same or different probe program installed as the first access node. Illustratively, the probe program in the second access node is the same as that in the first access node, or the probe program in the second access node belongs to a different version of the same program but can realize the intercommunication of data frames, or the probe program in the second access node belongs to a different program but can realize the intercommunication of data frames. This embodiment does not limit this. In this embodiment, the same probe program running in the first access node and the second access node is taken as an example for illustration.
[0068] Taking the first access node as an example for illustration: the first access node runs a Linux system, and the probe program is a program installed in the Linux system. The first probe interface and the second probe interface are implemented as socket communication interfaces, which can be understood as functional modules in the probe program. The first probe interface (sock_1) is configured to transmit normal data frames, i.e., data frames without VLAN tags, and the second probe interface (sock_2) is configured to transmit VLAN data frames, i.e., data frames with VLAN tags.
[0069] In some embodiments, the first access node includes a port layer and an interface layer. The port layer refers to the interaction layer between the first access node and the physical medium (such as optical fiber, copper cable, etc.), i.e., the physical port on the first access node, and the port layer is responsible for processing the establishment, maintenance and management of the physical link to ensure that data can be transmitted on the physical medium. The interface layer is a logical layer inside the first access node, which is responsible for processing the encapsulation, decapsulation, forwarding and management of data frames. The interface provided by the interface layer can be virtual and does not depend on the physical port, but can be associated with the physical port. The interface layer is responsible for processing the logical operation of data frames.
[0070] In the interface layer in this embodiment: the first access node connects the network device through the first interface, i.e., a connection relationship is established between the first interface of the first access node and the network device at the logical level.
[0071] In the port layer: the first interface connects the first port of the port layer, and the network device connects the second port of the port layer, i.e., a connection relationship is established between the second port of the first access node and the network device through a wired connection. The first interface connecting the first port of the port layer refers to establishing a communication relationship between the first port at the physical level and the first interface at the logical level in the first access node.
[0072] The first access node includes at least two physical ports, Port 1 and Port 2, in the port layer, where Port 1 is connected to the first interface eth0 in the interface layer, and Port 2 is connected to a network device, such as an ONU.
[0073] Figure 3 is a schematic diagram of the port and interface connection relationship provided by an exemplary embodiment of the present application, as shown in Figure 3 The port layer of the first access node includes a first port 310 and a second port 320, and the interface layer of the first access node includes a first interface 330. The first port 310 is connected to the first interface 330, and a wired connection relationship is established between the network device 340 and the second port 320. In some embodiments, the first port 310 is implemented as a front panel port of the first access node, and the second port 320 is implemented as a back panel port of the first access node, that is, the first access node establishes a wired connection with the network device through the back panel port, and the front panel port of the first access node is used to connect to and supply network to other devices.
[0074] The port VLAN IDs (PVIDs) of the first port and the second port are configured as the first VLAN ID of the first VLAN.
[0075] The PVID is a configuration parameter on a physical port, which is used to specify the default VLAN of the physical port. When a data frame enters the first access node from a physical port, if there is no VLAN tag marked (or carried), the first access node will take the PVID as the VLAN tag of the data frame.
[0076] Taking the PVID of the first port configured as the first VLAN ID as an example, if a data frame without a VLAN tag enters the first access node from the first port, the first access node will mark the data frame as the first VLAN ID; if a data frame marked with the first VLAN ID enters the first access node from the first port, the first access node can retain or strip the first VLAN ID; if a data frame marked with another VLAN ID enters the first access node from the first port, the first access node will decide whether to allow the data frame to pass according to the configuration.
[0077] Optionally, after the first access node connects the network device through the first interface, in the first access node, the Linux system automatically triggers to create a VLAN sub-interface of the first interface, for example, the Linux system creates the VLAN sub-interface of the first interface by running an automatic creation script. The VLAN sub-interface of the first interface corresponds to a pre-set VLAN identifier, or the VLAN sub-interface of the first interface corresponds to a randomly generated VLAN identifier. For example, the first interface is implemented as eth0, and the system automatically triggers to create a sub-interface eth0.1234 of the first interface.
[0078] The VLAN sub-interface is a kind of logical interface, which is used to divide one or more VLANs on a single interface. By creating multiple VLAN sub-interfaces on an interface, multiple VLAN data can be transmitted on a single physical link, thereby realizing logical isolation and management of the network.
[0079] Optionally, when the VLAN sub-interface of the first interface randomly generates a VLAN identifier, since the VLAN identifier needs to be synchronized between the first access node and the second access node as the VLAN tag of the data frame for transparent transmission test, in some embodiments, the first access node indicates the randomly generated VLAN identifier to the second access node in a broadcast manner; or the first access node receives the VLAN identifier randomly generated by the second access node through broadcast, and configures the VLAN sub-interface of the first interface as the VLAN identifier.
[0080] In the embodiments of the present application, the VLAN sub-interface of the first interface corresponds to the second VLAN identifier of the second VLAN, for example, the VLAN sub-interface of the first interface is eth0.1234, and the VLAN corresponding to the VLAN sub-interface is VLAN1234.
[0081] In some embodiments, the first detection interface in the detection program is bound to the first interface in the interface layer of the first access node, and the second detection interface in the detection program is bound to the VLAN sub-interface of the first interface in the first access node, so that the receiving condition of the first interface for ordinary data frames can be detected through the first detection interface, and the receiving condition of the first interface for data frames with VLAN tags can be detected through the second detection interface.
[0082] In some embodiments, the first port and the second port in the port layer of the first access node are member ports of the first VLAN and the second VLAN, that is, data frames marked with the first VLAN identifier or the second VLAN identifier can be transmitted from the first port or the second port.
[0083] In some embodiments, the configuration in the second access node is synchronized with the configuration in the first access node.
[0084] The interface layer of the second access node includes a second interface eth0, and a VLAN sub-interface eth0.1234 of the second interface eth0 is automatically created when the second interface eth0 is connected to the network device, wherein the VLAN sub-interface of the first interface and the VLAN sub-interface of the second interface correspond to the same VLAN identifier, so that the transmission of the data frame of the penetration test between the first access node and the second access node can be realized. The port layer of the second access node includes a third port and a fourth port, the third port is connected with the second interface, and the fourth port is connected with the network device through a wired connection. The second access node is installed with a detection program, and the detection program includes a first detection interface and a second detection interface, the first detection interface is bound to the second interface, and the second detection interface is bound to the VLAN sub-interface of the second interface. In some embodiments, the third port is implemented as a front panel port of the second access node, and the fourth port is implemented as a back panel port of the second access node, that is, the second access node establishes a wired connection with the network device through the back panel port, and the front panel port of the second access node is used to connect with other devices and supply power to the other devices.
[0085] In some embodiments, the third port and the fourth port in the port layer of the second access node belong to the member ports of the first VLAN and the second VLAN.
[0086] In some embodiments, the first VLAN is configured to configure the first port, the second port, the third port and the fourth port as Untagged Ports, and the second VLAN is configured to configure the first port, the second port, the third port and the fourth port as Tagged Ports. Wherein, Tagged Ports refer to ports that retain VLAN tags (Tag) when transmitting VLAN data frames.
[0087] Untagged Ports refer to ports that strip VLAN tags (Tag) when transmitting VLAN data frames.
[0088] It is worth noting that the ports in the second access node named as the third port and the fourth port in the above description, in some embodiments, the third port is implemented as Port1 in the second access node, and the fourth port is implemented as Port2 in the second access node, that is, the first VLAN is configured to configure Port1 and Port2 as Untagged Ports, and the second VLAN is configured to configure Port1 and Port2 as Tagged Ports.
[0089] Taking Port1 and Port2 in the first access node as an example, the configuration of the first access node is shown in Table 1 and Table 2.
[0090] Table 1
[0091] Port 1 Port 2 PVID 1 1
[0092] Table 2
[0093] VLAN ID Member Ports Tagged Ports Untagged Ports 1 1,2 1,2 1234 1,2 1,2
[0094] As shown in Table 1, the PVID of Port 1 is configured as 1, that is, the default VLAN is VLAN 1. VLAN 1 is only an illustrative example, and the PVID can also be implemented as 10, 20, or any other value. Similarly, the PVID of Port 2 is configured as 1, the same as Port 1.
[0095] As shown in Table 2, Port1 and Port2 are member ports of VLAN1 and VLAN1234. VLAN1 is configured to configure Port1 and Port2 as untagged ports, and VLAN1234 is configured to configure Port1 and Port2 as tagged ports.
[0096] Figure 4 This is a schematic diagram of configuration information of a first access node and a second access node provided by an exemplary embodiment of the present application. Figure 4 As shown, first access node 410 is configured with a first interface eth0 and a VLAN sub-interface eth0.1234 at the interface layer. Information such as the port's VLAN, PVID, and port tag is also configured at the data link layer. Similarly, second access node 420 is configured with a first interface eth0 and a VLAN sub-interface eth0.1234 at the interface layer. Information such as the port's VLAN, PVID, and port tag is also configured at the data link layer. First access node 410 and second access node 420 are connected to network device 430 via a wired connection.
[0097] In some embodiments, while the first access node is continuously powered on, the detection program runs periodically or continuously. When the detection program runs periodically, one or more connectivity tests on the network device are triggered within each running cycle of the detection program. When the detection program runs continuously, the detection program may periodically trigger the connectivity test on the network device.
[0098] Step 240: In response to receiving a first data frame sent by the second access node through the first detection interface, generate a first connectivity result corresponding to the network device.
[0099] The first connectivity result is used to express the connectivity between the ports of the network device.
[0100] In some embodiments, the first access node and the second access node are two access nodes of an access network device and have no networking relationship.
[0101] In some embodiments, the first connectivity result corresponding to the network device is generated in response to detecting, through the first probing interface, a first data frame sent by the second access node, and the first data frame is not marked with a VLAN tag. The first data frame is sent by the second access node through the probing program and is not marked with a VLAN tag when sent.
[0102] The connectivity between the ports of the network device is determined through the first data frame which is not marked with a VLAN tag. Since the first data frame itself is marked with a VLAN tag, that is, the VLAN field does not affect the transmission of the first data frame by the network device, if the first data frame can be received, that is, the transmission of the first data frame is performed between the ports of the network device, that is, between the port connected to the first access node and the port connected to the second access node, it indicates that the ports of the network device are connected, which improves the testing efficiency and accuracy of the connectivity of the network device and reduces the testing complexity.
[0103] In some embodiments, the first connectivity result corresponding to the network device is generated in response to detecting, through the first probing interface, a first data frame sent by the second access node, and the first data frame is marked with a PVID. The first data frame is sent by the second access node through the probing program and is marked with a PVID when sent.
[0104] In the sending process of the first data frame, taking the sending perspective of the second access node as an example, first, the first data frame is sent from the first probing interface under the driving of the probing program, sent to the second interface of the interface layer, and then sent to the third port of the physical layer by the second interface. Since the PVID of the third port is configured as the first VLAN identifier, the first data frame is marked with the VLAN tag of the first VLAN identifier at the third port. The third port sends the first data frame marked with the VLAN tag to the fourth port, which sends the first data frame to the network device. When the first data frame leaves the fourth port, since the fourth port is configured as an untagged port, the VLAN tag of the first data frame is stripped, so that the first data frame which is not marked with a VLAN tag is sent to the network device, and the network device is responsible for sending the first data frame to the first access node. Since the second port of the first access node is connected to the network device, the second port first receives the first data frame and sends the first data frame to the first interface through the first port, so that the first probing interface can detect the first data frame sent by the second access node through the first interface.
[0105] In the case that the first detection interface detects the first data frame sent by the second access node, it indicates that the network device transmits the first data frame between the ports connected to the first access node and the ports connected to the second access node, that is, it indicates that the ports of the network device are connected.
[0106] Illustratively, the second port of the first access node is connected to the first physical port LAN1 of the network device, the fourth port of the second access node is connected to the second physical port LAN2 of the network device, and in the case that the first physical port LAN1 and the second physical port LAN2 are connected after the second access node sends the first data frame to the second physical port LAN2 through the fourth port, LAN2 sends the first data frame to LAN1, and LAN1 sends the first data frame to the second port of the first access node.
[0107] Among them, the first data frame transmitted between the first access node and the first physical port LAN1 is not marked with a VLAN tag, the first data frame transmitted between LAN1 and LAN2 is not marked with a VLAN tag, and the first data frame transmitted between the second access node and the second physical port LAN2 is not marked with a VLAN tag.
[0108] Illustratively, Figure 5 is a first data frame transmission process diagram provided by an exemplary embodiment of the present application, taking the mutual transmission of first data frames between the first access node and the second access node as an example, as shown in Figure 5 The first access node 510 and the first physical port 501 of the network device 500 transmit data frames, the second access node 520 and the second physical port 502 of the network device 500 transmit data frames, and the first physical port 501 and the second physical port 502 of the network device 500 transmit data frames. Among them, Figure 5 The three groups of data frame transmissions shown in the figure do not mark the data frames with a VLAN tag.
[0109] Step 260, in response to receiving the second data frame sent by the second access node through the second detection interface, and the second data frame being marked with a transparent tag, generating a second connectivity result corresponding to the network device.
[0110] The second connectivity result is used to express that the network device supports the transparent transmission of data frames on the VLAN.
[0111] Among them, the second data frame is a data frame sent by the second access node through the detection program, and is marked with a transparent tag when sent.
[0112] Optionally, the transparent tag is a tag marked on the second data frame by the detection program of the second access node after running the detection program on the second access node.
[0113] In some embodiments, in response to detecting, by the second probing interface, the second data frame sent by the second access node, and the first data frame being marked with the preset VLAN label, a second connectivity result corresponding to the network device is generated. Wherein, the preset VLAN label is implemented as the VLAN identifier of the second VLAN. For example, the second data frame is marked with the preset VLAN label VLAN1234, which indicates that the second data frame is a data frame transmitted through the virtual local area network VLAN1234 obtained by division.
[0114] Through the marking of the preset VLAN label, if the second data frame can be sent from the second access node and reach the first access node, it indicates that the network device does not modify the VLAN label of the second data frame, that is, the network device transmits the second data frame transparently. Therefore, the transmission capability of the network device is tested through the marking of the preset VLAN label, which improves the test accuracy and efficiency and reduces the test complexity.
[0115] In the sending process of the second data frame, taking the sending perspective of the second access node as an example, first, the second data frame is marked with the VLAN label corresponding to the second VLAN under the driving of the probing program, and then is sent from the second probing interface to the second interface of the interface layer. The second interface first sends the second data frame to the third port of the physical layer. The third port and the fourth port are member ports of the second VLAN, and the third port and the fourth port are configured as tagged ports. Therefore, the second data frame will not be modified or stripped when transmitted through the third port and the fourth port. The fourth port sends the second data frame marked with the VLAN label to the network device, and the network device is responsible for sending the second data frame to the first access node. Since the second port of the first access node is connected to the network device, the second port first receives the second data frame and sends the second data frame to the first interface through the first port, so that the second probing interface can detect the second data frame sent by the second access node through the first interface.
[0116] In the case that the second probing interface detects the second data frame sent by the second access node, it indicates that the network device performs VLAN transmission of the second data frame between the ports connected to the first access node and the ports connected to the second access node, that is, the network device does not modify or adjust the VLAN label of the second data frame.
[0117] The second port of the first access node is connected to the first physical port LAN1 of the network device, the fourth port of the second access node is connected to the second physical port LAN2 of the network device, and the second data frame is transmitted to the second physical port LAN2 through the fourth port of the second access node. In the case that the VLAN is transparently transmitted between the first physical port LAN1 and the second physical port LAN2, the second data frame is directly transmitted to the LAN1 by the LAN2, and the second data frame is transmitted to the second port of the first access node by the LAN1.
[0118] The second data frame transmitted between the first access node and the first physical port LAN1 is marked with a VLAN tag, the second data frame transmitted between the LAN1 and the LAN2 is marked with a VLAN tag, and the second data frame transmitted between the second access node and the second physical port LAN2 is marked with a VLAN tag.
[0119] The second data frame transmitted between the first access node and the first physical port LAN1 is marked with a VLAN tag, the second data frame transmitted between the LAN1 and the LAN2 is marked with a VLAN tag, and the second data frame transmitted between the second access node and the second physical port LAN2 is marked with a VLAN tag. Figure 6 is a schematic diagram of a second data frame transmission process provided by an exemplary embodiment of the present application, taking the mutual transmission of the second data frame between the first access node and the second access node as an example, as shown in Figure 6 The first access node 610 and the first physical port 601 of the network device 600 transmit data frames, the second access node 620 and the second physical port 602 of the network device 600 transmit data frames, and the first physical port 601 and the second physical port 602 of the network device 600 transmit data frames. Among them, Figure 6 In the three groups of data frame transmissions shown, the data frames are marked with VLAN tags, and the VLAN tags correspond to the same VLAN as the VLAN sub-interfaces created in the interfaces of the access nodes.
[0120] It is worth noting that the above-mentioned first data frame and second data frame are transmitted in the case that the first access node and the second access node have not completed networking, that is, the first access node and the second access node establish a two-layer link connection, and transmit the first data frame and the second data frame through the two-layer link connection.
[0121] Optionally, if the first access node only receives the first data frame and does not receive the second data frame, it indicates that the network device ports are connected, but do not support VLAN transparent transmission.
[0122] In some embodiments, if the first access node receives the first data frame and continues to detect the second data frame for a preset time length or a preset detection number of times, it is determined that the network device ports are connected, but do not support VLAN transparent transmission.
[0123] In summary, the method provided by the embodiments of the present application realizes data frame transmission and detection between the first access node and the second access node through the detection procedures in the first access node and the second access node, thereby realizing automatic testing of the VLAN transparent transmission capability between the ports of the network device, improving the testing accuracy and efficiency of the network device, avoiding subjective problems and uncertainties in manual testing of the VLAN transparent transmission capability, improving the efficiency in the process of testing the VLAN transparent transmission capability of the network device, and improving the downstream utilization efficiency of the testing result of the VLAN transparent transmission capability, such as improving the efficiency and accuracy of the access node networking based on the testing result of the VLAN transparent transmission capability.
[0124] In addition, the method provided by the embodiments does not need to rely on special test equipment, and can directly perform detection operations on the AP of the whole-house Wi-Fi, without using expensive or professional third-party network test instruments, thereby reducing the deployment difficulty and use cost.
[0125] The method provided by the embodiments can be automatically executed without the awareness of the user, without the participation or professional network knowledge of the user, and greatly reduces the use threshold.
[0126] The method provided by the embodiments can improve the stability and adaptive capability of the whole-house Wi-Fi networking, accurately master the VLAN intercommunication capability between the ports of the network device, and adjust the network topology or data forwarding strategy of the whole-house Wi-Fi system, thereby improving the adaptive capability and overall stability of the network.
[0127] The method provided by the embodiments can continuously perform detection during the network deployment or operation process, help the system to identify potential network intercommunication obstacles in time, help to early warn and repair problems, and guarantee the network experience of the user.
[0128] In an optional embodiment, the first data frame is a response frame received based on a first request frame sent by the first access node, and the second data frame is a response frame received based on a second request frame sent by the first access node.
[0129] Figure 7 FIG. 2 is a flowchart of a communication test method provided by another exemplary embodiment of the present application, which is performed by a first access node, which can be implemented as the first device 110 or the second device 120 shown in FIG. 1. Figure 1 The first access node accesses a network device, such as an ONU, and there is a second access node accessing the network device. Illustratively, the first access node is implemented as the first device 110 shown in FIG. 1, and the second access node is implemented as the second device 120 shown in FIG. 1. Figure 1 Figure 1 Figure 7 The method includes the following steps.
[0130] Step 720, running the detection program.
[0131] The detection program comprises a first detection interface and a second detection interface.
[0132] The first detection interface is configured to test the connectivity between different ports of the network device; and the second detection interface is configured to test the support capability of the network device for VLAN transparent transmission between different ports.
[0133] The detection program is a software program pre-installed in the first access node. In some embodiments, the detection program is automatically run in response to the power-on of the first access node. Alternatively, a start script is configured in the first access node, and the detection program is configured to be automatically run after the start of the first access node in the start script, so as to realize the automatic running of the detection program after the power-on of the first access node. In some embodiments, the detection program is automatically run in response to the power-on and access of the network device by the first access node. Alternatively, a start script is configured in the first access node, and the detection program is configured to be automatically run after the start and access of the network device by the first access node in the start script, so as to realize the automatic running of the detection program after the power-on and access of the network device by the first access node.
[0134] It is worth noting that the description related to the detection program has been described in detail in the above step 220, and will not be repeated here.
[0135] Step 742, in response to the running of the detection program, sending a first request frame without a VLAN tag to the second access node.
[0136] In response to the running of the detection program, the first access node periodically sends the first request frame through the first detection interface of the detection program.
[0137] The first request frame is implemented as a Neighbor Discovery Protocol (NDP) Request message, and the first access node sends the first request frame in the form of broadcast, and the first request frame is not marked with a VLAN tag, so that the devices on the same local area network side of the network device can receive the first request frame and respond to the first request frame. The second access node accesses the network device, so that after the first access node sends the first request frame to the network device, the network device sends the first request frame to the second access node which also accesses the network device.
[0138] In some embodiments, in response to the detection procedure running, the first access node first detects whether there is a request frame sent by another access node through the detection procedure, if a request frame sent by another access node is received, a data frame is fed back to the access node sending the request frame, if there is no request frame sent by another access node, the sending of the first request frame is triggered, and the first request frame is continuously sent according to a preset period. Optionally, the first request frame is continuously sent periodically until there is a first data frame corresponding to the first request frame fed back to the first access node by another access node.
[0139] Optionally, when the first access node detects a request frame sent by another access node through the detection procedure, the first access node determines the connectivity between the ports of the network device based on the request frame.
[0140] In the sending process of the first request frame, taking the sending perspective of the first access node as an example, first, the first request frame is sent from the first detection interface under the driving of the detection procedure, sent to the first interface of the interface layer, and then sent to the first port of the physical layer by the first interface. Since the PVID of the first port is configured as the first VLAN identifier, the first request frame is marked with the VLAN tag of the first VLAN identifier at the first port, and the first request frame marked with the VLAN tag is sent to the second port by the first port, and then sent to the network device by the second port. When the first request frame leaves the second port, since the second port is configured as an untagged port, the VLAN tag of the first request frame is stripped, so that the first request frame without the VLAN tag is sent to the network device, and the network device is responsible for sending the first request frame to another access node. Since the first request frame is a broadcast frame, the network device sends the first request frame to another access node connected to the network device. Taking the second access node accessing the network device as an example, since the fourth port of the second access node is connected to the network device, the fourth port first receives the first request frame and sends the first request frame to the second interface of the second access node through the third port, so that the detection procedure in the second access node can detect the first request frame sent by the first access node through the first detection interface.
[0141] Illustratively, the second port of the first access node is connected to the first physical port LAN1 of the network device, the fourth port of the second access node is connected to the second physical port LAN2 of the network device, and the first request frame is sent to the first physical port LAN1 by the second port of the first access node. In the case of connectivity between the first physical port LAN1 and the second physical port LAN2, LAN1 sends the first request frame to LAN2, and LAN2 sends the first request frame to the fourth port of the second access node.
[0142] The first request frame transmitted between the first access node and the first physical port LAN1 is not marked with a VLAN tag, the first request frame transmitted between LAN1 and LAN2 is not marked with a VLAN tag, and the first request frame transmitted between the second access node and the second physical port LAN2 is not marked with a VLAN tag.
[0143] In some embodiments, the first request frame requests feedback of the other access nodes, and the first request frame indicates communication information when requesting the feedback of the other access nodes, for example, when the first request frame is received by the second access node, the first request frame requests the second access node to send a first data frame of feedback, and the first request frame requests the second access node to feedback communication information such as a Media Access Control (MAC) address and a device identifier of the second access node.
[0144] In step 744, a first connectivity result corresponding to the network device is generated in response to the first data frame sent by the second access node being detected through the first detection interface.
[0145] The first data frame is a response frame of the second access node based on the feedback of the first request frame. Optionally, the first request frame is implemented as an NDP Request packet, the first data frame is implemented as an NDP Response packet, or the first data frame is implemented as an NDP Reply packet.
[0146] In some embodiments, after the second access node is powered on and runs, the second access node accesses the network device through the second interface. In some embodiments, after the second access node accesses the network device, a VLAN sub-interface corresponding to the second interface is automatically triggered to be created, or after the second access node accesses the network device, the first request frame sent by the first access node is first received, the first request frame is used to request the second access node to feedback a response frame, and optionally, the VLAN identifier is included in the first request frame, and the second access node creates the VLAN sub-interface corresponding to the second interface based on the VLAN identifier. In this embodiment, the second access node accesses the network device and automatically triggers the creation of the VLAN sub-interface corresponding to the second interface is taken as an example. Optionally, each access node is configured with the same automatic creation script, so that the VLAN sub-interfaces corresponding to the same VLAN identifier are created.
[0147] The second access node starts a detection program, detects the first request frame received by the second interface through a first detection interface of the detection program, and sends the first data frame to the first access node through the first detection interface based on the first request frame. Optionally, the first request frame further includes a MAC address corresponding to the first access node, and the second access node sends the first data frame to the first access node through the MAC address of the first access node.
[0148] When the first access node receives the first data frame from the second access node sent by the network device, it indicates that the network device can support the connectivity between the ports, on the one hand, the network device can send the first request frame to the second access node through the communication between the ports, on the other hand, the network device feeds back the first data frame from the second access node to the first access node through the communication between the ports. That is, the first connectivity result is used to express the connectivity between the ports of the network device.
[0149] Through the sending of the first request frame and the receiving of the first data frame, the connectivity of the ports of the network device in the data frame transmission is indicated from the perspective of bidirectionality, and the accuracy and reliability of testing the connectivity of the network device are improved.
[0150] In response to the running of the detection program, a second request frame marked with a transparent label is sent to the second access node.
[0151] The sending of the first request frame and the sending of the second request frame are independent processes, or the sending of the first request frame and the sending of the second request frame are associated processes, for example, the sending of the first request frame and the sending of the second request frame are two processes with the same period and a sequence.
[0152] Illustratively, in the case of independent sending of the first request frame and the second request frame, the first request frame is sent by the first detection interface, and the receiving of the response frame of the first request frame is detected, the second request frame is sent by the second detection interface, and the receiving of the response frame of the second request frame is detected. Optionally, the first detection interface sends the first request frame at a first period, the second detection interface sends the second request frame at a second period, and the first period and the second period are the same or different. Optionally, the sending of the first request frame is independently controlled by the first detection interface, and the sending of the second request frame is independently controlled by the second detection interface.
[0153] Illustratively, in the case of associated sending of the first request frame and the second request frame, for example, the detection program first triggers the first detection interface to send the first request frame, and triggers the second detection interface to send the second request frame after an interval of a preset time length, the first detection interface cyclically sends the first request frame according to a preset period, so that the second detection interface cyclically sends the second request frame according to the preset period immediately after the sending of the first request frame. Or, the detection program first triggers the first detection interface to send the first request frame, and triggers the second detection interface to send the second request frame in response to receiving the first data frame fed back by the second access node based on the first request frame, that is, the test of the VLAN transparency of the network device is carried out on the basis of the test of the port connectivity of the network device.
[0154] The second request frame is implemented as an NDP Request message, the first access node sends the second request frame in a broadcast form, and the second request frame is marked with a VLAN tag. In the case that the network device supports VLAN transparent transmission, a device on the same local area network side of the network device can receive the second request frame and respond to the second request frame. The second access node accesses the network device, and thus, after the first access node sends the second request frame to the network device, the network device sends the second request frame to the second access node which also accesses the network device.
[0155] In some embodiments, in response to the detection procedure, the first access node first detects whether there is a request frame with a VLAN tag sent by another access node through the detection procedure. If the request frame with the VLAN tag sent by the other access node is received, a second data frame is fed back to the access node sending the request frame. If there is no request frame with a VLAN tag sent by another access node, the sending of the second request frame is triggered, and the second request frame is continuously sent at a preset period. Alternatively, the second request frame is continuously sent at a period until there is a second data frame corresponding to the second request frame fed back to the first access node by another access node.
[0156] Alternatively, when the first access node detects the request frame with the VLAN tag sent by another access node through the detection procedure, the first access node determines that the port of the network device supports VLAN transparent transmission based on the request frame with the VLAN tag.
[0157] In the sending process of the second request frame, taking the sending perspective of the first access node as an example, first, the second request frame is first sent from the second detection interface under the driving of the detection procedure, sent to the first interface of the interface layer, and then sent to the first port of the physical layer by the first interface. Since the first port is a member port of the second VLAN, the first port directly sends the second request frame to the second port, and the second port sends the second request frame to the network device. The second request frame keeps the VLAN tag marked when leaving the second port, so that the second request frame with the marked VLAN tag is sent to the network device, and the network device is responsible for sending the second request frame to other access nodes. Since the second request frame is a broadcast frame, in the case that the network device supports VLAN transparent transmission, the network device sends the second request frame to other access nodes connected to the network device. Taking the second access node accessing the network device as an example, since the fourth port of the second access node is connected to the network device, the fourth port first receives the second request frame and sends the second request frame to the second interface of the second access node through the third port, so that the detection procedure in the second access node can detect the second request frame sent by the first access node through the second detection interface.
[0158] The second port of the first access node is connected to the first physical port LAN1 of the network device, the fourth port of the second access node is connected to the second physical port LAN2 of the network device, and the first access node sends the second request frame to the first physical port LAN1 through the second port. In the case that the VLAN is transparently passed between the first physical port LAN1 and the second physical port LAN2, the second request frame is directly sent to LAN2 by LAN1, and the second request frame is sent to the fourth port of the second access node by LAN2.
[0159] The second request frame transmitted between the first access node and the first physical port LAN1 is marked with a VLAN tag, the second request frame transmitted between LAN1 and LAN2 is marked with a VLAN tag, and the second request frame transmitted between the second access node and the second physical port LAN2 is marked with a VLAN tag.
[0160] Step 764, in response to receiving the second data frame sent by the second access node through the second detection interface, and the second data frame being marked with a transparent tag, a second connectivity result corresponding to the network device is generated.
[0161] The second data frame is a response frame fed back by the second access node based on the second request frame.
[0162] Optionally, the second request frame is implemented as an NDP Request packet, the second data frame is implemented as an NDP Response packet, or the second data frame is implemented as an NDP Reply packet.
[0163] The second access node starts a detection program, detects the second request frame received by the second interface through the second detection interface of the detection program, and sends the second data frame to the first access node through the second detection interface based on the second request frame. Optionally, the second request frame further includes a MAC address corresponding to the first access node, and the second access node sends the second data frame to the first access node through the MAC address of the first access node.
[0164] When the first access node receives the second data frame sent by the network device from the second access node, it indicates that the network device can support VLAN transparent passing. On the one hand, the network device can send the second request frame to the second access node through VLAN transparent passing between ports, and on the other hand, the network device feeds back the second data frame from the second access node to the first access node through VLAN transparent passing communication between ports. That is, the second connectivity result is used to express that the network device supports VLAN transparent passing.
[0165] Through the sending of the second request frame and the receiving of the second data frame, the transparent passing capability of the network device in the transmission of the data frame is indicated from the perspective of bidirectionality, and the accuracy and reliability of testing the connectivity of the network device are improved.
[0166] Optionally, if the first access node only receives the first data frame and does not receive the second data frame, it indicates that the network device ports are connected, but do not support VLAN transparent transmission.
[0167] In some embodiments, if the first access node receives the first data frame and continues to send the second request frame and probes the second data frame, if the number of times the first access node sends the second request frame reaches a preset number of times, or the time length of waiting for the second data frame reaches a preset time length, it is determined that the network device ports are connected, but do not support VLAN transparent transmission.
[0168] In summary, the method provided by the embodiments of the present application realizes data frame transmission and probing between the first access node and the second access node through the probing procedures in the first access node and the second access node, thereby realizing automatic testing of the VLAN transparent transmission capability between the network device ports, improving the testing accuracy and efficiency of the network device, avoiding subjective problems and uncertainties in manual testing of the VLAN transparent transmission capability, improving the efficiency in the VLAN transparent transmission capability testing process of the network device, and improving the downstream utilization efficiency of the VLAN transparent transmission capability testing results, such as improving the efficiency and accuracy of access node networking based on the VLAN transparent transmission capability testing results.
[0169] The method provided by the embodiments of the present application realizes automatic connectivity testing after the first access node and the second access node access the network device by the first access node sending the first request frame to request other access nodes to feed back the first data frame, and the first access node sending the second request frame to request other access nodes to feed back the second data frame, thereby improving the testing efficiency and accuracy.
[0170] In an optional embodiment, in the case that the network device supports VLAN transparent transmission, packet data can be transmitted between the layer 2 data link layers of the access nodes in a transparent transmission manner based on the VLAN transparent transmission capability of the network device.
[0171] Optionally, in the embodiments of the present application, a networking method between access nodes is provided. In the related art, taking the whole-house Wi-Fi implementation process as an example, a Wi-Fi system is deployed in the form of an Access Controller (AC) matched with an Access Point (AP), wherein the AC accesses an Optical Network Unit (ONU), the AP accesses the AC, and the whole-house Wi-Fi networking is realized in the manner of being managed by the AC.
[0172] Schematically, Figure 8 is a schematic diagram of a networking structure provided by an exemplary embodiment of the present application, asFigure 8 As shown, first, an optical network unit 810 is provided, which is used to convert optical signals of a fiber network into electrical signals and provide various service interfaces for users to realize functions such as broadband access, voice communication, video transmission, etc.
[0173] The wireless controller 820 accesses the optical network unit 810, and the wireless controller 820 is a core control node of the network, responsible for unified configuration and centralized management of parameters of all AP devices 830, including functions such as Service Set Identifier (SSID) broadcast, channel allocation, encryption policy, power control, user access permission management, etc. The AC also has the ability of wireless roaming control, load balancing, radio frequency optimization, etc.
[0174] The AP device 830 accesses the wireless controller 820 as a controlled device, and the AP device 830 is deployed in each room or area of the whole house and connected to the wireless controller 820 through a wired manner (usually Ethernet). The AP itself does not have independent network management capability and only serves as a data forwarding node to forward data of a wireless terminal to the wireless controller 820 or an upper layer network through a backhaul link.
[0175] However, in the above AC+AP architecture, a centralized management strategy is adopted. After the AC controller is started, it will identify and take over the running state of each AP through a specific discovery protocol. The AP is a thin AP, and the configuration is issued by the AC and the running state is monitored in real time. The deployment cost of the AC controller in this structure is high, and the deployment complexity is high. Moreover, in the multi-hop networking scenario of AC+AP, there is a obvious technical bottleneck: the AC broadcast or multicast networking private protocol message can usually only be forwarded to the AP directly connected to the AC, and cannot be directly forwarded to the second-hop AP indirectly connected. This limitation makes the implementation of multi-hop networking complex and inefficient.
[0176] Embodiments of the present application provide a wireless networking mode, that is, a Virtual Access Controller (VAC)+AP structure, wherein the VAC itself is implemented as an AP device, and a management program is installed in the VAC. Through the management program, the functions in the AC (such as SSID broadcast, channel allocation, encryption policy, power control, user access permission management, etc., and wireless roaming control, load balancing, radio frequency optimization, etc.) are implemented in the VAC through software means, and the VAC manages APs other than the VAC. In addition to the functions of the AC, the VAC itself can also implement device access functions of the AP, etc.
[0177] Schematically, Figure 9 is a schematic diagram of a networking structure provided by an exemplary embodiment of the present application, as shown inFigure 9 As shown, first, an optical network unit 910 is provided, which is used to convert optical signals of a fiber network into electrical signals and provide various service interfaces for users.
[0178] The VAC device 920 and part or all of the AP devices 930 access the optical network unit 910 through a wired network, and the VAC device 920 manages the AP devices 930 through wired or wireless connection. If part of the AP devices 930 are connected to the optical network unit 910 through a wired connection, the remaining AP devices 930 can be connected to the above-mentioned part of the AP devices 930 or the VAC device 920 through wireless or wired connection.
[0179] Among them, the VAC device 920 and the AP device 930 complete networking at the second layer data link layer. Therefore, the architecture provided by the embodiment needs the optical network unit ONU to support VLAN pass-through.
[0180] Based on this, in the case that the network device (such as the above-mentioned optical network unit) supports VLAN pass-through, the networking relationship between the VAC and the AP can be established based on the VLAN pass-through capability of the network device. Alternatively, under this networking relationship, the LAN area of the AP and the VAC is connected through the VLAN networking tunnel to form a local area network. The message data is transmitted between the access nodes at the second layer data link layer in a pass-through manner.
[0181] In the embodiment of the application, in the case that it is tested that the network device supports VLAN pass-through through the first access node and the second access node, the first access node and the second access node are directly accessed to the optical network unit to construct the above-mentioned VAC+AP networking relationship. Among them, the first access node acts as the VAC or the second access node acts as the VAC. Alternatively, the access node of the first access node and the second access node that first accesses the network device acts as the VAC, or the access node of the first access node and the second access node that meets the node capability relationship acts as the VAC, such as: the access node with high bandwidth capability of the first access node and the second access node acts as the VAC, or the random access node of the first access node and the second access node acts as the VAC.
[0182] In some embodiments, the VAC+AP networking architecture provided by the application includes at least one of the following networking modes:
[0183] 1. Parallel networking mode.
[0184] In parallel networking, VLAN tunneling connects the LAN areas of the APs and VACs, forming a single LAN. The VAC operates in routing mode, while the APs operate in bridge mode. Some APs are connected to network devices via wired connections, which forward data. The VAC establishes a wired connection with the network devices, while the remaining APs connect to these APs or VACs via wireless or wired connections.
[0185] Among them, when the AP sends a data frame to the VAC, it uses the VLAN networking tunnel to pass through the network device ONU to reach the VLAN networking tunnel of the VAC, and the VAC forwards the data frame received by the VLAN networking tunnel to the LAN area of the VAC; when the VAC sends a data frame to the AP, the data frame is sent from the LAN area of the VAC via the VLAN networking tunnel to the network device ONU, and the data frame passes through the network device ONU to the VLAN networking tunnel of the AP.
[0186] 2. Parallel networking mode.
[0187] In parallel networking, VACs and APs communicate within the LAN area of a network device. The VACs and APs operate in bridge mode. Some APs are connected to network devices via wired connections, which forward data. The VACs establish wired connections with network devices, while the remaining APs connect to these APs or VACs wirelessly or via wired connections.
[0188] 3. Wireless networking mode.
[0189] In wireless networking, VAC operates in routing mode and AP operates in bridge mode. Some APs are connected to network devices via wired connections, but these wired connections do not participate in data forwarding. VAC establishes a wired connection with network devices, and APs are connected to VAC wirelessly.
[0190] Optionally, if the network device supports VLAN transparent transmission, the VAC+AP is networked in parallel; if the network device does not support VLAN transparent transmission, the networking method is determined according to the network device's Internet access method (such as: dynamic IP acquisition, static IP setting, dial-up Internet access). Optionally, if the network device does not support data frame transparent transmission on VLAN, and the network access method of the network device is implemented as a dynamic IP configured based on the Dynamic Host Configuration Protocol, a parallel networking relationship with other access nodes is established. If the network device does not support data frame transparent transmission on VLAN, and the network access method of the network device is implemented as a static IP or dial-up IP acquisition, a wireless networking relationship with other access nodes is established.
[0191] Based on the above content, this embodiment takes the parallel networking between VAC+AP as an example. Figure 10This is a communication flow diagram provided by an exemplary embodiment of the present application. It is worth noting that Figure 10 The embodiment shown can be combined with the above Figure 2 and / or Figure 7 The embodiments shown are implemented in combination or as a separate solution. The method is executed by a first access node, which can be implemented as the above-mentioned Figure 1 In the first device 110 or the second device 120 shown in FIG, the first access node accesses the network device, such as: the first access node accesses the ONU, and there is a second access node access network device, schematically, the first access node is implemented as Figure 1 The first device 110 shown is implemented as a second access node. Figure 1 The second device 120 is shown as Figure 10 As shown, the method includes the following steps.
[0192] Step 1020: When the network device supports VLAN transparent transmission, in response to receiving the first message data through the first interface, and the first message data belongs to a private protocol message, the first message data is sent through an interface other than the first interface at the data link layer.
[0193] Optionally, after receiving the first message data through the physical port of the port layer, the first access node passes the first message data to the data link layer (L2), determines the message type of the first message data through the data link layer, and sends the first message data through an interface other than the first interface at the data link layer on the basis that the first message data belongs to a private protocol message. Optionally, at the data link layer, the first access node identifies the receiving interface of the message through the source MAC address carried by the first message data. Each device (including AP, VAC, ONU, etc.) has a unique MAC address, and the data link layer includes the source MAC address and destination MAC address in the frame when sending data. When the first access node identifies that the receiving interface of the first message data is the first interface through the source MAC address, it determines the MAC address corresponding to the other interface as the destination MAC address and sends the first message data.
[0194] Optionally, when the first access node is implemented as a VAC, the first access node operates in routing mode and other access nodes operate in bridge mode; when the first access node is implemented as an AP, the first access node operates in bridge mode.
[0195] The method provided in this embodiment proposes a proprietary protocol message transparent transmission mechanism at the data link layer (L2) of the kernel protocol stack. By implementing message identification, interface replication, and forwarding control in the AP bridge module, it ensures that the AC's broadcast / multicast messages can be transmitted across multiple AP hops without application layer intervention.
[0196] The first access node identifies whether the first message data is a private protocol message at a data link layer, i.e., message identification and classification are implemented at a kernel protocol stack.
[0197] The first message data is broadcast to each non-receiving interface of the bridge. Alternatively, the first message data is copied to obtain a first message copy, and the first message copy is sent through the interface other than the receiving interface at the data link layer, i.e., dynamic interface copying and flooding forwarding are implemented.
[0198] Meanwhile, the first message data is submitted to an application layer for service logic processing, so as to realize the integrity of the control plane function, i.e., the application layer and the kernel layer are processed cooperatively.
[0199] Taking the first message data as an example, the first message data is a message data carrying network control information sent by the VAC, the first message data is a broadcast private protocol message or a multicast private protocol message, and the target MAC address is a predefined multicast address or a broadcast address. Illustratively, the broadcast address includes a target MAC address of all 1 (i.e., FF:FF:FF:FF:FF:FF), and the multicast address can be implemented as a preset target MAC address, so that the devices in the network can identify the multicast address to receive the first message data.
[0200] The AP device is implemented as a multi-hop AP node, including a message identification module, an interface copying engine, a forwarding control module, and an application layer proxy module.
[0201] The message identification module is integrated in a bridge driver, and a preset field of the first message data, such as a header field, is matched to identify the private protocol message.
[0202] The interface copying engine is used to copy the first message data to the active interfaces of the bridge other than the receiving interface at the data link layer, so as to trigger the second layer flooding to broadcast and forward the first message copy of the first message data.
[0203] The forwarding control module is used to add a time to live (TTL) counter to the first message data to prevent infinite loop transmission of the first message data. The forwarding control module is also used to ensure priority forwarding of the private protocol message based on a priority queue.
[0204] The application layer proxy module is used to receive the first message data and execute network service logic, such as network topology update, configuration information loading, etc.
[0205] In an optional embodiment, in response to receiving the first message data through the first interface, a message type field of the first message data is read, and in a case where the message type field indicates that the first message data belongs to a private protocol message, the first message data is sent through the interface other than the first interface at the data link layer.
[0206] Optionally, a first packet copy of the first packet data is generated, and the first packet copy is sent out through an interface other than the first interface at the data link layer.
[0207] In some embodiments, a second packet copy of the first packet data is generated, and the second packet copy is delivered to the application layer, and the second packet copy is received by the application layer proxy module and the network service logic is executed.
[0208] The parallel processing of the forwarding and the application layer logic processing through the generation of the copy, i.e., the cooperative processing of the application layer and the kernel layer, improves the processing efficiency of the first packet data.
[0209] If the first access node is implemented as a VAC, a hop count field is added to the first packet data when the first access node sends out the first packet data, so that when a subsequent AP receives the first packet data, it is determined whether to continue broadcasting the first packet data according to the value of the hop count field.
[0210] If the first access node is implemented as an AP, the first packet data received by the first access node includes a first hop count field, and the first hop count field corresponds to a first hop value.
[0211] In the case where the first hop value meets the preset value requirement, the first hop value is decremented by one to obtain a second hop value, and the first packet data is sent out through an interface other than the first interface at the data link layer, and the first hop count field in the first packet data corresponds to the second hop value.
[0212] Optionally, the initial value of the first hop count field is a preset value, such as 256; or the initial value of the first hop count field is a value generated through a hop count statistics stage.
[0213] Illustratively, Figure 11is a forwarding process diagram of a private protocol packet provided by an exemplary embodiment of the present application, taking the interaction between an optical network unit 1110, a VAC 1120, a first AP device 1130 and a second AP device 1140 as an example. Among them, a wired connection is established between the VAC 1120 and the optical network unit 1110, a wired network is established between the VAC 1120 and the first AP device 1130, and a 5G bridge is established between the first AP device 1130 and the second AP device 1140. Among them, the VAC 1120 sends a private protocol packet to the first AP device 1130 through the optical network unit 1110, and the TTL value is 1, the first AP device 1130 transmits the private protocol packet to the second AP device 1140 at the data link layer, and the TTL value is reduced by 1, that is, TTL = 0, and the second AP device 1140 receives the private protocol packet and judges that TTL = 0, then stops broadcasting and sending the private protocol packet.
[0214] In summary, the method provided by the embodiments of the present application establishes the networking relationship between the first access node and the second access node in the case that the network device supports VLAN transparent transmission, and transmits the private protocol packet between the access nodes through the data link layer based on the networking relationship, which improves the efficiency and speed of the direct broadcast forwarding of the packet at the data link layer, improves the packet forwarding efficiency and enhances the network performance, enhances the network stability and reliability, reduces the system complexity and resource consumption, and supports efficient implementation of multi-hop networking.
[0215] In an optional embodiment, the initial value of the first hop count field is a value generated by the hop count counting phase. Figure 12 is a flowchart of the hop count counting phase provided by an exemplary embodiment of the present application. It is worth noting that, Figure 12 The embodiments shown can be implemented in combination with the above Figure 2 and / or Figure 7 and / or Figure 10 The embodiments shown can be implemented in combination with the above Figure 1 The method is performed by a first access node, which can be implemented as the first device 110 shown in the above Figure 1 The first access node accesses a network device, such as an ONU, and there is a second access node accessing a network device. Illustratively, the first access node is implemented as a VAC, as shown in Figure 12 The method includes the following steps.
[0216] Step 1220, in the hop count counting phase, receiving a hop count counting packet through a data receiving interface.
[0217] The hop count counting packet includes a second hop count field, and the second hop count field corresponds to a third hop count value.
[0218] In some embodiments, the first access node is implemented as a VAC, the hop count statistics packet is generated by the first access node, the second hop count count field is added in the hop count statistics packet, and the third hop count value (i.e. the initial value) of the second hop count count field is configured as 0, so that the fourth hop count value is obtained by adding 1, or the initial value of the second hop count count field is directly configured as the fourth hop count value, i.e. 1.
[0219] In step 1240, the third hop count value is added by 1 to obtain the fourth hop count value, and the hop count statistics packet is sent through an interface other than the data receiving interface.
[0220] The second hop count count field in the sent hop count statistics packet corresponds to the fourth hop count value.
[0221] The third hop count value added by 1 indicates the hop count of sending the private protocol packet between AP devices through the data link layer.
[0222] In step 1260, the message receiving state sent by the other access nodes is received.
[0223] The message receiving state indicates the receiving situation of the hop count statistics packet by the other access nodes.
[0224] In some embodiments, when the hop count statistics packet is received by the other access nodes, the message receiving state is automatically triggered to be sent to the first access node to indicate the state of receiving the hop count statistics packet.
[0225] In some embodiments, the message receiving state includes the field value of the second hop count count field in the received hop count statistics packet.
[0226] In step 1280, when the message receiving state of the other access nodes meets the message propagation requirement, the maximum value of the second hop count count field in the currently transmitted hop count statistics packet is obtained as the initial value of the first hop count count field.
[0227] Optionally, when the message receiving state statistics indicates that all APs in the networking relationship have received the hop count statistics packet, the field value of the second hop count count field is obtained from the received message receiving state, and the maximum field value is taken as the initial value of the first hop count count field.
[0228] In some embodiments, the hop count statistics stage is periodically performed to update the initial value of the first hop count count field, or the hop count statistics stage is performed to update the initial value of the first hop count count field when the VAC detects that there is a new AP accessing the networking.
[0229] In some embodiments, each AP connected with the network device through a wired connection respectively performs the hop count statistics phase as the VAC, and determines the initial value of the first hop count field corresponding to each AP, and the AP with the minimum initial value is applied as the VAC in the networking relationship.
[0230] Optionally, the message identification module of the AP is integrated in the bridge driver, and the hop count statistics message is identified by matching a preset field, such as a header field.
[0231] The interface replication engine is used to replicate the hop count statistics message to the active interfaces of the bridge except the receiving interface at the data link layer, so as to trigger the layer 2 flooding and broadcast and forward the message copy of the hop count statistics message.
[0232] The forwarding control module is used to add a hop counter (Time To Live, TTL) to the hop count statistics message, and count the hop count of the AP through the hop counter.
[0233] Optionally, the field value of the second hop count field is obtained from the received message receiving state, and a preset operation is performed on the maximum field value to obtain the initial value of the first hop count field, such as multiplying the maximum field value by a preset multiple to obtain the initial value of the first hop count field, wherein the preset multiple is greater than 1, and is used to increase the maximum field value within a certain range; or, a preset value is added to the maximum field value to obtain the initial value of the first hop count field.
[0234] In summary, the method provided by the embodiments of the present application establishes the networking relationship between the first access node and the second access node in the case that the network device supports VLAN transparent transmission, and performs transparent transmission of the private protocol message between the access nodes based on the networking relationship through the data link layer, thereby improving the efficiency and speed of direct broadcast forwarding of the message at the data link layer, improving the message forwarding efficiency and network performance, enhancing the network stability and reliability, reducing the system complexity and resource consumption, and supporting efficient implementation of multi-hop networking.
[0235] The method provided by the embodiments of the present application determines the initial value of the first hop count field by dynamically performing the hop count statistics phase to count the hop count data between the APs in the networking relationship, thereby avoiding the redundant forwarding of the private protocol message caused by the too high initial value, and avoiding the failure to be transmitted to all the APs that need to be reached caused by the too low initial value, and improving the reliability of the first hop count field.
[0236] Figure 13 is a schematic diagram of a communication test system provided by an exemplary embodiment of the present application, as Figure 13As shown, the communication test system 1300 includes a first access node 1310 and a second access node 1320. The first access node 1310 and the second access node 1320 access network devices respectively, and the first access node 1310 and the second access node 1320 access the network devices through wired connection respectively. In some embodiments, more access nodes can be included in the communication test system 1300.
[0237] The first access node 1310 is configured to run a detection program, and the detection program includes a first detection interface and a second detection interface.
[0238] The second access node 1320 is configured to run the detection program, send a first data frame to the first access node 1310 through the first detection interface, and send a second data frame to the first access node 1310 through the second detection interface, and the second data frame is marked with a transparent label.
[0239] The first access node 1310 is further configured to, in response to detecting the first data frame sent by the second access node 1320 through the first detection interface, generate a first connectivity result corresponding to the network device, and the first connectivity result is used to express the connectivity between the ports of the network device; and in response to detecting the second data frame sent by the second access node 1320 through the second detection interface and the second data frame being marked with the transparent label, generate a second connectivity result corresponding to the network device, and the second connectivity result is used to express that the network device supports data frame transparent transmission on a virtual local area network (VLAN).
[0240] In an optional embodiment, the first access node 1310 is further configured to, in response to detecting the first data frame sent by the second access node 1320 through the first detection interface and the first data frame not being marked with a VLAN label, generate the first connectivity result corresponding to the network device.
[0241] In an optional embodiment, the first access node 1310 is further configured to, in response to detecting the second data frame sent by the second access node 1320 through the second detection interface and the second data frame being marked with a preset VLAN label, generate the second connectivity result corresponding to the network device.
[0242] In an optional embodiment, the transparent label is a label marked on the second data frame in the detection program of the second access node after the detection program is run on the second access node.
[0243] In an optional embodiment, the first access node 1310 is further configured to, in response to the detection program being run, send a first request frame not marked with a VLAN label to the second access node 1320.
[0244] The second access node 1320 is further configured to feed back the first data frame to the first access node 1310 in response to receiving the first request frame sent by the first access node 1310; and
[0245] The first access node 1310 is further configured to send a second request frame marked with a pass-through label to the second access node 1320.
[0246] The second access node 1320 is further configured to feed back a second data frame to the first access node 1310 in response to receiving the second request frame sent by the first access node 1310.
[0247] In an optional embodiment, the first access node 1310 is further configured to, in the case that the network device supports VLAN pass-through, send the first message data at the data link layer through an interface other than the first interface in response to receiving the first message data through the first interface and the first message data belonging to a private protocol message.
[0248] In an optional embodiment, the first access node 1310 is further configured to, in response to receiving the first message data through the first interface, read a message type field of the first message data; and send the first message data at the data link layer through an interface other than the first interface in the case that the message type field indicates that the first message data belongs to a private protocol message.
[0249] In an optional embodiment, the first access node 1310 is further configured to generate a first message copy corresponding to the first message data; and send the first message copy at the data link layer through an interface other than the first interface.
[0250] In an optional embodiment, the first message data includes a first hop count field, and the first hop count field corresponds to a first hop value.
[0251] The first access node 1310 is further configured to, in the case that the first hop value meets preset value requirements, reduce the first hop value by one to obtain a second hop value, and send the first message data at the data link layer through an interface other than the first interface, the first hop count field in the first message data corresponding to the second hop value.
[0252] In an optional embodiment, the initial value of the first hop count field is a preset value; or the initial value of the first hop count field is a value generated through a hop count statistics stage.
[0253] In an optional embodiment, the initial value of the first hop count field is a value generated through a hop count statistics stage.
[0254] The first access node 1310 is further configured to, in the hop count counting phase, receive, through a data receiving interface, a hop count counting packet, the hop count counting packet including a second hop count counting field, the second hop count counting field corresponding to a third hop count value; add one to the third hop count value to obtain a fourth hop count value, and send, through an interface other than the data receiving interface, the hop count counting packet, the second hop count counting field in the hop count counting packet corresponding to the fourth hop count value; receive a message receiving state sent by another access node, the message receiving state being used to indicate a receiving situation of the hop count counting packet by the another access node; and in a case where the message receiving state of the another access node meets a message propagation requirement, obtain a maximum value of the second hop count counting field in the hop count counting packet currently transmitted as an initial value of a first hop count counting field.
[0255] In summary, the system provided by the embodiment of the application realizes data frame transmission and detection between the first access node and the second access node through the detection programs in the first access node and the second access node, so as to realize automatic testing of the VLAN transparent transmission capability between the ports of the network device, improve the testing accuracy and efficiency of the network device, avoid subjective problems and uncertainties in manual testing of the VLAN transparent transmission capability, improve the efficiency in the process of testing the VLAN transparent transmission capability of the network device, and improve the downstream utilization efficiency of the testing result of the VLAN transparent transmission capability, such as improving the networking efficiency and accuracy of the access node based on the testing result of the VLAN transparent transmission capability.
[0256] Figure 14 is a structural block diagram of a communication test device provided by an example embodiment of the application, as shown in Figure 14 The device includes:
[0257] The running module 1410 is configured to run a detection program, the detection program including a first detection interface and a second detection interface.
[0258] The generating module 1420 is configured to, in response to detecting, through the first detection interface, a first data frame sent by a second access node, generate a first connectivity result corresponding to a network device, the first connectivity result being used to express connectivity between ports of the network device.
[0259] The generating module 1420 is further configured to, in response to detecting, through the second detection interface, a second data frame sent by the second access node, and the second data frame being labeled with a transparent transmission label, generate a second connectivity result corresponding to the network device, the second connectivity result being used to express that the network device supports data frame transparent transmission on a virtual local area network (VLAN).
[0260] In an optional embodiment, the generating module 1420 is further configured to, in response to detecting the first data frame sent by the second access node through the first probing interface, and the first data frame not being marked with a VLAN tag, generate the first connectivity result corresponding to the network device.
[0261] In an optional embodiment, the generating module 1420 is further configured to, in response to detecting the second data frame sent by the second access node through the second probing interface, and the second data frame being marked with a preset VLAN tag, generate the second connectivity result corresponding to the network device.
[0262] In an optional embodiment, the transparent tag is a tag marked on the second data frame by the probing program of the second access node after running the probing program on the second access node.
[0263] In an optional embodiment, as shown in Figure 15 the apparatus further comprises:
[0264] The sending module 1430 is configured to, in response to running the probing program, send a first request frame not marked with a VLAN tag to the second access node, and the first data frame is a response frame fed back by the second access node based on the first request frame.
[0265] The sending module 1430 is further configured to send a second request frame marked with the transparent tag to the second access node, and the second data frame is a response frame fed back by the second access node based on the second request frame.
[0266] In an optional embodiment, the apparatus further comprises:
[0267] The sending module 1430 is configured to, in the case that the network device supports VLAN transparent transmission, in response to receiving a first message data through a first interface, and the first message data belonging to a private protocol message, send the first message data through an interface other than the first interface at a data link layer.
[0268] In an optional embodiment, the sending module 1430 is further configured to, in response to receiving the first message data through the first interface, read a message type field of the first message data; in the case that the message type field indicates that the first message data belongs to the private protocol message, send the first message data through an interface other than the first interface at the data link layer.
[0269] In an optional embodiment, the generating module 1420 is further configured to generate a first packet copy corresponding to the first packet data;
[0270] The sending module 1430 is further configured to send the first packet copy through an interface other than the first interface at the data link layer.
[0271] In an optional embodiment, the first packet data comprises a first hop count field, the first hop count field corresponding to a first hop count value;
[0272] The sending module 1430 is further configured to, in a case where the first hop count value meets preset value requirements, decrease the first hop count value by one to obtain a second hop count value, and send the first packet data through an interface other than the first interface at the data link layer, the first hop count field in the first packet data corresponding to the second hop count value.
[0273] In an optional embodiment, an initial value of the first hop count field is a preset value; or,
[0274] The initial value of the first hop count field is a value generated through a hop count statistics stage.
[0275] In an optional embodiment, an initial value of the first hop count field is a value generated through a hop count statistics stage;
[0276] The generating module 1420 is further configured to, in the hop count statistics stage, receive a hop count statistics packet through a data receiving interface, the hop count statistics packet comprising a second hop count field, the second hop count field corresponding to a third hop count value; increase the third hop count value by one to obtain a fourth hop count value, and send the hop count statistics packet through an interface other than the data receiving interface, the second hop count field in the hop count statistics packet corresponding to the fourth hop count value; receive a packet receiving state sent by another access node, the packet receiving state being used to indicate a receiving situation of the hop count statistics packet by the another access node; in a case where the packet receiving state of the another access node meets packet propagation requirements, obtain a maximum value of the second hop count field in the hop count statistics packet currently transmitted as the initial value of the first hop count field.
[0277] In summary, the device provided by the embodiments of the present application realizes data frame transmission and detection between the first access node and the second access node through the detection procedures in the first access node and the second access node, thereby realizing automatic testing of the VLAN transparent transmission capability between the ports of the network device, improving the testing accuracy and efficiency of the network device, avoiding subjective problems and uncertainties in manual testing of the VLAN transparent transmission capability, improving the efficiency in the VLAN transparent transmission capability testing process of the network device, and improving the downstream utilization efficiency of the VLAN transparent transmission capability testing result, such as improving the efficiency and accuracy of access node networking based on the VLAN transparent transmission capability testing result.
[0278] The device provided by the embodiments of the present application establishes the networking relationship between the first access node and the second access node in the case that the network device supports VLAN transparent transmission, and transmits the private protocol message between the access nodes through the data link layer based on the networking relationship, thereby improving the efficiency and speed of direct broadcast forwarding of the message at the data link layer, improving the message forwarding efficiency and network performance, enhancing the network stability and reliability, reducing the system complexity and resource consumption, and supporting efficient implementation of multi-hop networking.
[0279] It should be noted that: the communication testing device provided by the above embodiments is only exemplified by the division of the above functional modules, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the communication testing device and the communication testing method provided by the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0280] Figure 16 The structure block diagram of the communication device 1600 provided by an example embodiment of the present application is shown. The communication device 1600 can be: AP, AC, VAC, ONU, and other names.
[0281] Generally, the communication device 1600 includes a processor 1601 and a memory 1602.
[0282] The processor 1601 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1601 can be implemented in at least one of a hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA), and the like. The processor 1601 can also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also referred to as a central processing unit (CPU), and the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 can further include an artificial intelligence (AI) processor for processing computing operations related to machine learning.
[0283] The memory 1602 can include one or more computer-readable storage media that can be non-transitory. The memory 1602 can also include a high-speed random access memory, and a nonvolatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1602 is used to store at least one instruction for being executed by the processor 1601 to implement the communication test method provided by the method embodiment of the present application.
[0284] In some embodiments, the communication device 1600 further includes some other components 1603, and the type and number of the other components 1603 can be selected based on the functional needs of the communication device 1600. Those skilled in the art can understand that the structure shown in the figure does not constitute a limitation on the communication device 1600, and can include more or fewer components than shown, or combine certain components, or use different component arrangements. Figure 16 The structure shown in the figure does not constitute a limitation on the communication device 1600, and can include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0285] Optionally, the computer readable storage medium can include a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drives (SSD), an optical disc, or the like. Among them, the random access memory can include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The above-mentioned application embodiment serial number is only for description, not representing the pros and cons of the embodiment.
[0286] The embodiments of the present application further provide a communication device, which comprises a processor and a memory, and the memory stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to realize the communication test method according to any one of the above-mentioned embodiments of the present application.
[0287] The embodiments of the present application further provide a computer readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to realize the communication test method according to any one of the above-mentioned embodiments of the present application.
[0288] The embodiments of the present application further provide a computer program product or a computer program, which comprises computer instructions stored in a computer readable storage medium. The processor of the communication device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the communication device execute the communication test method according to any one of the above-mentioned embodiments.
[0289] It should be noted that the collection and processing of related data (such as including the content of the dialogue) in the present application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing behavior within the scope of authorization of laws and regulations and the personal information subject.
[0290] It should be understood that "multiple" mentioned herein refers to two or more than two. The "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A existing alone, A and B existing together, and B existing alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship. In addition, the step numbers described herein only exemplarily show a possible execution order between steps, and in some other embodiments, the above steps can also be executed in a non-numbered order, such as two different numbered steps being executed simultaneously, or two different numbered steps being executed in an order opposite to the illustration, which is not limited in the embodiments of the present application.
[0291] The above only describes exemplary embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A communication testing method, characterized in that: The method is performed by a first access node, the first access node accessing a network device, and includes: Running a detection program, wherein the detection program includes a first detection interface and a second detection interface; In response to detecting, through the first detection interface, a first data frame sent by the second access node, generating a first connectivity result corresponding to the network device, where the first connectivity result is used to express connectivity between ports of the network device; In response to detecting the second data frame sent by the second access node through the second detection interface, and the second data frame is marked with a transparent transmission tag, a second connectivity result corresponding to the network device is generated, and the second connectivity result is used to express that the network device supports transparent transmission of data frames on the virtual local area network VLAN.
2. The method according to claim 1, characterized in that The generating, in response to detecting, through the first detection interface, a first data frame sent by the second access node, a first connectivity result corresponding to the network device includes: In response to detecting, through the first detection interface, the first data frame sent by the second access node, and the first data frame not being marked with a VLAN tag, generating the first connectivity result corresponding to the network device.
3. The method according to claim 1, characterized in that The step of generating a second connectivity result corresponding to the network device in response to detecting, through the second detection interface, a second data frame sent by the second access node, the second data frame being marked with a transparent transmission tag, includes: In response to detecting, through the second detection interface, the second data frame sent by the second access node, and the second data frame being marked with a preset VLAN tag, generating the second connectivity result corresponding to the network device.
4. The method according to any one of claims 1 to 3, characterized in that: The transparent transmission label is a label marked on the second data frame by the detection program of the second access node after the detection program is run on the second access node.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to the detection program running, sending a first request frame without a VLAN tag to the second access node, where the first data frame is a response frame fed back by the second access node based on the first request frame; and A second request frame marked with the transparent transmission tag is sent to the second access node, where the second data frame is a response frame fed back by the second access node based on the second request frame.
6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In the case where the network device supports VLAN transparent transmission, in response to receiving first message data through the first interface, and the first message data belongs to a private protocol message, the first message data is sent through an interface other than the first interface at the data link layer.
7. The method according to claim 6, characterized in that In response to receiving first message data through the first interface, and the first message data being a private protocol message, sending the first message data through an interface other than the first interface at the data link layer includes: In response to receiving the first message data through the first interface, reading the message type field of the first message data; In a case where the message type field indicates that the first message data belongs to the private protocol message, the first message data is sent at the data link layer through an interface other than the first interface.
8. The method according to claim 6, characterized in that The sending the first message data through an interface other than the first interface at the data link layer includes: generating a first message copy corresponding to the first message data; The first message copy is sent through an interface other than the first interface at the data link layer.
9. The method according to claim 6, characterized in that The first message data includes a first hop count field, where the first hop count field corresponds to a first hop count value; The sending the first message data through an interface other than the first interface at the data link layer includes: When the first hop count value meets the preset value requirements, the first hop count value is subtracted by one to obtain a second hop count value, and the first message data is sent through an interface other than the first interface at the data link layer, and the first hop count field in the first message data corresponds to the second hop count value.
10. The method according to claim 9, characterized in that The initial value of the first hop count field is a preset value; or, The initial value of the first hop count field is a value generated through the hop count statistics phase.
11. The method according to claim 10, characterized in that The initial value of the first hop count field is a value generated in the hop count statistics phase; The method further comprises: In the hop count statistics phase, a hop count statistics message is received through a data receiving interface, wherein the hop count statistics message includes a second hop count field, and the second hop count field corresponds to a third hop count value; Add one to the third hop count value to obtain a fourth hop count value, and send the hop count statistics message through an interface other than the data receiving interface, where the second hop count field in the hop count statistics message corresponds to the fourth hop count value; receiving a message reception status sent by other access nodes, where the message reception status is used to indicate a reception status of the hop count statistics message by the other access nodes; When the message receiving status of the other access nodes meets the message transmission requirement, the maximum value of the second hop count field in the currently transmitted hop statistics message is obtained as the initial value of the first hop count field.
12. A communication test system, characterized in that: The system includes: a first access node and a second access node, wherein the first access node and the second access node are respectively connected to a network device; The first access node is configured to run a detection program, the detection program including a first detection interface and a second detection interface; The second access node is configured to run the detection program; send a first data frame to the first access node through the first detection interface; and send a second data frame to the first access node through the second detection interface, wherein the second data frame is marked with a transparent transmission tag; The first access node is also configured to generate a first connectivity result corresponding to the network device in response to detecting the first data frame sent by the second access node through the first detection interface, and the first connectivity result is used to express the connectivity between the ports of the network device; and, in response to detecting the second data frame sent by the second access node through the second detection interface, and the second data frame is marked with a transparent transmission tag, generate a second connectivity result corresponding to the network device, and the second connectivity result is used to express that the network device supports transparent transmission of data frames on the virtual local area network VLAN.
13. The system according to claim 12, wherein: The first access node is also configured to, in the case where the network device supports VLAN transparent transmission, in response to receiving first message data through the first interface, and the first message data is a private protocol message, send the first message data through an interface other than the first interface at the data link layer.
14. A communication test device, characterized in that: The device comprises: An operating module is configured to operate a detection program, wherein the detection program includes a first detection interface and a second detection interface; a generating module configured to generate a first connectivity result corresponding to the network device in response to detecting a first data frame sent by the second access node through the first detection interface, wherein the first connectivity result is used to express connectivity between ports of the network device; The generation module is also configured to generate a second connectivity result corresponding to the network device in response to detecting a second data frame sent by the second access node through the second detection interface, and the second data frame is marked with a transparent transmission tag, and the second connectivity result is used to express that the network device supports transparent transmission of data frames on the virtual local area network VLAN.
15. A communication device, characterized in that: The communication device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the communication test method according to any one of claims 1 to 11.
16. A computer-readable storage medium, characterized in that The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the communication testing method according to any one of claims 1 to 11.
17. A computer program product, characterized in that The invention comprises a computer program, which implements the communication test method according to any one of claims 1 to 11 when the computer program is executed by a processor.
