A method and system for testing whether the automatic detection function of the Internet access mode is normal
A technology of automatic detection and network mode, which is applied in the field of network communication, can solve problems such as inability to apply identification, high complexity, and high requirements for testers, so as to reduce work difficulty, reduce product cost, and improve test efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] This embodiment provides a method for testing whether the automatic detection function of the Internet access mode is normal. The flow chart of the method is as follows figure 1 shown.
[0052] This embodiment includes steps:
[0053] In step S101, the automatic detection function of the Internet access mode of the device under test is started;
[0054] Specifically, after the connection with the device under test is established, the corresponding function module is called to start the automatic detection function of the Internet access mode of the device under test.
[0055] In step S102, capture the request message sent by the device under test to the switch;
[0056] Specifically, after the automatic detection function of the device under test is enabled, if the function is normal, a DHCP message request of DHCPdiscover and a message request of PPPoE of PADI should be sent.
[0057] In step S103, it is judged whether the request message includes a message request ...
Embodiment 2
[0062] This embodiment provides a method for testing whether the automatic detection function of the Internet access mode is normal. The flow chart of the method is as follows figure 2 shown. The details are as follows:
[0063] In step S201, the automatic detection function of the Internet access mode of the device under test is started;
[0064] Call the function to start the automatic detection function of the Internet access mode of the device under test.
[0065] In step S202, obtain the MAC address of the port of the device under test connected to the switch;
[0066] Obtain the MAC address of the port of the device under test connected to the switch by calling the corresponding function module.
[0067] In step S203, capture the request message sent by the device under test to the switch according to the MAC address and the PPPoE message or BOOTP message.
[0068] According to the MAC address of the device under test and the PPPOE message or BOOTP message, capture th...
Embodiment 3
[0107] This embodiment provides a system for testing whether the automatic detection function of the Internet access mode is normal, and the structural flow chart of the system is as follows image 3 shown.
[0108] The system includes:
[0109] The first automatic detection opening unit 310 is used to start the automatic detection function of the Internet access mode of the device under test;
[0110] A request message capture unit 320, configured to capture the request message sent to the switch by the device under test;
[0111] The first judging unit 330 judges whether the request packet includes a packet request for the Internet access mode; if not, the automatic detection function is abnormal.
[0112] Further, the system also includes:
[0113] A network mode configuration unit 340, configured to configure the network mode of the switch port connected to the device under test;
[0114] The second automatic detection opening unit 350 is used to start the automatic de...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


