A communication method and device

Send password request messages to the server through the terminal device, obtain and decrypt the account and password, which solves the user inconvenience and operator pressure when the account password is lost in the IPoE network connection, realizes the retrieval process without customer service, and reduces operator maintenance cost.

CN112995107BActive Publication Date: 2024-11-26NAZHEN TECHNOLOGY (SINGAPORE) PTE LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN201911301398.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-17
Publication Date
2024-11-26
Estimated Expiration
2039-12-17

AI Technical Summary

Technical Problem

In IPoE network connection, when a user misoperates or restores the factory settings, it needs to be obtained through the operator's customer service, which increases user inconvenience and operator maintenance pressure.

Method used

After receiving the password recovery instruction, the terminal device sends a password request message to the server, including identification information. The server searches and encrypts the account and password and feeds it back to the terminal device. The terminal device decrypts the account and password through pre-contracted encryption rules.

Benefits of technology

Users can retrieve their account and password without using the operator's customer service, which reduces the operator's maintenance costs and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112995107B_ABST
    Figure CN112995107B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication method and device. When a terminal device receives a password retrieval instruction, the terminal device sends a password request message to a server. The password request message includes identification information for determining the terminal device, so that the server obtains the account and password of the terminal device by searching a database according to the identification information in the password request message, and feeds back a response message carrying the account and password of the terminal device to the terminal device. When the terminal device receives the response message, the account and password of the terminal device are extracted from the response message. When retrieving a password, the user only needs to trigger the password retrieval instruction, and then the terminal device can interact with the server to obtain the account and password of the terminal device, without going through the operator's customer service, thereby reducing the operator's maintenance cost and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] IPoE (IP over Ethernet) is a DHCP mechanism with authentication developed based on the Dynamic Host Configuration Protocol (DHCP). When the terminal device selects the IPoE network connection mode to automatically obtain the IP, it needs to report the account and password to the server. The server will only assign the IP address to the terminal device when it determines that the account and password are legal. When using the devices that actually use this technology (such as IPTV, OTT and smart TV terminals), it is found that if the user restores the factory settings or misoperates, resulting in the clearing or error of the saved account and password, the user must contact the operator by phone or text message to obtain the correct account and password from the operator, which causes unnecessary trouble for the user and increases the pressure on the operator's operation and maintenance customer service. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a communication method and device to solve the problem in the prior art that the pressure on the operator's operation and maintenance customer service will be increased when retrieving an account password.

[0004] An embodiment of the present invention provides a communication method, including:

[0005] Receive password retrieval instructions;

[0006] The terminal device sends a password request message to the server, wherein the password request message includes identification information for determining the terminal device, so that the server obtains the account number and password of the terminal device by searching a database according to the identification information in the password request message, and feeds back a response message carrying the account number and password of the terminal device to the terminal device;

[0007] Receive the response message, and extract the account number and password of the terminal device from the response message.

[0008] Optionally, in the communication method provided in the embodiment of the present invention, the response message is: a message obtained by encrypting the account and password of the terminal device according to an encryption rule; the encryption rule is pre-agreed between the terminal device and the server;

[0009] Extracting the account number and password of the terminal device from the response includes:

[0010] Decrypting the response message according to the encryption rule;

[0011] The account number and password of the terminal device are extracted from the decrypted response message.

[0012] Accordingly, an embodiment of the present invention further provides a communication method, including:

[0013] Receiving password request information sent by a terminal device, wherein the password request message includes identification information used to determine the terminal device;

[0014] Acquire the account number and password of the terminal device by searching a database according to the password request information;

[0015] A response message carrying the account and password information of the terminal device is fed back to the terminal device, so that the terminal device extracts the account and password of the terminal device from the response message.

[0016] Optionally, in the communication method provided in the embodiment of the present invention, before feeding back a response message carrying the account and password information of the terminal device to the terminal device, the method further includes:

[0017] According to a preset encryption rule, the obtained account number and password of the terminal device are encrypted to obtain an encrypted response message;

[0018] Feedback to the terminal device a response carrying the account and password information of the terminal device, specifically:

[0019] Feedback the encrypted response message to the terminal device so that the terminal device decrypts the encrypted response message according to the encryption rule and extracts the account number and password of the terminal device from the decrypted response message; wherein the encryption rule is pre-agreed upon by the terminal device and the server.

