Network service debugging method and device

By deploying virtual switches on terminal devices and monitoring data packets using operating mode, the reliability problem of network service debugging is solved, independent debugging and optimization of network access and authentication services is realized, and the reliability and scalability of network services are improved.

CN116170427BActive Publication Date: 2025-08-26HUBEI TIANRONGXIN NETWORK SECURITY TECH CO LTD +3
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211574347.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-08-26
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

In the prior art, network access and authentication are realized through third-party entity interaction machines, which makes it difficult to debug the interaction process between client devices, third-party entity interaction machines and authentication servers during the development stage, affecting the reliability of network services.

Method used

By deploying a virtual switch on a terminal device, using the selected operating mode to interact with the target device for information, monitoring data packets, and obtaining the debugging results of network services, the virtualized switch parameters are abstracted into configuration files, independent network access and authentication service modules, and data packets are customized and analyzed using socket functions and udp protocol.

Benefits of technology

It improves the reliability and scalability of network services, can independently debug network access and authentication services, reduce business scale, optimize the overall network authentication framework, and improve the accuracy of debugging results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170427B_ABST
    Figure CN116170427B_ABST
Patent Text Reader

Abstract

The present application relates to the field of network communication technology, and provides a network service debugging method and device. The method includes: being applied to a terminal device, including: according to the selected operating mode, exchanging information between the virtual switch deployed by the terminal device and the target device determined according to the operating mode in each network device, and monitoring the data message of the target device; according to the data message, obtaining the debugging result of the network service corresponding to the target device; wherein each network device includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device; the network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service. The network service debugging method provided in the embodiment of the present application can improve the reliability of network services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a network service debugging method and device. Background Art

[0002] With the rapid development of network communication technology and the increasing wealth of information it carries, the Internet has become a vital infrastructure for human society. Currently, when client devices access and authenticate network services, they send their identity information to an authentication server through a third-party physical interface, which then performs the actual authentication and returns the result to the client device. However, since network access and authentication are achieved through a third-party physical interface, and the access port configuration of the third-party physical interface is fixed, debugging the interaction between the client device, the third-party physical interface, and the authentication server during the development phase is inconvenient, impacting the reliability of network services. Summary of the Invention

[0003] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a network service debugging method that can improve the reliability of network services.

[0004] This application also proposes a network service debugging device.

[0005] The present application also provides an electronic device.

[0006] The present application also provides a computer-readable storage medium.

[0007] According to the first embodiment of the present application, the network service debugging method is applied to a terminal device, including:

[0008] According to the selected operation mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors the data packets of the target device;

[0009] Obtaining, according to the data message, a debugging result of the network service corresponding to the target device;

[0010] Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device;

[0011] The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service.

[0012] The network service debugging method provided in the embodiment of the present application, through the selected operating mode, causes the virtual switch deployed on the terminal device to interact with the target device determined according to the operating mode, monitors the data packets of the target device, and obtains the debugging results of the network service corresponding to the target device based on the data packets, thereby utilizing the method of deploying the virtual switch on the terminal device to deploy the terminal device as a switch through virtualization, so that the switch parameters are abstracted into a configuration file, without being restricted by the hardware environment of a third-party interactive machine, facilitating function expansion and having strong scalability, thereby facilitating the debugging of network access services or network authentication services, and improving the reliability of network services.

[0013] According to one embodiment of the present application, the operating mode is any one of an access mode, an authentication mode, or a bilateral mode;

[0014] The target device corresponding to the access mode includes the client device; the target device corresponding to the authentication mode includes the authentication server; the target device corresponding to the bilateral mode includes the client device and the authentication server.

[0015] According to one embodiment of the present application, according to the selected operating mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operating mode in each network device, and monitors the data message of the target device, including:

[0016] Determining that the operating mode is the access mode, and obtaining operating parameters including a socket function from the virtual switch;

[0017] According to the socket function in the operating parameters, the virtual switch interacts with the client device and monitors data packets from the client device.

[0018] According to an embodiment of the present application, the data message of the client device includes an 802.1x message.

[0019] According to one embodiment of the present application, according to the selected operating mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operating mode in each network device, and monitors the data message of the target device, further comprising:

[0020] Determining that the operating mode is the authentication mode, and obtaining operating parameters including the UDP protocol from the virtual switch;