[0020] Accordingly, an embodiment of the present invention further provides a terminal device, including:

[0021] A memory for storing program instructions;

[0022] The processor is used to call the program instructions stored in the memory and execute according to the obtained program:

[0023] Receive password retrieval instructions;

[0024] Sending a password request message to the server, wherein the password request message includes identification information for determining the terminal device, so that the server obtains the account number and password of the terminal device by searching a database according to the identification information in the password request message, and feeds back a response message carrying the account number and password of the terminal device to the terminal device;

[0025] Receive the response message, and extract the account number and password of the terminal device from the response message.

[0026] Optionally, in the terminal device provided in the embodiment of the present invention, the response message is: a message obtained by encrypting the account and password of the terminal device according to an encryption rule; the encryption rule is pre-agreed between the terminal device and the server;

[0027] The processor is used to extract the account number and password of the terminal device from the response, including:

[0028] Decrypting the response message according to the encryption rule;

[0029] The account number and password of the terminal device are extracted from the decrypted response message.

[0030] Accordingly, an embodiment of the present invention further provides a server side, including:

[0031] A memory for storing program instructions;

[0032] The processor is used to call the program instructions stored in the memory and execute according to the obtained program:

[0033] Receiving password request information sent by a terminal device, wherein the password request message includes identification information used to determine the terminal device;

[0034] Acquire the account number and password of the terminal device by searching a database according to the password request information;

[0035] A response message carrying the account and password information of the terminal device is fed back to the terminal device, so that the terminal device extracts the account and password of the terminal device from the response message.

[0036] Optionally, in the server provided in the embodiment of the present invention, the server is further used for:

[0037] Before feeding back a response message carrying the account and password information of the terminal device to the terminal device, encrypting the acquired account and password of the terminal device according to a preset encryption rule to obtain an encrypted response message;

[0038] The server is used to feed back a response carrying the account and password information of the terminal device to the terminal device, specifically:

[0039] Feedback the encrypted response message to the terminal device so that the terminal device decrypts the encrypted response message according to the encryption rule and extracts the account number and password of the terminal device from the decrypted response message; wherein the encryption rule is pre-agreed upon by the terminal device and the server.

[0040] Correspondingly, an embodiment of the present invention further provides a communication system, including a terminal device and a server side; wherein: the terminal device is any one of the terminal devices provided by the embodiment of the present invention; the server side is any one of the server sides provided by the embodiment of the present invention.

[0041] Correspondingly, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, wherein the computer-readable non-volatile storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any of the above-mentioned communication methods provided by the embodiments of the present invention.

[0042] The beneficial effects of the present invention are as follows:

[0043] In the communication method and device provided by the embodiment of the present invention, when the terminal device receives the password retrieval instruction, the terminal device sends a password request message to the server, and the password request message includes identification information for determining the terminal device, so that the server obtains the account and password of the terminal device by searching the database according to the identification information in the password request message, and feeds back a response message carrying the account and password of the terminal device to the terminal device; when the terminal device receives the response message, the account and password of the terminal device are extracted from the response message. When retrieving the password, the user only needs to trigger the password retrieval instruction, and then the terminal device can interact with the server to obtain the account and password of the terminal device, without going through the operator's customer service, thereby reducing the operator's maintenance cost and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A flow chart of interaction between a terminal device and a server provided in an embodiment of the present invention;

[0045] Figure 2 A flow chart of a communication method provided by an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of a network connection interface in an embodiment of the present invention;

[0047] Figure 4 A flow chart of a communication method provided by another embodiment of the present invention;

[0048] Figure 5 A flow chart of a communication method provided by another embodiment of the present invention;

[0049] Figure 6 A flow chart of interaction between a terminal device and a server in a communication method provided in an embodiment of the present invention;

[0050] Figure 7 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention;