[0021] According to the UDP protocol in the operating parameters, the virtual switch and the authentication server interact with each other and monitor the data packets of the authentication server.

[0022] According to one embodiment of the present application, according to the selected operating mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operating mode in each network device, and monitors the data message of the target device, further comprising:

[0023] Determining that the operating mode is the bilateral mode, and obtaining operating parameters including the socket function and the UDP protocol from the virtual switch;

[0024] According to the socket function in the operating parameters, the virtual switch is caused to interact with the client device for information, and according to the UDP protocol in the operating parameters, the virtual switch is caused to interact with the authentication server for information to monitor data packets between the client device and the authentication server.

[0025] According to one embodiment of the present application, the authentication server is a local virtual machine.

[0026] According to the second embodiment of the present application, a network service debugging device is applied to a terminal device, including:

[0027] a data message acquisition module, configured to, according to the selected operation mode, enable the virtual switch deployed on the terminal device to interact with a target device determined according to the operation mode in each network device, and monitor data messages from the target device;

[0028] A network device debugging module, configured to obtain a debugging result of a network service corresponding to the target device according to the data message;

[0029] Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device;

[0030] The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service.

[0031] According to an electronic device of an embodiment of the third aspect of the present application, the electronic device includes a processor and a memory storing a computer program, and when the processor executes the computer program, the network service debugging method described in any of the above embodiments is implemented.

[0032] According to the computer-readable storage medium of the fourth embodiment of the present application, a computer program is stored thereon, and when the computer program is executed by a processor, the network service debugging method described in any of the above embodiments is implemented.

[0033] According to the computer program product of the fifth embodiment of the present application, the computer program product includes: when the computer program is executed by a processor, the network service debugging method as described in any of the above embodiments is implemented.

[0034] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0035] Through the selected operating mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operating mode, monitors the data packets of the target device, and obtains the debugging results of the network service corresponding to the target device based on the data packets. In this way, the terminal device is deployed as a switch through virtualization by utilizing the method of deploying a virtual switch on the terminal device, and the switch parameters are abstracted into configuration files. It is not restricted by the hardware environment of a third-party interactive machine, is easy to expand functions, has strong scalability, and thus facilitates the debugging of network access services or network authentication services, thereby improving the reliability of network services.

[0036] Furthermore, since access mode only initiates the interaction process between the client device and the virtual intermediary, and authentication mode only initiates the interaction process between the authentication server and the virtual intermediary, both access and authentication modes are unilateral. This allows network access services and network authentication services to be separated into separate modules, reducing the scale of services while enabling the research and implementation of specific encryption algorithms for network access services or network authentication services. The bilateral mode, on the other hand, is closest to real-world business scenarios, enabling the optimization of the overall network access and authentication framework, facilitating the development of client device access functionality, and further improving network service reliability.

[0037] Furthermore, the socket function can be used to highly customize data packets. Both the packet header and the packet content can be rewritten or analyzed and verified. Therefore, the data packets of the client device can be better monitored and analyzed, making the final debugging results more accurate, thereby further improving the reliability of network services. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0039] Figure 1 This is a flowchart of a network service debugging method provided by an embodiment of the present application;

[0040] Figure 2aIt is a structural diagram of the access mode;

[0041] Figure 2b It is a structural diagram of the authentication mode;

[0042] Figure 2c It is a structural diagram of the bilateral model;

[0043] Figure 3 Yes Figure 1 A flowchart further refining the monitoring of data packets in the network service debugging method;

[0044] Figure 4 Yes Figure 1 A flowchart further refining the monitoring of data packets in the network service debugging method;

[0045] Figure 5 This is a flowchart of a network service debugging method provided by another embodiment of the present application;

[0046] Figure 6 This is a schematic diagram of the structure of the network service debugging device provided in an embodiment of the present application;

[0047] Figure 7 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0049] Below, the network service debugging method and device provided by the embodiments of the present application will be introduced and explained in detail through several specific embodiments.

[0050] In one embodiment, a network service debugging method is provided. The method is applied to a terminal device and is used to debug a network access service or a network authentication service. The terminal device can be any user terminal or any server. The user terminal can be a desktop terminal or a portable terminal, such as a desktop computer or a laptop computer. The server can be an independent server or a server cluster composed of multiple servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence sampling point devices. The terminal device is deployed with a virtual switch.