[0051] Figure 8 A schematic diagram of the structure of a communication system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The communication method and device provided by the embodiment of the present invention are described in detail below in conjunction with the accompanying drawings. In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. However, the example implementation methods can be implemented in various forms and should not be understood as being limited to the implementation methods described herein; on the contrary, these implementation methods are provided to make the present invention more comprehensive and complete, and to fully convey the concept of the example implementation methods to those skilled in the art. The same figure marks in the figures represent the same or similar structures, and thus their repeated descriptions will be omitted. The words expressing position and direction described in the present invention are all explained with the accompanying drawings as examples, but changes can be made as needed, and the changes made are all included in the scope of protection of the present invention. The drawings of the present invention are only used to illustrate the relative position relationship and do not represent the true proportion.

[0053] It should be noted that specific details are described in the following description to facilitate a full understanding of the present invention. However, the present invention can be implemented in a variety of other ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The subsequent description of the specification is a preferred embodiment of the present application, but the description is for the purpose of illustrating the general principles of the present application and is not intended to limit the scope of the present application. The scope of protection of the present application shall be determined by the definition of the attached claims.

[0054] The IPoE network connection method adds account and password authentication on the basis of DHCP. In essence, the interaction process between the terminal device and the server still follows the interaction process of the DHCP protocol. The interaction process is as follows: Figure 1 As shown, specifically:

[0055] Process 1: The terminal device encapsulates the account number and password into option 60.

[0056] Process 2: The terminal device broadcasts a discover message.

[0057] Among them, the network connection method of IPoE is to carry the user password information of the user end in the option 60 option of the discover message. Generally, for confidentiality, the content of option 60 is composed of the bytes of the account encrypted by 3des plus the bytes of the password encrypted by md5. For example, the byte content of the account encrypted by 3des encryption is abcdefg, and the byte content of the password encrypted by md5 encryption is rstuvwxyz, then the content carried by option 60 is: abcdefgrstuvwxyz.

[0058] 3des is a symmetric encryption algorithm. After the encryption method is determined, the DHCP server can correctly parse the user name. md5 is an asymmetric encryption algorithm. The authentication server queries the database and encrypts the password corresponding to the parsed user name with md5. If it is equal to the value of the md5 segment carried in option60, the authentication is successful.

[0059] Process 3: After receiving the descover message reported by the terminal device, the DHCP server decrypts the content of option 60 (the encryption method is a private agreement, and the DHCP server can decrypt it normally according to the agreement), parses out the account and password, and then goes to the authentication server for authentication.

[0060] Process 4: Determine the authentication result.

[0061] Process 5: If the authentication is successful, the DHCP server sends an offer message carrying the allocated IP address to the terminal device.

[0062] The option 125 in the offer message carries a pre-agreed string value, which is used to determine whether the DHCP server and the terminal device have a private agreement relationship.

[0063] Process 6: After receiving the offer message, the terminal device extracts the string value in option 125 and compares it with the value fixed in the terminal device. If the comparison is consistent, the terminal device broadcasts a request message to the DHCP server to request the IP address. The request message carries authentication information.

[0064] Process 7: After receiving the request message from the terminal device, the DHCP server sends an ack confirmation message to the terminal device.

[0065] However, if the user mistakenly changes the account or password and saves it incorrectly and forgets the correct account and password, or the user restores the terminal device to factory settings and clears the account and password, the user needs to send a text message to a fixed mobile phone number to obtain the account and password of the terminal device, or call customer service to inquire about the account and password of the terminal device. After obtaining the correct account and password, the user can enter the account and password through the network connection interface before connecting to the network. This causes unnecessary trouble for users and increases the pressure on the operator's operation and maintenance customer service.

[0066] Based on this, an embodiment of the present invention provides a communication method, such as Figure 2 As shown, including:

[0067] S101, receiving a password retrieval instruction;

[0068] S102, sending a password request message to the server, where the password request message includes identification information for determining the terminal device, so that the server obtains the account number and password of the terminal device by searching a database according to the identification information in the password request message, and feeds back a response message carrying the account number and password of the terminal device to the terminal device;

[0069] S103: Receive a response message, and extract the account number and password of the terminal device from the response message.

[0070] The communication method provided by the embodiment of the present invention is that when the terminal device receives the instruction to retrieve the password, the terminal device sends a password request message to the server, and the password request message includes identification information for determining the terminal device, so that the server obtains the account and password of the terminal device by searching the database according to the identification information in the password request message, and feeds back a response message carrying the account and password of the terminal device to the terminal device; when the terminal device receives the response message, the account and password of the terminal device are extracted from the response message. When retrieving the password, the user only needs to trigger the instruction to retrieve the password, and then the terminal device can interact with the server to obtain the account and password of the terminal device, without going through the operator's customer service, thereby reducing the operator's maintenance cost and improving the user experience.

[0071] In specific implementation, in the communication method provided in the embodiment of the present invention, a "retrieve account password" button option can be added to the network connection interface, such as Figure 3 As shown, when the user changes the correct account password by mistake or performs a factory reset operation, the user selects the "Retrieve Account Password" button to send a password retrieval instruction to the terminal device.

[0072] In a specific implementation, the terminal device may send a password request message to the server through a private protocol agreed field. After receiving the password request message sent by the terminal device, the server may identify the password request message and obtain the account and password of the terminal device by searching the database through the identification information used to identify the terminal device in the message. The identification information used to identify the terminal device can be any information that can uniquely identify the target terminal device, for example, it may be the MAC address of the terminal device, or STBID (serial number), or SN (terminal device identification), etc., which are not limited here.

[0073] Optionally, in order to prevent the account number and password of the terminal device from being leaked through the response message, in the communication method provided in the embodiment of the present invention, the response message is: a message obtained by encrypting the account number and password of the terminal device according to an encryption rule; the encryption rule is pre-agreed between the terminal device and the server;

[0074] Extract the terminal device account and password from the response, including:

[0075] Decrypt the response message according to the encryption rules;

[0076] Extract the account and password of the terminal device from the decrypted response message.

[0077] Based on the same inventive concept, the embodiment of the present invention also provides a communication method, such as Figure 4 As shown, including:

[0078] S201, receiving password request information sent by a terminal device, where the password request message includes identification information for determining the terminal device;

[0079] S202, obtaining the account number and password of the terminal device by searching a database according to the password request information;

[0080] S203: Feedback a response message carrying the account and password information of the terminal device to the terminal device, so that the terminal device extracts the account and password of the terminal device from the response message.

[0081] Optionally, in the communication method provided in the embodiment of the present invention, before feeding back a response message carrying the account and password information of the terminal device to the terminal device, the method further includes:

[0082] According to the preset encryption rules, the acquired account number and password of the terminal device are encrypted to obtain an encrypted response message;

[0083] Feedback to the terminal device a response containing the account and password information of the terminal device, specifically:

[0084] Feedback an encrypted response message to the terminal device, so that the terminal device decrypts the encrypted response message according to the encryption rules, and extracts the account and password of the terminal device from the decrypted response message; wherein the encryption rules are pre-agreed upon between the terminal device and the server.

[0085] The communication method provided by the embodiment of the present invention is described below by using a specific example. Figure 5 As shown, the following steps are included:

[0086] S301, the user triggers a password retrieval instruction;

[0087] S302, the terminal device receives a password retrieval instruction;

[0088] S303, the terminal device sends a password request message to the server, where the password request message includes identification information for determining the terminal device;

[0089] S304, the server receives the password request information sent by the terminal device;

[0090] S305, the server side obtains the account number and password of the terminal device by searching the database according to the identification information used to determine the terminal device in the password request information;

[0091] S306. The server encrypts the acquired account and password of the terminal device according to a preset encryption rule to obtain an encrypted response message, and feeds back the encrypted response message to the terminal device;

[0092] S307: The terminal device decrypts the response message according to the encryption rule, and extracts the account number and password of the terminal device from the decrypted response message.

[0093] In the specific implementation, the IPoE network connection mode is taken as an example, wherein the server side includes a DHCP server and an authentication server. In the above communication method provided by the embodiment of the present invention, the interaction process between the terminal device and the server side is as follows: Figure 6 As shown, the process includes the following:

[0094] Process 1: The terminal device receives the password retrieval instruction.

[0095] Process 2: The terminal device sends a password request message to the DHCP server.

[0096] Among them, the password request message is a discover message, and the option 60 option of the discover message carries a field agreed upon by the private protocol, such as "zhzhmm+mac". This field is resolved to the first letter of the account password plus the MAC address of the device terminal, and this field is reported to the DHCP server through the discover message as the data byte of option 60. Here, the mac address is used as the identification information for identifying the terminal device. In actual applications, information such as stbid and sn can also be used to mark the terminal device, as long as the authentication server and the terminal device can privately identify it; similarly, the fixed "zhzhmm" field can also use a private identification mark.