[0051] like Figure 1 As shown, a network service debugging method provided in this embodiment includes:

[0052] Step 101: Based on the selected operation mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors data packets from the target device.

[0053] Step 102: Obtain the debugging result of the network service corresponding to the target device according to the data message;

[0054] Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device;

[0055] The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service.

[0056] Through the selected operating mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operating mode, monitors the data packets of the target device, and obtains the debugging results of the network service corresponding to the target device based on the data packets. In this way, the terminal device is deployed as a switch through virtualization by utilizing the method of deploying a virtual switch on the terminal device, and the switch parameters are abstracted into configuration files. It is not restricted by the hardware environment of a third-party interactive machine, is easy to expand functions, has strong scalability, and thus facilitates the debugging of network access services or network authentication services, thereby improving the reliability of network services.

[0057] In one embodiment, a terminal device is pre-deployed with an application for a virtual switch. When the application is run, the virtual switch of the terminal device can be started. When the application is running, a corresponding graphical interface can be provided in the display interface of the terminal device. The graphical interface includes multiple operating modes that can be selected by the user. Each operating mode pre-specifies a target device that needs to exchange information with the virtual switch. At the same time, each operating mode is pre-configured with corresponding operating parameters. Among them, the operating parameters include the network card, protocol type, MAC address of the target device, and the content of specific fields in the message. When the user selects a certain operating mode, the operating parameters corresponding to the selected operating mode can be obtained according to the selected operating mode, and the target device corresponding to the operating mode can be determined from each network device.

[0058] After obtaining the operating parameters and the target device, the operating parameters are called to start the interaction process between the target device virtual interactive machine, so that the virtual interactive machine and the target device perform data interaction based on the interaction logic set in the operating parameters to monitor the data packets sent by the target device.

[0059] In one embodiment, the operation mode may be any one of an access mode, an authentication mode or a bilateral mode. Figure 2a As shown, when the selected operating mode is the access mode, the corresponding target device is the client device to be connected to the network. At this time, the virtual switch interacts with the client device to monitor the data packets of the authentication server, thereby debugging the network access service.

[0060] like Figure 2b As shown, when the selected operating mode is the authentication mode, the corresponding target device is the authentication server used to perform network access authentication of the client device. At this time, the virtual switch interacts with the authentication server to monitor the data packets of the authentication server, thereby debugging the network authentication service.

[0061] like Figure 2c As shown, when the selected operating mode is bilateral mode, which is closest to the actual business scenario, the corresponding target devices are the client device and the authentication server. At this time, the virtual switch interacts with the client device and the authentication server to monitor the data packets transmitted between the three, thereby debugging the complete network service.

[0062] Because access mode only initiates the interaction between the client device and the virtual intermediary, and authentication mode only initiates the interaction between the authentication server and the virtual intermediary, both access and authentication modes are unilateral. This separates network access and authentication services into separate modules, reducing service scale while enabling the research and implementation of specific encryption algorithms for network access and authentication services. Bilateral mode, on the other hand, is closest to real-world service scenarios, enabling optimized design of the overall network access and authentication framework, facilitating the development of client device access functionality, and further improving network service reliability.

[0063] In order to better debug the network service, in one embodiment, Figure 3 As shown, according to the selected operating mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operating mode in each network device, and monitors the data message of the target device, including:

[0064] Step 201: Determine that the operating mode is the access mode, and obtain operating parameters including socket functions from the virtual switch;

[0065] Step 202: According to the socket function in the operating parameters, the virtual switch interacts with the client device and monitors data packets from the client device.

[0066] In one embodiment, in access mode, operating parameters including a socket function are retrieved from the virtual switch. The socket function within the invoked operating function is then used to exchange data packets between the client device and the virtual switch, monitoring data packets from the client device. The socket function is determined based on the actual operating system of the virtual switch, such as Windows or Linux. This means that the socket function invoked by the operating system is used to monitor data packets from the client device, enabling adaptability to different operating systems and ensuring a high degree of network communication fidelity.

[0067] Since the socket function can be used to highly customize data messages, both the message header and the message content can be rewritten or analyzed and verified. Therefore, the data messages of the client device can be better monitored and analyzed, making the final debugging results more accurate, thereby further improving the reliability of network services.