[0097] Process 3: After receiving the discover message reported by the terminal device, the DHCP server searches the database maintained by the authentication server to find out the account and password corresponding to the terminal device with the MAC address.

[0098] Process 4: The DHCP server encrypts the obtained terminal device account and password and sends an offer message to the terminal device.

[0099] The Option 60 of the offer message carries encrypted data, for example, the data format of the terminal device's account and password is "user: account; pwd: password", such as "user: admin; pwd: 12345678". The data is encrypted by 3des and encapsulated in Option 60. 3des is a symmetric encryption algorithm. The encrypted content is negotiated as a private algorithm by the terminal device and the authentication server. The terminal device decrypts the data and extracts the terminal device's account (admin) and password (12345678). The authentication server and the DHCP server can be the same server.

[0100] Process 5: After receiving the offer message sent by the DHCP server, the terminal device parses the account and password from option 60.

[0101] After that, the terminal device writes the account and password into the parameter database of the network connection and restarts once again. Figure 1 The interactive process of the DHCP protocol shown in the figure finally achieves the purpose of obtaining an IP address.

[0102] It should be noted that the communication method provided in the embodiment of the present invention is only for disaster recovery of erroneous account and password, and is applicable to similar interactive processes, such as the retrieval of user names and passwords used in PPPOE network connection methods, the retrieval of account and passwords for IPTV authentication, etc., which are not limited here.

[0103] Based on the same inventive concept, an embodiment of the present invention provides a terminal device, such as Figure 7 As shown, including:

[0104] Memory 01, used for storing program instructions;

[0105] The processor 02 is used to call the program instructions stored in the memory 01 and execute according to the obtained program:

[0106] Receive password retrieval instructions;

[0107] Send a password request message to the server, where the password request message includes identification information for determining the terminal device, so that the server obtains the account number and password of the terminal device by searching the database according to the identification information in the password request message, and feeds back a response message carrying the account number and password of the terminal device to the terminal device;

[0108] Receive the response message and extract the account and password of the terminal device from the response message.

[0109] Optionally, in the terminal device provided in the embodiment of the present invention, the response message is: a message obtained by encrypting the account and password of the terminal device according to an encryption rule; the encryption rule is pre-agreed between the terminal device and the server;

[0110] The processor is used to extract the account and password of the terminal device from the response, including:

[0111] Decrypt the response message according to the encryption rules;

[0112] Extract the account and password of the terminal device from the decrypted response message.

[0113] Based on the same inventive concept, an embodiment of the present invention further provides a server side, including:

[0114] A memory for storing program instructions;

[0115] The processor is used to call the program instructions stored in the memory and execute according to the obtained program:

[0116] Receiving password request information sent by a terminal device, where the password request message includes identification information used to identify the terminal device;

[0117] Obtain the account number and password of the terminal device by searching the database according to the password request information;

[0118] A response message carrying the account and password information of the terminal device is fed back to the terminal device, so that the terminal device extracts the account and password of the terminal device from the response message.

[0119] Optionally, in the server provided in the embodiment of the present invention, the server is further used for:

[0120] Before feeding back a response message carrying the account and password information of the terminal device to the terminal device, encrypting the acquired account and password of the terminal device according to a preset encryption rule to obtain an encrypted response message;

[0121] The server is used to feed back a response carrying the account and password information of the terminal device to the terminal device, specifically:

[0122] Feedback an encrypted response message to the terminal device, so that the terminal device decrypts the encrypted response message according to the encryption rules, and extracts the account and password of the terminal device from the decrypted response message; wherein the encryption rules are pre-agreed upon between the terminal device and the server.

[0123] Based on the same inventive concept, an embodiment of the present invention further provides a communication system, such as Figure 8 As shown, it includes a terminal device 100 and a server end 200; wherein: the terminal device is the above-mentioned terminal device provided in the embodiment of the present invention; the server end is the above-mentioned server end provided in the embodiment of the present invention.

[0124] Based on the same inventive concept, an embodiment of the present invention provides a computer-readable non-volatile storage medium, which stores computer-executable instructions. The computer-executable instructions are used to enable the computer to execute the method for synchronizing the status of the above-mentioned player and page provided in an embodiment of the present invention.

[0125] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0126] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0129] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0130] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A communication method, characterized in that: include: Receive password retrieval instructions triggered by users; The terminal device adds identification information representing the password query request to option 60 of the discover message, and sends the discover message to the DHCP server, so that the DHCP server obtains the account and password of the terminal device from the database according to the identification information, adds the account and password to option 60 of the offer message, and sends the offer message to the terminal device; the terminal device is a device connected to the network using an IPoE network connection; the identification information is used to uniquely identify the terminal device; the account and password are encrypted by the DHCP server according to an encryption rule and added to the offer message; the encryption rule is pre-agreed between the terminal device and the DHCP server; The offer message is received, and according to the encryption rule, the encrypted data carried in option 60 of the offer message is decrypted, and the account number and password of the terminal device are extracted from the decrypted data.

2. A communication method, characterized in that: include: Receive a discover message sent by a terminal device, and when option 60 of the discover message carries identification information representing a password query request, obtain the account and password of the terminal device by searching a database according to the identification information; the terminal device is a device connected to the Internet using an IPoE network connection; the identification information is used to uniquely identify the terminal device; the discover message is sent by the terminal device after receiving a password retrieval instruction triggered by a user; According to a preset encryption rule, the obtained account number and password of the terminal device are encrypted and added to the option 60; An offer message carrying the encrypted account and password is sent to the terminal device, so that the terminal device decrypts the encrypted data carried in option 60 of the offer message according to the encryption rule, and extracts the account and password of the terminal device from the decrypted data; wherein the encryption rule is pre-agreed between the terminal device and the DHCP server.

3. A terminal device, characterized in that: include: A memory for storing program instructions; The processor is used to call the program instructions stored in the memory and execute according to the obtained program: Receive password retrieval instructions triggered by users; The terminal device adds identification information representing the password query request to option 60 of the discover message, and sends the discover message to the DHCP server, so that the DHCP server obtains the account and password of the terminal device from the database according to the identification information, adds the account and password to option 60 of the offer message, and sends the offer message to the terminal device; the terminal device is a device connected to the network using an IPoE network connection; the identification information is used to uniquely identify the terminal device; the account and password are encrypted by the DHCP server according to an encryption rule and added to the offer message; the encryption rule is pre-agreed between the terminal device and the DHCP server; The offer message is received, and according to the encryption rule, the encrypted data carried in option 60 of the offer message is decrypted, and the account number and password of the terminal device are extracted from the decrypted data.

4. A DHCP server, characterized in that: include: A memory for storing program instructions; The processor is used to call the program instructions stored in the memory and execute according to the obtained program: Receive a discover message sent by a terminal device, and when option 60 of the discover message carries identification information representing a password query request, obtain the account and password of the terminal device by searching a database according to the identification information; the terminal device is a device connected to the Internet using an IPoE network connection; the identification information is used to uniquely identify the terminal device; the discover message is sent by the terminal device after receiving a password retrieval instruction triggered by a user; According to a preset encryption rule, the obtained account number and password of the terminal device are encrypted and added to the option 60; An offer message carrying the encrypted account and password is sent to the terminal device, so that the terminal device decrypts the encrypted data carried in option 60 of the offer message according to the encryption rule, and extracts the account and password of the terminal device from the decrypted data; wherein the encryption rule is pre-agreed upon by the terminal device and the DHCP server.

5. A communication system, comprising a terminal device and a DHCP server; characterized in that: The terminal device is the terminal device as claimed in claim 3; the DHCP server is the DHCP server as claimed in claim 4.

6. A computer-readable non-volatile storage medium, characterized in that: The computer-readable non-volatile storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the communication method according to claim 1 or 2.

Citation Information

Patent Citations

  • Access authentication method and system based on DHCP protocol

    CN101436936A

  • Server, terminal and account password acquisition method

    CN102497635A

  • Method, device and system for password recovery

    CN104348786A

  • Method and device for realizing Hadoop host automatic discovery

    CN105763667A

  • Method and system for access authentication of WiFi network as well as portal server

    CN107026813A