[0068] In addition, since experiments have verified that the content of 802.1x authentication messages can be simulated on a virtual interactive machine, the data messages of the monitored client devices must be 802.1x messages, so as to effectively simulate the message exchange process between the client device and the virtual interactive machine, improve the accuracy of network access service debugging, and further improve the reliability of network services.

[0069] In one embodiment, if Figure 4 As shown, according to the selected operating mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operating mode in each network device, and monitors the data message of the target device, and also includes:

[0070] Step 301: Determine that the operation mode is the authentication mode, and obtain operation parameters including the UDP protocol from the virtual switch;

[0071] Step 302: According to the UDP protocol in the operating parameters, the virtual switch interacts with the authentication server and monitors data packets from the authentication server.

[0072] In one embodiment, in the authentication mode, operating parameters with the UDP protocol are obtained from the virtual switch, and then the UDP protocol is used to communicate with the authentication server to monitor data packets of the authentication server.

[0073] Among them, to further facilitate debugging of the network authentication service, the authentication server can also be a local virtual machine. In this way, the information interaction between the virtual switch and the authentication server is the information interaction between the virtual switch and the local virtual machine, thereby facilitating the functional expansion of the network authentication service.

[0074] In one embodiment, if Figure 5 As shown, according to the selected operating mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operating mode in each network device, and monitors the data message of the target device, and also includes:

[0075] Step 401: Determine that the operating mode is the bilateral mode, and obtain operating parameters including the socket function and the UDP protocol from the virtual switch;

[0076] Step 402: According to the socket function in the operating parameters, the virtual switch interacts with the client device, and according to the UDP protocol in the operating parameters, the virtual switch interacts with the authentication server to monitor data packets between the client device and the authentication server.

[0077] In one embodiment, in authentication mode, operating parameters, including socket functions and the UDP protocol, are retrieved from the virtual switch. The socket function within the invoked operating function is then used to exchange data packets between the client device and the virtual switch, monitoring data packets from the client device. Simultaneously, the UDP protocol is used to communicate with the authentication server and monitor data packets from the authentication server, simulating a complete network service scenario and facilitating subsequent optimization of the overall network access authentication framework.

[0078] In one embodiment, after obtaining the data message of the target device, the data message may be analyzed to determine whether the data message is accurate in the corresponding operation mode, thereby determining the debugging result of the network service corresponding to the target device.

[0079] Exemplarily, the operating mode is the access mode. At this time, the data message obtained from the client device is parsed to determine that the message format, message content and message header of the data message are consistent with the pre-set regular data message, then the debugging result of the network access service can be determined to be normal.

[0080] The network service debugging device provided in the present application is described below. The network service debugging device described below and the network service debugging method described above can be referenced to each other.

[0081] In one embodiment, if Figure 6 As shown, a network service debugging device is provided, which is applied to a terminal device and includes:

[0082] The data packet acquisition module 210 is configured to, according to the selected operation mode, interact information between the virtual switch deployed by the terminal device and the target device determined according to the operation mode in each network device, and monitor the data packets of the target device;

[0083] The network device debugging module 220 is configured to obtain a debugging result of the network service corresponding to the target device according to the data message;

[0084] Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device;

[0085] The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service.

[0086] Through the selected operating mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operating mode, monitors the data packets of the target device, and obtains the debugging results of the network service corresponding to the target device based on the data packets. In this way, the terminal device is deployed as a switch through virtualization by utilizing the method of deploying a virtual switch on the terminal device, and the switch parameters are abstracted into configuration files. It is not restricted by the hardware environment of a third-party interactive machine, is easy to expand functions, has strong scalability, and thus facilitates the debugging of network access services or network authentication services, thereby improving the reliability of network services.

[0087] In one embodiment, the operating mode is any one of an access mode, an authentication mode, or a bilateral mode;

[0088] The target device corresponding to the access mode includes the client device; the target device corresponding to the authentication mode includes the authentication server; the target device corresponding to the bilateral mode includes the client device and the authentication server.

[0089] In one embodiment, the data packet acquisition module 210 is specifically configured to:

[0090] Determining that the operating mode is the access mode, and obtaining operating parameters including a socket function from the virtual switch;

[0091] According to the socket function in the operating parameters, the virtual switch interacts with the client device and monitors data packets from the client device.

[0092] In one embodiment, the data packet of the client device includes an 802.1x packet.

[0093] In one embodiment, the data packet acquisition module 210 is specifically configured to:

[0094] Determining that the operating mode is the authentication mode, and obtaining operating parameters including the UDP protocol from the virtual switch;

[0095] According to the UDP protocol in the operating parameters, the virtual switch and the authentication server interact with each other and monitor the data packets of the authentication server.

[0096] In one embodiment, the data packet acquisition module 210 is specifically configured to:

[0097] Determining that the operating mode is the bilateral mode, and obtaining operating parameters including the socket function and the UDP protocol from the virtual switch;

[0098] According to the socket function in the operating parameters, the virtual switch is caused to interact with the client device for information, and according to the UDP protocol in the operating parameters, the virtual switch is caused to interact with the authentication server for information to monitor data packets between the client device and the authentication server.

[0099] In one embodiment, the authentication server is a local virtual machine.

[0100] Figure 6 An example of a physical structure diagram of an electronic device is shown below. Figure 6 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call a computer program in the memory 830 to execute a network service debugging method, for example, including:

[0101] According to the selected operation mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors the data packets of the target device;

[0102] Obtaining, according to the data message, a debugging result of the network service corresponding to the target device;

[0103] Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device;

[0104] The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service.

[0105] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0106] On the other hand, an embodiment of the present application further provides a storage medium, the storage medium including a computer program, which may be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the network service debugging method provided in each of the above embodiments, for example, including:

[0107] According to the selected operation mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors the data packets of the target device;

[0108] Obtaining, according to the data message, a debugging result of the network service corresponding to the target device;

[0109] Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device;

[0110] The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service.

[0111] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A network service debugging method, characterized in that: Applied to terminal equipment, including: According to the selected operation mode, the virtual switch deployed on the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors the data packets of the target device; Obtaining, according to the data message, a debugging result of the network service corresponding to the target device; Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device; The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service; Any of the operating modes specifies a target device for exchanging information with the virtual switch.

2. The network service debugging method according to claim 1, wherein: The operation mode is any one of an access mode, an authentication mode or a bilateral mode; The target device corresponding to the access mode includes the client device; the target device corresponding to the authentication mode includes the authentication server; the target device corresponding to the bilateral mode includes the client device and the authentication server.

3. The network service debugging method according to claim 2, wherein: According to the selected operation mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors the data message of the target device, including: Determining that the operating mode is the access mode, and obtaining operating parameters including a socket function from the virtual switch; According to the socket function in the operating parameters, the virtual switch interacts with the client device and monitors data packets from the client device.

4. The network service debugging method according to claim 3, wherein: The data packets of the client device include 802.1x packets.

5. The network service debugging method according to claim 2, wherein: According to the selected operation mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors the data message of the target device, further comprising: Determining that the operating mode is the authentication mode, and obtaining operating parameters including the UDP protocol from the virtual switch; According to the UDP protocol in the operating parameters, the virtual switch and the authentication server interact with each other and monitor the data packets of the authentication server.

6. The network service debugging method according to claim 2, characterized in that: According to the selected operation mode, the virtual switch deployed by the terminal device interacts with the target device determined according to the operation mode in each network device, and monitors the data message of the target device, further comprising: Determining that the operating mode is the bilateral mode, and obtaining operating parameters including a socket function and a UDP protocol from the virtual switch; According to the socket function in the operating parameters, the virtual switch is caused to interact with the client device for information, and according to the UDP protocol in the operating parameters, the virtual switch is caused to interact with the authentication server for information to monitor data packets between the client device and the authentication server.

7. The network service debugging method according to any one of claims 1 to 6, characterized in that: The authentication server is a local virtual machine.

8. A network service debugging device, characterized in that: Applied to terminal equipment, including: a data message acquisition module, configured to, according to the selected operation mode, enable the virtual switch deployed on the terminal device to interact with a target device determined according to the operation mode in each network device, and monitor data messages from the target device; A network device debugging module, configured to obtain a debugging result of a network service corresponding to the target device according to the data message; Each of the network devices includes a client device to be connected to the network, and an authentication server for performing network access authentication of the client device; The network service corresponding to the client device includes a network access service, and the network service corresponding to the authentication server includes a network authentication service; Any of the operating modes specifies a target device for exchanging information with the virtual switch.

9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the network service debugging method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network service debugging method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for automatically testing SONiC based on virtual switch simulation platform

    CN111917604A